/* ============================================================
   Dra. María Elena Zamora V. — Cirujana Oncóloga Mastóloga
   Sistema de diseño — un solo archivo, sin build step
   ============================================================ */

:root {
  /* Marca */
  --color-primary: #3F2C5D;
  --color-primary-dark: #2A1D40;
  --color-primary-light: #6B4F94;
  --color-accent: #E6007E;
  --color-accent-dark: #B8005F;

  /* Neutros / fondo */
  --color-bg: #FFFFFF;
  --color-bg-alt: #F6F2FA;
  --color-border: #E1DAEA;

  /* Texto */
  --color-text: #241B33;
  --color-text-body: #4A4358;
  --color-text-muted: #7B7389;
  --color-white: #FFFFFF;

  /* Utilitario */
  --color-whatsapp: #25D366;
  --color-success-bg: #EFF8F0;
  --color-success-text: #1E5C2A;

  /* Tipografía */
  --font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --container-width: 1180px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(63, 44, 93, 0.08);
  --shadow-md: 0 12px 32px rgba(63, 44, 93, 0.14);
  --header-height: 96px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, picture { max-width: 100%; display: block; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
html:focus-within { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
  font-family: var(--font-body);
  color: var(--color-text-body);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-text);
  line-height: 1.15;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { max-width: 65ch; }
p.lead {
  font-size: 1.15rem;
  color: var(--color-text-body);
  max-width: 56ch;
}
.motto {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  color: var(--color-primary);
  border-left: 3px solid var(--color-accent);
  padding-left: 16px;
  margin: 22px 0 28px;
}

a.link-underline {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

::selection { background: var(--color-accent); color: var(--color-white); }

/* ---------- Ritmo vertical para bloques de texto libre (servicios, bio, blog) ---------- */
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3 { margin-top: 1.5em; }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { list-style: disc; color: var(--color-text-body); }
.prose li + li { margin-top: 0.45em; }
.prose p { max-width: 62ch; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding-block: clamp(48px, 8vw, 96px); }

/* Marca de agua de la flor del logo: para secciones de fondo blanco liso, un
   detalle sutil de marca en vez de dejarlas planas. Nunca sobre texto (bajo
   z-index) y con opacidad muy baja para que no compita con el contenido. */
.section-watermark { position: relative; overflow: hidden; }
.section-watermark::before {
  content: "";
  display: block;
  position: absolute;
  width: min(560px, 70vw);
  height: min(560px, 70vw);
  background: url("/assets/img/logo/mark-purple-square.png") no-repeat center / contain;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}
.section-watermark.watermark-right::before { right: clamp(-140px, -8vw, -60px); top: 50%; transform: translateY(-50%); }
.section-watermark.watermark-left::before { left: clamp(-140px, -8vw, -60px); top: 50%; transform: translateY(-50%); }
.section-watermark.watermark-corner::before { right: clamp(-120px, -6vw, -40px); bottom: clamp(-120px, -6vw, -40px); }
.section-watermark > .container { position: relative; z-index: 1; }
.section-alt {
  background: linear-gradient(180deg, #F8F5FB 0%, #F1EAF8 100%);
}
.section-primary {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 15%, rgba(230, 0, 126, 0.16) 0%, transparent 42%),
    radial-gradient(circle at 88% 85%, rgba(255, 255, 255, 0.08) 0%, transparent 45%),
    var(--color-primary);
  color: rgba(255,255,255,0.92);
}
.section-primary::before {
  content: "";
  position: absolute;
  width: min(420px, 60vw);
  height: min(420px, 60vw);
  right: clamp(-100px, -6vw, -30px);
  bottom: clamp(-100px, -6vw, -30px);
  background: url("/assets/img/logo/mark-white-square.png") no-repeat center / contain;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}
.section-primary .container { position: relative; z-index: 1; }
.section-primary h2, .section-primary h3 { color: var(--color-white); }
/* Los párrafos (incluido .lead, que fija su propio color oscuro por defecto)
   deben leerse claro sobre el fondo morado oscuro, no heredar el tono para fondo blanco. */
.section-primary p,
.section-primary p.lead,
.section-primary .motto { color: rgba(255, 255, 255, 0.88); }

.section-head { max-width: 640px; margin-bottom: clamp(28px, 5vw, 48px); }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--color-accent);
  display: inline-block;
}

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.two-col {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .two-col { grid-template-columns: 1fr 1fr; gap: 64px; }
  .two-col.reverse > *:first-child { order: 2; }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  min-height: 48px;
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(63, 44, 93, 0.22); }
.btn:active { transform: translateY(0); }

/* Selectores compuestos (.btn.btn-accent, no solo .btn-accent) a propósito:
   así el color del botón siempre gana aunque esté dentro de .nav-list a,
   .card, u otro contenedor con su propia regla de color para <a>. */
.btn.btn-accent {
  background: var(--color-primary-light);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}
.btn.btn-accent:hover { background: var(--color-primary); }

.btn.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn.btn-primary:hover { background: var(--color-primary-dark); }

.btn.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: var(--color-primary);
}
.btn.btn-outline:hover { background: var(--color-primary); color: var(--color-white); }

