/* ============================================================
   MedicGio.cl — Sistema de diseño
   Marca: Medicina + Empatía · morado/lila, minimalista, premium
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Marca */
  --purple-900: #3E2A55;
  --purple-700: #5E3D82;
  --purple-600: #6E4E96;
  --purple-500: #7C5AA6;   /* morado corporativo */
  --purple-400: #9877BC;
  --purple-300: #B79DD1;
  --lila-200:   #E3D6F0;
  --lila-100:   #F1EAF8;   /* lila muy suave */
  --lila-50:    #F8F4FC;
  --rose-500:   #D98BAE;   /* rosa acento (tenue, solo detalles) */
  --rose-100:   #F7E9F0;
  --gray-bg:    #F6F6F8;   /* gris claro fondos alternos */
  --white:      #FFFFFF;

  /* Texto */
  --ink:        #2C2536;
  --ink-soft:   #4A4358;
  --muted:      #7A7388;

  /* Tipografía */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* Sombras suaves */
  --shadow-sm: 0 2px 10px rgba(62, 42, 85, 0.06);
  --shadow-md: 0 14px 40px rgba(62, 42, 85, 0.10);
  --shadow-lg: 0 30px 70px rgba(62, 42, 85, 0.16);

  /* Transiciones */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}

/* ---------- Utilidades ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple-500);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1.5px;
  background: var(--purple-300);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--purple-500);
  color: #fff;
  box-shadow: 0 10px 24px rgba(124, 90, 166, 0.28);
}
.btn-primary:hover {
  background: var(--purple-600);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(124, 90, 166, 0.36);
}
.btn-ghost {
  background: transparent;
  color: var(--purple-700);
  border-color: var(--lila-200);
}
.btn-ghost:hover {
  background: var(--lila-100);
  border-color: var(--purple-300);
  transform: translateY(-2px);
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease);
  padding: 18px 0;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo__mark { width: 40px; height: 40px; flex: none; }
.logo__word {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--purple-700);
  letter-spacing: -0.01em;
}
.logo__word .tld { color: var(--purple-400); font-weight: 500; }

/* Nav */
.nav { display: flex; align-items: center; gap: 34px; }
.nav__links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color .25s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1.5px;
  background: var(--purple-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__links a:hover { color: var(--purple-700); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  color: var(--purple-700);
}
.nav-toggle svg { width: 26px; height: 26px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-top: 128px;
  padding-bottom: 80px;
  background:
    radial-gradient(120% 90% at 85% 0%, var(--lila-100) 0%, rgba(241,234,248,0) 55%),
    linear-gradient(180deg, var(--lila-50) 0%, var(--white) 70%);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

/* Columna texto */
.hero__content { max-width: 560px; }
.hero__title {
  font-size: clamp(2.5rem, 5.4vw, 4rem);
  margin: 22px 0 0;
}
.hero__title .accent { color: var(--purple-600); font-style: italic; }
.hero__role {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  font-size: 1rem;
  color: var(--purple-700);
  font-weight: 500;
}
.hero__role .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--purple-300); }
.hero__lead {
  margin-top: 22px;
  font-size: 1.14rem;
  color: var(--ink-soft);
  max-width: 480px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid var(--lila-200);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 10px;
  border-radius: 14px;
  text-decoration: none;
}
.trust-item__ico {
  width: 42px; height: 42px; flex: none;
  border-radius: 12px;
  background: var(--lila-100);
  color: var(--purple-600);
  display: grid; place-items: center;
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.trust-item__ico svg { width: 21px; height: 21px; }
.trust-item strong {
  display: block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}
.trust-item span { font-size: 0.8rem; color: var(--muted); }
.trust-item--link {
  transition: transform .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.trust-item--link:hover {
  background: var(--lila-100);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.trust-item--link:hover .trust-item__ico {
  background: var(--purple-500);
  color: #fff;
  transform: scale(1.06);
}

/* Columna imagen */
.hero__media { position: relative; }
.hero__photo-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  background: var(--lila-100);
}
.hero__photo-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
/* Tarjeta flotante */
.hero__card {
  position: absolute;
  left: -28px;
  bottom: 34px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 260px;
}
.hero__card .ico {
  width: 42px; height: 42px; flex: none;
  border-radius: 12px;
  background: var(--lila-100);
  display: grid; place-items: center;
  color: var(--purple-600);
}
.hero__card .ico svg { width: 22px; height: 22px; }
.hero__card p { margin: 0; font-size: 0.9rem; line-height: 1.4; color: var(--ink-soft); }
.hero__card strong { color: var(--ink); display: block; font-weight: 600; }

/* Blob decorativo */
.hero__blob {
  position: absolute;
  z-index: -1;
  top: -6%; right: -10%;
  width: 46%;
  aspect-ratio: 1;
  background: radial-gradient(circle at 30% 30%, var(--lila-200), transparent 70%);
  filter: blur(20px);
  opacity: .7;
}

/* ============================================================
   SOBRE LA DRA.
   ============================================================ */
.about {
  padding: clamp(72px, 10vw, 120px) 0;
  background: var(--gray-bg);
}
.about__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.about__media { position: relative; }
.about__photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-md);
  background: var(--lila-100);
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.about__badge {
  position: absolute;
  right: -22px; top: 40px;
  background: var(--purple-500);
  color: #fff;
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: var(--shadow-md);
  max-width: 190px;
}
.about__badge .q { font-family: var(--font-display); font-size: 2.2rem; line-height: 1; display:block; }
.about__badge span { font-size: 0.82rem; opacity: .9; display:block; margin-top: 4px; }

.about__title { font-size: clamp(2rem, 4vw, 2.9rem); margin-top: 18px; }
.about__text { margin-top: 22px; color: var(--ink-soft); font-size: 1.08rem; }
.about__text p { margin: 0 0 18px; }
.about__values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 30px;
}
.value {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.value .ico {
  width: 44px; height: 44px; flex: none;
  border-radius: 12px;
  background: var(--lila-100);
  color: var(--purple-600);
  display: grid; place-items: center;
}
.value .ico svg { width: 22px; height: 22px; }
.value h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; }
.value p { margin: 3px 0 0; font-size: 0.92rem; color: var(--muted); line-height: 1.5; }

