/* ==========================================================
   DRA. PATY MIRELES · WEBSITE STYLES
   Brand: warm, professional, friendly. ORL + Sueño.
   ========================================================== */

/* ----- 1. Reset & Base ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

:root {
  /* Brand palette */
  --purple-900: #2C0A4A;
  --purple-800: #4A1573;
  --purple-700: #6B2C91;
  --purple-600: #8B3FA8;
  --purple-500: #A565C4;
  --purple-400: #C39BD3;
  --purple-300: #D4B3E0;
  --purple-100: #F2E8F8;
  --purple-50:  #FAF6FD;

  --teal-600: #2EA09A;
  --teal-500: #4FC9C2;
  --teal-400: #6FD9D4;
  --teal-100: #DFF5F4;

  --pink-600: #E91E63;
  --pink-500: #FF6B9D;
  --pink-400: #FF8FB5;
  --pink-100: #FCE4EC;

  --gold:    #E8B339;

  --ink-900: #1F0E2C;
  --ink-700: #3D2952;
  --ink-500: #6B5780;
  --ink-300: #A092B0;
  --ink-100: #E8E2EE;

  --cream:   #FAF6F2;
  --white:   #FFFFFF;

  /* Type */
  --font-display: "Fraunces", "Georgia", serif;
  --font-body:    "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1200px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(75, 21, 115, 0.08);
  --shadow-md: 0 12px 32px rgba(75, 21, 115, 0.12);
  --shadow-lg: 0 24px 64px rgba(75, 21, 115, 0.18);
  --shadow-glow: 0 0 0 8px rgba(139, 63, 168, 0.08);

  /* Easing */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-900);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a { color: var(--purple-700); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--purple-800); }

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; border: 0; background: transparent; }

/* ----- 2. Typography ----- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.85rem); }
h4 { font-size: 1.15rem; font-weight: 600; }
h5 { font-size: 1rem; font-weight: 600; }

em {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 600;
  color: var(--purple-700);
}

p { color: var(--ink-700); }
.lead { font-size: 1.15rem; line-height: 1.6; color: var(--ink-700); }

/* ----- 3. Layout helpers ----- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
  position: relative;
}

.section-head {
  margin-bottom: 64px;
  max-width: 720px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple-700);
  margin-bottom: 16px;
  padding: 6px 14px;
  background: var(--purple-100);
  border-radius: 100px;
}
.section-eyebrow.on-dark {
  color: var(--purple-300);
  background: rgba(255, 255, 255, 0.08);
}

.section-title {
  margin-bottom: 16px;
}
.section-title.on-dark { color: var(--white); }
.section-title.on-dark em { color: var(--teal-400); }

.section-sub {
  font-size: 1.1rem;
  color: var(--ink-500);
}
.section-sub.on-dark { color: rgba(255, 255, 255, 0.78); }

/* ----- 4. Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 100px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--purple-700);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(107, 44, 145, 0.32);
}
.btn-primary:hover {
  background: var(--purple-800);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(107, 44, 145, 0.42);
}

.btn-ghost {
  background: transparent;
  color: var(--purple-700);
  border: 2px solid var(--purple-300);
}
.btn-ghost:hover {
  background: var(--purple-100);
  border-color: var(--purple-700);
  color: var(--purple-700);
}

.btn-lg { padding: 17px 30px; font-size: 1.05rem; }
.btn-xl { padding: 22px 38px; font-size: 1.15rem; }

/* ----- 5. Header / Nav ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 242, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled {
  border-bottom-color: rgba(107, 44, 145, 0.1);
  box-shadow: 0 4px 16px rgba(107, 44, 145, 0.04);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink-900);
  letter-spacing: -0.02em;
}
.brand-mark {
  color: var(--purple-700);
  font-style: italic;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.primary-nav a {
  color: var(--ink-700);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}
.primary-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--purple-700);
  transition: width .25s var(--ease);
}
.primary-nav a:hover { color: var(--purple-700); }
.primary-nav a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--ink-900);
  border-radius: 4px;
  transition: transform .3s var(--ease), opacity .3s;
  transform-origin: center;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(9.75px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-9.75px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0 24px 24px;
  border-top: 1px solid var(--purple-100);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  padding: 14px 8px;
  color: var(--ink-700);
  font-weight: 500;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--purple-100);
}
.mobile-nav a.btn {
  margin-top: 16px;
  border-bottom: 0;
  justify-content: center;
}

/* ----- 6. Hero ----- */
.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--cream) 0%, var(--purple-50) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}
.blob-1 {
  top: -10%;
  left: -8%;
  width: 540px; height: 540px;
  background: radial-gradient(circle, var(--purple-300), transparent 70%);
}
.blob-2 {
  bottom: -20%;
  right: -10%;
  width: 620px; height: 620px;
  background: radial-gradient(circle, var(--teal-400), transparent 70%);
  opacity: 0.35;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--white);
  border: 1px solid var(--purple-200, var(--purple-300));
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--purple-700);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal-500);
  box-shadow: 0 0 0 4px rgba(79, 201, 194, 0.25);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(79, 201, 194, 0.25); }
  50% { box-shadow: 0 0 0 8px rgba(79, 201, 194, 0.10); }
}