.section-primary .btn.btn-outline { color: var(--color-white); }
.section-primary .btn.btn-outline:hover { background: var(--color-white); color: var(--color-primary); }

/* Sobre fondo morado oscuro, el botón principal se invierte a blanco para
   mantener buen contraste en vez de perderse contra el fondo. */
.section-primary .btn.btn-accent { background: var(--color-white); color: var(--color-primary); }
.section-primary .btn.btn-accent:hover { background: var(--color-bg-alt); }

.btn.btn-whatsapp {
  background: var(--color-whatsapp);
  color: var(--color-white);
}
.btn.btn-whatsapp:hover { background: #1DA851; }

.btn-block { width: 100%; }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- Header / Navegación ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.nav-logo-mark { height: 52px; width: auto; flex-shrink: 0; transition: height 0.15s ease; }
@media (min-width: 640px) { .nav-logo-mark { height: 62px; } }
@media (min-width: 1024px) { .nav-logo-mark { height: 72px; } }

.nav-logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
  white-space: nowrap;
}
.nav-logo-text strong {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary);
  font-size: 0.92rem;
}
.nav-logo-text small {
  font-family: var(--font-body);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary-light);
  font-size: 0.58rem;
  margin-top: 3px;
}
@media (min-width: 640px) {
  .nav-logo-text strong { font-size: 1.05rem; }
  .nav-logo-text small { font-size: 0.64rem; margin-top: 4px; }
}
@media (min-width: 1024px) {
  .nav-logo-text strong { font-size: 1.05rem; }
  .nav-logo-text small { font-size: 0.64rem; margin-top: 4px; }
}
@media (min-width: 1280px) {
  .nav-logo-text strong { font-size: 1.15rem; }
  .nav-logo-text small { font-size: 0.68rem; }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
}
.nav-toggle:hover { background: var(--color-bg-alt); }
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); top: 0; }
.nav-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg); top: 0; }

.nav-list {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  height: calc(100vh - var(--header-height));
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.nav-list.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }

.nav-list a {
  display: block;
  padding: 14px 12px;
  font-weight: 600;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  white-space: nowrap;
}
.nav-list a:hover, .nav-list a[aria-current="page"] { background: var(--color-bg-alt); color: var(--color-primary); }

.nav-list .btn { margin-top: 12px; }
/* .nav-list a fija display:block/padding/font-size con más especificidad que .btn
   (0,1,1 vs 0,1,0) — sin este override el botón pierde el centrado flex y queda
   con el texto alineado a la izquierda. */
