/* Cremapet Toluca. Dirección de arte: "un halo". */
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-latin.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-italic-latin.woff2") format("woff2"); font-weight: 400 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
/* Solo para el grabado de la placa del configurador (parecida a la letra de las placas reales) */
@font-face { font-family: "Macondo"; src: url("fonts/macondo-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --color-bg: #f3f6fb;
  --color-panel: #e6ecf6;
  --color-footer: #0d1c3f;
  --color-border: #cfd8e8;
  --color-heading: #10244d;
  --color-text: #2b3a5c;
  --color-text-soft: #4a5878;
  --color-white: #ffffff;
  --color-accent: #1f4590;
  --color-accent-dark: #173674;
  --color-halo: #c9a24a;
  --color-wa: #0b7a45;
  --color-wa-dark: #08703f;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;

  --content-max: 1180px;
  --radius: 12px;
  --radius-lg: 24px;
  --transition: 0.25s ease;
  --ease-out: cubic-bezier(0.22, 0.8, 0.24, 1);
  --shadow: 0 24px 50px -28px rgba(15, 20, 30, 0.4);

  --header-height: 56px;
  --strip-height: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-height) + 1.25rem); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--color-bg); color: var(--color-text); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; }
a, button, input { touch-action: manipulation; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--color-heading); font-weight: 500; line-height: 1.12; margin: 0 0 var(--space-sm); letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.8rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
h3 { font-size: 1.35rem; }
h1 em, h2 em { font-style: italic; color: var(--color-accent); }
p { margin: 0 0 var(--space-sm); }
.wrap { width: min(100% - 2rem, var(--content-max)); margin-inline: auto; }
.muted { color: var(--color-text-soft); }
.small { font-size: 0.9375rem; color: var(--color-text-soft); }
.nota { margin-top: var(--space-sm); font-size: 0.9375rem; color: var(--color-text-soft); }
[hidden] { display: none !important; } /* si no, un display de clase (ej. .catalogo li) le gana */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--color-white); padding: 0.5rem 1rem; z-index: 100; }
.skip:focus { left: 0.5rem; top: 0.5rem; }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; border-radius: 4px; }

section { padding-block: var(--space-xl); }

.eyebrow { display: flex; align-items: center; gap: 0.75rem; font-size: 0.95rem; font-weight: 600; color: var(--color-text-soft); margin-bottom: var(--space-sm); }
.eyebrow::before { content: ""; width: 2.25rem; height: 1px; background: var(--color-halo); }
.kicker { font-size: 0.95rem; letter-spacing: 0.03em; color: var(--color-accent); font-weight: 600; margin-bottom: var(--space-sm); }
.badge-new { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 600; color: var(--color-heading); background: #f7ecd1; border: 1px solid #e3cc8e; padding: 0.3rem 0.85rem; border-radius: 999px; margin-bottom: var(--space-sm); }
.badge-new::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--color-halo); box-shadow: 0 0 0 4px rgba(201, 162, 74, 0.25); }
.link-more { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; text-decoration: none; margin-top: var(--space-md); min-height: 44px; }
.link-more svg { width: 18px; height: 18px; fill: currentColor; transition: transform var(--transition); }
.link-more:hover svg { transform: translateX(4px); }

/* Botones */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.actions-stack { margin-top: var(--space-md); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; min-height: 48px; padding: 0.7rem 1.4rem; border-radius: 999px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color var(--transition), color var(--transition), border-color var(--transition), transform var(--transition); border: 1.5px solid transparent; }
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn:active { transform: scale(0.98); }
.btn-lg { min-height: 54px; padding-inline: 1.6rem; font-size: 1.0625rem; }
.btn-solid { background: var(--color-accent); color: var(--color-white); }
.btn-solid:hover { background: var(--color-accent-dark); }
.btn-wa { background: var(--color-wa); color: var(--color-white); box-shadow: 0 10px 22px -12px rgba(15, 20, 30, 0.38); }
.btn-wa:hover { background: var(--color-wa-dark); }
.btn-line { background: transparent; color: var(--color-accent); border-color: var(--color-accent); }
.btn-line:hover { background: var(--color-accent); color: var(--color-white); }
.btn-ghost-light { background: transparent; color: var(--color-white); border-color: rgba(255, 255, 255, 0.55); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--color-white); }

/* Redes */
.social { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: inherit; transition: background-color var(--transition), color var(--transition); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.social-strip a:hover { background: rgba(255, 255, 255, 0.14); }
.social-foot { margin-top: var(--space-sm); }
.social-foot a { width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, 0.25); }
.social-foot a:hover { background: var(--color-white); color: var(--color-footer); }

