/* ==========================================================================
   QUISILEMA MEDICAL GROUP · Modelo 3: Video y Scroll («Cuidado y Confianza»)
   SimCodec · Propuesta de Rediseño Web
   Paleta: Papel cálido #F5F4F0, Marfil #FFFFFF, Negro #141414, Oro #E3BD74 / #7A5A1C
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. FUENTES LOCALES WOFF2
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/instrument-serif-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/instrument-serif-400-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/inter-tight-700-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/inter-tight-800-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-500-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-600-normal.woff2') format('woff2');
}

/* --------------------------------------------------------------------------
   1. VARIABLES Y RESET
   -------------------------------------------------------------------------- */
:root {
  --bg-paper: #F5F4F0;
  --bg-ivory: #FAFAF7;
  --bg-card: #FFFFFF;
  --bg-dark: #141414;
  --bg-dark-soft: #1E1D1B;
  
  --text-primary: #141414;
  --text-muted: #4A453E;
  --text-light: #736C62;
  --text-on-dark: #F5F4F0;
  --text-on-dark-muted: #B8B3AA;

  --gold-brand: #E3BD74;
  --gold-light: #F4E4C1;
  --gold-dark: #7A5A1C; /* Cumple WCAG AA 4.5:1 para texto */
  --gold-border: rgba(227, 189, 116, 0.45);
  --gold-glow: rgba(227, 189, 116, 0.25);

  --border-subtle: #E5E1D8;
  --border-dark: rgba(255, 255, 255, 0.12);

  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-heading: 'Inter Tight', -apple-system, sans-serif;
  --font-sans: 'Inter', -apple-system, sans-serif;

  --header-h: 110px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  line-height: 1.6;
  background-color: var(--bg-paper);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-paper);
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* Iconos SVG */
.ico {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 1.75;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
  flex-shrink: 0;
}

.ico--sm { width: 1rem; height: 1rem; }
.ico--lg { width: 1.75rem; height: 1.75rem; }
.ico--xl { width: 2.25rem; height: 2.25rem; }

/* Skip Link para accesibilidad */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--bg-dark);
  color: var(--gold-light);
  padding: 0.75rem 1.25rem;
  z-index: 10000;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
  font-weight: 500;
}
.skip-link:focus {
  top: 1rem;
}

/* --------------------------------------------------------------------------
   2. VIEW TRANSITIONS NATIVAS
   -------------------------------------------------------------------------- */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: vt-fade-out 0.3s ease both;
}

::view-transition-new(root) {
  animation: vt-fade-in 0.35s ease both;
}

@keyframes vt-fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes vt-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --------------------------------------------------------------------------
   3. CORTINA DE TRANSICIÓN DORADA (RESPALDO Y MEJORA GSAP)
   -------------------------------------------------------------------------- */
.golden-curtain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  visibility: hidden;
  display: flex;
  flex-direction: column;
}

.golden-curtain__panel {
  flex: 1;
  background: linear-gradient(135deg, #141414 0%, #1c1b18 50%, #141414 100%);
  position: relative;
  overflow: hidden;
}

.golden-curtain__panel::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-brand), transparent);
  box-shadow: 0 0 15px var(--gold-brand);
}

.golden-curtain__badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gold-light);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   4. CURSOR PERSONALIZADO (DESKTOP)
   -------------------------------------------------------------------------- */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9000;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background-color: var(--gold-dark);
}

.cursor-ring {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(122, 90, 28, 0.45);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease;
}

.cursor-ring.is-hovering {
  width: 48px;
  height: 48px;
  border-color: var(--gold-brand);
  background-color: rgba(227, 189, 116, 0.12);
}

