/* ════════════════════════════════════════════════════════════
   TRANSPORTES ALPINO — Escena (rediseño audaz)
   Se carga después de rediseno.css. Quitar este archivo y
   scripts/escena.js devuelve el sitio a la versión anterior.
   ════════════════════════════════════════════════════════════ */

/* ════════ TELÓN ENTRE SECCIONES ════════ */
.telon{
  position: fixed; inset: 0; z-index: 300;
  pointer-events: none; visibility: hidden;
}
.telon.run{ visibility: visible; }
.telon-oro, .telon-azul{ position: absolute; inset: 0; }
.telon-oro{ background: var(--gold); }
.telon-azul{
  background: var(--bg-deep);
  display: flex; align-items: center; justify-content: center;
}
.telon-azul img{ width: 92px; height: 92px; opacity: .9; }
.telon.run .telon-azul{ animation: telonSale .9s cubic-bezier(.76,0,.24,1) .12s both; }
.telon.run .telon-oro { animation: telonSale .9s cubic-bezier(.76,0,.24,1) .26s both; }
.telon.run .telon-azul img{ animation: telonLogo .7s cubic-bezier(.76,0,.24,1) both; }
@keyframes telonSale{
  from{ clip-path: inset(0 0 0 0); }
  to  { clip-path: inset(0 0 0 100%); }
}
@keyframes telonLogo{
  0%  { transform: scale(.6) rotate(-25deg); opacity: 0; }
  50% { transform: scale(1.05) rotate(0); opacity: 1; }
  100%{ transform: scale(1.4); opacity: 0; }
}

/* ════════ TÍTULOS PALABRA POR PALABRA ════════ */
.section-title .w{
  display: inline-block; overflow: hidden; vertical-align: bottom;
  padding: .14em .04em 0; margin: -.14em -.04em 0;
}
.section-title .w > span{
  display: inline-block;
  transform: translateY(110%) rotate(7deg);
  transform-origin: left bottom;
}
.page.active .section-title .w > span{
  animation: palabra 1s cubic-bezier(.16,1,.3,1) both;
  animation-delay: calc(.25s + var(--i, 0) * .09s);
}
body.con-telon .page.active .section-title .w > span{
  animation-delay: calc(.6s + var(--i, 0) * .09s);
}
@keyframes palabra{
  from{ transform: translateY(110%) rotate(7deg); filter: blur(8px); }
  to  { transform: none; filter: none; }
}

/* Línea del encabezado que se dibuja */
.page.active .section-line{
  transform-origin: left center;
  animation: linea 1.4s cubic-bezier(.16,1,.3,1) .5s both;
}
@keyframes linea{ from{ transform: scaleX(0); } }

/* ════════ NÚMERO GIGANTE DE FONDO ════════ */
.section[data-big]{ isolation: isolate; }
.section[data-big]::before{
  content: attr(data-big);
  position: absolute; z-index: -1; pointer-events: none;
  font-family: var(--font-display);
  font-size: clamp(11rem, 30vw, 30rem);
  line-height: .78; letter-spacing: -.04em;
  color: rgba(201,169,110,.05);
  -webkit-text-stroke: 1.5px rgba(201,169,110,.36);
  top: 1.5rem; right: 2rem;
}
.page.active .section[data-big]::before{
  animation: numeroEntra 1.6s cubic-bezier(.16,1,.3,1) .35s both;
}
@keyframes numeroEntra{
  from{ opacity: 0; transform: translateX(14%) skewX(-12deg); }
  to  { opacity: 1; transform: none; }
}

/* Entrada escalonada de tarjetas */
.page.active .serv-item,
.page.active .veh,
.page.active .stat-item,
.page.active .contact-block{
  animation: subeTarjeta .9s cubic-bezier(.16,1,.3,1) both;
}
.page.active .serv-item:nth-child(1){ animation-delay: .7s; }
.page.active .serv-item:nth-child(2){ animation-delay: .8s; }
.page.active .serv-item:nth-child(3){ animation-delay: .9s; }
.page.active .serv-item:nth-child(4){ animation-delay: 1s; }
@keyframes subeTarjeta{
  from{ opacity: 0; transform: translateY(40px) scale(.97); }
  to  { opacity: 1; transform: none; }
}