/* Header */
/* top negativo: la franja oscura se va con el scroll y solo la barra queda pegada */
.site-header { position: sticky; top: calc(-1 * var(--strip-height)); z-index: 50; background: var(--color-white); border-bottom: 1px solid var(--color-border); }
.topstrip { background: var(--color-footer); color: #dbe4f7; font-size: 0.875rem; }
.topstrip-in { display: flex; justify-content: space-between; align-items: center; gap: 1rem; height: var(--strip-height); }
.social-strip a { position: relative; width: 32px; height: 32px; }
.social-strip { gap: 0.75rem; }
/* área táctil de 44px sin agrandar la franja */
.social-strip a::after, .strip-tel::after { content: ""; position: absolute; inset: -6px; }
.strip-note { margin: 0; }
.strip-right { display: flex; align-items: center; gap: 0.75rem; }
.strip-tel { position: relative; display: inline-flex; align-items: center; gap: 0.4rem; min-height: var(--strip-height); color: #fff; font-weight: 600; text-decoration: none; }
.strip-tel svg { width: 15px; height: 15px; fill: var(--color-halo); }
.bar { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-height); border-radius: 0; transition: translate var(--flota), width var(--flota), padding var(--flota), background-color var(--flota), box-shadow var(--flota), border-radius var(--flota); }
/* Al bajar, la barra se despega y flota (script.js pone .is-floating); misma altura, sin brincos */
/* width/padding/gap sí se animan: es solo la barra (poco contenido), el costo de layout es mínimo */
.site-header { --flota: 0.7s var(--ease-out); transition: background-color var(--flota), border-color var(--flota); }
.nav { transition: gap var(--flota); }
.site-header.is-floating { background: transparent; border-bottom-color: transparent; }
@media (min-width: 901px) { .site-header.is-floating .nav { gap: 1.25rem; } }
.site-header.is-floating .bar { translate: 0 10px; width: min(100% - 2rem, 900px); padding-inline: 1.1rem 0.5rem; background: rgba(255, 255, 255, 0.94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-radius: 28px; box-shadow: 0 14px 34px -14px rgba(15, 20, 30, 0.3), 0 0 0 1px rgba(15, 20, 30, 0.07); }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; margin-right: auto; }
.brand img { width: 36px; height: 36px; }
.brand-name { font-family: var(--font-display); font-size: 1.2rem; color: var(--color-heading); line-height: 1; }
.brand-name small { display: block; font-family: var(--font-body); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-soft); margin-top: 0.15rem; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav > a { color: var(--color-heading); text-decoration: none; font-weight: 500; padding-block: 0.5rem; background: linear-gradient(var(--color-halo), var(--color-halo)) 0 100% / 0 2px no-repeat; transition: background-size var(--transition); }
.nav > a:hover, .nav > a[aria-current="page"] { background-size: 100% 2px; }
.nav > a[aria-current="page"] { color: var(--color-accent); font-weight: 600; }
.nav-extra { display: none; }
.bar-wa { min-height: 44px; padding-inline: 1.1rem; }
.nav-toggle { display: none; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--color-heading); transition: transform var(--transition), opacity var(--transition); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero (inicio) */
/* Video a todo el ancho; el texto va a la derecha, sobre el resplandor del sol (el "halo") */
.hero { position: relative; display: grid; align-items: center; min-height: min(calc(100svh - var(--header-height) - var(--strip-height)), 56.25vw); padding-block: var(--space-lg); background: var(--color-bg); overflow: hidden; }
.hero-video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; } /* en pantallas bajas el recorte sale de abajo (patas en las nubes), no de la cabeza */
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(270deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.5) 24%, rgba(255, 255, 255, 0) 40%); pointer-events: none; }
/* El hero nunca es más angosto que 16:9, así que el video ocupa el ancho exacto: al voltear a la
   derecha el hocico llega a ~65% del ancho; el texto arranca en 68vw para no pisarlo */
.hero-in { position: relative; z-index: 2; padding-inline: 4vw; }
.hero-copy { width: 28vw; margin-left: auto; }
.hero h1 { font-size: clamp(2.2rem, 3.2vw, 4rem); }
.hero .kicker { text-wrap: balance; }
.lead { font-size: 1.2rem; max-width: 35rem; color: var(--color-text); }
.hero .actions { margin-block: var(--space-md); }

/* Sello "18 años" sobre el cielo del hero: nicho en arco, filete dorado y un brillo que lo cruza */
.hero-sello { position: absolute; z-index: 3; left: 4vw; bottom: 7%; width: clamp(120px, 11vw, 170px); margin: 0; border-radius: 50% 50% 22px 22px / 40% 40% 22px 22px; overflow: hidden; border: 3px solid var(--color-halo); box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.55), 0 26px 50px -18px rgba(13, 28, 63, 0.65); }
.hero-sello img { display: block; width: 100%; height: auto; }
.hero-sello::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 236, 190, 0.45) 50%, transparent 65%); translate: -120% 0; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .hero-sello { animation: sello-flota 6s ease-in-out infinite; }
  .hero-sello::after { animation: sello-brillo 5s ease-in-out 1.2s infinite; }
}
@keyframes sello-flota { 50% { translate: 0 -8px; } }
@keyframes sello-brillo { 0% { translate: -120% 0; } 35%, 100% { translate: 120% 0; } }

/* Sala de espera (nosotros) */
.sala { background: var(--color-white); }
.sala-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--space-lg); align-items: center; }
.sala-foto { margin: 0; }
.sala-foto img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 200px 28px 28px 28px; box-shadow: var(--shadow); }

/* Banda de atención inmediata */
.urgente { position: relative; background: var(--color-footer); color: #dbe4f7; padding-block: var(--space-lg); overflow: hidden; }
.urgente::after { content: ""; position: absolute; right: -80px; top: 50%; width: 320px; aspect-ratio: 1; translate: 0 -50%; border: 2px solid rgba(201, 162, 74, 0.5); border-radius: 50%; pointer-events: none; }
.urgente-in { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-md); }
.urgente h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 0.4rem; }
.urgente p { margin: 0; max-width: 38rem; }

/* Bienvenida */
.intro { background: var(--color-white); }
.intro-grid { display: grid; grid-template-columns: 0.4fr 1fr; gap: var(--space-lg); align-items: start; }
.intro-text { font-family: var(--font-display); font-size: clamp(1.45rem, 2.8vw, 2.1rem); line-height: 1.32; color: var(--color-heading); max-width: 40rem; }
.intro-text strong { font-weight: 500; color: var(--color-accent); }
.intro-sign { font-style: italic; color: var(--color-text-soft); margin: 0; }

