/* ── HERO BASE (Para páginas internas) ────────────────────── */
.hero {
  background-color: var(--color-light);
  min-height: 75vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  padding: calc(var(--header-h) + 4rem) 0 4rem;
}

.hero-inner {
  display: block;
  position: relative;
  z-index: 20 !important;
}

.hero-content {
  max-width: 600px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-light);
  background: var(--color-white);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  box-shadow: var(--shadow-xs);
  margin-bottom: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.hero-title {
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 0.95;
  color: var(--color-dark);
  margin-bottom: 2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--color-text-light);
  max-width: 520px;
  margin-bottom: 3.5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.hero-actions--mobile,
.hero-subtitle--mobile {
  display: none;
}

/* ── HERO FULL (Layout Home/Integral) ────────────────────────── */
.hero-full {
  position: relative;
  height: 90vh;
  min-height: 700px;
  width: 100%;
  display: flex;
  align-items: center;
  background-color: var(--color-dark);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg img,
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  /* Un poco menos de opacidad para el video para mejor contraste */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 50%, rgb(28 28 28 / 40%), rgba(0, 0, 0, 0.8));
  z-index: 2;
}

.hero-container {
  position: relative;
  z-index: 10;
}

.hero-content-full {
  max-width: 800px;
}

.hero-eyebrow-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  padding: 0.6rem 1.25rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 2.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-title-light {
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 1;
  color: #ffffff;
  margin-bottom: 2rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.hero-title-light span {
  color: #ffffff !important;
}

.hero-subtitle-light {
  font-size: 1.35rem;
  line-height: 1.6;
  color: #ffffff;
  /* Blanco puro para máxima legibilidad */
  max-width: 650px;
  margin-bottom: 4rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  /* Sombra sutil para despegar del fondo */
}

/* BOTÓN OUTLINE PARA HERO OSCURO */
.btn--outline-white {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 1.25rem 2.5rem;
  border-radius: 100px;
  font-weight: 600;
  transition: all 0.3s ease;
}

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

/* ── HERO VISUAL (Para páginas internas) ──────────────────── */
.hero-visual {
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.hero-visual * {
  pointer-events: auto;
}

.hero-doctor-wrapper {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-doctor-img {
  height: 95%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 50px rgba(10, 54, 102, 0.15));
}

.hero-message-bubble {
  position: absolute;
  bottom: 25%;
  left: -15%;
  background: var(--color-white);
  padding: 1.5rem 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  z-index: 10;
}

/* Button variants for Hero */
.btn--primary-dark {
  background: var(--color-dark);
  color: var(--color-white);
}

.btn--primary-dark:hover {
  background: #000;
  transform: translateY(-2px);
}

.btn--secondary-light {
  background: var(--color-white);
  color: var(--color-dark);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.btn--secondary-light:hover {
  background: var(--color-light);
  transform: translateY(-2px);
}

/* Hero Stats Row */
.hero-stats {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
}

.stat-item p {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  line-height: 1.4;
  max-width: 150px;
}

.stat-divider {
  width: 1px;
  background: #E0DCD5;
}

/* Hero Visual Section */
.hero-visual {
  position: absolute;
  top: 0;
  right: 5%;
  /* Empuja todo el bloque hacia la izquierda */
  width: 65%;
  /* Más ancho para que el doctor "entre" más */
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  z-index: 1;
  pointer-events: none;
}

.hero-doctor-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.hero-doctor-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 15% top;
  /* Forzamos la posición más a la izquierda */
  z-index: 5;
}

/* Floating Message Bubble */
.hero-message-bubble {
  position: absolute;
  bottom: 27%;
  /* Mantenemos la altura corregida */
  left: 39%;
  /* Restauramos la posición horizontal */
  background: white;
  padding: 12px 18px;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 30;
  max-width: 320px;
  animation: float 6s ease-in-out infinite;
}

.bubble-icon {
  width: 45px;
  height: 45px;
  background: var(--color-accent);
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.bubble-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bubble-user {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-dark);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.bubble-user svg {
  color: var(--color-text-light);
}

.bubble-text {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  line-height: 1.3;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

/* Wave Animation Styles */
.hero-waves {
  position: absolute;
  bottom: -1px;
  /* Solapamiento para evitar la línea de corte */
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 15;
}

.waves {
  position: relative;
  width: 100%;
  height: 12vh;
  min-height: 80px;
  max-height: 120px;
}

.parallax>use {
  animation: move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite;
}

.parallax>use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
}

.parallax>use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
}

.parallax>use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
}

.parallax>use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
}