.nav-list a.btn { display: inline-flex; padding: 14px 26px; font-size: 0.98rem; white-space: nowrap; }
.nav-cta-inline { display: none; }

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .nav-list {
    position: static;
    flex-direction: row;
    align-items: center;
    padding: 0;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    background: transparent;
    top: auto; left: auto; right: auto; height: auto;
    gap: 6px;
  }
  .nav-list a { padding: 10px 14px; font-size: 0.98rem; }
  .nav-list a.btn { padding: 12px 24px; }
  .nav-list .btn { margin-top: 0; margin-left: 8px; }
  .nav-cta-inline { display: inline-flex; }
}

/* ---------- Hero: carrusel dividido (texto + foto), estilo editorial ---------- */
.hero-carousel {
  position: relative;
  width: 100%;
  min-height: clamp(560px, 58vw, 640px);
  overflow: hidden;
  background: var(--color-primary-dark);
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: row-reverse;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease;
  z-index: 0;
}
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }

.hero-slide-photo { flex: 1 1 54%; position: relative; overflow: hidden; }
.hero-slide-photo picture, .hero-slide-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--slide-focus, 60% top);
  display: block;
}
/* Difumina la unión con el panel de texto: el degradado nace DENTRO de la
   propia foto (color sólido igual al panel, en su borde izquierdo) y se
   disuelve gradualmente — así no depende de alinear un elemento aparte con
   el límite exacto del flex, que es fácil de desajustar. */
.hero-slide-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    var(--color-primary-dark) 0%,
    rgba(42, 29, 64, 0.75) 12%,
    rgba(42, 29, 64, 0.35) 26%,
    rgba(42, 29, 64, 0) 45%);
}

.hero-slide-text {
  flex: 1 1 46%;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
  background: var(--color-primary-dark);
  color: var(--color-white);
  padding: 40px clamp(28px, 5vw, 64px);
}
.hero-slide-text-inner { max-width: 480px; margin-left: auto; }
.hero-slide-text .hero-eyebrow { background: rgba(255,255,255,0.14); color: var(--color-white); }
.hero-slide-text h1, .hero-slide-heading {
  color: var(--color-white);
  margin-bottom: 16px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: 1.15;
}
.hero-slide-text .lead { color: rgba(255, 255, 255, 0.88); margin-bottom: 4px; }
.hero-slide-text .motto {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--color-white);
  border-left: 3px solid var(--color-accent);
  padding-left: 14px;
  margin: 18px 0 24px;
}

.hero-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: var(--color-primary-dark);
  font-size: 1.4rem;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.hero-carousel-arrow:hover { background: var(--color-white); }
.hero-carousel-arrow.prev { left: 18px; }
.hero-carousel-arrow.next { right: 18px; }

.hero-carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 8px;
}
.hero-carousel-dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
}
.hero-carousel-dots button.is-active { background: var(--color-white); }

@media (max-width: 900px) {
  .hero-carousel { min-height: clamp(620px, 150vw, 760px); }
  .hero-slide { flex-direction: column; }
  .hero-slide-photo { flex: 0 0 42%; }
  .hero-slide-photo::after {
    background: linear-gradient(0deg,
      var(--color-primary-dark) 0%,
      rgba(42, 29, 64, 0.7) 10%,
      rgba(42, 29, 64, 0.3) 22%,
      rgba(42, 29, 64, 0) 40%);
  }
  .hero-slide-text { flex: 1 1 auto; padding: 28px 20px 64px; }
  .hero-slide-text-inner { max-width: none; margin-left: 0; }
  .hero-carousel-arrow { top: 42%; }
  .hero-carousel-dots { bottom: 14px; }
}

/* ---------- Componentes compartidos del hero (usados también fuera del hero) ---------- */
.hero-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(230, 0, 126, 0.1);
  color: var(--color-accent-dark);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  margin-bottom: 18px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

/* Fotos "enmarcadas": mat blanco + borde fino + sombra, en vez de foto a
   sangre con degradado oscuro encima (se veía plano/apagado). */
