/* ═══════════════════════════════════════════════════════════════
   QUISILEMA MEDICAL GROUP · Inmersivo 3D «Proporción» · SimCodec
   ═══════════════════════════════════════════════════════════════ */

/* ─── Fuentes locales 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');
}

/* ─── Tokens de diseño ─── */
:root {
  --paper: #F5F4F0;
  --paper-soft: #FAF9F6;
  --paper-card: rgba(255, 255, 255, 0.82);
  --ink: #141414;
  --ink-secondary: #3D3C38;
  --muted: #5A5852;          /* ratio > 5.5:1 sobre --paper, WCAG AA */
  --gold: #E3BD74;           /* oro insignia de marca: decoración / partículas */
  --gold-text: #7A5A1C;      /* oro oscuro contrastado para texto y badges: ratio > 4.6:1 */
  --gold-border: rgba(227, 189, 116, 0.35);
  --line: rgba(20, 20, 20, 0.10);
  --dark: #141414;
  --dark-text: #F5F4F0;
  --dark-muted: #CFCABE;

  --f-display: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --f-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 4rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius-sm: 4px;
  --radius-md: 10px;
}

/* ─── Base & Reseteo ─── */
*, *::before, *::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  padding: 0;
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-secondary);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* ─── View Transitions API nativa ─── */
@view-transition {
  navigation: auto;
}
::view-transition-old(root) {
  animation: 0.35s ease-out both vt-fade-out;
}
::view-transition-new(root) {
  animation: 0.45s ease-in both vt-fade-in;
}
@keyframes vt-fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes vt-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ─── Elementos y utilidades ─── */
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
h1, h2, h3, h4, p, ul, figure {
  margin: 0;
  padding: 0;
}
ul {
  list-style: none;
}
button, input, textarea {
  font: inherit;
}
:focus-visible {
  outline: 2px solid var(--gold-text);
  outline-offset: 3px;
}
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.ico {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.ico--lg {
  width: 2rem;
  height: 2rem;
  stroke-width: 1.3;
}
.ico--xl {
  width: 2.8rem;
  height: 2.8rem;
  stroke-width: 1.2;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 1rem;
}

.only-desktop {
  display: inline;
}
.only-mobile {
  display: none;
}

.eyebrow {
  font-family: var(--f-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-text);
}

.section__title, .hero__title {
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: var(--ink);
}

/* ─── Botones de acción ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.35s var(--ease);
  cursor: pointer;
  background: transparent;
  color: var(--ink);
}
.btn--dark {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn--dark:hover {
  background: var(--gold-text);
  border-color: var(--gold-text);
  color: #FFFFFF;
}
.btn--gold {
  background: var(--gold-text);
  color: #FFFFFF;
  border-color: var(--gold-text);
}
.btn--gold:hover {
  background: var(--ink);
  border-color: var(--ink);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  border-color: var(--line);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn .ico {
  transition: transform 0.4s var(--ease);
}
.btn:hover .ico {
  transform: translateX(4px);
}

/* ═══════════════════════════════════════════════════════════════
   LIENZO 3D FIJO EN FONDO (CANVAS)
   ═══════════════════════════════════════════════════════════════ */
#webgl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
body.escena-lista #webgl-canvas {
  opacity: 1;
}

/* Respaldo visual si no hay WebGL */
.hero-fallback-visual {
  display: none;
}
body.no-webgl .hero-fallback-visual {
  display: block;
}

/* ═══════════════════════════════════════════════════════════════
   ENCABEZADO COMPACTO: AVISO + SELECTOR + MENÚ
   ═══════════════════════════════════════════════════════════════ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background-color 0.4s var(--ease);
}

/* Barra superior: aviso y selector en UNA sola línea en escritorio */
.demo-bar {
  background: var(--dark);
  color: var(--dark-text);
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.demo-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.4rem var(--gutter);
  max-width: 1440px;
  margin: 0 auto;
  flex-wrap: nowrap;
}
.demo-bar__text {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  white-space: nowrap;
}
.demo-bar__text .ico {
  color: var(--gold);
}
.demo-bar__link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--gold);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
.demo-bar__link:hover {
  color: #FFFFFF;
}

.demo-bar-modelos {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}
.demo-bar-modelos__label {
  color: var(--dark-muted);
  font-size: 0.72rem;
  margin-right: 0.2rem;
}
.demo-bar-modelos__enlace {
  color: #CFCABE;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  transition: all 0.25s var(--ease);
}
.demo-bar-modelos__enlace:hover {
  color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
}
.demo-bar-modelos__enlace.actual {
  color: var(--ink);
  background: var(--gold);
  font-weight: 600;
}