.hero-title {
  margin-bottom: 24px;
  font-weight: 600;
  letter-spacing: -0.035em;
}
.hero-title .hl-teal {
  color: var(--teal-600);
  font-style: italic;
  font-weight: 500;
}

.hero-sub {
  font-size: 1.18rem;
  color: var(--ink-700);
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.55;
}
.hero-sub strong { color: var(--ink-900); font-weight: 600; }

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  padding-top: 24px;
  border-top: 1px solid var(--purple-100);
}
.hero-credentials li {
  font-size: 0.85rem;
  color: var(--ink-500);
}
.hero-credentials strong {
  color: var(--ink-700);
  font-weight: 600;
}

.hero-media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-photo-frame {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 4/5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: rotate(-2deg);
  transition: transform .4s var(--ease);
}
.hero-photo-frame:hover { transform: rotate(0deg); }
.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-photo-deco {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(75, 21, 115, 0.12));
  pointer-events: none;
}

.hero-mascot {
  position: absolute;
  bottom: -20px;
  right: -10px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--white);
  border: 6px solid var(--white);
  box-shadow: var(--shadow-md);
  object-fit: cover;
  transform: rotate(8deg);
  transition: transform .4s var(--ease);
  z-index: 2;
}
.hero-mascot:hover { transform: rotate(0deg) scale(1.05); }

/* ----- 7. Trust strip ----- */
.trust-strip {
  background: var(--purple-700);
  padding: 32px 0;
  color: var(--white);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
}
.trust-item svg { color: var(--teal-400); flex-shrink: 0; }
.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
}
.trust-item span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
}

/* ----- 8. Sobre mí ----- */
.section-sobre {
  background: var(--cream);
}
.sobre-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 80px;
  align-items: center;
}
.sobre-media {
  position: relative;
}
.sobre-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.sobre-media::before {
  content: '';
  position: absolute;
  top: 24px; left: 24px;
  width: 100%; height: 100%;
  border: 3px solid var(--teal-500);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.sobre-text .lead { margin-bottom: 20px; }
.sobre-text p { margin-bottom: 24px; }

.formacion {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin: 32px 0;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--teal-500);
}
.formacion h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--purple-700);
}
.formacion ul { display: grid; gap: 14px; }
.formacion li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.formacion li strong {
  font-weight: 600;
  color: var(--ink-900);
}
.formacion li span {
  font-size: 0.9rem;
  color: var(--ink-500);
}

/* ----- 9. Para quién (audience cards) ----- */
.section-para-quien {
  background: linear-gradient(135deg, var(--purple-800) 0%, var(--purple-700) 50%, var(--purple-600) 100%);
  position: relative;
  padding: 120px 0;
  color: var(--white);
}
.wave-top, .wave-bottom {
  position: absolute;
  left: 0; right: 0;
  height: 80px;
  pointer-events: none;
}
.wave-top { top: -1px; }
.wave-bottom { bottom: -1px; }
.wave-top svg, .wave-bottom svg {
  display: block;
  width: 100%;
  height: 100%;
}
.wave-top svg path { fill: var(--cream); }
.wave-bottom svg path { fill: var(--cream); }

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
  z-index: 2;
}

.audience-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  position: relative;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.audience-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.audience-card-featured {
  background: linear-gradient(180deg, var(--white) 0%, var(--purple-50) 100%);
  border: 2px solid var(--teal-500);
  transform: translateY(-12px);
}
.audience-card-featured:hover {
  transform: translateY(-20px);
}

.audience-icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.audience-icon[data-color="teal"]   { background: var(--teal-100); color: var(--teal-600); }
.audience-icon[data-color="pink"]   { background: var(--pink-100); color: var(--pink-600); }
.audience-icon[data-color="purple"] { background: var(--purple-100); color: var(--purple-700); }