/* ════════ CADA SECCIÓN EN UNA POSICIÓN DISTINTA (escritorio) ════════ */
@media (min-width: 861px){

  /* 01 · Servicios → título a la DERECHA, número a la izquierda */
  .servicios .section-eyebrow{ justify-content: flex-end; }
  .servicios .section-eyebrow .section-line{ order: -1; }
  .servicios .section-title,
  .servicios .section-lead{ text-align: right; margin-left: auto; }
  .servicios .section-title{ font-size: clamp(3.4rem, 7vw, 7.5rem); line-height: .9; }
  .servicios .section-title .italic{ display: block; }
  .servicios[data-big]::before{ right: auto; left: calc(var(--sidebar-w) + 1rem); top: 3rem; }

  /* 02 · Flota → título enorme a la IZQUIERDA en diagonal */
  .flota .section-title{
    font-size: clamp(3.6rem, 8vw, 8.5rem); line-height: .88; max-width: 12ch;
  }
  .flota .section-title .italic{ display: block; padding-left: 1.2em; }
  .flota[data-big]::before{ top: 5rem; }

  /* 03 · Conócenos → título ABAJO, después del texto */
  .manifest{ display: flex; flex-direction: column; }
  .manifest .section-eyebrow{ order: 0; }
  .manifest .manifest-grid{ order: 1; }
  .manifest .section-title{
    order: 2; margin: 4.5rem 0 0; align-self: flex-end; text-align: right;
    font-size: clamp(3.6rem, 8.5vw, 9rem); line-height: .88;
  }
  .manifest .section-title .italic{ display: block; }
  .manifest[data-big]::before{ top: auto; bottom: 1rem; right: auto; left: calc(var(--sidebar-w) + 1rem); }

  /* 04 · Experiencia → todo CENTRADO alrededor del logo */
  .experiencia .section-eyebrow{ justify-content: center; }
  .experiencia .section-title{
    text-align: center; font-size: clamp(3.8rem, 9vw, 9.5rem); line-height: .9;
  }
  .experiencia .section-lead{ text-align: center; margin-left: auto; margin-right: auto; }
  .experiencia[data-big]::before{ right: 50%; transform: translateX(50%); top: 0; opacity: .45; }
  .page.active .experiencia[data-big]::before{ animation: none; }

  /* 05 · Cotizar → primera línea a la izquierda, "Hablemos" a la derecha */
  .contacto .section-title{ font-size: clamp(3rem, 6.5vw, 6.5rem); line-height: .9; }
  .contacto .section-title br{ display: none; }
  .contacto .section-title .italic{
    display: block; text-align: right; font-size: 1.7em; line-height: .85;
  }
  .contacto[data-big]::before{ display: none; }   /* el formulario manda */
}

/* ════════ EXPERIENCIA · LOGO GIGANTE Y ÓRBITA ════════ */
.orbital.orbital-xl{
  --logo: min(40vw, 62vh);
  width: 100%; max-width: none;
  aspect-ratio: auto;
  height: calc(var(--logo) + 290px);
  margin: 1rem auto 0;
}
.orbital-xl .orbital-core{ width: var(--logo); }
.orbital-xl .orbital-smoke{ width: calc(var(--logo) * 1.5); }
.orbital-xl .orbital-beam{ width: calc(var(--logo) * 1.9); }
.orbital-xl .orbit-item{ display: none; }

.orb{
  position: absolute; top: 0; left: 0; z-index: 4;
  white-space: nowrap; pointer-events: none;
  font-size: clamp(.7rem, 1vw, .9rem); font-weight: 500; letter-spacing: .08em;
  padding: .4rem .85rem; border-radius: 100px;
  background: rgba(10,14,31,.78);
  border: 1px solid rgba(201,169,110,.28);
  color: var(--cream);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  will-change: transform, opacity;
}

/* Tira de eventos que corre bajo la órbita */
.eventos-tira{
  overflow: hidden; margin: 1rem calc(-1 * var(--content-gap, 3rem)) 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 1.1rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.eventos-pista{
  display: inline-flex; align-items: center; gap: 2.2rem; white-space: nowrap;
  animation: pista 32s linear infinite;
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.6rem, 3.4vw, 3rem); text-transform: uppercase;
  color: var(--gold); letter-spacing: .01em;
}
.eventos-pista i{ font-style: normal; font-size: .5em; color: var(--cream); opacity: .6; }
@keyframes pista{ to{ transform: translateX(-50%); } }