@keyframes move-forever {
  0% {
    transform: translate3d(-90px, 0, 0);
  }

  100% {
    transform: translate3d(85px, 0, 0);
  }
}

.hero-stats {
  display: none;
  /* Removed for cleaner editorial look per reference */
}

@media (max-width: 992px) {
  /* Estilos para Hero de Páginas Internas (dr-cesar-mena.php) */
  /* ===== REWRITTEN MOBILE HERO (BULLETPROOF) ===== */
  .hero {
    display: flex;
    flex-direction: column;
    padding-top: calc(var(--header-h) + 2rem);
    padding-bottom: 0;
    height: 700px !important; /* Altura estricta solicitada */
    min-height: 700px;
    box-sizing: border-box; /* Asegura que el padding no sume a los 700px */
    text-align: center;
    overflow: hidden !important; 
    background-color: var(--color-light);
  }

  .hero-inner {
    order: 1;
    padding-bottom: 0;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
  }

  .hero-visual {
    position: relative;
    width: 100%;
    flex: 1; /* Toma el espacio exacto que sobra de los 700px */
    min-height: 0; 
    margin: 0 auto;
    margin-top: -5rem; /* "Roba" espacio del área de texto para crecer más sin alterar los 700px totales */
    order: 2;
    display: flex;
    justify-content: center;
    align-items: flex-end;
  }

  .hero-doctor-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
  }

  .hero-doctor-img {
    height: auto; /* Desvincular de la altura estricta del contenedor */
    width: 160%; /* Forzar un tamaño colosal basado en el ancho de la pantalla */
    max-width: 600px; /* Límite de seguridad para que no se descontrole en tablets */
    max-height: none; /* Eliminar cualquier restricción de altura */
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.1));
  }

  .hero-message-bubble {
    bottom: 12%;
    left: 50%;
    transform: translateX(-50%) !important;
    width: 260px;
    padding: 8px 12px;
    gap: 10px;
  }

  /* Estilos para Hero de Home (hero-full) y comunes */
  .hero-content-full {
    max-width: 100%;
  }

  .hero-title {
    margin-bottom: 0.5rem; /* Reduce drásticamente el espacio entre título y subtítulo */
  }

  .hero-subtitle, 
  .hero-subtitle-light {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    max-width: 100%;
    margin-top: 0;
  }

  .hero-title-light {
    font-size: clamp(2.25rem, 8vw, 3.5rem);
    text-align: center;
  }

  .hero-subtitle-light {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
  }

  .hero-actions--desktop,
  .hero-subtitle--desktop {
    display: none !important;
  }

  .hero-subtitle--mobile {
    display: block !important;
  }

  .hero-actions--mobile {
    display: flex !important;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem auto 2rem;
    position: relative;
    z-index: 25 !important;
  }

  .hero-stats {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-visual {
    position: relative;
    width: 100%;
    height: 380px;
    right: 0;
    order: 2;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: visible;
    margin: 0 auto;
  }

  .hero-badge {
    left: 0;
  }
}

/* ── WELCOME ─────────────────────────────────────────────── */
.welcome {
  background: var(--color-white);
  padding: 10rem 0;
  position: relative;
  z-index: 10;
}

.welcome-grid {
  display: grid;
  grid-template-columns: 0.8fr auto 1.2fr;
  gap: 4rem;
  align-items: center;
}

