/* ===========================================================
   Clínica Vitalis — hoja de estilos
   Fuentes: Plus Jakarta Sans (títulos) + Public Sans (texto)
   =========================================================== */

:root {
  --accent: #e76f51;
  --accent-ink: #ffffff;

  --primary: #1f5f63;
  --primary-dark: #163f42;
  --primary-light: #eaf4f2;

  --bg: #f8faf9;
  --surface: #ffffff;
  --surface-alt: #f1f6f5;

  --ink: #16262a;
  --ink-soft: #4c6367;
  --ink-faint: #7c8f92;

  --border: #e2ece9;

  --shadow-sm: 0 2px 10px rgba(22, 38, 42, 0.06);
  --shadow-md: 0 12px 32px rgba(22, 38, 42, 0.1);
  --shadow-lg: 0 24px 60px rgba(22, 38, 42, 0.16);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --font-head: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --font-body: "Public Sans", "Segoe UI", sans-serif;

  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--primary-dark);
  line-height: 1.15;
  margin: 0;
}

p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-head {
  max-width: 620px;
  margin: 0 0 44px;
}

.section-head.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 700;
}

.section-head p {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

section {
  padding: 84px 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.96rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

.btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow-md);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--primary-dark);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.btn-light {
  background: var(--surface);
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(248, 250, 249, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.nav-brand span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--primary-dark);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-actions .btn {
  padding: 11px 20px;
  font-size: 0.9rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--primary-dark);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  padding: 56px 0 90px;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.hero-copy .lead {
  margin-top: 20px;
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.hero-meta div strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--primary-dark);
}

.hero-meta div span {
  font-size: 0.85rem;
  color: var(--ink-faint);
}

.hero-media {
  position: relative;
}

.hero-media .frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3.1;
}

.hero-media .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card {
  position: absolute;
  left: -18px;
  bottom: -26px;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 250px;
}

.hero-card .dot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}

.hero-card .dot svg {
  width: 22px;
  height: 22px;
}

.hero-card strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.92rem;
  color: var(--primary-dark);
}

.hero-card span {
  font-size: 0.8rem;
  color: var(--ink-faint);
}

/* ---------- Confianza / badges ---------- */

.trust {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 54px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.trust-item .icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-item .icon svg {
  width: 24px;
  height: 24px;
}

.trust-item h4 {
  font-size: 0.98rem;
  font-weight: 700;
}

.trust-item p {
  margin-top: 4px;
  font-size: 0.86rem;
  color: var(--ink-faint);
}

/* ---------- Especialidades ---------- */

.services {
  background: var(--bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.service-card .icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-card .icon svg {
  width: 26px;
  height: 26px;
}

.service-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
}

.service-card p {
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ---------- Instalaciones ---------- */

.facilities {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.facilities-grid {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 56px;
  align-items: center;
}

.facilities-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}

.facilities-copy h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.facilities-copy p {
  color: var(--ink-soft);
  font-size: 1rem;
}

.facilities-list {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.facilities-list li {
  position: relative;
  padding-left: 28px;
  font-size: 0.94rem;
  color: var(--ink-soft);
}

.facilities-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-light);
  border: 2px solid var(--primary);
}

.facilities-list li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  width: 6px;
  height: 3px;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}

/* ---------- Equipo ---------- */

.team {
  background: var(--surface);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.team-card {
  background: var(--bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.team-card .photo {
  aspect-ratio: 3 / 3.4;
  overflow: hidden;
}

.team-card .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card .info {
  padding: 22px 24px 26px;
}

.team-card .info .role {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.team-card .info h3 {
  font-size: 1.14rem;
  font-weight: 700;
}

.team-card .info p {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ---------- Testimonios ---------- */

.testimonials {
  background: var(--primary-dark);
  color: #ffffff;
}

.testimonials .section-head h2,
.testimonials .section-head p {
  color: #ffffff;
}

.testimonials .section-head p {
  opacity: 0.72;
}

.testimonials .eyebrow {
  color: color-mix(in srgb, var(--accent) 55%, white 45%);
}

.testimonials .eyebrow::before {
  background: color-mix(in srgb, var(--accent) 55%, white 45%);
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.testi-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 28px 26px;
}

.testi-stars {
  display: flex;
  gap: 3px;
  color: color-mix(in srgb, var(--accent) 55%, white 45%);
  margin-bottom: 16px;
}

.testi-stars svg {
  width: 16px;
  height: 16px;
}

.testi-card p.quote {
  font-size: 0.98rem;
  line-height: 1.65;
  color: #f2f2f2;
}

.testi-author {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.testi-author .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
}

.testi-author strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.92rem;
}

.testi-author span {
  font-size: 0.78rem;
  opacity: 0.65;
}

/* ---------- Contacto ---------- */

.contact {
  background: var(--bg);
}

.contact .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: stretch;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-row .icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-row .icon svg {
  width: 22px;
  height: 22px;
}

.contact-row h4 {
  font-size: 0.98rem;
  font-weight: 700;
}

.contact-row p {
  margin-top: 3px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.contact-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.contact-panel {
  background: var(--primary-dark);
  border-radius: var(--radius-lg);
  padding: 42px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.contact-panel::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.22;
  top: -90px;
  right: -90px;
}

.contact-panel h3 {
  color: #fff;
  font-size: 1.5rem;
  position: relative;
}

.contact-panel p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  position: relative;
  max-width: 380px;
}

.contact-panel .schedule {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.schedule-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.schedule-row span:first-child {
  color: rgba(255, 255, 255, 0.65);
}

.contact-panel .btn {
  margin-top: 28px;
  position: relative;
  align-self: flex-start;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 56px 0 26px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.footer-brand span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.08rem;
  color: #fff;
}

.footer-col p.desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 270px;
}

.footer-col h5 {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a,
.footer-col ul p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-col ul a:hover {
  color: #fff;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.footer-social a:hover {
  background: var(--accent);
}

.footer-social svg {
  width: 16px;
  height: 16px;
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- WhatsApp float ---------- */

.wa-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 400;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease;
}

.wa-float:hover {
  transform: scale(1.08);
}

.wa-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

/* ===========================================================
   Responsive
   =========================================================== */

@media (max-width: 1020px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-media {
    order: -1;
  }

  .services-grid,
  .team-grid,
  .testi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .contact .container {
    grid-template-columns: 1fr;
  }

  .facilities-grid {
    grid-template-columns: 1fr;
  }

  .facilities-media {
    order: -1;
  }
}

@media (max-width: 760px) {
  section {
    padding: 60px 0;
  }

  .nav-links,
  .nav-actions .btn-outline {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-header.is-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 14px 20px 22px;
    box-shadow: var(--shadow-md);
  }

  .site-header.is-open .nav-links a {
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
  }

  .hero {
    padding-top: 30px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-meta {
    gap: 20px;
  }

  .hero-card {
    left: 10px;
    bottom: -20px;
    max-width: 210px;
    padding: 12px 16px;
  }

  .services-grid,
  .team-grid,
  .testi-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-panel {
    padding: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 400px) {
  .container {
    padding: 0 16px;
  }
}