/* ============================================================
   FOOTER (teaser del prototipo)
   ============================================================ */
.proto-note {
  background: var(--purple-900);
  color: #E9E1F2;
  text-align: center;
  padding: 60px var(--gutter);
}
.proto-note h2 { color: #fff; font-size: 1.7rem; }
.proto-note p { margin: 14px auto 0; max-width: 520px; color: #C9BCD9; font-size: 0.98rem; }

/* ============================================================
   WHATSAPP FAB
   ============================================================ */
.wa-fab {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: grid; place-items: center;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.4);
  transition: transform .3s var(--ease);
}
.wa-fab:hover { transform: scale(1.08) translateY(-2px); }
.wa-fab svg { width: 30px; height: 30px; color: #fff; }

/* ============================================================
   ANIMACIONES (reveal on scroll)
   ============================================================ */
/* Sin JS, el contenido siempre es visible. Solo se oculta para animar cuando hay JS. */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: .1s; }
.reveal.delay-2 { transition-delay: .2s; }
.reveal.delay-3 { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__content { max-width: none; order: 2; }
  .hero__media { order: 1; max-width: 460px; margin-inline: auto; }
  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 420px; margin-inline: auto; order: 1; }
  .about__content { order: 2; }
  .about__badge { right: 12px; }
}

@media (max-width: 720px) {
  .nav__links { display: none; }
  /* En móvil el CTA vive en el menú desplegable + WhatsApp flotante,
     así el encabezado queda limpio (logo + menú) y nada se corta. */
  .nav > .btn-primary { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero { padding-top: 108px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .about__values { grid-template-columns: 1fr; }
  .hero__card { left: 12px; right: 12px; max-width: none; }
}

/* Menú móvil desplegable */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(255,255,255,0.98);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .35s var(--ease), visibility .35s var(--ease);
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--purple-700);
  padding: 12px;
}
.mobile-menu .btn { margin-top: 18px; }
.mobile-close {
  position: absolute;
  top: 22px; right: 22px;
  background: none; border: none;
  color: var(--purple-700);
}
.mobile-close svg { width: 30px; height: 30px; }

/* ============================================================
   SECCIONES GENÉRICAS
   ============================================================ */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.alt-bg { background: var(--gray-bg); }
.section-head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head .eyebrow::before { display: none; }
.section-title { font-size: clamp(2rem, 4.4vw, 3rem); margin-top: 16px; }
.section-sub { margin: 20px auto 0; color: var(--ink-soft); font-size: 1.1rem; max-width: 620px; }

/* ---------- Cards grid genérico ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}
.card {
  background: var(--white);
  border: 1px solid var(--lila-200);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card__ico {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--lila-100);
  color: var(--purple-600);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.card__ico svg { width: 26px; height: 26px; }
.card h3 { font-family: var(--font-body); font-size: 1.12rem; font-weight: 600; }
.card p { margin: 8px 0 0; color: var(--muted); font-size: 0.96rem; }

/* Card con foto */
.card--photo { padding: 0; overflow: hidden; }
.card--photo .card__img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--lila-100); }
.card--photo .card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card--photo:hover .card__img img { transform: scale(1.06); }
.card--photo .card__body { padding: 22px 24px 26px; }