.welcome-divider {
  width: 1px;
  height: 180px;
  background: #E0DCD5;
  opacity: 0.6;
}

.welcome-tagline {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.welcome-left {
  max-width: 400px;
}

/* Columna Derecha */
.quote-icon {
  color: #e2dfd9;
  /* Tono más marcado y cálido */
  margin-bottom: 2rem;
  margin-left: -0.5rem;
}

.welcome-main-text {
  font-size: 2.25rem;
  /* Equivalente a 36px */
  line-height: 1.25;
  color: var(--color-dark);
  font-weight: 500;
  margin-bottom: 4rem;
  letter-spacing: -0.01em;
}

.welcome-signature {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.sig-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-warm);
}

.sig-info {
  display: flex;
  flex-direction: column;
}

.sig-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-dark);
}

.sig-role {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

@media (max-width: 992px) {
  .welcome {
    padding: 6rem 0;
  }

  .welcome-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .welcome-divider {
    display: none;
  }

  .welcome-main-text {
    font-size: 1.75rem;
    margin-bottom: 2.5rem;
  }
}

@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;700&display=swap');

/* ── ABOUT NEW LAYOUT ────────────────────────────────────── */
.about {
  padding: 10rem 0;
  background: #f6f4f0;
  /* Fondo sutil solicitado */
  overflow: hidden;
}

.about-new-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  /* Damos más peso al texto */
  gap: 6rem;
  align-items: center;
}

/* Columna Izquierda: Contenido Original */
.about-tagline {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

.about-name {
  font-size: 2.75rem;
  line-height: 1.1;
  color: var(--color-primary);
  margin-bottom: 2.5rem;
  font-weight: 500;
}

.about-bio {
  font-size: 1.125rem;
  /* Equivalente a 18px */
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 3rem;
  max-width: 560px;
}

/* Info Grid Original */
.about-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #E0DCD5;
  border-bottom: 1px solid #E0DCD5;
  margin-bottom: 3rem;
}

.info-item {
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.info-item:nth-child(odd) {
  padding-right: 2rem;
  border-right: 1px solid #E0DCD5;
}

.info-item:nth-child(even) {
  padding-left: 2rem;
}

.info-item:nth-child(1),
.info-item:nth-child(2) {
  border-bottom: 1px solid #E0DCD5;
}

.info-label {
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--color-text-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.info-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
}

/* Visuals: Arch Shapes */
.about-visual-new {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 380px;
  /* Reducción de tamaño solicitada */
  margin-left: auto;
  /* La pegamos a la derecha */
}

.arch-image-wrap {
  width: 100%;
  overflow: hidden;
  background: var(--color-warm);
}

.top-arch {
  aspect-ratio: 4/5;
  border-radius: 0 300px 0 0;
  /* Forma de arco superior derecho */
}

.bottom-arch {
  aspect-ratio: 4/3;
  border-radius: 0 0 300px 0;
  /* Forma de arco inferior derecho */
}

.top-arch .arch-img {
  object-position: 75% top;
  /* Centra mejor al doctor en el arco */
}

.arch-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.arch-image-wrap:hover .arch-img {
  transform: scale(1.05);
}

@media (max-width: 992px) {
  .about-new-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .about-visual-new {
    order: -1;
  }

  .top-arch,
  .bottom-arch {
    border-radius: 0 150px 0 0;
  }

  .bottom-arch {
    border-radius: 0 0 150px 0;
  }
}

/* ── SPECIALTIES NEW LAYOUT ──────────────────────────────── */
.specs {
  padding: 10rem 0;
  background: var(--color-white);
  overflow: hidden;
}

.specs-grid-new {
  display: none;
  /* Ocultamos el grid estático */
}

.specs-carousel-clipper {
  overflow: hidden;
  /* Recorta los laterales (efecto boxed) */
  padding-top: 50px;
  /* Espacio para que la tarjeta suba */
  margin-top: -50px;
  /* Compensa el espacio extra */
}

.specs-swiper {
  padding: 2rem 1rem 4rem;
  /* Padding normal */
  overflow: visible !important;
  /* Permite que el contenido se vea fuera del swiper pero dentro del clipper */
}

.spec-card-new {
  background: #e1e8e1;
  padding: 3rem 2rem;
  border-radius: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  /* Transición más suave */
  min-height: 340px;
  /* Reducción de altura solicitada */
  height: 100%;
  text-decoration: none;
  color: var(--color-primary);
}

.spec-card-new:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

/* Tarjeta que está en la posición activa (Spotlight) */
.swiper-slide-active .spec-card-new,
.swiper-slide-active .spec-title-new,
.swiper-slide-active .spec-desc-new {
  color: var(--color-white) !important;
}

.swiper-slide-active .spec-card-new {
  background: var(--color-primary);
}

.spec-title-new {
  font-size: 1.25rem;
  line-height: 1.2;
  font-weight: 600;
  margin-top: 1rem;
  transition: color 0.5s ease;
}

.spec-desc-new {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.8;
  margin-bottom: auto;
  transition: color 0.5s ease;

  /* Forzamos misma longitud (3 líneas) */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 4.8em;
  /* 1.6 line-height * 3 */
}

/* Botón de la tarjeta dinámico */
.btn-spec-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--color-primary);
  color: var(--color-white);
  transition: all 0.5s ease;
  width: fit-content;
}