@media (max-width: 1180px){
  .orbital.orbital-xl{ --logo: min(30vw, 56vh); height: calc(var(--logo) + 420px); }
}
@media (max-width: 860px){
  .orbital.orbital-xl{ --logo: 36vw; height: calc(var(--logo) + 540px); }
  .orb{ font-size: .58rem; padding: .26rem .55rem; letter-spacing: .04em;
        white-space: normal; max-width: 6.8rem; text-align: center; line-height: 1.25; }
  .section[data-big]::before{ font-size: 9rem; top: .5rem; right: .5rem; opacity: .55; }
  .eventos-tira{ margin-left: -1.5rem; margin-right: -1.5rem; }
}

@media (prefers-reduced-motion: reduce){
  .telon{ display: none; }
  .page.active .section-title .w > span,
  .page.active .section[data-big]::before,
  .page.active .section-line,
  .page.active .serv-item, .page.active .veh, .page.active .stat-item, .page.active .contact-block,
  .eventos-pista{ animation: none !important; transform: none; }
}

/* ════════════════════════════════════════════════
   RONDA 3 · logo flotante, haz de luz, carretera, servicios en cuadrados
   ════════════════════════════════════════════════ */

/* ── Logo que flota: sube, baja, se agranda y se achica ── */
.orbital.orbital-xl .orbital-logo,
.orbital.orbital-xl.play .orbital-logo{
  animation: logoFlota 7s ease-in-out infinite;
  filter: drop-shadow(0 -10px 40px rgba(245,241,232,.28)) drop-shadow(0 30px 60px rgba(201,169,110,.25));
}
@keyframes logoFlota{
  0%, 100%{ transform: translateY(0) scale(.92); }
  50%     { transform: translateY(-22px) scale(1.06); }
}
.orbital-xl .orbital-beam{ display: none; }

/* ── Haz de luz que cae del cielo sobre el logo ── */
.haz{
  position: absolute; z-index: 2; pointer-events: none;
  left: 50%; top: -60vh;
  width: calc(var(--logo) * 1.35);
  height: calc(60vh + 50% + var(--logo) * .35);
  transform: translateX(-50%);
  clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg,
    rgba(245,241,232,.0) 0%,
    rgba(245,241,232,.10) 35%,
    rgba(245,241,232,.20) 70%,
    rgba(201,169,110,.08) 86%,
    transparent 100%);
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
  animation: hazLatido 7s ease-in-out infinite;
}
/* Rayos que bajan por dentro del haz */
.haz-rayos{
  position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg,
    transparent 0 90px,
    rgba(255,250,235,.16) 120px,
    transparent 150px 240px);
  background-size: 100% 240px;
  animation: rayosCaen 2.6s linear infinite;
}
/* Charco de luz sobre el logo */
.orbital-xl .orbital-core::before{
  content: ''; position: absolute; left: 50%; top: 50%; z-index: -1;
  width: 130%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(245,241,232,.20), rgba(201,169,110,.08) 45%, transparent 68%);
  animation: hazLatido 7s ease-in-out infinite;
}
@keyframes hazLatido{
  0%, 100%{ opacity: .7; }
  50%     { opacity: 1; }
}
@keyframes rayosCaen{
  from{ background-position: 0 0; }
  to  { background-position: 0 240px; }
}

/* ── Carretera de clientes (de izquierda a derecha) ── */
.eventos-tira{ display: none; }
.carretera{
  position: relative; overflow: hidden;
  margin: 2.5rem calc(-1 * var(--content-gap, 3rem)) 0;
  padding: 1.4rem 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.25), transparent 30%, transparent 70%, rgba(0,0,0,.25)),
    #0d1024;
  border-top: 3px solid rgba(245,241,232,.55);
  border-bottom: 3px solid rgba(245,241,232,.55);
  box-shadow: 0 -18px 40px rgba(0,0,0,.35) inset;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.carril{ overflow: hidden; padding: .55rem 0; }