/* ============================================================
   MEDICINA GENERAL
   ============================================================ */
.medgen__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  margin-bottom: clamp(44px, 6vw, 64px);
}
.medgen__intro h3 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin-bottom: 14px; }
.medgen__intro p { color: var(--ink-soft); font-size: 1.06rem; }
.check-list { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 32px; color: var(--ink-soft); }
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--lila-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237C5AA6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
}
.medgen__services { margin-top: 8px; }

/* ============================================================
   BIENESTAR & FIGURA
   ============================================================ */
.bienestar__grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 30px; }
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature__ico {
  width: 48px; height: 48px; flex: none;
  border-radius: 12px; background: var(--lila-100); color: var(--purple-600);
  display: grid; place-items: center;
}
.feature__ico svg { width: 24px; height: 24px; }
.feature h3 { font-family: var(--font-body); font-size: 1.04rem; font-weight: 600; }
.feature p { margin: 4px 0 0; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }

.quote-card {
  background: linear-gradient(160deg, var(--purple-500), var(--purple-700));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 34px;
  box-shadow: var(--shadow-md);
  position: relative;
}
.quote-card__mark { width: 42px; height: 42px; color: rgba(255,255,255,0.35); margin-bottom: 12px; }
.quote-card p { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.4; font-style: italic; margin: 0 0 18px; }
.quote-card__author { font-size: 0.92rem; opacity: 0.85; }

/* ============================================================
   POR QUÉ ELEGIR
   ============================================================ */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.why {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--lila-200);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.why:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.why__num {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 600;
  color: var(--purple-300);
  display: block; margin-bottom: 10px;
}
.why h3 { font-family: var(--font-body); font-size: 1.1rem; font-weight: 600; }
.why p { margin: 8px 0 0; color: var(--muted); font-size: 0.96rem; }

/* ============================================================
   RESEÑAS
   ============================================================ */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.testi {
  background: var(--white);
  border: 1px solid var(--lila-200);
  border-radius: var(--radius);
  padding: 30px 28px;
  margin: 0;
}
.testi__stars { color: #E9B44C; letter-spacing: 3px; font-size: 1rem; margin-bottom: 14px; }
.testi p { font-size: 1.05rem; color: var(--ink-soft); line-height: 1.55; }
.testi footer { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.testi__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--lila-100); color: var(--purple-600);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1.2rem;
}
.testi footer strong { display: block; font-size: 0.98rem; }
.testi footer span { font-size: 0.85rem; color: var(--muted); }
.resenas__note { text-align: center; margin-top: 34px; color: var(--muted); font-size: 0.9rem; font-style: italic; }

/* ============================================================
   GALERÍA
   ============================================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}
.gallery__item {
  padding: 0; border: none; margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--lila-100);
  position: relative;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(62,42,85,0.28));
  opacity: 0; transition: opacity .35s var(--ease);
}
.gallery__item:hover img { transform: scale(1.07); }
.gallery__item:hover::after { opacity: 1; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(30, 20, 42, 0.9);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center; justify-content: center;
  padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(92vw, 900px); max-height: 88vh; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox__close {
  position: absolute; top: 22px; right: 22px;
  background: rgba(255,255,255,0.14); border: none; color: #fff;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
}
.lightbox__close svg { width: 26px; height: 26px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq__wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.faq__intro { position: sticky; top: 110px; }
.faq__intro .btn { margin-top: 22px; }
.faq__list { display: grid; gap: 12px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--lila-200);
  border-radius: 14px;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 22px;
  font-weight: 600;
  color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item__ico { position: relative; width: 16px; height: 16px; flex: none; }
.faq-item__ico::before, .faq-item__ico::after {
  content: ""; position: absolute; background: var(--purple-500);
  transition: transform .3s var(--ease);
}
.faq-item__ico::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq-item__ico::after { top: 0; left: 7px; width: 2px; height: 16px; }
.faq-item[open] .faq-item__ico::after { transform: scaleY(0); }
.faq-item__body { padding: 0 22px 22px; color: var(--ink-soft); }
.faq-item__body p { margin: 0; }

/* ============================================================
   AGENDA
   ============================================================ */