.swiper-slide-active .btn-spec-more {
  background: var(--color-white);
  color: var(--color-primary);
}

.btn-spec-more:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

@media (max-width: 1200px) {
  .specs-grid-new {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .specs-header-new {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .specs-grid-new {
    grid-template-columns: 1fr;
  }
}

/* Navegación del Carrusel */
.swiper-nav-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  /* Más espacio para separar de las tarjetas */
}

.swiper-button-prev-custom,
.swiper-button-next-custom {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.swiper-button-prev-custom:hover,
.swiper-button-next-custom:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: scale(1.1);
}

@media (max-width: 1200px) {
  .specs-carousel-wrapper {
    padding: 0;
  }
}

/* ── INTEGRAL CARE (STICKY SCROLL) ──────────────────────── */
.integral {
  background: #515151;
  /* Fondo gris oscuro solicitado */
  color: var(--color-white);
}

/* El "ghost" mantiene su altura para el scroll */
.integral-scroll-ghost {
  position: relative;
  height: 400vh;
}

/* El panel sticky ahora se centra compensando el header (110px) */
.integral-sticky-panel {
  position: sticky;
  top: calc(50vh - 350px + 55px);
  /* Centrado perfecto considerando el header fijo */
  height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin: 0;
  /* Evitar cualquier desplazamiento */
}

.integral-sticky-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  /* 40% izquierda, 60% derecha */
  gap: 4rem;
  /* Reducimos el gap para ganar espacio interno */
  align-items: center;
  width: 100%;
  height: 100%;
  margin: 0 auto;
}

.integral-content {
  max-width: 480px;
}

.integral-content .about-tagline {
  color: rgba(255, 255, 255, 0.7);
}

.integral-content .section-title .title-sans,
.integral-content .section-title .title-serif {
  color: var(--color-white);
}

.integral-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 2rem;
}

/* Columna derecha: contiene el SVG del arco + los ítems */
.integral-curve-col {
  position: relative;
  height: 500px;
}

/* Columna derecha: arco contenido + track centrado */
.integral-curve-col {
  position: relative;
  height: 500px;
  overflow: hidden;
  /* Recorta ítems que se van fuera del área */
}

/* Arco SVG — ancho para el semicirculo completo */
.integral-arc-svg {
  position: absolute;
  left: 0;
  top: 0;
  width: 175px;
  height: 100%;
}

/* Transición de puntos en el arco */
.arc-dot {
  transition: fill 0.4s ease;
}

/* El track: a la derecha del arco */
.curve-items-track {
  position: absolute;
  left: 190px;
  right: 0;
  top: 0;
  bottom: 0;
}