.pista{
  display: inline-flex; gap: 3.2rem; white-space: nowrap;
  animation: avanza 60s linear infinite;
}
.carril-b .pista{ animation-duration: 44s; }
@keyframes avanza{
  from{ transform: translateX(-50%); }
  to  { transform: translateX(0); }
}
/* Línea central segmentada que también avanza */
.linea-central{
  height: 4px; margin: .35rem 0;
  background: repeating-linear-gradient(90deg, var(--gold) 0 46px, transparent 46px 92px);
  background-size: 92px 4px;
  opacity: .85;
  animation: lineaAvanza 1.1s linear infinite;
}
@keyframes lineaAvanza{
  from{ background-position: 0 0; }
  to  { background-position: 92px 0; }
}
.vehiculo{
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(1rem, 1.7vw, 1.45rem); letter-spacing: .04em;
  color: var(--cream);
  padding: .5rem 1.1rem .5rem .8rem;
  border-radius: 8px 22px 22px 8px;
  background: linear-gradient(180deg, rgba(30,38,90,.95), rgba(14,18,46,.95));
  border: 1px solid rgba(201,169,110,.35);
  box-shadow: 0 6px 14px rgba(0,0,0,.45), 6px 0 18px -6px rgba(255,210,120,.35);
}
.vehiculo svg{
  width: 22px; height: 22px; flex: none;
  fill: none; stroke: var(--gold); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ── Servicios en 4 cuadrados centrados ── */
.serv-list{
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem; max-width: 1120px; margin: 0 auto;
}
.serv-item{ aspect-ratio: 1; position: relative; }
.serv-head{
  height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .8rem; text-align: center; padding: 1.4rem;
}
.serv-num{ position: absolute; top: 1rem; left: 1.1rem; }
.serv-icon{ width: 56px; height: 56px; transition: transform .5s var(--ease-out), color .3s; }
.serv-item:hover .serv-icon{ transform: translateY(-6px) scale(1.1); color: var(--gold); }
.serv-title{ font-size: clamp(1.1rem, 1.7vw, 1.5rem); }
.serv-hint{ font-size: .8rem; max-width: 24ch; padding-top: 0; }
.serv-chevron{ position: absolute; right: 1rem; bottom: 1rem; }
.serv-body{ display: none; }
.serv-item{
  transition: border-color .3s var(--ease-out), background-color .3s var(--ease-out), transform .45s var(--ease-out);
}
.serv-item:hover{ transform: translateY(-6px); }
.serv-item.open{ transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,.4), 0 0 0 1px var(--gold); }

/* Detalle del servicio elegido, bajo los cuadrados */
.serv-detalle{
  max-width: 1120px; margin: 1.4rem auto 0;
  border: 1px solid var(--gold); border-radius: 16px;
  background: rgba(26,32,74,.45);
  padding: 1.8rem 2rem;
  animation: subeTarjeta .6s cubic-bezier(.16,1,.3,1) both;
}
.serv-detalle[hidden]{ display: none !important; }
.serv-detalle h3{
  font-family: var(--font-display); color: var(--cream);
  font-size: clamp(1.4rem, 2.4vw, 2rem); margin-bottom: .8rem;
}
.serv-detalle p{ color: var(--text-secondary); line-height: 1.75; margin-bottom: 1rem; max-width: 70ch; }

@media (min-width: 861px){
  /* Servicios: encabezado centrado, igual que los cuadrados */
  .servicios .section-eyebrow{ justify-content: center; }
  .servicios .section-eyebrow .section-line{ order: 0; }
  .servicios .section-title, .servicios .section-lead{ text-align: center; margin-left: auto; margin-right: auto; }
  .servicios[data-big]::before{ left: calc(var(--sidebar-w) + 1rem); }
}
@media (max-width: 1024px){
  .serv-list{ grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; }
  .serv-icon{ display: block; }
}
@media (max-width: 560px){
  .serv-list{ gap: .8rem; }
  .serv-head{ padding: 1rem .8rem; gap: .5rem; }
  .serv-icon{ width: 40px; height: 40px; }
  .serv-title{ font-size: 1rem; }
  .serv-hint{ display: none; }
  .serv-detalle{ padding: 1.4rem 1.2rem; }
  .vehiculo{ font-size: .95rem; padding: .4rem .8rem .4rem .6rem; }
  .pista{ gap: 2rem; }
  .carretera{ margin-left: -1.5rem; margin-right: -1.5rem; }
  .haz{ top: -40vh; height: calc(40vh + 50% + var(--logo) * .35); }
}
@media (prefers-reduced-motion: reduce){
  .orbital.orbital-xl .orbital-logo, .haz, .haz-rayos, .orbital-xl .orbital-core::before,
  .pista, .linea-central, .serv-detalle{ animation: none !important; }
}
.page.active .serv-item{ animation-fill-mode: backwards; }  /* deja libre el efecto al pasar el mouse */

/* ════════════════════════════════════════════════
   RONDA 4 · logo 3D girando, titulares de clientes y eventos, portada
   ════════════════════════════════════════════════ */