/* Distintivo: teaser del configurador */
.teaser { background: linear-gradient(180deg, var(--color-bg), var(--color-panel)); }
.teaser-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); align-items: center; }
.teaser-copy p:not(.badge-new) { max-width: 32rem; }
.teaser-copy .btn { margin-top: var(--space-sm); }
.fan { position: relative; height: 380px; }
.fan::before { content: ""; position: absolute; left: 50%; top: 50%; width: 360px; aspect-ratio: 1; translate: -50% -50%; border: 2px solid var(--color-halo); border-radius: 50%; }
.fan img { position: absolute; top: 50%; left: 50%; width: 230px; aspect-ratio: 1; object-fit: cover; border-radius: 20px; border: 6px solid var(--color-white); box-shadow: var(--shadow); }
.fan img:nth-child(1) { translate: -105% -50%; rotate: -9deg; }
.fan img:nth-child(2) { translate: -50% -56%; z-index: 2; width: 250px; }
.fan img:nth-child(3) { translate: 5% -50%; rotate: 9deg; }
.fan img { transition: translate 0.9s var(--ease-out) 0.2s, rotate 0.9s var(--ease-out) 0.2s; }
.fan.rv:not(.is-in) img { translate: -50% -50%; rotate: 0deg; }

/* Aparición al hacer scroll: script.js pone .rv (y --i para escalonar) solo si hay JS y movimiento */
.rv { opacity: 0; translate: 0 28px; transition: opacity 0.7s var(--ease-out), translate 0.7s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.rv.is-in { opacity: 1; translate: none; }
.fan.rv { translate: none; }

/* Rutas a las páginas */
.rutas { list-style: none; margin: var(--space-md) 0 0; padding: 0; border-bottom: 1px solid var(--color-border); }
.ruta { display: grid; grid-template-columns: 4rem 1fr 150px 52px; align-items: center; gap: var(--space-md); padding: 1.25rem 1rem; border-top: 1px solid var(--color-border); text-decoration: none; color: inherit; border-radius: 4px; transition: background-color var(--transition); }
.ruta:hover { background: var(--color-white); }
.ruta-n { font-family: var(--font-display); font-size: 1.6rem; color: var(--color-halo); }
.ruta-t { display: flex; flex-direction: column; gap: 0.2rem; color: var(--color-text-soft); }
.ruta-t strong { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.3rem, 2.2vw, 1.75rem); color: var(--color-heading); line-height: 1.3; }
.ruta img { width: 150px; height: 100px; object-fit: cover; border-radius: 14px; }
.ruta-go { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--color-border); transition: background-color var(--transition), border-color var(--transition); }
.ruta-go svg { width: 22px; height: 22px; fill: var(--color-accent); transition: transform var(--transition); }
.ruta:hover .ruta-go { background: var(--color-accent); border-color: var(--color-accent); }
.ruta:hover .ruta-go svg { fill: #fff; transform: translateX(3px); }

/* Pasos (inicio) */
.pasos-sec { background: var(--color-white); padding-bottom: calc(var(--space-xl) + 56px); }
.pasos { list-style: none; margin: var(--space-md) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); counter-reset: paso; }
.pasos li { counter-increment: paso; border-top: 2px solid var(--color-halo); padding-top: 1rem; }
.pasos li::before { content: "0" counter(paso); display: block; font-family: var(--font-display); color: var(--color-accent); font-size: 1.1rem; margin-bottom: 0.4rem; }
.pasos h3 { font-size: 1.25rem; margin-bottom: 0.3rem; }
.pasos p { margin: 0; color: var(--color-text-soft); }

/* Encabezado de páginas internas */
.page-hero { overflow: hidden; padding-block: var(--space-lg); background: radial-gradient(50% 80% at 85% 30%, #ffffff 0%, rgba(255, 255, 255, 0) 70%), var(--color-bg); }
.ph-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); align-items: center; }
.page-hero.has-img .ph-grid { grid-template-columns: 1fr 1fr; }
.ph-copy .lead { margin: 0; }
.ph-img { position: relative; margin: 0; }
.ph-img::before { content: ""; position: absolute; right: -18px; top: -18px; width: 45%; aspect-ratio: 1; border: 2px solid var(--color-halo); border-radius: 50%; }
.ph-img img { position: relative; width: 100%; aspect-ratio: 14 / 9; height: auto; object-fit: cover; border-radius: 200px 28px 28px 28px; box-shadow: var(--shadow); }
.ph-img.ph-cuadrada img { aspect-ratio: 1; } /* fotos verticales de Instagram */