/* Todos los ítems parten del centro via JS */
.curve-item {
  position: absolute;
  top: 50%;
  /* JS combina -50% + offset para centrar */
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  will-change: transform, opacity;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.65s ease;
}

/* Número grande: inactivo transparente, activo blanco */
.curve-number {
  font-family: var(--font-sans);
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
  min-width: 100px;
  transition: color 0.5s ease;
  color: rgba(255, 255, 255, 0.15);
  /* Muy tenue cuando está inactivo */
}

.curve-item.active .curve-number {
  color: var(--color-white);
}

/* Texto: oculto en ítems inactivos, visible en el activo */
.curve-info {
  max-width: 420px;
  /* Ampliado para texto más grande */
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.4s ease;
}

.curve-item.active .curve-info {
  max-height: 200px;
  /* Suficiente espacio para el nuevo tamaño */
  opacity: 1;
}

.curve-title {
  font-size: 1.5rem;
  /* Título aumentado */
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.curve-desc {
  font-size: 1.1rem;
  /* Descripción aumentada */
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
  .integral-scroll-ghost {
    height: auto;
  }

  .integral-sticky-panel {
    position: relative;
    height: auto;
    padding: 6rem 0;
  }

  .integral-sticky-inner {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .integral-curve-col {
    height: auto;
    min-height: 400px;
  }
}


.item-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: #bdb6ae;
}

.item-text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text-light);
  max-width: 440px;
}

@media (max-width: 992px) {
  .integral-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .integral-content {
    position: static;
  }
}

/* ── LAPAROSCOPY ─────────────────────────────────────────── */
.laparoscopy {
  padding: 8rem 0;
  background: var(--color-white);
}

.laparoscopy-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 6rem;
}

.laparoscopy-visual {
  display: flex;
  justify-content: flex-start;
}

.laparoscopy-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-top: 2rem;
  margin-bottom: 3rem;
  max-width: 520px;
}

.laparoscopy-benefits {
  display: flex;
  flex-direction: column;
}

.benefit-item {
  display: grid;
  grid-template-columns: 40px 1fr 1.5fr;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid #F0EFEA;
}

.benefit-item:first-child {
  border-top: 1px solid #F0EFEA;
}

.benefit-number {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-light);
}

.benefit-label {
  font-size: 1rem;
  font-weight: 600;
  color: #bdb6ae;
}

.benefit-detail {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  text-align: right;
}

@media (max-width: 992px) {
  .laparoscopy-inner {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .laparoscopy-visual {
    order: -1;
  }

  .benefit-item {
    grid-template-columns: 40px 1fr;
  }

  .benefit-detail {
    grid-column: 2;
    text-align: left;
    margin-top: -0.5rem;
  }
}

/* ── CONDITIONS ──────────────────────────────────────────── */
/* ── CONDITIONS (MODERN LAYOUT) ────────────────────────── */
.conditions {
  padding: 8rem 0;
  background: var(--color-white);
}

.conditions .container {
  max-width: 1400px;
  margin: 0 auto;
}

.conditions-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 4rem;
  align-items: start;
  width: 100%;
}

/* Sidebar Nav (Pill Style) */
.conditions-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.5rem;
}

.cond-tab-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-text-light);
  background: #F8F9FA;
  border: none;
  border-radius: 1.25rem;
  text-align: left;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.cond-tab-btn svg {
  color: #ADB5BD;
  transition: color 0.4s ease;
}

.cond-tab-btn:hover {
  background: #EEF2F6;
  color: var(--color-primary);
}

.cond-tab-btn.active {
  background: var(--color-warm);
  /* Beige suave oficial */
  color: var(--color-primary);
  /* El café-gris primario */
  font-weight: 700;
}

.cond-tab-btn.active svg {
  color: var(--color-primary);
}

/* Main Content Card */
.conditions-content {
  background: #f3f3f3;
  /* Gris suave neutro */
  border-radius: 2.5rem;
  padding: 3.5rem;
  min-height: 600px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
}