.badge {
  position: absolute;
  top: 24px; right: 24px;
  background: var(--teal-500);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.audience-card h3 {
  margin-bottom: 12px;
  font-weight: 700;
}
.audience-card p {
  margin-bottom: 20px;
  font-size: 0.97rem;
}

.check-list {
  display: grid;
  gap: 10px;
}
.check-list li {
  position: relative;
  padding-left: 28px;
  font-size: 0.92rem;
  color: var(--ink-700);
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 0;
  width: 20px; height: 20px;
  background: var(--teal-500);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}

/* ----- 10. Padecimientos (conditions grid) ----- */
.cond-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.cond-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  border: 1px solid var(--purple-100);
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.cond-card:hover {
  transform: translateY(-4px);
  border-color: var(--purple-300);
  box-shadow: var(--shadow-md);
}
.cond-card-featured {
  background: linear-gradient(160deg, var(--purple-700), var(--purple-600));
  color: var(--white);
  border-color: transparent;
}
.cond-card.cond-card-featured h3 { color: var(--white); }
.cond-card.cond-card-featured ul li { color: rgba(255, 255, 255, 0.95); }

.cond-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--purple-100);
}
.cond-card.cond-card-featured .cond-head { border-bottom-color: rgba(255, 255, 255, 0.2); }

.cond-emoji {
  font-size: 2rem;
  line-height: 1;
}
.cond-card ul { display: grid; gap: 8px; }
.cond-card ul li {
  font-size: 0.92rem;
  color: var(--ink-700);
  padding-left: 14px;
  position: relative;
}
.cond-card ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.65em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--purple-400);
}
.cond-card.cond-card-featured ul li::before { background: var(--teal-400); }

.cond-note {
  text-align: center;
  font-size: 1rem;
  color: var(--ink-500);
}
.cond-note a { font-weight: 600; }

/* ----- 11. Cirugías ----- */
.section-cirugias {
  background: linear-gradient(180deg, var(--cream) 0%, var(--purple-50) 100%);
}
.cirugias-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.cirugias-text { position: sticky; top: 96px; }
.cirugias-text .lead { margin-bottom: 32px; }

.cirugias-list {
  display: grid;
  gap: 4px;
}
.cirugia-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--purple-100);
  transition: padding-left .25s var(--ease);
}
.cirugia-item:hover { padding-left: 12px; }
.cirugia-item:last-child { border-bottom: 0; }
.cirugia-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--teal-500);
  font-style: italic;
}
.cirugia-item h4 {
  margin-bottom: 6px;
  font-size: 1.15rem;
  font-weight: 600;
}
.cirugia-item p {
  font-size: 0.95rem;
  color: var(--ink-500);
}

/* ----- 12. Cuándo consultar ----- */
.section-cuando {
  background: var(--cream);
}
.senales-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}
.senal-card {
  background: var(--white);
  padding: 28px 24px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--pink-500);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.senal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.senal-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
}
.senal-card h4 {
  margin-bottom: 8px;
  font-size: 1.05rem;
  font-weight: 600;
}
.senal-card p {
  font-size: 0.92rem;
  color: var(--ink-500);
  line-height: 1.55;
}

.cuando-cta {
  text-align: center;
  padding: 32px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.cuando-cta p {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 20px;
}

/* ----- 13. Educación / Carrusel ----- */
.section-educacion {
  background: var(--purple-50);
}
.carousel-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}
.carousel-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.carousel-item:hover {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: var(--shadow-md);
}
.carousel-item img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.educacion-cta { text-align: center; }

/* ----- 13b. Reels destacados ----- */
.section-reels {
  background: var(--cream);
}
.reels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto 40px;
}
.reel-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 9 / 16;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.reel-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Tarjeta de respaldo — siempre visible debajo del iframe */
.reel-card {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 32px 20px;
  text-align: center;
  text-decoration: none;
  color: var(--white);
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 107, 157, 0.25), transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(79, 201, 194, 0.22), transparent 55%),
    linear-gradient(160deg, var(--purple-700) 0%, var(--purple-900) 70%, var(--purple-800) 100%);
}
.reel-card-play {
  width: 56px;
  height: 56px;
  margin-bottom: 4px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}
.reel-card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.reel-card-handle {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.85;
}
.reel-card-label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--teal-400);
}
.reel-card-cta {
  background: var(--white);
  color: var(--purple-700);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: transform .2s var(--ease);
}
.reel-item:hover .reel-card-cta {
  transform: translateY(-2px);
}

/* Iframe encima — transparente. Si IG carga, cubre la tarjeta con su contenido.
   Si está bloqueado, queda invisible y la tarjeta queda visible.
   pointer-events: none deja que los clics pasen a la tarjeta cuando IG no carga. */