/* Video de YouTube bajo demanda (inicio) */
.video-sec { background: var(--color-white); padding-top: 0; }
.video-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--space-lg); align-items: center; }
.video-play { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-footer); box-shadow: var(--shadow); cursor: pointer; }
.video-play img { width: 100%; height: 100%; object-fit: cover; transition: scale 0.6s var(--ease-out); }
.video-play:hover img { scale: 1.03; }
.video-icon { position: absolute; inset: 0; margin: auto; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: rgba(255, 255, 255, 0.94); box-shadow: 0 12px 30px -10px rgba(15, 20, 30, 0.4); transition: scale var(--transition); }
.video-play:hover .video-icon { scale: 1.08; }
.video-icon svg { width: 34px; height: 34px; margin-left: 4px; fill: var(--color-accent); }
/* Huellitas difuminadas de fondo en secciones con mucho texto (.huellas; .huellas-b las espeja) */
.huellas { position: relative; isolation: isolate; }
.huellas { --huella: url("images/huellas.svg"); }
.huellas::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--huella) no-repeat left -70px bottom -50px / min(460px, 70vw), var(--huella) no-repeat right -90px top -60px / min(380px, 58vw); opacity: 0.2; filter: blur(1px); }
/* Celular: las secciones son largas y angostas, así que van 4 caminos repartidos a lo alto y más visibles */
@media (max-width: 760px) {
  .huellas::before { background: var(--huella) no-repeat left -60px bottom -30px / 78vw, var(--huella) no-repeat right -70px top -30px / 66vw, var(--huella) no-repeat right -50px top 52% / 56vw, var(--huella) no-repeat left -40px top 24% / 48vw; opacity: 0.3; }
}
.huellas-b::before { transform: scaleX(-1); }
/* Con movimiento: el camino de huellitas se va "pisando" en bucle */
@media (prefers-reduced-motion: no-preference) {
  .huellas { --huella: url("images/huellas-camino.svg"); }
  .huellas::before { opacity: 0.23; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 760px) {
  .huellas::before { opacity: 0.32; }
}
/* Cielo: nubes que avanzan a la derecha y destellos dorados (eco del cielo del hero) en zonas con aire */
.cielo { --tira: 900px; position: relative; isolation: isolate; overflow-x: clip; }
.cielo::after { content: ""; position: absolute; z-index: -1; top: 0; left: calc(-1 * var(--tira)); right: 0; height: min(320px, 70%); background: url("images/nubes.svg") repeat-x 0 0 / var(--tira) auto; opacity: 0.85; pointer-events: none; }
.cielo-izq::after { top: auto; bottom: 0; background-position: calc(var(--tira) / 2) 0; }
/* El viento: las nubes avanzan sin fin hacia la derecha (cada vuelta recorre una tira completa) */
@media (prefers-reduced-motion: no-preference) {
  .cielo::after { animation: viento 70s linear infinite; }
  .cielo-izq::after { animation-duration: 90s; }
}
@keyframes viento { to { translate: var(--tira) 0; } }
@media (max-width: 760px) {
  .cielo { --tira: 620px; }
  .cielo::after { opacity: 0.6; }
  /* En celular el encabezado de página apila texto y foto: las nubes van arriba, detrás del título, no tapadas por la foto */
  .page-hero.cielo::after { top: 0; bottom: auto; height: 420px; opacity: 0.9; background: url("images/nubes.svg") repeat-x 0 0 / var(--tira) auto, url("images/nubes.svg") repeat-x calc(var(--tira) / 2) 190px / var(--tira) auto; }
}
/* Bandas oscuras: huellitas blancas que suben despacio */
@media (prefers-reduced-motion: no-preference) {
  .urgente::before, .cta-final::before { content: ""; position: absolute; inset: 0; background: url("images/huellas-flotan.svg") no-repeat center / cover; opacity: 0.1; pointer-events: none; }
  .urgente::after, .cta-final::after { animation: respira 7s ease-in-out infinite; }
  .badge-new::before { animation: late 2.4s ease-out infinite; }
}
@keyframes respira { 50% { scale: 1.08; opacity: 0.55; } }
@keyframes late { 0% { box-shadow: 0 0 0 0 rgba(201, 162, 74, 0.5); } 100% { box-shadow: 0 0 0 10px rgba(201, 162, 74, 0); } }

/* Cinta de servicios en movimiento */
.cinta { overflow: hidden; background: var(--color-panel); border-block: 1px solid var(--color-border); padding-block: 1rem; }
.cinta-track { display: flex; width: max-content; animation: cinta 45s linear infinite; }
.cinta:hover .cinta-track { animation-play-state: paused; }
.cinta ul { display: flex; flex-shrink: 0; list-style: none; margin: 0; padding: 0; }
.cinta li { display: flex; align-items: center; gap: 1.5rem; padding-right: 1.5rem; font-family: var(--font-display); font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--color-heading); white-space: nowrap; }
.cinta li::after { content: ""; width: 22px; height: 22px; background: url("images/huella.svg") no-repeat center / contain; opacity: 0.8; }
@keyframes cinta { to { translate: -50% 0; } }

/* Palabra en itálica: un trazo dorado se dibuja debajo al aparecer */
h1 em, h2 em { background: linear-gradient(var(--color-halo), var(--color-halo)) no-repeat 0 94% / 100% 2px; transition: background-size 1s var(--ease-out) 0.45s; }
.rv:not(.is-in) em { background-size: 0% 2px; }
/* Pasos: la línea dorada se traza de izquierda a derecha, uno tras otro */
.pasos li { border-top: 0; background: linear-gradient(var(--color-halo), var(--color-halo)) no-repeat 0 0 / 100% 2px; transition: background-size 0.9s var(--ease-out) calc(var(--i, 0) * 160ms + 0.2s), opacity 0.7s var(--ease-out) calc(var(--i, 0) * 90ms), translate 0.7s var(--ease-out) calc(var(--i, 0) * 90ms); }
.pasos li.rv:not(.is-in) { background-size: 0% 2px; }
/* Tarjetas que responden al cursor */
.quote { transition: translate var(--transition), box-shadow var(--transition); }
.quote:hover { translate: 0 -4px; box-shadow: var(--shadow); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .fan:hover img:nth-child(1) { translate: -118% -52%; rotate: -14deg; }
  .fan:hover img:nth-child(3) { translate: 18% -52%; rotate: 14deg; }
  .fan:hover img:nth-child(2) { translate: -50% -60%; }
  .fan img { transition-delay: 0s; }
}

/* Botones de redes con la paleta del sitio: Instagram, Facebook y TikTok en azul de acento */
.btn-ig, .btn-fb, .btn-tt { background: var(--color-accent); color: var(--color-white); box-shadow: 0 10px 22px -12px rgba(15, 20, 30, 0.38); }
.btn-ig:hover, .btn-fb:hover, .btn-tt:hover { background: var(--color-accent-dark); }