.hero-media {
  position: relative;
  padding: 10px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--color-border);
  aspect-ratio: 4 / 5;
}
.hero-media::before {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1.5px solid var(--color-primary-light);
  border-radius: calc(var(--radius-lg) + 8px);
  opacity: 0.35;
  pointer-events: none;
}
.hero-media picture { display: block; width: 100%; height: 100%; border-radius: calc(var(--radius-lg) - 6px); overflow: hidden; }
.hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Tarjetas ---------- */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  height: 100%;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  box-shadow: 0 18px 40px rgba(63, 44, 93, 0.18);
  transform: translateY(-6px);
  border-color: var(--color-primary-light);
}

.card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: var(--color-bg-alt);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.card-icon svg { width: 26px; height: 26px; }
.card:hover .card-icon { background: var(--color-primary); color: var(--color-white); }

.card-thumb {
  display: block;
  width: calc(100% + 56px);
  margin: -28px -28px 18px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: var(--cover-focus, center);
  border-radius: calc(var(--radius-md) - 1px) calc(var(--radius-md) - 1px) 0 0;
}

/* ---------- Portada de artículo de blog ---------- */
.blog-cover {
  display: block;
  max-width: 560px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 8px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.blog-cover img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--cover-focus, center); }

.blog-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 560px;
  margin: 16px auto 0;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}
.blog-byline img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.blog-byline-text { line-height: 1.3; }
.blog-byline-text strong { display: block; font-size: 0.95rem; color: var(--color-text); }
.blog-byline-text span { font-size: 0.82rem; color: var(--color-text-muted); }

/* ---------- Tarjetas de "mito / verdad" y de pasos ilustrados (artículos de blog) ---------- */
.myth-card .card-icon, .step-card .card-icon { background: rgba(230, 0, 126, 0.08); color: var(--color-accent-dark); }
.myth-card .verdict { color: var(--color-accent-dark); font-weight: 700; }

.step-card { position: relative; }
.step-card .step-number {
  position: absolute;
  top: 20px; right: 20px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--color-border);
}

.card h3, .card h4 { margin-bottom: 10px; }
.card p { margin-bottom: 14px; }
.card p.credential-meta { margin-bottom: 0; }
.card-link {
  font-weight: 600;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease, color 0.2s ease;
}
.card-link:hover { color: var(--color-accent-dark); gap: 10px; }

/* Servicio destacado con imagen */
.service-photo-card {
  display: grid;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.service-photo-card:hover { box-shadow: 0 18px 40px rgba(63, 44, 93, 0.16); transform: translateY(-4px); }
@media (min-width: 720px) { .service-photo-card { grid-template-columns: 0.9fr 1.1fr; } }
.service-photo-card picture { display: block; width: 100%; height: 100%; min-height: 220px; }
.service-photo-card img { display: block; width: 100%; height: 100%; object-fit: cover; min-height: 220px; }
.service-photo-card .service-photo-content { padding: clamp(24px, 4vw, 40px); }

/* Credenciales / formación (timeline) */
.credential-list { display: flex; flex-direction: column; gap: 0; }
.credential-item {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 18px;
  padding-bottom: 28px;
  position: relative;
}
.credential-item::before {
  content: "";
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--color-accent);
  margin-top: 6px;
}
.credential-item::after {
  content: "";
  position: absolute;
  left: 5px; top: 20px; bottom: 0;
  width: 2px;
  background: var(--color-border);
}
.credential-item:last-child::after { display: none; }
.credential-item h4 { margin-bottom: 4px; }
.credential-item .credential-meta { font-size: 0.9rem; color: var(--color-text-muted); }

/* Testimonios (placeholder) */
.testimonial-placeholder {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: 40px 28px;
  text-align: center;
  color: var(--color-text-muted);
}

/* Bloque destacado (The Breast Boutique, alianzas) */
.highlight-block {
  display: grid;
  gap: 28px;
  align-items: center;
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
}
@media (min-width: 780px) { .highlight-block { grid-template-columns: 1fr 1fr; } }
.highlight-block > img {
  border-radius: calc(var(--radius-md) - 2px);
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 340px;
  display: block;
  box-shadow: var(--shadow-sm), 0 0 0 1px var(--color-border);
  padding: 8px;
  background: var(--color-white);
  box-sizing: border-box;
}