.reel-item .reel-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  z-index: 2;
}

/* ----- 14. Reseñas ----- */
.section-resenas {
  background: linear-gradient(160deg, var(--purple-900) 0%, var(--purple-800) 60%, var(--purple-700) 100%);
  color: var(--white);
  padding: 120px 0;
}
.section-resenas .section-head { margin-bottom: 56px; }

.rating-display {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding: 16px 28px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.rating-display .stars {
  font-size: 1.4rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}
.rating-display .rating-text strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  display: block;
  line-height: 1;
}
.rating-display .rating-text span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
}

.resenas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.resena-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.resena-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.08);
}
.resena-stars {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}
.resena-card blockquote {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--white);
  margin-bottom: 24px;
  padding-left: 0;
  border: 0;
}
.resena-card blockquote::before {
  content: '"';
  display: inline-block;
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 0;
  vertical-align: -0.45em;
  color: var(--teal-400);
  margin-right: 4px;
}
.resena-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
}
.resena-meta strong {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
}
.verified {
  color: var(--teal-400);
  font-weight: 500;
  font-size: 0.78rem;
}

.resena-cta-card {
  background: linear-gradient(160deg, var(--teal-500), var(--teal-600));
  border-color: transparent;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
}
.resena-cta-card h4 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--white);
}
.resena-cta-card p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
  font-size: 0.95rem;
}
.resena-cta-card .btn-primary {
  background: var(--white);
  color: var(--teal-600);
}
.resena-cta-card .btn-primary:hover {
  background: var(--cream);
  color: var(--teal-600);
}

/* ----- 15. Aseguradoras ----- */
.section-aseguradoras {
  background: var(--cream);
}
.aseguradoras-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 920px;
  margin: 0 auto 32px;
}
.aseg-pill {
  padding: 12px 22px;
  background: var(--white);
  border: 1px solid var(--purple-100);
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-700);
  transition: border-color .2s, transform .2s, color .2s;
}
.aseg-pill:hover {
  border-color: var(--purple-700);
  color: var(--purple-700);
  transform: translateY(-2px);
}
.aseg-pill-more {
  background: var(--purple-700);
  color: var(--white);
  border-color: var(--purple-700);
  font-weight: 600;
}
.aseg-pill-more:hover {
  background: var(--purple-800);
  color: var(--white);
}

.aseg-note {
  text-align: center;
  font-size: 0.95rem;
  color: var(--ink-500);
  background: var(--white);
  padding: 18px 24px;
  border-radius: var(--radius-md);
  max-width: 720px;
  margin: 0 auto;
  border: 1px dashed var(--purple-300);
}
.aseg-note strong { color: var(--ink-900); }

/* ----- 16. Consultorio ----- */
.section-consultorio {
  background: linear-gradient(135deg, var(--purple-800), var(--purple-700));
  color: var(--white);
  padding: 0;
}
.consultorio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
  position: relative;
}
.consultorio-info {
  padding: 96px 64px 96px 24px;
}
.consultorio-info .section-eyebrow { background: rgba(255, 255, 255, 0.08); }
.consultorio-info .lead.on-dark {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 32px;
}

.consultorio-block {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.consultorio-block:last-of-type { border-bottom: 0; }
.consultorio-block h4 {
  color: var(--teal-400);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.consultorio-block p, .consultorio-block a {
  color: var(--white);
  font-size: 1.05rem;
  line-height: 1.6;
}
.consultorio-block a { font-weight: 500; border-bottom: 1px dashed rgba(255, 255, 255, 0.4); }
.consultorio-block a:hover { color: var(--teal-400); border-bottom-color: var(--teal-400); }

.consultorio-info .btn { margin-top: 16px; }

.consultorio-map {
  position: relative;
  min-height: 400px;
}
.consultorio-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(1.1);
}
.consultorio-map .map-link {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: #fff;
  color: var(--purple-700);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 2;
}
.consultorio-map .map-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
  color: var(--purple-900);
}

/* ----- 17. CTA Final ----- */
.cta-final {
  background: var(--cream);
  padding: 96px 0;
  text-align: center;
}
.cta-final-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 32px;
  background: linear-gradient(135deg, var(--teal-500) 0%, var(--teal-600) 100%);
  border-radius: var(--radius-xl);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-final-inner::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.cta-final-inner::after {
  content: '';
  position: absolute;
  bottom: -120px; left: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.cta-final-inner > * { position: relative; z-index: 2; }

.cta-final-inner h2 {
  color: var(--white);
  margin-bottom: 16px;
  font-weight: 700;
}
.cta-final-inner h2 em {
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
}
.cta-final-inner p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.1rem;
  margin-bottom: 32px;
}
.cta-final-inner .btn-primary {
  background: var(--white);
  color: var(--teal-600);
}
.cta-final-inner .btn-primary:hover {
  background: var(--purple-50);
  color: var(--teal-600);
  transform: translateY(-3px);
}
.cta-fineprint {
  font-size: 0.85rem !important;
  opacity: 0.78;
  margin-top: 20px !important;
  margin-bottom: 0 !important;
}