/* ── Portada: título en dos líneas y frase dorada ── */
.hero-content{ max-width: none; }
.hero-title{ font-size: clamp(2.3rem, 11vw, 10rem); }
.hero-title-line > span{ white-space: nowrap; }
.hero-dorado{
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.3vw, 2.2rem);
  letter-spacing: .12em; text-transform: uppercase; line-height: 1.25;
  margin: -.6rem 0 2.2rem;
  background: linear-gradient(100deg, #b8925a 0%, #f3d99b 22%, #c9a96e 40%, #fff1c9 50%, #c9a96e 60%, #e9c983 80%, #b8925a 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 14px rgba(201,169,110,.35));
  opacity: 0; transform: translateY(14px);
  transition: opacity 1s .55s, transform 1s .55s var(--ease-out, ease);
  animation: oroBrilla 6s linear infinite;
}
.loaded .hero-dorado{ opacity: 1; transform: none; }
.hero-dorado-sep{ margin: 0 .35em; }
@keyframes oroBrilla{ from{ background-position: 100% 0; } to{ background-position: -150% 0; } }

/* ── Escenario del logo 3D ── */
.escenario3d{
  --logo: min(34vw, 46vh, 460px);
  position: relative; height: calc(var(--logo) + 3rem);
  margin: 1.5rem auto 2rem; display: grid; place-items: center;
}
.escenario3d .haz{ top: -50vh; height: calc(50vh + 50% + var(--logo) * .35); }
.charco{
  position: absolute; left: 50%; top: 50%; z-index: 1; pointer-events: none;
  width: calc(var(--logo) * 1.3); aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(245,241,232,.18), rgba(201,169,110,.08) 45%, transparent 68%);
  animation: hazLatido 7s ease-in-out infinite;
}
.logo3d-flota{
  position: relative; z-index: 3;
  width: var(--logo); height: var(--logo);
  animation: logoFlota 7s ease-in-out infinite;
}
.logo3d{
  width: 100%; height: 100%; display: block;
  background: transparent; --poster-color: transparent;
  filter: drop-shadow(0 30px 50px rgba(201,169,110,.25));
}
.logo3d-respaldo{
  display: none; position: absolute; inset: 12%; width: 76%; height: auto; object-fit: contain;
}
/* Si el 3D no puede cargar (ej. al abrir el archivo sin servidor) se ve el logo plano */
.escenario3d.sin-3d .logo3d{ display: none; }
.escenario3d.sin-3d .logo3d-respaldo{ display: block; }