/* Barra de navegación principal */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.75rem var(--gutter);
  max-width: 1440px;
  margin: 0 auto;
  background: rgba(245, 244, 240, 0.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: all 0.4s var(--ease);
}
.nav__logo img {
  width: 132px;
  height: auto;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.5vw, 2.4rem);
}
.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 0.4rem 0;
  transition: color 0.3s ease;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--gold-text);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav__links a:hover::after,
.nav__links a.activo::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav__links a.activo {
  font-weight: 600;
  color: var(--gold-text);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.25rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.35s var(--ease);
}
.nav__cta:hover {
  background: var(--ink);
  color: var(--paper);
}

/* Botón hamburguesa */
.nav__toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Menú móvil desplegable */
.mobile-menu {
  display: none;
}
.mobile-menu:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem var(--gutter);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.mobile-menu__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mobile-menu__list a {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
}
.mobile-menu__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════
   ESTRUCTURA DE CONTENIDO SCROLLYTELLING SOBRE 3D
   ═══════════════════════════════════════════════════════════════ */
main {
  position: relative;
  z-index: 10;
  padding-top: 110px; /* Aire entre menú y hero */
}

/* ─── Hero ─── */
.hero {
  min-height: calc(100vh - 110px);
  display: flex;
  align-items: center;
  padding: clamp(2rem, 6vw, 5rem) var(--gutter);
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  width: 100%;
}
.hero__content {
  max-width: 580px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(227, 189, 116, 0.16);
  border: 1px solid var(--gold-border);
  border-radius: 20px;
  margin-bottom: 1.5rem;
}
.hero__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-text);
  box-shadow: 0 0 8px var(--gold);
}
.hero__title {
  font-size: clamp(2.8rem, 6.2vw, 5.6rem);
  margin-bottom: 1.5rem;
  letter-spacing: -0.04em;
}
.hero__lead {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 2.2rem;
  max-width: 580px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}