.agenda__card {
  background: linear-gradient(135deg, var(--purple-600), var(--purple-900));
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 60px);
  display: flex; align-items: center; justify-content: space-between; gap: 34px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.agenda__card::before {
  content: ""; position: absolute; top: -40%; right: -10%;
  width: 50%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.14), transparent 70%);
}
.agenda__text { color: #fff; position: relative; z-index: 1; max-width: 480px; }
.agenda__text h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 12px 0 12px; }
.agenda__text p { color: #E4D8F1; margin: 0; }
.agenda__actions { display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 1; }
.btn-light { background: #fff; color: var(--purple-700); }
.btn-light:hover { background: var(--lila-100); transform: translateY(-2px); }
.btn-outline-light { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-outline-light:hover { background: rgba(255,255,255,0.16); transform: translateY(-2px); }

/* ============================================================
   CONTACTO
   ============================================================ */
.contacto__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 4vw, 48px); align-items: stretch; }
.contacto__info { display: grid; gap: 14px; align-content: start; }
.contact-row {
  display: flex; align-items: center; gap: 16px;
  background: var(--white);
  border: 1px solid var(--lila-200);
  border-radius: 14px;
  padding: 18px 20px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
a.contact-row:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); }
.contact-row--static { cursor: default; }
.contact-row__ico {
  width: 46px; height: 46px; flex: none; border-radius: 12px;
  background: var(--lila-100); color: var(--purple-600);
  display: grid; place-items: center;
}
.contact-row__ico svg { width: 22px; height: 22px; }
.contact-row strong { display: block; font-size: 1rem; }
.contact-row span { color: var(--muted); font-size: 0.92rem; }
.contacto__map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); min-height: 340px; border: 1px solid var(--lila-200); }
.contacto__map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--purple-900); color: #C9BCD9; padding-top: clamp(56px, 7vw, 80px); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer__brand .logo { margin-bottom: 18px; }
.footer__tagline { font-size: 0.95rem; line-height: 1.6; max-width: 300px; color: #B7A8CC; }
.footer__social { display: flex; gap: 12px; margin-top: 20px; }
.footer__social a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.08); color: #E9E1F2;
  display: grid; place-items: center; transition: background .3s var(--ease), transform .3s var(--ease);
}
.footer__social a:hover { background: var(--purple-500); transform: translateY(-2px); }
.footer__social svg { width: 20px; height: 20px; }
.footer__col h4 { font-family: var(--font-body); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; margin: 0 0 18px; }
.footer__col a { display: block; color: #C9BCD9; font-size: 0.95rem; padding: 5px 0; transition: color .25s var(--ease); }
.footer__col a:hover { color: #fff; }
.cubamed { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.cubamed__lotus { width: 42px; height: 28px; }
.cubamed__word { font-family: var(--font-body); font-weight: 700; font-size: 1.3rem; color: #8A8397; }
.cubamed__word span { color: #17A9A0; }
.footer__location p { font-size: 0.94rem; line-height: 1.6; margin: 0 0 10px; color: #B7A8CC; }
.footer__hours { font-size: 0.88rem !important; color: #9C8EB4 !important; }
.footer__pay-lead { font-size: 0.92rem; color: #B7A8CC; margin: 0 0 16px; line-height: 1.5; }
.pay-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-badge {
  background: rgba(255,255,255,0.1);
  color: #E9E1F2;
  font-size: 0.78rem; font-weight: 600;
  padding: 6px 12px; border-radius: 8px;
}
.pay-badge--fonasa { background: #1E9E8F; color: #fff; }

/* Logos de medios de pago (imágenes oficiales sobre ficha blanca) */
.pay-logos { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pay-logo {
  background: #fff;
  border-radius: 8px;
  height: 34px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.14);
}
.pay-logo img { max-height: 100%; max-width: 58px; width: auto; object-fit: contain; display: block; }
.pay-logo--lg { height: 48px; padding: 8px 16px; margin-bottom: 14px; }
.pay-logo--lg img { max-width: 140px; }
.pay-logo--text {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
}
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 22px 0; }
.footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__bottom p { margin: 0; font-size: 0.85rem; color: #9C8EB4; }
.footer__legal { display: flex; gap: 22px; }
.footer__legal a { font-size: 0.85rem; color: #9C8EB4; transition: color .25s var(--ease); }
.footer__legal a:hover { color: #fff; }

/* ============================================================
   RESPONSIVE — secciones nuevas
   ============================================================ */
@media (max-width: 940px) {
  .medgen__grid { grid-template-columns: 1fr; }
  .medgen__media { max-width: 420px; margin-inline: auto; }
  .bienestar__grid { grid-template-columns: 1fr; }
  .faq__wrap { grid-template-columns: 1fr; }
  .faq__intro { position: static; }
  .contacto__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .feature-list { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery__item--wide { grid-column: span 2; }
  .gallery__item--tall { grid-row: span 1; }
  .agenda__card { flex-direction: column; align-items: flex-start; }
  .agenda__actions { width: 100%; }
  .agenda__actions .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }
}