/* ---------- Formulario de contacto ---------- */
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-text);
  margin-bottom: 6px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  font-size: 1rem;
  min-height: 48px;
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(63, 44, 93, 0.15);
}
.form-note { font-size: 0.85rem; color: var(--color-text-muted); margin-top: 10px; }
.form-success {
  background: var(--color-success-bg);
  color: var(--color-success-text);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-weight: 600;
  display: none;
}
.form-success.is-visible { display: block; }
.honeypot-field { position: absolute; left: -9999px; }

.contact-info-list { display: flex; flex-direction: column; gap: 18px; }
.contact-info-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-item .card-icon { flex-shrink: 0; margin-bottom: 0; }
.contact-info-item a:hover { color: var(--color-accent); }

/* ---------- Franja de credenciales rápidas (home) ---------- */
.stat-strip {
  display: grid;
  gap: 24px;
  text-align: center;
}
@media (min-width: 640px) { .stat-strip { grid-template-columns: repeat(3, 1fr); } }
.stat-strip .stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: var(--color-accent);
  display: block;
}
.stat-strip .stat-label { color: rgba(255,255,255,0.85); font-size: 0.95rem; }
.stat-icon {
  width: 52px; height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-accent);
  display: flex; align-items: center; justify-content: center;
}
.stat-icon svg { width: 26px; height: 26px; }

/* ---------- Puente de tarjetas (une dos secciones, estilo editorial) ---------- */
/* Franja blanca que se monta sobre el borde inferior de la sección anterior
   (ej. el carrusel del hero), para que la transición entre ambas no se vea
   como un corte — inspirado en referencias del sector (drluispendola.com). */
.stat-bridge-wrap { position: relative; z-index: 6; margin-top: -56px; }
.stat-bridge {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  background: transparent;
}
.stat-bridge-item {
  padding: 28px 20px;
  text-align: center;
  background: linear-gradient(160deg, var(--color-white) 0%, var(--color-bg-alt) 130%);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 45px rgba(26, 18, 40, 0.16);
  border: 1.5px solid var(--color-primary-light);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-bridge-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 55px rgba(26, 18, 40, 0.22);
}
.stat-bridge .stat-icon { background: rgba(230, 0, 126, 0.1); color: var(--color-accent); }
.stat-bridge .stat-number {
  color: var(--color-primary);
  font-size: clamp(1.6rem, 3vw, 2rem);
  display: block;
  margin-bottom: 6px;
}
.stat-bridge .stat-label { color: var(--color-text-body); font-size: 1.02rem; font-weight: 500; }
@media (max-width: 720px) {
  .stat-bridge-wrap { margin-top: -28px; }
  .stat-bridge { grid-template-columns: 1fr; gap: 12px; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.82);
  padding-block: 56px 28px;
}
.footer-grid {
  display: grid;
  gap: 36px;
  margin-bottom: 36px;
}
@media (min-width: 780px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-logo img { height: 52px; width: auto; margin-bottom: 14px; }
@media (min-width: 640px) { .footer-logo img { height: 60px; } }
.footer-grid h4 { color: var(--color-white); margin-bottom: 14px; font-size: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a:hover { color: var(--color-white); }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--color-accent); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
.footer-bottom a:hover { color: var(--color-white); }

/* ---------- Botón flotante de WhatsApp (inyectado por main.js) ---------- */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 200;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  transition: transform 0.15s ease;
}
.whatsapp-float:hover { transform: scale(1.06); }
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Banner de página interior ---------- */
.page-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #F8F5FB 0%, #F1EAF8 100%);
  padding-block: clamp(36px, 6vw, 64px);
}
.page-banner::before {
  content: "";
  position: absolute;
  width: 340px; height: 340px;
  border-radius: 50%;
  filter: blur(70px);
  background: rgba(63, 44, 93, 0.09);
  top: -140px; right: -100px;
  pointer-events: none;
}
.page-banner .container { position: relative; z-index: 1; }
.breadcrumbs { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 10px; }
.breadcrumbs a:hover { color: var(--color-primary); }