/* ----- 18. Footer ----- */
.site-footer {
  background: var(--purple-900);
  color: var(--white);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
}
.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: var(--white);
}
.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.cedulas {
  font-size: 0.82rem !important;
  color: rgba(255, 255, 255, 0.5) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
  line-height: 1.7;
}
.footer-col h5 {
  color: var(--teal-400);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  transition: color .2s;
}
.footer-col a:hover { color: var(--white); }
.footer-col li { font-size: 0.95rem; color: rgba(255, 255, 255, 0.78); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
}
.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 4px;
}
.footer-bottom .aviso {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.78rem;
}
.footer-legal {
  margin-top: 8px !important;
}
.footer-legal a {
  color: rgba(255, 255, 255, 0.55);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.25);
  padding-bottom: 1px;
  font-size: 0.82rem;
  transition: color .2s ease, border-color .2s ease;
}
.footer-legal a:hover {
  color: var(--teal-400);
  border-bottom-color: var(--teal-400);
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 1024px) {
  .section { padding: 72px 0; }
  .hero-grid { gap: 40px; }
  .hero { padding: 64px 0; }

  .audience-grid,
  .resenas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .audience-card-featured { transform: translateY(0); }
  .audience-card-featured:hover { transform: translateY(-8px); }

  .cond-grid { grid-template-columns: repeat(2, 1fr); }
  .senales-grid { grid-template-columns: repeat(2, 1fr); }
  .carousel-grid { grid-template-columns: repeat(4, 1fr); }
  .reels-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }

  .sobre-grid,
  .cirugias-grid,
  .consultorio-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .cirugias-text { position: static; }
  .sobre-media { max-width: 480px; }
  .sobre-media::before { display: none; }
  .consultorio-info { padding: 72px 24px 56px; }
  .consultorio-map { min-height: 360px; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }

  .primary-nav,
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; text-align: left; }
  .hero-photo-frame { max-width: 360px; margin: 0 auto; transform: rotate(-1.5deg); }
  .hero-mascot { width: 130px; height: 130px; right: 0; bottom: -30px; }
  .hero-ctas .btn { width: 100%; justify-content: center; }

  .section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }
  .section-head.center { padding: 0 8px; }

  .audience-grid,
  .resenas-grid,
  .cond-grid,
  .senales-grid {
    grid-template-columns: 1fr;
  }
  .carousel-grid { grid-template-columns: repeat(2, 1fr); }
  .reels-grid { grid-template-columns: 1fr; max-width: 360px; margin-left: auto; margin-right: auto; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item { font-size: 0.9rem; }
  .trust-item strong { font-size: 1rem; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand { grid-column: 1 / -1; }

  .cta-final-inner { padding: 48px 24px; }
  .cta-final-inner .btn-xl { width: 100%; justify-content: center; padding: 18px 24px; font-size: 1rem; }

  .cirugia-item {
    grid-template-columns: 40px 1fr;
    gap: 16px;
  }
  .cirugia-num { font-size: 1.1rem; }

  .resena-card blockquote { font-size: 1rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.85rem; }

  .hero-credentials { flex-direction: column; gap: 4px; }
  .trust-grid { grid-template-columns: 1fr; }

  .aseg-pill { padding: 10px 16px; font-size: 0.88rem; }
  .resena-card { padding: 24px 22px; }

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

/* ==========================================================
   SUBTLE ENTRANCE ANIMATIONS
   ========================================================== */
@media (prefers-reduced-motion: no-preference) {
  .hero-text > * {
    animation: fadeUp .8s var(--ease) backwards;
  }
  .hero-text .eyebrow      { animation-delay: 0.05s; }
  .hero-text .hero-title   { animation-delay: 0.15s; }
  .hero-text .hero-sub     { animation-delay: 0.25s; }
  .hero-text .hero-ctas    { animation-delay: 0.35s; }
  .hero-text .hero-credentials { animation-delay: 0.45s; }

  .hero-media { animation: fadeIn 1s var(--ease) 0.3s backwards; }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes fadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: scale(1); }
  }

  /* Reveal on scroll */
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
  }
  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}