/* Franja "Síguenos" antes del cierre, en todas las páginas */
.siguenos { background: var(--color-white); border-top: 1px solid var(--color-border); padding-bottom: calc(var(--space-xl) + 70px); }
/* Mascotas recortadas (fotos de cremapet.com) que se asoman en los huecos */
.mascota { position: absolute; z-index: 1; height: auto; pointer-events: none; }
.pasos-sec .mascota-gatito { right: max(1rem, calc((100vw - var(--content-max)) / 2)); bottom: 0; width: clamp(80px, 8vw, 110px); }
.siguenos .mascota-echados { right: max(1rem, calc((100vw - var(--content-max)) / 2 + 2rem)); bottom: 0; width: clamp(220px, 24vw, 330px); }
.siguenos-in { display: grid; grid-template-columns: 1fr 2fr; gap: var(--space-lg); align-items: center; }
.siguenos-copy p:last-child { margin: 0; color: var(--color-text-soft); max-width: 30rem; }
.siguenos-redes { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-sm); }
.red-card { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0.6rem 1rem; padding: 1.25rem; border-radius: var(--radius-lg); border: 1px solid var(--color-border); background: var(--color-bg); color: var(--color-heading); text-decoration: none; transition: translate var(--transition), box-shadow var(--transition), border-color var(--transition); }
.red-card:hover { translate: 0 -3px; box-shadow: var(--shadow); border-color: transparent; }
.red-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--color-accent); color: var(--color-white); }
.red-ico svg { width: 28px; height: 28px; fill: currentColor; }
.red-txt strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; line-height: 1.2; }
.red-txt small { font-size: 0.9375rem; color: var(--color-text-soft); }
.red-card .btn { grid-column: 1 / -1; width: 100%; min-height: 46px; padding-inline: 0.75rem; white-space: nowrap; }
/* Íconos de redes debajo del botón del hero */
.hero-redes { display: flex; align-items: center; gap: 0.6rem; margin-top: var(--space-sm); }
.hero-redes > span { margin-right: 0.25rem; font-size: 0.95rem; font-weight: 600; color: var(--color-heading); }
.red-mini { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--color-accent); color: var(--color-white); box-shadow: 0 10px 22px -12px rgba(15, 20, 30, 0.38); transition: translate var(--transition); }
.red-mini svg { width: 24px; height: 24px; fill: currentColor; }
.red-mini:hover { translate: 0 -2px; }

/* Ilustraciones de Instagram en secciones de texto */
.ilus { margin: 0; }
.ilus img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 120px 24px 24px 24px; box-shadow: var(--shadow); }
.ilus figcaption { margin-top: 0.6rem; font-size: 0.875rem; }
.ilus figcaption a { color: var(--color-text-soft); }
.ilus figcaption a:hover { color: var(--color-accent); }
.intro-lado .ilus { margin-top: var(--space-md); }
.split-head .ilus { max-width: 300px; margin-top: var(--space-md); }
.mv-grid:has(.ilus) { grid-template-columns: 0.8fr 1fr 1fr; align-items: center; }
.extras-grid:has(.ilus) { grid-template-columns: 1.1fr 1fr 1fr; align-items: stretch; }
.extras-grid .ilus { display: flex; flex-direction: column; grid-row: span 2; }
.extras-grid .ilus img { flex: 1 1 0; height: auto; aspect-ratio: auto; min-height: 220px; border-radius: 80px 24px 24px 24px; }

/* Redes: carril horizontal (Instagram en urnas, TikTok en inicio) */
.redes-sec { background: var(--color-bg); overflow: hidden; }
.tt-sec { background: var(--color-panel); }
.redes-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-md); margin-bottom: var(--space-md); }
.redes-head h2 { margin-bottom: 0.5rem; }
.redes-head .muted { max-width: 34rem; margin: 0; }
.redes-acciones { display: flex; align-items: center; gap: 0.6rem; }
.carril-btn { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--color-border); background: var(--color-white); cursor: pointer; transition: background-color var(--transition), border-color var(--transition); }
.carril-btn svg { width: 22px; height: 22px; fill: var(--color-accent); transition: fill var(--transition); }
.carril-btn:hover { background: var(--color-accent); border-color: var(--color-accent); }
.carril-btn:hover svg { fill: var(--color-white); }
.carril { list-style: none; margin: 0; padding: 0.5rem 0 1.25rem; display: grid; grid-auto-flow: column; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.carril > li { scroll-snap-align: start; }
.ig-carril { --orilla: max(1rem, (100vw - var(--content-max)) / 2); grid-auto-columns: clamp(220px, 23vw, 290px); padding-inline: var(--orilla); scroll-padding-inline: var(--orilla); }
.ig-carril a { position: relative; display: block; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.ig-carril img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: scale 0.6s var(--ease-out); }
.ig-carril span { position: absolute; left: 0.75rem; bottom: 0.75rem; padding: 0.5rem 0.95rem; border-radius: 999px; background: rgba(255, 255, 255, 0.94); color: var(--color-heading); font-size: 0.875rem; font-weight: 600; opacity: 0; translate: 0 6px; transition: opacity var(--transition), translate var(--transition); }
.ig-carril a:hover img { scale: 1.04; }
.ig-carril a:hover span, .ig-carril a:focus-visible span { opacity: 1; translate: none; }
@media (hover: none) { .ig-carril span { opacity: 1; translate: none; } }
.tt-carril { grid-auto-columns: minmax(0, 1fr); overflow: visible; }
.tt-carril li { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.tt-play { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; padding: 0; border: 0; border-radius: 20px; overflow: hidden; background: var(--color-footer); box-shadow: var(--shadow); cursor: pointer; }
.tt-play img { width: 100%; height: 100%; object-fit: cover; transition: scale 0.6s var(--ease-out); }
.tt-play:hover img { scale: 1.04; }
.tt-play:hover .video-icon { scale: 1.08; }
.tt-frame { display: block; width: 100%; aspect-ratio: 9 / 16; border: 0; border-radius: 20px; background: #000; }
.tt-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
.tt-link:hover { text-decoration: underline; }
.video-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow); }

/* Proceso (servicios) */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--space-xl); align-items: start; }
.split-head { position: sticky; top: calc(var(--header-height) + 1.5rem); }
.timeline { list-style: none; margin: 0 0 0 1rem; padding: 0; counter-reset: paso; border-left: 1px solid var(--color-halo); }
.timeline li { counter-increment: paso; position: relative; padding: 0 0 var(--space-md) var(--space-md); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: counter(paso); position: absolute; left: -1.05rem; top: -0.1rem; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--color-bg); border: 1.5px solid var(--color-halo); font-family: var(--font-display); display: grid; place-items: center; color: var(--color-heading); }