.cond-panel {
  display: none;
  animation: fadeInPanel 0.6s ease forwards;
  height: 100%;
}

.cond-panel.active {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Full Width Grid (2 Columns for Items) */
.cond-panel-grid {
  display: flex;
  flex-direction: column;
  flex: 1;
  max-width: 100%;
  margin: 0;
}

.cond-panel-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* List Items with Icons */
.cond-items-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
}

.cond-list-item-modern {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.item-icon-circle {
  width: 35px;
  height: 35px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  color: var(--color-primary);
}

.item-icon-circle svg {
  width: 16px;
  height: 16px;
}

.item-text-content {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.item-title-modern {
  font-size: 1.1rem;
  font-weight: 700;
  color: #636363;
  margin: 0;
}

.item-desc-modern {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  line-height: 1.5;
  margin: 0;
}

/* Panel Visual */
.cond-panel-visual {
  position: relative;
  height: 100%;
}

.cond-img-wrapper {
  width: 100%;
  height: 450px;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cond-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Button inside panel */
.cond-panel-action {
  margin-top: auto;
  /* Empuja el botón al fondo */
  padding-top: 4rem;
  /* Espacio mínimo garantizado */
  display: flex;
  justify-content: flex-end;
}

@keyframes fadeInPanel {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

  .conditions-nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 1rem;
  }

  .cond-tab-btn {
    white-space: nowrap;
  }

  .cond-panel-grid {
    grid-template-columns: 1fr;
  }

  .cond-items-list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cond-img-wrapper {
    display: none;
  }
}

.cond-items-grid {
  grid-template-columns: 1fr;
}

/* ── CINEMATIC PHILOSOPHY (Nueva Estructura Blindada) ────────── */
.cinematic-philosophy {
  position: relative;
  width: 100%;
  height: 40vh;
  /* Aún más compacta */
  min-height: 350px;
  padding: 4rem 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  margin: 2rem 0;
  /* Menos margen exterior */
}

.philosophy-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  /* Al frente de la sección */
  pointer-events: none;
}

.philosophy-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
  /* Sobre el video */
}

.cinematic-philosophy .container {
  position: relative;
  z-index: 10;
  /* Sobre todo */
  text-align: center;
  color: #fff;
}

.philosophy-content blockquote {
  border: none;
  padding: 0;
  margin: 0 auto;
}

.philosophy-content blockquote p {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.3;
  color: #fff;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.philosophy-content blockquote footer {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.85;
}

.philosophy-sub {
  margin-top: 4rem;
  font-family: var(--font-sans);
  font-size: 1.25rem;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.8;
  color: #fff;
  line-height: 1.6;
}

.quote-sub {
  max-width: 540px;
  margin: 1.5rem auto 0;
  font-size: .9375rem;
  color: var(--color-text);
  line-height: 1.7;
}

/* ── LOCATIONS (Editorial Vertical Panels) ─────────────────── */
.locations {
  padding: 10rem 0;
  background: #fdfdfd;
}

.locations-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 4rem;
  margin-bottom: 5rem;
}

.locations-intro {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-text-light);
  max-width: 440px;
}

.locations-container {
  margin-top: 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* Dos columnas en desktop */
  gap: 2.5rem;
}

.location-panel {
  display: flex;
  flex-direction: column;
  /* Orientación vertical */
  background: #fff;
  border: 1px solid #eee;
  border-radius: 1.5rem;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.location-panel:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
  border-color: #ddd;
}

.loc-visual {
  position: relative;
  background: #f8f9fa;
  height: 280px;
  /* Altura controlada para el visual */
  width: 100%;
  overflow: hidden;
}