/* ---------- Foto a pantalla completa (bloque editorial) ---------- */
.photo-break {
  position: relative;
  width: 100%;
  min-height: clamp(360px, 42vw, 620px);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: var(--color-primary-dark);
}
.photo-break picture, .photo-break img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--photo-focus, center 12%);
  display: block;
}
.photo-break::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(42, 29, 64, 0.82) 0%, rgba(42, 29, 64, 0.15) 55%, rgba(42, 29, 64, 0) 100%);
}
.photo-break-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding: 32px 20px 40px;
  color: var(--color-white);
}
.photo-break-content p {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  max-width: 60ch;
  color: rgba(255, 255, 255, 0.95);
}
.photo-break-content span {
  display: block;
  margin-top: 10px;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- Videos institucionales ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.video-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-primary-dark);
  box-shadow: var(--shadow-md, 0 10px 30px rgba(0,0,0,0.12));
}
.video-card-media { position: relative; }
.video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 520px;
  object-fit: cover;
  background: #000;
}
/* Los controles nativos del navegador se ven distinto según si el video ya
   cargó metadatos o no (inconsistente entre tarjetas). En vez de depender de
   eso, se ocultan los controles hasta que el usuario da play, con un botón
   propio — así las 4 tarjetas se ven idénticas antes de reproducir. */
.video-card-play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 18, 40, 0.15);
  border: none;
  cursor: pointer;
  padding: 0;
}
.video-card-play::after {
  content: "";
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%233F2C5D' d='M8 5v14l11-7z'/%3E%3C/svg%3E") no-repeat center / 22px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  transition: transform 0.15s ease;
}
.video-card-play:hover::after { transform: scale(1.08); }
.video-card-play.is-hidden { display: none; }
.video-card-caption {
  padding: 16px 18px;
  background: var(--color-white);
}
.video-card-caption span {
  display: block;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}
.video-card-caption p { margin: 0; font-weight: 600; }

/* ---------- Utilidades ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--color-primary); color: #fff;
  padding: 12px 18px; border-radius: var(--radius-sm);
  z-index: 300; transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Interactividad / animaciones ---------- */
.site-header { transition: box-shadow 0.2s ease; }
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(63, 44, 93, 0.12); }

/* Entrada del hero al cargar la página */
.hero-slide-text-inner > *, .hero-eyebrow, .hero-actions, .hero-media {
  animation: fade-up 0.7s ease both;
}
.hero-slide-text-inner .hero-eyebrow { animation-delay: 0.05s; }
.hero-slide-text-inner h1, .hero-slide-text-inner .hero-slide-heading { animation-delay: 0.12s; }
.hero-slide-text-inner .lead { animation-delay: 0.2s; }
.hero-slide-text-inner .motto { animation-delay: 0.28s; }
.hero-slide-text-inner .hero-actions { animation-delay: 0.36s; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Revelado al hacer scroll (activado por main.js vía IntersectionObserver) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: calc(var(--reveal-index, 0) * 0.07s);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Zoom suave de imágenes al pasar el mouse sobre la tarjeta */
.hero-media, .service-photo-card picture {
  overflow: hidden;
}
.hero-media img, .service-photo-card img {
  transition: transform 0.5s ease;
}
.hero-media:hover img,
.service-photo-card:hover img { transform: scale(1.04); }
.highlight-block > img { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.highlight-block > img:hover { transform: scale(1.015); box-shadow: var(--shadow-md), 0 0 0 1px var(--color-border); }

/* Contador animado en la franja de credenciales */
.stat-number { display: inline-block; }

@media (prefers-reduced-motion: reduce) {
  .hero-slide-text-inner > *, .hero-eyebrow, .hero-actions, .hero-media {
    animation: none;
  }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media img, .service-photo-card img, .highlight-block > img { transition: none; }
  .hero-media:hover img, .service-photo-card:hover img, .highlight-block > img:hover { transform: none; }
}