/* ─── Marquesina de Especialidades ─── */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  padding: 1rem 0;
  white-space: nowrap;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
}
.marquee__group {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding-right: 3rem;
}
.marquee__group li {
  font-family: var(--f-display);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-secondary);
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
}
.marquee__group li::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-text);
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ─── Secciones comunes ─── */
.section {
  padding: clamp(4rem, 8vw, 7.5rem) var(--gutter);
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
}
.section__head {
  max-width: 680px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section__head .eyebrow {
  margin-bottom: 0.75rem;
}
.section__head .section__title {
  font-size: clamp(2.4rem, 4.5vw, 4rem);
}

/* ─── Sección 01: Nosotros & Pilares ─── */
.nosotros__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-bottom: 3.5rem;
}
.nosotros__text {
  background: var(--paper-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  padding: clamp(1.8rem, 3vw, 2.8rem);
  border-radius: var(--radius-md);
}
.nosotros__lead {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 1.2rem;
}
.nosotros__desc {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}
.pillar-card {
  background: var(--paper-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 2rem 1.8rem;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-border);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}
.pillar-card .ico {
  color: var(--gold-text);
  margin-bottom: 1.2rem;
}
.pillar-card h3 {
  font-family: var(--f-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.pillar-card p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Caja de Anestesia y Cuidados Postoperatorios */
.anesthesia-box {
  background: linear-gradient(135deg, rgba(20, 20, 20, 0.95) 0%, rgba(35, 33, 29, 0.96) 100%);
  color: var(--paper);
  border-radius: var(--radius-md);
  padding: clamp(2rem, 4vw, 3.2rem);
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 2rem;
  border: 1px solid rgba(227, 189, 116, 0.3);
}
.anesthesia-box h3 {
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.15;
}
.anesthesia-box p {
  color: var(--dark-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ─── Sección 02: Servicios & Morfología 3D ─── */
.services-section {
  position: relative;
}
.services-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
.morph-pill {
  padding: 0.6rem 1.2rem;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.morph-pill:hover {
  border-color: var(--gold-border);
  color: var(--ink);
}
.morph-pill.activo {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
.service-card {
  background: var(--paper-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-border);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.06);
}
.service-card__num {
  font-family: var(--f-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-text);
  letter-spacing: 0.1em;
  padding: 1.4rem 1.6rem 0.4rem;
}
.service-card__media {
  padding: 0.8rem 1.6rem;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.service-card__media--icon {
  background: rgba(227, 189, 116, 0.08);
  border: 1px dashed var(--gold-border);
  border-radius: var(--radius-sm);
  color: var(--gold-text);
}
.service-card__body {
  padding: 1.2rem 1.6rem 1.8rem;
  margin-top: auto;
}
.service-card__body h3 {
  font-family: var(--f-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.service-card__body p {
  font-size: 0.88rem;
  color: var(--gold-text);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ─── Sección 03: Contacto & Ubicación ─── */
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
.contacto-info {
  background: var(--paper-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: clamp(1.8rem, 3vw, 2.8rem);
}
.contacto-list {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}
.contacto-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contacto-item .ico {
  color: var(--gold-text);
  margin-top: 0.2rem;
}
.contacto-item__label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.contacto-item__val {
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.5;
}
.contacto-item__val a:hover {
  color: var(--gold-text);
  text-decoration: underline;
}

.contacto-sociales {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.5rem;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: all 0.3s ease;
}
.social-link:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* Formulario */
.form-card {
  background: var(--paper-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: clamp(1.8rem, 3vw, 2.8rem);
}
.form__aviso {
  font-size: 0.85rem;
  padding: 0.75rem 1rem;
  background: rgba(227, 189, 116, 0.15);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  color: var(--gold-text);
  margin-bottom: 1.5rem;
}
.form__aviso--ok {
  background: rgba(30, 120, 60, 0.12);
  border-color: rgba(30, 120, 60, 0.3);
  color: #1A6032;
}
.form-group {
  margin-bottom: 1.3rem;
}
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-secondary);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.3s ease;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold-text);
  outline: none;
}

/* Mapa embebido */
.mapa-wrap {
  margin-top: 3rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  height: 380px;
}
.mapa-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ═══════════════════════════════════════════════════════════════
   PIE DE PÁGINA
   ═══════════════════════════════════════════════════════════════ */
.footer {
  position: relative;
  z-index: 10;
  background: var(--dark);
  color: var(--dark-text);
  padding: clamp(3rem, 6vw, 5rem) var(--gutter) 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer__inner {
  max-width: 1440px;
  margin: 0 auto;
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer__logo {
  display: inline-block;
  background: var(--paper);
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
}
.footer__logo img {
  width: 120px;
  height: auto;
}
.footer__claim {
  color: var(--dark-muted);
  font-size: 0.95rem;
  max-width: 480px;
}
.footer__mid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer__copy {
  font-size: 0.85rem;
  color: var(--dark-muted);
}
.footer__demo-note {
  font-size: 0.82rem;
  color: var(--dark-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer__demo-note a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Selector de modelos en el pie */
.selector-modelos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding-top: 2rem;
}
.selector-modelos__titulo {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 600;
}
.selector-modelos__lista {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.selector-modelos__enlace {
  color: var(--dark-muted);
  font-size: 0.82rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}
.selector-modelos__enlace:hover {
  color: #FFFFFF;
  border-color: var(--gold);
}
.selector-modelos__enlace.actual {
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  border-color: var(--gold);
}

/* Botón flotante de WhatsApp */
.wa-float {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: #141414;
  color: #FFFFFF;
  border: 1px solid var(--gold);
  border-radius: 40px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.wa-float:hover {
  transform: translateY(-3px);
  background: var(--gold-text);
  color: #FFFFFF;
}
.wa-float .ico {
  color: var(--gold);
}

/* ═══════════════════════════════════════════════════════════════
   CORTINA Y POLVO DORADO PARA TRANSICIÓN ENTRE PÁGINAS
   ═══════════════════════════════════════════════════════════════ */
.transicion-polvo-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
}
.transicion-cortina {
  position: absolute;
  inset: 0;
  background: #141414;
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.77, 0, 0.175, 1);
}
.transicion-emblema {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  opacity: 0;
  pointer-events: none;
}
.transicion-espiral {
  width: 100%;
  height: 100%;
  animation: rotar-espiral 4s linear infinite;
}
@keyframes rotar-espiral {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE (1280px, 992px, 768px, 390px)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .nav__links, .nav__cta {
    display: none;
  }
  .nav__toggle {
    display: flex;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .anesthesia-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  main {
    padding-top: 130px;
  }
  .demo-bar__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
  .demo-bar-modelos {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__canvas-hint {
    align-items: flex-start;
    text-align: left;
  }
  .nosotros__grid,
  .contacto-grid {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .only-desktop {
    display: none;
  }
  .only-mobile {
    display: inline;
  }
}

@media (min-width: 769px) {
  .only-mobile {
    display: none;
  }
}

/* ─── Soporte para 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;
  }
  .marquee__track {
    animation: none;
  }
}