.map-placeholder-editorial {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loc-badge {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  padding: 0.6rem 1.2rem;
  border-radius: 3rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #333;
  z-index: 2;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.loc-details {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.loc-hospital-name {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  color: #333;
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

.loc-address-text {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 2.5rem;
}

.loc-meta {
  display: grid;
  grid-template-columns: 1fr;
  /* Meta apilado para paneles más estrechos */
  gap: 1.5rem;
  border-top: 1px solid #eee;
  padding-top: 2rem;
  margin-top: auto;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.meta-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #aaa;
}

.meta-value {
  font-size: 0.9rem;
  color: #333;
  line-height: 1.4;
}

.btn-loc-map {
  margin-top: 2.5rem;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
  transition: all 0.3s ease;
}

.btn-loc-map::after {
  content: '';
  width: 30px;
  height: 1px;
  background: #333;
  transition: width 0.3s ease;
}

.btn-loc-map:hover {
  gap: 1.25rem;
}

.btn-loc-map:hover::after {
  width: 50px;
}

@media (max-width: 1024px) {
  .locations-header {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .locations-container {
    grid-template-columns: 1fr;
    /* Una columna en tablets/móvil */
    gap: 3rem;
  }

  .loc-details {
    padding: 2.5rem;
  }
}

/* ── CTA FINAL ───────────────────────────────────────────── */
.cta-final {
  padding: 8rem 0;
  background: var(--color-white);
}

.cta-card {
  background: #515151;
  /* Gris oscuro profundo */
  border-radius: 2rem;
  padding: 6rem;
  position: relative;
  overflow: hidden;
  color: var(--color-white);
}

.cta-monogram {
  position: absolute;
  right: -5rem;
  bottom: -10rem;
  font-family: var(--font-serif);
  font-size: 35rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.03);
  pointer-events: none;
  line-height: 1;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

.cta-tagline {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2rem;
}

.cta-desc {
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 1.5rem;
  max-width: 480px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}

.cta-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  border-radius: 4rem;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-btn--white {
  background: var(--color-white);
  color: #333;
}

.cta-btn--white:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

.cta-btn--outline {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--color-white);
}

.cta-btn--outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--color-white);
  transform: translateY(-2px);
}

@media (max-width: 992px) {
  .cta-card {
    padding: 4rem 2.5rem;
  }

  .cta-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .cta-monogram {
    font-size: 20rem;
    right: -2rem;
    bottom: -5rem;
  }
}

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  background: var(--color-dark);
  color: var(--color-accent);
}

.footer-top {
  padding: var(--space-xl) 0;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }
}

.footer-logo-img {
  max-height: 80px;
  width: auto;
  max-width: 70%;
  filter: brightness(0) invert(1);
  transition: opacity var(--transition);
}

.footer-logo-img:hover {
  opacity: 0.8;
}

.footer-tagline {
  font-size: .875rem;
  color: var(--color-accent);
  margin: 1rem 0 .5rem;
  line-height: 1.6;
}

.footer-cedulas {
  font-size: .75rem;
  color: var(--color-primary);
}

.footer-heading {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-light);
  margin-bottom: 1rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.footer-nav a,
.footer-nav span {
  font-size: .875rem;
  color: var(--color-accent);
}

.footer-nav a {
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--color-light);
}

.footer-contact {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.footer-contact p {
  font-size: .875rem;
  color: var(--color-accent);
  margin: 0;
}

.footer-contact a {
  color: var(--color-accent);
}

.footer-contact a:hover {
  color: var(--color-light);
}

.footer-label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.footer-cta {
  margin-top: 1.25rem;
}

.footer-bottom {
  border-top: 1px solid rgba(189, 182, 174, .15);
  padding: 1.25rem 0;
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-legal,
.footer-copy {
  font-size: .75rem;
  color: rgba(189, 182, 174, .7);
  margin: 0;
}

.footer-copy a {
  color: var(--color-accent);
}

.footer-copy a:hover {
  color: var(--color-light);
}

/* ── Animations / reveal ─────────────────────────────────── */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 {
  transition-delay: .1s;
}

.reveal-delay-2 {
  transition-delay: .2s;
}

.reveal-delay-3 {
  transition-delay: .3s;
}

.reveal-delay-4 {
  transition-delay: .4s;
}

/* ── LAPAROSCOPY INTEGRATED ────────────────────────────── */
.laparoscopy-integrated {
  padding: 10rem 0;
  background: var(--color-white);
}

.integrated-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8rem;
  align-items: center;
}

.integrated-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-text-light);
  margin: 2.5rem 0;
  max-width: 520px;
}