@media (hover: none) or (max-width: 900px) {
  .cursor-dot, .cursor-ring {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   5. ENCABEZADO COMPACTO (UNA LÍNEA EN ESCRITORIO)
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(245, 244, 240, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

/* Barra superior de demostración y selector compacto */
.demo-bar {
  background: #141414;
  color: #BDB9B2;
  font-size: 0.775rem;
  padding: 0.35rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-bar__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: nowrap;
}

.demo-bar__info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-bar__info svg {
  color: var(--gold-brand);
  flex-shrink: 0;
}

.demo-bar__link {
  color: var(--gold-light);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: 0.35rem;
  transition: color var(--transition-fast);
}
.demo-bar__link:hover {
  color: #FFFFFF;
}

.demo-bar__models {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.demo-bar__models-label {
  color: #8A857D;
  font-weight: 500;
}

.demo-bar__model-link {
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  color: #D6D2CA;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all var(--transition-fast);
}
.demo-bar__model-link:hover {
  border-color: var(--gold-brand);
  color: #FFFFFF;
}
.demo-bar__model-link.is-current {
  background: var(--gold-dark);
  border-color: var(--gold-brand);
  color: #FFFFFF;
  font-weight: 600;
}

/* Barra de navegación principal */
.main-nav {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav__logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-primary);
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--transition-fast);
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--gold-dark);
  transition: width var(--transition-normal);
}
.nav__link:hover::after,
.nav__link.is-active::after {
  width: 100%;
}
.nav__link.is-active {
  color: var(--gold-dark);
  font-weight: 600;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  flex-direction: column;
  justify-content: space-around;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
}
.nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* --------------------------------------------------------------------------
   6. MENÚ MÓVIL
   -------------------------------------------------------------------------- */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 1.5rem) 2rem 2.5rem;
  transform: translateY(-100%);
  transition: transform var(--transition-smooth);
}
.mobile-drawer.is-open {
  transform: translateY(0);
}

.mobile-drawer__links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.mobile-drawer__link {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-drawer__link.is-active {
  color: var(--gold-light);
}

.mobile-drawer__models {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-drawer__models-title {
  color: var(--gold-light);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.mobile-drawer__models-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.mobile-drawer__models-list a {
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  font-size: 0.8rem;
  text-align: center;
}
.mobile-drawer__models-list a.is-current {
  background: var(--gold-dark);
  border-color: var(--gold-brand);
}

/* --------------------------------------------------------------------------
   7. BOTONES Y COMPONENTES
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.65rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.925rem;
  line-height: 1;
  transition: all var(--transition-normal);
  text-align: center;
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--bg-dark);
  color: #FFFFFF;
  border: 1px solid var(--bg-dark);
}
.btn--primary:hover {
  background-color: #262420;
  border-color: var(--gold-brand);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.btn--gold {
  background: linear-gradient(135deg, #E3BD74 0%, #D4A956 100%);
  color: #141414;
  border: 1px solid var(--gold-brand);
}
.btn--gold:hover {
  background: #E3BD74;
  box-shadow: 0 6px 20px rgba(227, 189, 116, 0.35);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(20, 20, 20, 0.25);
}
.btn--ghost:hover {
  background: var(--bg-card);
  border-color: var(--gold-dark);
  color: var(--gold-dark);
  transform: translateY(-2px);
}

.btn--ghost-dark {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn--ghost-dark:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--gold-brand);
  color: var(--gold-light);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-dark);
}

.eyebrow--dark {
  color: var(--gold-light);
}

.eyebrow-line {
  display: inline-block;
  width: 28px;
  height: 1px;
  background-color: currentColor;
}

/* --------------------------------------------------------------------------
   8. HERO DE VIDEO («Cuidado y Serenidad»)
   -------------------------------------------------------------------------- */
.hero-video-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: 4rem;
  overflow: hidden;
  background-color: #141414;
}

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

.hero-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Degradado lateral suave: asegura legibilidad del texto sin oscurecer todo el video */
.hero-video-gradient {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    90deg,
    rgba(20, 20, 20, 0.92) 0%,
    rgba(20, 20, 20, 0.82) 42%,
    rgba(20, 20, 20, 0.40) 70%,
    rgba(20, 20, 20, 0.05) 100%
  );
  pointer-events: none;
}

.hero-video-gradient::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 20, 20, 0.4) 0%,
    transparent 35%,
    transparent 70%,
    rgba(20, 20, 20, 0.85) 100%
  );
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-content {
  max-width: 680px;
  color: #FFFFFF;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 1.25rem 0 1.5rem;
  color: #FFFFFF;
}

.hero-title .serif-accent {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  color: var(--gold-light);
  letter-spacing: 0;
}