/* ── Titulares: Clientes | Eventos respaldados ── */
.titulares{
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem;
  max-width: 1180px; margin: 0 auto;
}
.titular{
  position: relative; padding: 2rem 1.8rem 2.2rem; border-radius: 22px;
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid rgba(245,241,232,.10); overflow: hidden;
}
.titular::before{
  content: ''; position: absolute; inset: -40% -20% auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, var(--tono), transparent 65%); opacity: .22; pointer-events: none;
  animation: hazLatido 6s ease-in-out infinite;
}
.titular-clientes{ --tono: #ff7a59; }
.titular-eventos { --tono: #4cc9f0; }
.titular-head{
  position: relative; display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap;
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(1.7rem, 3.2vw, 2.8rem); letter-spacing: .04em; line-height: 1;
  color: var(--cream); margin: 0 0 1.5rem;
}
.titular-num{
  font-size: 1.6em; line-height: .8;
  background: linear-gradient(135deg, var(--tono), #c9a96e);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.chips{ position: relative; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.chip{
  --c: #c9a96e;
  font-family: var(--font-display); font-size: clamp(1rem, 1.25vw, 1.2rem); letter-spacing: .03em;
  padding: .5rem 1rem .45rem; border-radius: 999px;
  color: var(--c); border: 1.5px solid color-mix(in srgb, var(--c) 60%, transparent);
  background: color-mix(in srgb, var(--c) 12%, transparent);
  cursor: default; transition: transform .25s, background .25s, color .25s, box-shadow .25s;
}
.chip:nth-child(8n+1){ --c: #ffb703; }
.chip:nth-child(8n+2){ --c: #ff7a59; }
.chip:nth-child(8n+3){ --c: #2ec4b6; }
.chip:nth-child(8n+4){ --c: #b49bff; }
.chip:nth-child(8n+5){ --c: #ff6fae; }
.chip:nth-child(8n+6){ --c: #b8e04a; }
.chip:nth-child(8n+7){ --c: #4cc9f0; }
.chip:nth-child(8n+8){ --c: #e9c983; }
.chip:hover{
  color: #07091a; background: var(--c);
  transform: translateY(-4px) rotate(-3deg) scale(1.06);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--c) 40%, transparent);
}
.chip:nth-child(even):hover{ transform: translateY(-4px) rotate(3deg) scale(1.06); }
.page.active .chip{ animation: chipEntra .6s cubic-bezier(.2,1.4,.4,1) backwards; animation-delay: calc(.5s + var(--n) * 45ms); }
@keyframes chipEntra{ from{ opacity: 0; transform: translateY(18px) scale(.7) rotate(-6deg); } }

@media (max-width: 860px){
  .titulares{ grid-template-columns: 1fr; gap: 1.5rem; }
  .escenario3d{ --logo: min(78vw, 46vh, 380px); }
}
@media (max-width: 560px){
  .titular{ padding: 1.5rem 1.1rem 1.7rem; }
  .chip{ font-size: .95rem; padding: .4rem .8rem .35rem; }
  .escenario3d .haz{ top: -35vh; height: calc(35vh + 50% + var(--logo) * .35); }
}
@media (prefers-reduced-motion: reduce){
  .logo3d-flota, .charco, .titular::before, .page.active .chip, .hero-dorado{ animation: none !important; }
}
.hero-dorado-parte{ white-space: nowrap; }
@media (max-width: 560px){
  .hero-dorado-parte{ display: block; }
  .hero-dorado-sep{ display: none; }
}

/* ════════════════════════════════════════════════
   RONDA 5 · Flota en 2 líneas, vehículos 3D, chips con 3 colores animados
   ════════════════════════════════════════════════ */

/* ── Título de Flota: dos líneas, sin cortes ── */
.flota .section-title{ max-width: none; }
.flota .section-title .italic{ display: block; white-space: nowrap; }
@media (min-width: 861px){
  .flota .section-title{ font-size: clamp(3.2rem, 6.4vw, 7.5rem); }
  .flota .section-title .italic{ padding-left: .8em; }
}
@media (max-width: 860px){
  .flota .section-title{ font-size: clamp(2rem, 10vw, 4rem); }
}

/* ── Vehículos en 3D que se pueden girar ── */
.veh-3d{ padding: .6rem .6rem 1rem; position: relative; overflow: hidden; }
.veh-3d::before{
  content: ''; position: absolute; left: 50%; top: 8%; width: 80%; aspect-ratio: 1; border-radius: 50%;
  transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(circle, rgba(245,241,232,.14), rgba(201,169,110,.06) 45%, transparent 68%);
  animation: hazLatido 7s ease-in-out infinite;
}
.veh-modelo{
  position: relative; width: 100%; height: clamp(260px, 30vw, 380px); display: block;
  background: transparent; --poster-color: transparent; cursor: grab;
}
.veh-modelo:active{ cursor: grabbing; }
.veh-3d .veh-visual-note{ color: var(--gold); opacity: .8; }

/* ── Clientes y eventos: solo 3 colores, siempre en movimiento ── */
.titular-clientes{ --tono: #c9a96e; }
.titular-eventos { --tono: #7fa8ff; }
.chip:nth-child(3n+1){ --c: #c9a96e; }
.chip:nth-child(3n+2){ --c: #f5f1e8; }
.chip:nth-child(3n+3){ --c: #7fa8ff; }
.page.active .chip{
  animation: chipEntra .6s cubic-bezier(.2,1.4,.4,1) backwards, chipLuz 9s ease-in-out infinite;
  animation-delay: calc(.5s + var(--n) * 45ms), calc(1.4s + var(--n) * .55s);
}
@keyframes chipLuz{
  0%, 9%, 100%{ background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--c); transform: none; box-shadow: none; }
  4%{ background: var(--c); color: #07091a; transform: translateY(-4px) scale(1.07);
      box-shadow: 0 8px 22px color-mix(in srgb, var(--c) 45%, transparent); }
}
@media (prefers-reduced-motion: reduce){
  .page.active .chip, .veh-3d::before{ animation: none !important; }
}
/* la cursiva inclinada no se corta dentro de la máscara de cada palabra */
.section-title .italic .w{ padding-right: .14em; margin-right: -.14em; }

/* Ronda 6 · barra de nombres: sin hueco entre mitades para que el bucle sea perfecto */
.pista{ gap: 0; }
.pista .vehiculo{ margin-right: 3.2rem; }
.veh-fallback{ display: none; }
.veh-3d.sin-3d .veh-modelo{ display: none; }
.veh-3d.sin-3d .veh-fallback{ display: block; }
.veh-3d.sin-3d .veh-fallback svg{ max-height: 300px; margin: 0 auto; }
.veh-3d.sin-3d .veh-visual-note{ display: none; }