.integrated-action .btn-text {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 0.9rem;
  color: var(--color-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.integrated-action .btn-text:hover {
  color: #d19a66;
}

.organic-shape-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.organic-shape-bg {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fdf2e9;
  /* Aplicamos la forma orgánica como máscara de recorte */
  border-radius: 12% 88% 15% 85% / 82% 15% 85% 18%;
  overflow: hidden;
  /* Crucial para recortar la imagen */
  display: flex;
  align-items: center;
  justify-content: center;
}

.organic-image-wrapper {
  width: 100%;
  height: 100%;
}

.organic-image-wrapper img,
.organic-image-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Ambos llenarán la forma orgánica */
  object-position: center;
  transition: transform 0.6s ease;
}

.organic-shape-bg:hover img,
.organic-shape-bg:hover video {
  transform: scale(1.05);
  /* Zoom suave al interactuar */
}


@media (max-width: 992px) {
  .laparoscopy-integrated {
    padding: 6rem 0;
  }

  .integrated-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
    text-align: center;
  }

  .integrated-text {
    margin-left: auto;
    margin-right: auto;
  }

  .integrated-action {
    justify-content: center;
  }
}

/* ── HERO INSURANCE INTEGRATION ────────────────────────── */
.hero-inner {
  position: relative;
  transform: translateY(-40px);
  /* Sube todo el contenido del hero (texto y doctor) */
}

/* ── CINEMATIC PHILOSOPHY SECTION ────────────────────────── */
.cinematic-philosophy {
  position: relative;
  padding: 10rem 0;
  background: var(--color-dark);
  color: var(--color-white);
  overflow: hidden;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.philosophy-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.4;
}

.philosophy-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.8));
  z-index: 2;
}

.philosophy-header {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.philosophy-header h2.section-title span {
  color: #ffffff !important;
}

.philosophy-header .about-tagline {
  color: #ffffff !important;
  opacity: 1 !important;
  letter-spacing: 0.25em;
}

.insurance-logo-white {
  filter: brightness(0) invert(1);
  opacity: 1;
  /* Blanco total desde el inicio */
  transition: all 0.4s ease;
}

.insurance-logo-item:hover .insurance-logo-white {
  transform: scale(1.1);
  filter: brightness(0) invert(1) drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
}

/* Ajuste del carrusel para esta sección */
.cinematic-philosophy .insurance-slider {
  position: relative;
  z-index: 5;
  margin-top: 3rem;
}

.insurance-logo-item {
  flex: 0 0 310px;
  /* Más espacio para logos más grandes */
  display: flex;
  justify-content: center;
  align-items: center;
  padding-right: 2.5rem;
}

.insurance-logo-item img {
  max-width: 260px;
  /* Aumentado de 220px */
  max-height: 100px;
  /* Aumentado de 85px */
  transition: all 0.4s ease;
}

.hero-visual {
  z-index: 10 !important;
}

/* Slider de logos con Scroll Infinito */
.insurance-slider {
  overflow: hidden;
  padding: 0;
  position: relative;
}

.insurance-track {
  display: flex;
  width: max-content;
  animation: scrollInfinite 20s linear infinite; /* Aumentado velocidad a 20s */
  align-items: center;
}

@keyframes scrollInfinite {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }

  /* Funciona con los logos duplicados */
}

@media (max-width: 768px) {
  .insurance-title {
    font-size: 1.5rem;
  }

  .insurance-logo-item {
    flex: 0 0 240px; /* Aumentado en móvil para logos más grandes */
    padding-right: 1.5rem;
  }
  
  .insurance-logo-item img {
    max-width: 200px;
    max-height: 75px;
  }
}