.hero-lead {
  font-size: clamp(1rem, 1.3vw, 1.175rem);
  line-height: 1.65;
  color: #E2DDD5;
  margin-bottom: 2.25rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-badges {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  flex-wrap: wrap;
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: #D4CEBF;
}

.hero-badge-item svg {
  color: var(--gold-brand);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gold-light);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-scroll-line {
  width: 45px;
  height: 1px;
  background-color: var(--gold-brand);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: #FFFFFF;
  animation: scroll-slide 2.2s infinite;
}

@keyframes scroll-slide {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

/* --------------------------------------------------------------------------
   9. SECCIÓN STORYTELLING: CANVAS SCRUBBING CON EL SCROLL
   -------------------------------------------------------------------------- */
.story-scroll-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 650px;
  background-color: #0E0E0E;
  overflow: hidden;
}

.story-canvas-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#story-canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Gradientes sutiles en canvas: mantienen brillo y luminosidad del video */
.story-canvas-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    90deg,
    rgba(14, 14, 14, 0.88) 0%,
    rgba(14, 14, 14, 0.65) 45%,
    rgba(14, 14, 14, 0.25) 75%,
    rgba(14, 14, 14, 0.1) 100%
  );
  pointer-events: none;
}

.story-canvas-vignette::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(14, 14, 14, 0.6) 0%,
    transparent 20%,
    transparent 80%,
    rgba(14, 14, 14, 0.7) 100%
  );
  pointer-events: none;
}

.story-ui-container {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 6rem 2rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.story-ui-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  pointer-events: auto;
}

.story-step-pills {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.chapter-step-badge {
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #B5B0A6;
  font-size: 0.775rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: all var(--transition-normal);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.chapter-step-badge.is-active {
  background: var(--gold-dark);
  border-color: var(--gold-brand);
  color: #FFFFFF;
  box-shadow: 0 0 16px rgba(227, 189, 116, 0.3);
}

.story-ui-bottom {
  max-width: 620px;
  pointer-events: auto;
  margin-bottom: 2rem;
}

.chapter-card-stack {
  position: relative;
  min-height: 260px;
}

.chapter-card {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(250, 248, 244, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.chapter-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.chapter-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.chapter-card__num {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: 0.12em;
}

.chapter-card__tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
  background: var(--bg-paper);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.chapter-card__title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.chapter-card__desc {
  font-size: 0.975rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.chapter-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--gold-dark);
  transition: gap var(--transition-fast);
}
.chapter-card__link:hover {
  gap: 0.65rem;
}

/* --------------------------------------------------------------------------
   10. SECCIÓN GENERAL / SERVICIOS DESTACADOS
   -------------------------------------------------------------------------- */
.section {
  padding: 6.5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.section-head {
  max-width: 780px;
  margin-bottom: 3.5rem;
}

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

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-top: 0.75rem;
  color: var(--text-primary);
}

.section-title .serif-accent {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  color: var(--gold-dark);
}

.section-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-top: 1rem;
}

/* Rejilla de servicios reales */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-brand), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.06);
  border-color: var(--gold-border);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--bg-paper);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
}

.service-card__cat {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-dark);
}

.service-card__media {
  margin: 1rem -0.5rem 1.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  max-height: 200px;
}

.service-card__media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.service-card:hover .service-card__media img {
  transform: scale(1.04);
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}

.service-card__desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.service-card__footer {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* --------------------------------------------------------------------------
   11. SECCIÓN PILARES («¿Quiénes somos?»)
   -------------------------------------------------------------------------- */
.pillars-section {
  background-color: var(--bg-ivory);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

.pillar-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  position: relative;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}
.pillar-item:hover {
  transform: translateY(-4px);
  border-color: var(--gold-border);
}

.pillar-item__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-paper);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  margin-bottom: 1.75rem;
}

.pillar-item__title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  color: var(--text-primary);
}

.pillar-item__desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   12. BANNER DE ANESTESIA («Ven y conócenos»)
   -------------------------------------------------------------------------- */
.anesthesia-banner {
  background: #141414;
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 4rem 3.5rem;
  margin: 4rem auto;
  max-width: 1400px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(227, 189, 116, 0.3);
}

.anesthesia-banner__glow {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(227, 189, 116, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.anesthesia-banner__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
}

.anesthesia-banner__title {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: #FFFFFF;
}

.anesthesia-banner__title .serif-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold-light);
}

.anesthesia-banner__text {
  font-size: 1.05rem;
  color: #D6D2CA;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.anesthesia-banner__box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(227, 189, 116, 0.35);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.anesthesia-banner__box-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.anesthesia-banner__box-text {
  font-size: 0.925rem;
  color: #B5B0A6;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   13. FORMULARIO Y CONTACTO
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  margin-top: 3.5rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.contact-info-item__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  flex-shrink: 0;
}