/* Tabla comparativa */
.servicios { background: var(--color-white); }
.tabla { margin-top: var(--space-md); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }
.tabla-row { display: grid; grid-template-columns: 1fr 1.1fr 1.1fr; border-top: 1px solid var(--color-border); }
.tabla-row:first-child { border-top: 0; }
.tabla-row > div { padding: 1.1rem 1.4rem; }
.tabla-row [role="rowheader"] { font-weight: 600; color: var(--color-heading); background: var(--color-bg); }
.tabla-head > div { background: var(--color-bg); }
.tabla-head h3 { margin-bottom: 0.25rem; }
.tabla-head p { margin: 0; font-size: 0.9375rem; color: var(--color-text-soft); }
.tabla-head > div:nth-child(2) { background: var(--color-accent); }
.tabla-head > div:nth-child(2) h3, .tabla-head > div:nth-child(2) p { color: var(--color-white); }
.tabla-head > div:nth-child(2) .tag { display: inline-block; font-size: 0.8rem; font-weight: 600; color: var(--color-heading); background: #f7ecd1; padding: 0.15rem 0.6rem; border-radius: 999px; margin-bottom: 0.5rem; }
.tabla-foot > div { display: flex; align-items: center; }
.si::before { content: "✓ "; color: var(--color-accent); font-weight: 700; }
.no { color: var(--color-text-soft); }

/* Extras (servicios) */
.extras-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.extra { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-md); }
.extra h3 { margin-bottom: 0.4rem; }
.extra p { margin: 0; }

/* Configurador "Diseña su urna" */
.page-urnas .page-hero { padding-bottom: var(--space-md); }
.disena { padding-top: var(--space-md); }
.cfg { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-lg); align-items: start; background: var(--color-white); border-radius: 32px; padding: var(--space-lg); box-shadow: var(--shadow); }
.cfg-stage { padding: 11px; position: sticky; top: calc(var(--header-height) + 1rem); }
#cfg-canvas { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px var(--color-border), 0 0 0 10px var(--color-bg), 0 0 0 11px rgba(201, 162, 74, 0.55); }
.cfg-caption { display: flex; justify-content: space-between; gap: 1rem; margin: 0.75rem 0 0; font-family: var(--font-display); font-size: 1.25rem; color: var(--color-heading); }
#cfg-precio { color: var(--color-accent); font-variant-numeric: tabular-nums; }
.cfg-panel h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.cfg-steps { list-style: none; margin: var(--space-md) 0 0; padding: 0; display: grid; gap: var(--space-md); }
.cfg-steps label, .step-l { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; color: var(--color-heading); margin: 0 0 0.6rem; }
.step-n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--color-accent); color: #fff; font-size: 0.875rem; }
#cfg-nombre { width: 100%; min-height: 56px; padding: 0.6rem 1.1rem; font: inherit; font-size: 1.3rem; border: 1.5px solid var(--color-border); border-radius: var(--radius); background: var(--color-bg); color: var(--color-heading); }
#cfg-nombre:focus-visible { border-color: var(--color-accent); outline-offset: 2px; }
.hint { font-size: 0.875rem; color: var(--color-text-soft); margin: 0.45rem 0 0; }
.cfg-models { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 0.6rem; }
.cfg-model { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.3rem; padding: 0.35rem 0.3rem 0.5rem; background: var(--color-white); border: 1.5px solid var(--color-border); border-radius: 14px; font: inherit; font-size: 0.75rem; line-height: 1.3; text-align: center; color: var(--color-text); cursor: pointer; transition: border-color var(--transition), box-shadow var(--transition); }
.cfg-model img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 10px; }
.cfg-model:hover { border-color: var(--color-accent); }
.cfg-model[aria-pressed="true"] { border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(31, 69, 144, 0.18); color: var(--color-heading); font-weight: 600; }
.cfg-model[aria-pressed="true"]::after { content: "✓"; position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--color-accent); color: #fff; font-size: 0.75rem; display: grid; place-items: center; }
.cfg-msg { min-height: 1.4em; margin: 0.6rem 0 0; font-size: 0.9375rem; color: var(--color-text-soft); }