.contact-info-item__label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-dark);
  margin-bottom: 0.25rem;
}

.contact-info-item__value {
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.5;
}
.contact-info-item__value a {
  transition: color var(--transition-fast);
}
.contact-info-item__value a:hover {
  color: var(--gold-dark);
  text-decoration: underline;
}

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.form-alert-demo {
  background: #FFF9E6;
  border: 1px solid #E6D29E;
  color: #6E5316;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-paper);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}
.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--gold-dark);
  background: #FFFFFF;
}

.map-container {
  margin-top: 3.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  height: 420px;
  background: #EAE6DF;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* --------------------------------------------------------------------------
   14. PIE DE PÁGINA
   -------------------------------------------------------------------------- */
.site-footer {
  background: #141414;
  color: #F5F4F0;
  padding: 5rem 2rem 2.5rem;
  margin-top: auto;
  border-top: 1px solid rgba(227, 189, 116, 0.25);
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3.5rem;
  margin-bottom: 4rem;
}

.footer-brand__logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  margin-bottom: 1.25rem;
  filter: brightness(0) invert(1);
}

.footer-brand__claim {
  color: #B5B0A6;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 380px;
  margin-bottom: 1.5rem;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  transition: all var(--transition-fast);
}
.footer-social-link:hover {
  background: var(--gold-dark);
  border-color: var(--gold-brand);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.footer-links-col__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-links-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links-col a {
  color: #B5B0A6;
  font-size: 0.925rem;
  transition: color var(--transition-fast);
}
.footer-links-col a:hover {
  color: var(--gold-light);
}

/* Selector de modelos en el pie */
.footer-models-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 3.5rem;
}

.footer-models-box__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-models-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.footer-model-card {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #E2DDD5;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: all var(--transition-fast);
}
.footer-model-card:hover {
  border-color: var(--gold-brand);
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}
.footer-model-card.is-current {
  background: var(--gold-dark);
  border-color: var(--gold-brand);
  color: #FFFFFF;
}
.footer-model-card__num {
  font-size: 0.75rem;
  color: var(--gold-light);
  font-weight: 600;
}
.footer-model-card.is-current .footer-model-card__num {
  color: #FFFFFF;
}
.footer-model-card__name {
  font-size: 0.9rem;
  font-weight: 600;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.825rem;
  color: #8A857D;
  flex-wrap: wrap;
}

.footer-bottom a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Botón flotante de WhatsApp */
.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 800;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  background: #25D366;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}
.wa-float:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
}

/* --------------------------------------------------------------------------
   15. RESPONSIVE (1280px y 390px)
   -------------------------------------------------------------------------- */
@media (max-width: 1280px) {
  .demo-bar__models-label {
    display: none;
  }
}

@media (max-width: 992px) {
  .demo-bar__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .demo-bar__models {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .nav__links {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

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

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

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

@media (max-width: 600px) {
  .section {
    padding: 4.5rem 1.25rem;
  }

  .hero-container {
    padding: 0 1.25rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .story-ui-container {
    padding: 5.5rem 1.25rem 2rem;
  }

  .chapter-card {
    padding: 1.5rem;
  }

  .chapter-card__title {
    font-size: 1.35rem;
  }

  .anesthesia-banner {
    padding: 2.5rem 1.5rem;
  }

  .contact-form-card {
    padding: 1.75rem 1.25rem;
  }

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

  .wa-float span {
    display: none;
  }
  .wa-float {
    padding: 0.85rem;
    bottom: 1.25rem;
    right: 1.25rem;
  }
}

/* --------------------------------------------------------------------------
   16. PREFERS-REDUCED-MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .golden-curtain {
    display: none !important;
  }

  .hero-video-bg video {
    display: none;
  }
  .hero-video-bg {
    background: url('assets/hero-poster.webp') center/cover no-repeat;
  }

  .story-scroll-section {
    height: auto !important;
    min-height: auto !important;
    padding: 4rem 1.5rem;
  }
  .story-canvas-wrapper {
    display: none;
  }
  .story-ui-container {
    padding: 0;
    pointer-events: auto;
  }
  .chapter-card-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-height: auto;
  }
  .chapter-card {
    position: relative;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto;
  }
}