/* Catálogo */
.catalogo-sec { background: var(--color-bg); }
.filtros { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: var(--space-sm); }
.filtro { min-height: 44px; padding: 0.5rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--color-border); background: var(--color-white); font: inherit; font-weight: 600; color: var(--color-heading); cursor: pointer; transition: background-color var(--transition), border-color var(--transition), color var(--transition); }
.filtro span { font-weight: 400; color: var(--color-text-soft); margin-left: 0.2rem; }
.filtro:hover { border-color: var(--color-accent); }
.filtro[aria-pressed="true"] { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.filtro[aria-pressed="true"] span { color: #dbe4f7; }
.catalogo { list-style: none; margin: var(--space-md) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg) var(--space-md); }
.catalogo li { display: flex; flex-direction: column; }
.peana { margin: 0; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--color-white); border: 2px solid var(--color-halo); padding: 15%; display: grid; place-items: center; }
.peana img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.catalogo h3 { font-family: var(--font-body); font-size: 1.02rem; font-weight: 600; letter-spacing: 0; line-height: 1.3; margin: 0.9rem 0 0.1rem; }
.precio { margin: 0 0 0.25rem; color: var(--color-accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.item-actions { display: flex; flex-wrap: wrap; gap: 0 1rem; margin-top: auto; }
.item-actions a, .item-actions button { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 44px; padding: 0; border: 0; background: none; font: inherit; font-size: 0.9375rem; font-weight: 600; cursor: pointer; text-decoration: none; }
.item-actions svg { width: 18px; height: 18px; fill: currentColor; }
.item-wa { color: var(--color-wa); }
.item-ver { color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px; }

/* Nosotros */
.cifras-sec { padding-block: var(--space-lg); background: var(--color-white); }
.cifras { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
.cifras li { display: flex; flex-direction: column; border-left: 2px solid var(--color-halo); padding-left: 1rem; color: var(--color-text-soft); }
.cifras strong { font-family: var(--font-display); font-weight: 500; font-size: clamp(2rem, 4vw, 3rem); color: var(--color-heading); line-height: 1.1; }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
.mv-text { font-family: var(--font-display); font-size: clamp(1.3rem, 2.2vw, 1.65rem); line-height: 1.4; color: var(--color-heading); margin: 0; }
.confianza { background: var(--color-footer); color: #dbe4f7; }
.confianza h2, .confianza h3 { color: #fff; }
.confianza .eyebrow { color: #aebcd9; }
.confianza .split-head { position: static; }
.valores { list-style: none; margin: var(--space-md) 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.valores h3 { font-size: 1.2rem; margin-bottom: 0.2rem; }
.valores p { margin: 0; color: #c3cfe6; font-size: 0.975rem; }
.confianza .permisos-title { font-family: var(--font-body); font-size: 0.95rem; letter-spacing: 0.04em; color: var(--color-halo); font-weight: 600; margin-bottom: 0.75rem; }
.permisos { margin: 0; }
.permisos > div { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1rem; padding: 0.9rem 0; border-top: 1px solid rgba(255, 255, 255, 0.15); }
.permisos dt { color: #aebcd9; }
.permisos dd { margin: 0; color: #fff; }

/* Testimonios */
.quotes { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-md); margin-top: var(--space-sm); }
.quotes-2 { grid-template-columns: 1fr 1fr; }
.quote { margin: 0; padding: var(--space-md); background: var(--color-white); border-radius: var(--radius-lg); border: 1px solid var(--color-border); }
.quote blockquote { margin: 0 0 var(--space-sm); font-family: var(--font-display); font-size: 1.2rem; line-height: 1.45; color: var(--color-heading); }
.quote figcaption { font-size: 0.9375rem; color: var(--color-text-soft); }
.quote-main { grid-row: span 2; background: var(--color-panel); border: 0; display: flex; flex-direction: column; justify-content: center; }
.quote-main blockquote { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.quote figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 1rem; }
.quote-ext { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-accent); font-weight: 600; text-decoration: none; }
.quote-ext:hover { text-decoration: underline; }
.nota a { color: var(--color-accent); font-weight: 600; }

/* Contacto */
.contacto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); align-items: start; }
.contacto-info { display: grid; gap: var(--space-md); }
.c-card { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-md); }
.c-card h2 { font-size: 1.6rem; margin-bottom: 0.4rem; }
.c-card .small { margin: var(--space-sm) 0 0; }
.c-wa { border-color: #a9d8bf; background: #f1faf5; }
address { font-style: normal; margin-bottom: var(--space-sm); font-size: 1.1rem; }
.horario { border-collapse: collapse; }
.horario caption { text-align: left; font-weight: 600; color: var(--color-heading); padding-bottom: 0.25rem; }
.horario th, .horario td { text-align: left; padding: 0.25rem 1.5rem 0.25rem 0; font-weight: 400; font-variant-numeric: tabular-nums; }
.redes-list { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.25rem; }
.redes-list a { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; font-weight: 600; text-decoration: none; color: var(--color-heading); }
.redes-list svg { width: 22px; height: 22px; fill: var(--color-accent); }
.redes-list a:hover span { text-decoration: underline; }
.contacto-map { display: grid; gap: 0.25rem; position: sticky; top: calc(var(--header-height) + 1rem); }
.map-placeholder { aspect-ratio: 4 / 3; background: var(--color-panel); display: grid; place-items: center; border-radius: var(--radius-lg); border: 1px solid var(--color-border); }
.map-trigger { font: inherit; font-weight: 600; background: var(--color-accent); color: #fff; border: 0; min-height: 48px; padding: 0.7rem 1.5rem; border-radius: 999px; cursor: pointer; }
.map-trigger:hover { background: var(--color-accent-dark); }
.contacto-map iframe { width: 100%; aspect-ratio: 4 / 3; height: auto; border: 0; display: block; border-radius: var(--radius-lg); }
.contacto-map .link-more { margin-top: 0.25rem; }
.c-gdl { margin-top: var(--space-sm); }
.c-gdl p { margin: 0; }

/* Cierre y pie */
.cta-final { position: relative; background: var(--color-accent); color: #dbe4f7; padding-block: var(--space-lg); overflow: hidden; }
.cta-final::after { content: ""; position: absolute; left: -90px; top: 50%; width: 300px; aspect-ratio: 1; translate: 0 -50%; border: 2px solid rgba(201, 162, 74, 0.6); border-radius: 50%; pointer-events: none; }
.cta-final-in { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-md); }
.cta-final h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 0.3rem; }
.cta-final p { margin: 0; }
.cta-final-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cta-final .btn-wa, .urgente .btn-wa { box-shadow: none; }
.site-footer { background: var(--color-footer); color: #c3cfe6; padding-block: var(--space-lg) 0; font-size: 0.975rem; }
.site-footer a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 0.8fr 1fr 1fr; gap: var(--space-lg); padding-bottom: var(--space-md); }
.foot-logo { background: #fff; border-radius: var(--radius); padding: 6px; width: 64px; height: 64px; margin-bottom: 0.75rem; }
.foot-name { font-family: var(--font-display); font-size: 1.4rem; color: #fff; margin: 0 0 0.25rem; }
.foot-h { color: #fff; font-weight: 600; margin-bottom: 0.4rem; }
.foot-links { list-style: none; margin: 0; padding: 0; }
.foot-links a { display: inline-block; padding-block: 0.3rem; text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, 0.15); padding-block: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; font-size: 0.875rem; }
.foot-bottom p { margin: 0; }
.foot-legal a { display: inline-block; padding-block: 0.6rem; }
/* Páginas legales: texto largo legible */
.legal-sec { background: var(--color-white); }
.legal { max-width: 46rem; }
.legal h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin: var(--space-lg) 0 var(--space-xs); }
.legal p, .legal li { line-height: 1.7; }
.legal ol { padding-left: 1.4rem; display: grid; gap: 0.6rem; }
.legal a:not(.btn) { color: var(--color-accent); }
.legal-list { display: grid; gap: var(--space-sm); margin: 0; }
.legal-list > div { padding: var(--space-md); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-bg); }
.legal-list dt { font-family: var(--font-display); font-size: 1.25rem; color: var(--color-heading); margin-bottom: 0.35rem; }
.legal-list dd { margin: 0; font-variant-numeric: tabular-nums; }
.legal-actions { margin-top: var(--space-lg); }
.legal-actions svg { width: 20px; height: 20px; fill: currentColor; }

/* Responsive */
@media (max-width: 1080px) {
  .nav { gap: 1.1rem; }
  .strip-note { display: none; }
  .topstrip-in { justify-content: flex-end; }
}
@media (max-width: 900px) {
  section { padding-block: 3rem; }
  .bar { gap: 0.5rem; }
  .bar-wa span { display: none; }
  .bar-wa { width: 46px; min-height: 46px; padding: 0; }
  .nav-toggle { display: flex; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--color-white); border-bottom: 1px solid var(--color-border); padding: 0.5rem 1rem 1rem; display: none; }
  /* al flotar, el translate de .bar la vuelve el contenedor del menú */
  .site-header.is-floating .nav { top: calc(100% + 8px); border: 0; border-radius: 20px; box-shadow: var(--shadow); }
  .nav.is-open { display: flex; }
  .nav > a { padding: 0.9rem 0.25rem; border-bottom: 1px solid var(--color-border); background: none; }
  .nav-extra { display: block; padding-top: 0.75rem; color: var(--color-heading); }
  .social-nav a { width: 44px; height: 44px; border: 1px solid var(--color-border); }
  .topstrip-in { justify-content: space-between; }
  .hero { display: block; min-height: 0; padding-block: 0 3rem; }
  .hero::before { display: none; }
  .hero-video { position: static; height: auto; aspect-ratio: 1; max-height: 62svh; }
  .hero-in { padding-inline: 1rem; }
  .hero-copy { width: auto; margin: var(--space-md) 0 0; }
  .hero-sello { left: auto; right: 0.75rem; bottom: auto; top: calc(min(100vw, 62svh) - 84px - 0.75rem); width: 84px; border-width: 2px; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.55), 0 16px 30px -14px rgba(13, 28, 63, 0.6); }
  .sala-grid { grid-template-columns: 1fr; gap: var(--space-md); }
  .intro-grid, .video-grid, .siguenos-in, .split, .teaser-grid, .page-hero.has-img .ph-grid, .cfg, .mv-grid, .contacto-grid, .quotes, .quotes-2 { grid-template-columns: 1fr; }
  .intro-grid { gap: 0.25rem; }
  .split { gap: var(--space-md); }
  .split-head, .contacto-map { position: static; }
  .urgente::after, .cta-final::after { display: none; }
  .cfg-stage { top: var(--header-height); z-index: 5; background: var(--color-white); margin: -0.5rem -0.5rem 0; padding: 0.75rem 0.5rem 0.5rem; }
  #cfg-canvas { width: min(62%, 270px); margin-inline: auto; border-radius: 16px; box-shadow: 0 0 0 1px var(--color-border); }
  .cfg-caption { justify-content: center; gap: 0.75rem; font-size: 1.05rem; margin-top: 0.5rem; }
  .fan { height: 260px; }
  .fan::before { width: 250px; }
  .fan img { width: 150px; border-width: 4px; }
  .fan img:nth-child(2) { width: 165px; }
  .ruta { grid-template-columns: 2.6rem 1fr 44px; gap: 0.75rem; padding: 1rem 0.25rem; }
  .ruta img { display: none; }
  .ruta-n { font-size: 1.25rem; }
  .carril-btn { display: none; }
  .mv-grid:has(.ilus), .extras-grid:has(.ilus) { grid-template-columns: 1fr; }
  .extras-grid .ilus { grid-row: auto; }
  .ilus { max-width: 300px; }
  .extras-grid .ilus img { flex: none; aspect-ratio: 1; height: auto; }
  .ig-carril { grid-auto-columns: 68vw; }
  .tt-carril { grid-auto-columns: 62vw; overflow-x: auto; margin-inline: -1rem; padding-inline: 1rem; scroll-padding-inline: 1rem; }
  .ruta-go { width: 44px; height: 44px; }
  .pasos { grid-template-columns: 1fr 1fr; gap: var(--space-md) var(--space-sm); }
  .ph-img img { border-radius: 120px 20px 20px 20px; }
  .cfg { padding: 1.25rem; border-radius: 24px; gap: var(--space-md); }
  .catalogo { grid-template-columns: repeat(2, 1fr); gap: var(--space-md) var(--space-sm); }
  .extras-grid { grid-template-columns: 1fr; gap: var(--space-sm); }
  .cifras { grid-template-columns: 1fr 1fr; }
  .valores { grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
  .permisos > div { grid-template-columns: 1fr; gap: 0.1rem; }
  .quote-main { grid-row: auto; }
  .tabla-row { grid-template-columns: 1fr 1fr; }
  .tabla-row [role="rowheader"] { grid-column: 1 / -1; padding-bottom: 0.4rem; }
  .tabla-head > div:first-child { display: none; }
  .tabla-row:not(.tabla-head) > div[role="cell"]::before { display: block; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-soft); }
  .tabla-row:not(.tabla-head) > div[role="cell"]:nth-of-type(2)::before { content: "Individual"; }
  .tabla-row:not(.tabla-head) > div[role="cell"]:nth-of-type(3)::before { content: "Comunitaria"; }
  .tabla-foot > div[role="cell"] { flex-direction: column; align-items: stretch; }
  .tabla-foot .btn { padding-inline: 0.75rem; font-size: 0.9375rem; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: var(--space-md); }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .tabla-row > div { padding: 0.8rem 1rem; }
  .actions .btn, .cta-final-actions .btn { width: 100%; }  .catalogo h3 { font-size: 0.95rem; }
  .foot-grid { grid-template-columns: 1fr; }
  .siguenos-redes { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
