/* Rey Electric — colores y tipografías de brands/rey-electric/BRAND.md */
@font-face { font-family: 'Bebas Neue'; src: url('assets/fonts/bebas-neue.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Open Sans'; src: url('assets/fonts/open-sans-var.woff2') format('woff2'); font-weight: 300 800; font-display: swap; }
@font-face { font-family: 'Open Sans'; src: url('assets/fonts/open-sans-italic-var.woff2') format('woff2'); font-weight: 300 800; font-style: italic; font-display: swap; }

:root {
  --navy: #292A6C;
  --azul: #2A3A9F;
  --dorado: #C69B3B;
  --dorado-claro: #F1D79B;
  --tinta: #16172f;
  --gris: #f3f4f8;
  --borde: #dfe1ea;
  --whatsapp: #1fa855;
  --radio: 14px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: #fff; color: var(--tinta); font: 400 17px/1.6 'Open Sans', system-ui, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* Bilingüe: el atributo lang de <html> decide qué texto se ve */
html[lang="en"] .es, html[lang="es"] .en { display: none !important; }

/* Botones */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  font: 800 italic 15px/1 'Open Sans', sans-serif; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn--lg { padding: 16px 28px; font-size: 17px; }
.btn--gold { background: var(--dorado); color: var(--navy); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--whatsapp { background: var(--whatsapp); color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.75); color: #fff; }

/* Barra superior */
.topbar { background: var(--navy); color: #fff; font-size: 14px; }
.topbar__in { display: flex; align-items: center; gap: 18px; min-height: 40px; }
.topbar__pulse { font-weight: 700; font-style: italic; display: inline-flex; align-items: center; gap: 8px; }
.topbar__pulse::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; animation: pulso 1.6s infinite; }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(61,220,132,.7); } 100% { box-shadow: 0 0 0 10px rgba(61,220,132,0); } }
.topbar__phone { white-space: nowrap; margin-left: auto; font-weight: 800; font-style: italic; text-decoration: none; color: var(--dorado-claro); }
.lang { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; padding: 4px 12px;
  font: 700 12px 'Open Sans', sans-serif; letter-spacing: .1em; cursor: pointer; }
.lang:hover { background: rgba(255,255,255,.12); }

/* Encabezado */
.header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--borde); }
.header__in { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.header__logo img { height: 58px; width: auto; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 700; color: var(--navy); }
.nav a:hover { color: var(--dorado); }
/* Botón de menú (solo tableta y celular) */
.menu-btn { display: none; order: 3; width: 46px; height: 46px; flex: 0 0 46px; align-items: center; justify-content: center;
            border: 2px solid var(--navy); border-radius: 10px; background: #fff; cursor: pointer; padding: 0; }
.menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after { display: block; width: 22px; height: 2.5px; background: var(--navy);
            border-radius: 2px; position: relative; transition: transform .2s, background .2s; }
.menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; }
.menu-btn__bars::before { top: -7px; }
.menu-btn__bars::after { top: 7px; }
.menu-abierto .menu-btn__bars { background: transparent; }
.menu-abierto .menu-btn__bars::before { transform: translateY(7px) rotate(45deg); }
.menu-abierto .menu-btn__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; color: #fff; overflow: hidden; background: #16173f; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(22,23,64,.94) 0%, rgba(41,42,108,.80) 48%, rgba(41,42,108,.28) 100%),
              linear-gradient(0deg, rgba(22,23,64,.85) 0%, rgba(22,23,64,0) 32%); }
.hero__in { position: relative; z-index: 3; padding: 110px 20px 120px; }
.hero__kicker { margin: 0; display: flex; align-items: center; gap: 14px; font-style: italic; font-size: 20px; color: var(--dorado-claro); }
.hero__title { margin: 6px 0 14px; font: 400 clamp(52px, 8vw, 104px)/.95 'Bebas Neue', sans-serif; letter-spacing: .01em; color: var(--dorado-claro); }
.hero__sub { margin: 0 0 32px; font-weight: 700; font-style: italic; letter-spacing: .03em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero de portada: fotos que rotan, entrada tipo motion graphics y puntos de navegación */
.hero:not(.hero--small) { min-height: min(860px, calc(100vh - 110px)); display: flex; flex-direction: column; justify-content: center; }
.hero:not(.hero--small) .hero__in { width: 100%; padding-top: 56px; padding-bottom: 104px; }
.hero:not(.hero--small) .hero__title { font-size: clamp(46px, min(6.4vw, 9.5vh), 96px); }
.hero__slides { position: absolute; inset: 0; z-index: 0; }
.hero__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero__slide.activa { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transform: scale(1.12); }
.hero__slide.activa img { animation: hero-kb 8s ease-out forwards; }
.hero__slide:nth-child(even).activa img { animation-name: hero-kb2; }
@keyframes hero-kb { from { transform: scale(1.18) translate(1.5%, 1%); } to { transform: scale(1.04) translate(-1%, 0); } }
@keyframes hero-kb2 { from { transform: scale(1.04) translate(-1.5%, 0); } to { transform: scale(1.16) translate(1%, -1%); } }
/* Rótulo de la obra como burbuja de chat: aparece, "escribe" (tres puntitos) y luego muestra cliente + ciudad */
.hero__caps { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.hero__cap { position: absolute; right: max(20px, calc((100vw - var(--wrap)) / 2 + 20px)); bottom: 22px;
  display: flex; align-items: flex-end; gap: 10px; opacity: 0; transform-origin: 100% 100%; transform: scale(.4) translateY(20px);
  transition: opacity .25s, transform .25s; }
.hero__cap.activa { opacity: 1; transform: none; transition: opacity .35s .5s, transform .55s .5s cubic-bezier(.34,1.56,.64,1); }
.hero__bubble { position: relative; display: grid; min-width: 74px; min-height: 46px; padding: 10px 16px 11px; border-radius: 18px 18px 4px 18px;
  background: #fff; color: var(--navy); box-shadow: 0 14px 30px rgba(10,10,40,.35); font-size: 13px; font-weight: 700; font-style: italic; line-height: 1.3; }
.hero__bubble::after { content: ''; position: absolute; right: -7px; bottom: 0; width: 16px; height: 14px; background: #fff;
  clip-path: polygon(0 0, 100% 100%, 0 100%); }
.hero__bubble > * { grid-area: 1 / 1; }
.hero__bubble-txt { opacity: 0; }
.hero__bubble-txt b { display: block; font: 400 21px/1 'Bebas Neue', sans-serif; letter-spacing: .04em; font-style: normal; color: var(--navy); }
.hero__bubble-txt b::before { content: ''; display: inline-block; width: 8px; height: 8px; margin: 0 7px 3px 0; border-radius: 50%; background: #2ecc71;
  box-shadow: 0 0 0 3px rgba(46,204,113,.25); vertical-align: middle; }
.hero__typing { display: flex; gap: 5px; align-items: center; justify-content: center; opacity: 0; }
.hero__typing i { width: 8px; height: 8px; border-radius: 50%; background: #9aa0c4; animation: typing 1s ease-in-out infinite; }
.hero__typing i:nth-child(2) { animation-delay: .15s; }
.hero__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
.hero__cap.activa .hero__typing { animation: typing-on 1.5s .6s forwards; }
.hero__cap.activa .hero__bubble-txt { animation: txt-on .4s 1.6s forwards; }
@keyframes typing-on { 0% { opacity: 0; } 8%, 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes txt-on { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.hero__avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 2px solid var(--dorado);
  box-shadow: 0 6px 14px rgba(0,0,0,.3); object-fit: contain; padding: 3px; }

/* Capa de efectos: patrón de rayos que se desplaza, destello dorado al cambiar de foto y rayo que se dibuja */
.hero__fx { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.hero__pattern { position: absolute; inset: -40%; background: url('assets/img/patron-rayos.webp') 0 0 / 520px auto repeat;
  opacity: .08; mix-blend-mode: screen; animation: hero-drift 40s linear infinite; }
@keyframes hero-drift { to { transform: translate(-520px, -260px); } }
.hero__sweep { position: absolute; top: -20%; bottom: -20%; width: 34%; left: -50%;
  background: linear-gradient(100deg, transparent 0%, rgba(241,215,155,0) 30%, rgba(241,215,155,.28) 50%, rgba(241,215,155,0) 70%, transparent 100%);
  transform: skewX(-18deg); }
.hero.cambio .hero__sweep { animation: hero-sweep 1.3s cubic-bezier(.6,.05,.3,1); }
@keyframes hero-sweep { from { left: -50%; } to { left: 120%; } }
.hero__bolt { position: absolute; right: max(30px, calc((100vw - var(--wrap)) / 2 + 60px)); top: 50%; height: min(60%, 420px);
  transform: translateY(-62%) rotate(8deg); filter: drop-shadow(0 0 22px rgba(198,155,59,.55)); overflow: visible; }
.hero__bolt path { fill: rgba(198,155,59,0); stroke: var(--dorado); stroke-width: 2.2; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: bolt-draw 1.6s .9s cubic-bezier(.65,0,.35,1) forwards, bolt-fill .8s 2.4s ease forwards, bolt-pulse 3.2s 3.4s ease-in-out infinite; }
@keyframes bolt-draw { to { stroke-dashoffset: 0; } }
@keyframes bolt-fill { to { fill: rgba(198,155,59,.16); } }
@keyframes bolt-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }

/* Entrada del texto: línea dorada que crece, renglones del título que suben desde una máscara, el resto en cascada */
.hero__line { display: inline-block; flex: none; width: 0; height: 3px; background: var(--dorado); border-radius: 2px; animation: hero-line .7s .15s cubic-bezier(.65,0,.35,1) forwards; }
@keyframes hero-line { to { width: 54px; } }
.hero__row { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__row > span { display: inline-block; transform: translateY(105%); animation: hero-up .9s cubic-bezier(.2,.8,.2,1) forwards; }
.hero__row:nth-child(1) > span { animation-delay: .35s; }
.hero__row:nth-child(2) > span { animation-delay: .5s; }
.hero__row:nth-child(3) > span { animation-delay: .65s; }
@keyframes hero-up { to { transform: none; } }
.hero__title em { font-style: normal; background: linear-gradient(90deg, #fff 0%, #fff 35%, var(--dorado) 50%, #fff 65%, #fff 100%) 0 0 / 300% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #fff; animation: hero-shine 5s 1.8s ease-in-out infinite; }
@keyframes hero-shine { 0% { background-position: 100% 0; } 45%, 100% { background-position: 0 0; } }
.hero:not(.hero--small) .hero__kicker > span:not(.hero__line), .hero:not(.hero--small) .hero__sub,
.hero:not(.hero--small) .hero__ctas > *, .hero__stats li { opacity: 0; transform: translateY(18px); animation: hero-in .7s cubic-bezier(.2,.8,.2,1) forwards; }
.hero:not(.hero--small) .hero__kicker > span:not(.hero__line) { animation-delay: .25s; }
.hero:not(.hero--small) .hero__sub { animation-delay: .85s; }
.hero:not(.hero--small) .hero__ctas > :nth-child(1) { animation-delay: 1s; }
.hero:not(.hero--small) .hero__ctas > :nth-child(2) { animation-delay: 1.1s; }
.hero:not(.hero--small) .hero__ctas > :nth-child(3) { animation-delay: 1.2s; }
@keyframes hero-in { to { opacity: 1; transform: none; } }

/* Tarjeta del Rey (tipo foto instantánea): la ventana recorta el dibujo justo donde viene cortado
   (izquierda y abajo) y deja que la corona sobresalga por arriba. Entra girando con rebote y luego flota. */
.hero__card { position: absolute; z-index: 3; right: 20px; top: 47%; width: clamp(260px, min(24vw, 44vh), 330px);
  translate: 0 -50%; rotate: 4deg; padding: 14px 14px 0; border-radius: 20px; background: #fff; color: var(--navy);
  text-decoration: none; box-shadow: 0 34px 60px -12px rgba(0,0,0,.55), 0 10px 22px rgba(0,0,0,.25);
  opacity: 0; animation: card-in 1s 1.1s cubic-bezier(.34,1.56,.64,1) forwards, card-float 6s 2.2s ease-in-out infinite;
  transition: rotate .35s ease, scale .35s ease; }
.hero__card:hover, .hero__card:focus-visible { rotate: 0deg; scale: 1.04; animation-play-state: running, paused; }
.hero__card:focus-visible { outline: 3px solid var(--dorado); outline-offset: 6px; }
@keyframes card-in { from { opacity: 0; rotate: -16deg; scale: .7; translate: 40px -40%; } to { opacity: 1; rotate: 4deg; scale: 1; translate: 0 -50%; } }
@keyframes card-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
/* Cinta adhesiva arriba, como foto pegada */
.hero__card::before { content: ''; position: absolute; z-index: 2; top: -14px; left: 50%; width: 92px; height: 28px; translate: -50% 0; rotate: -4deg;
  background: rgba(241,215,155,.85); box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.hero__card-win { position: relative; display: block; aspect-ratio: 1 / .84; border-radius: 12px;
  background: radial-gradient(circle at 72% 28%, #4656c9 0%, var(--azul) 35%, var(--navy) 75%);
  clip-path: inset(-60% 0 0 0 round 0 0 12px 12px); }
.hero__card-win::before { content: ''; position: absolute; inset: 0; border-radius: 12px; opacity: .18;
  background: url('assets/img/patron-rayos.webp') center / 260px auto; }
.hero__card-win img { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; transform: translateY(40%);
  animation: rey-pop .8s 1.7s cubic-bezier(.34,1.4,.64,1) forwards; filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); }
@keyframes rey-pop { to { transform: translateY(0); } }
.hero__card-foot { display: block; padding: 12px 4px 14px; text-align: center; font-size: 13px; font-weight: 800; font-style: italic; }
.hero__card-stars { display: block; color: var(--dorado); font-size: 20px; letter-spacing: .12em; font-style: normal; line-height: 1.1; }
/* Rayitos dorados alrededor de las fotos del Rey: chispazos que parpadean como corriente eléctrica */
.hero__spark { position: absolute; z-index: 3; width: 26px; height: 40px; opacity: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 28'%3E%3Cpath d='M11 0 1 16h7l-2 12 11-17h-7l3-11z' fill='%23F1D79B' stroke='%23C69B3B' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 0 6px rgba(241,215,155,.95)); animation: spark 2.6s linear infinite; }
.hero__spark--1 { top: 14%; right: -22px; rotate: 14deg; animation-delay: 2.4s; }
.hero__spark--2 { top: -34px; left: 10%; width: 20px; height: 31px; rotate: -12deg; animation-delay: 3.2s; }
.hero__spark--3 { bottom: 26%; left: -22px; width: 18px; height: 28px; rotate: -20deg; animation-delay: 4s; }
@keyframes spark {
  0%, 100% { opacity: 0; transform: scale(.4); }
  6% { opacity: 1; transform: scale(1.15); }
  10% { opacity: .2; transform: scale(1); }
  14% { opacity: 1; transform: scale(1.05); }
  20% { opacity: .3; }
  24% { opacity: 1; transform: scale(1); }
  40% { opacity: 0; transform: scale(.8); }
}
@media (max-width: 960px) {
  .hero__card { display: none; }
  .reviews__rey { display: block; }
  /* Burbuja del proyecto arriba a la derecha para no taparse con las cifras */
  .hero__cap { top: 18px; bottom: auto; right: 20px; align-items: flex-start; transform-origin: 100% 0; }
  .hero__bubble { border-radius: 18px 4px 18px 18px; }
  .hero__bubble::after { top: 0; bottom: auto; clip-path: polygon(0 0, 100% 0, 0 100%); }
}
@media (min-width: 961px) { .hero__bolt { right: max(260px, calc((100vw - var(--wrap)) / 2 + 300px)); height: min(46%, 320px); opacity: .55; } }
@media (prefers-reduced-motion: reduce) {
  .hero__card { animation: none; opacity: 1; }
  .hero__card-win img { animation: none; transform: none; }
  .hero__spark { display: none; }
}

/* Personajes del Rey en foto instantánea (por qué nosotros, financiamiento, contacto, careers).
   La ventana recorta el dibujo en la base y deja que la corona sobresalga; entran girando al aparecer en pantalla. */
.foto-rey { --rot: 4deg; position: relative; margin: 0; padding: 14px 14px 0; border-radius: 20px; background: #fff; color: var(--navy);
  rotate: var(--rot); box-shadow: 0 34px 60px -14px rgba(10,10,40,.55), 0 10px 22px rgba(10,10,40,.2); opacity: 0; scale: .7; }
.foto-rey::before { content: ''; position: absolute; z-index: 2; top: 2px; left: -18px; width: 92px; height: 26px; rotate: -38deg;
  background: rgba(241,215,155,.9); box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.foto-rey__win { position: relative; display: block; aspect-ratio: 1 / .9; border-radius: 12px;
  background: radial-gradient(circle at 70% 26%, #4656c9 0%, var(--azul) 35%, var(--navy) 78%); clip-path: inset(-60% 0 0 0 round 0 0 12px 12px); }
.foto-rey__win::before { content: ''; position: absolute; inset: 0; border-radius: 12px; opacity: .18; background: url('assets/img/patron-rayos.webp') center / 240px auto; }
.foto-rey__win img { position: absolute; left: 50%; bottom: 0; height: 112%; width: auto; max-width: none; translate: -50% 0;
  transform: translateY(45%); filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); }
.foto-rey figcaption { padding: 12px 6px 14px; text-align: center; font-size: 15px; font-weight: 800; font-style: italic; line-height: 1.25; }
.foto-rey .hero__spark { animation-play-state: paused; }
.foto-rey .hero__spark--1 { top: 14%; right: -22px; }
.foto-rey .hero__spark--2 { top: -34px; left: 12%; }
.foto-rey .hero__spark--3 { bottom: 24%; left: -22px; }
.foto-rey.entra { animation: foto-in 1s cubic-bezier(.34,1.56,.64,1) forwards, foto-float 6s 1.1s ease-in-out infinite; }
.foto-rey.entra img { animation: rey-pop .8s .5s cubic-bezier(.34,1.4,.64,1) forwards; }
.foto-rey.entra .hero__spark { animation-play-state: running; }
.foto-rey:hover { rotate: 0deg; scale: 1.03; transition: rotate .35s, scale .35s; }
@keyframes foto-in { from { opacity: 0; scale: .6; rotate: calc(var(--rot) * -4); } to { opacity: 1; scale: 1; rotate: var(--rot); } }
@keyframes foto-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) {
  .foto-rey { opacity: 1; scale: 1; animation: none !important; }
  .foto-rey__win img { transform: none; animation: none !important; }
  .foto-rey .hero__spark { display: none; }
}

/* Cifras que cuentan */
.hero__stats { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-wrap: wrap; }
.hero__stats li { padding: 4px 26px; border-left: 2px solid rgba(241,215,155,.35); }
.hero__stats li:first-child { padding-left: 0; border-left: 0; }
.hero__stats li:nth-child(1) { animation-delay: 1.35s; }
.hero__stats li:nth-child(2) { animation-delay: 1.5s; }
.hero__stats li:nth-child(3) { animation-delay: 1.65s; }
.hero__stats b { display: block; font: 400 40px/1 'Bebas Neue', sans-serif; color: var(--dorado-claro); letter-spacing: .03em; }
.hero__stats span { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }

/* Puntos de navegación con barra de avance */
.hero__nav { position: absolute; left: 0; right: 0; bottom: 30px; z-index: 5; display: flex; justify-content: center; pointer-events: none; }
.hero__dots { display: flex; gap: 10px; padding: 9px 13px; border-radius: 999px; background: rgba(22,23,64,.5); backdrop-filter: blur(6px); pointer-events: auto; }
.hero__dots button { position: relative; width: 12px; height: 12px; padding: 0; border: 0; border-radius: 999px; overflow: hidden;
  background: rgba(255,255,255,.45); cursor: pointer; transition: width .35s ease, background .2s; }
.hero__dots button:hover { background: rgba(255,255,255,.85); }
.hero__dots button[aria-selected="true"] { width: 42px; background: rgba(255,255,255,.3); }
.hero__dots button[aria-selected="true"]::after { content: ''; position: absolute; inset: 0; background: var(--dorado);
  transform-origin: left; transform: scaleX(0); animation: hero-avance var(--dur, 6s) linear forwards; }
.hero.pausado .hero__dots button::after { animation-play-state: paused; }
@keyframes hero-avance { to { transform: scaleX(1); } }
.hero__dots button:focus-visible { outline: 2px solid var(--dorado-claro); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .hero__slide.activa img, .hero__pattern, .hero__title em, .hero.cambio .hero__sweep { animation: none !important; }
  .hero__bolt path { animation: none; stroke-dashoffset: 0; fill: rgba(198,155,59,.16); }
  .hero__row > span, .hero:not(.hero--small) .hero__kicker > span, .hero:not(.hero--small) .hero__sub,
  .hero:not(.hero--small) .hero__ctas > *, .hero__stats li { animation: none !important; opacity: 1; transform: none; }
  .hero__line { width: 54px; animation: none; }
  .hero__typing { display: none; }
  .hero__cap.activa .hero__bubble-txt { animation: none; opacity: 1; }
}

/* Insignias */
.badges { background: #fff; border-bottom: 1px solid var(--borde); }
.badges__in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; align-items: center; padding: 34px 20px; }
.badges img { max-height: 110px; width: auto; margin: 0 auto; }

/* Clientes: dos filas de logos que se desplazan en sentidos opuestos */
.clients { background: var(--navy) url('assets/img/patron-rayos.webp') center / cover; color: #fff; padding: 80px 0 72px; overflow: hidden; }
.clients .wrap { text-align: center; }
.clients .lead { margin: 0 auto 40px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee + .marquee { margin-top: 18px; }
.marquee__track { display: flex; gap: 18px; width: max-content; margin: 0; padding: 0; list-style: none; animation: desplazar 60s linear infinite; }
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track img { width: 132px; height: 132px; border-radius: 22px; box-shadow: 0 8px 20px rgba(0,0,0,.25); transition: transform .2s; }
.marquee__track img:hover { transform: scale(1.06); }
@keyframes desplazar { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; padding: 0 20px; }
  .marquee__track [aria-hidden] { display: none; }
}

/* Secciones */
.section { padding: 96px 0; }
.section--light { background: var(--gris); }
.section--navy { background: var(--navy); color: #fff; }
.eyebrow { margin: 0 0 6px; font-weight: 800; font-style: italic; letter-spacing: .2em; text-transform: uppercase; font-size: 13px; color: var(--azul); }
.eyebrow--gold { color: var(--dorado); }
.h2 { margin: 0 0 22px; font: 400 clamp(40px, 5vw, 64px)/1 'Bebas Neue', sans-serif; color: var(--navy); }
.h2--light { color: #fff; }
.lead { font-size: 18px; max-width: 60ch; }
.lead--light { color: rgba(255,255,255,.88); }

/* Servicios */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 34px; }
.card { border: 1px solid var(--borde); border-radius: var(--radio); padding: 30px; background: #fff; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(41,42,108,.12); border-color: var(--dorado); }
.card__icon { width: 54px; height: 54px; border-radius: 12px; background: var(--navy); display: grid; place-items: center; }
.card__icon svg { width: 28px; height: 28px; fill: var(--dorado); }
.card h3 { margin: 18px 0 8px; font: 800 italic 22px 'Open Sans', sans-serif; color: var(--navy); text-transform: uppercase; }
.card p { margin: 0 0 18px; color: #3d3f5c; }
.card__link { font-weight: 800; color: var(--azul); text-decoration: none; }

/* Por qué nosotros */
.why { display: grid; grid-template-columns: 420px 1fr; gap: 56px; align-items: center; }
.why__list { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 14px; }
.why__list li { padding-left: 34px; position: relative; }
.why__list li::before { content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 22px; background: var(--dorado);
  clip-path: polygon(55% 0, 0 58%, 42% 58%, 30% 100%, 100% 38%, 55% 38%); }
.why__list b { display: block; color: var(--dorado-claro); font-style: italic; }
.why__seals { display: flex; gap: 22px; align-items: center; }
.why__seals img { height: 88px; width: auto; }

/* Financiamiento */
.financing { display: grid; grid-template-columns: 1fr 380px; gap: 56px; align-items: center; }
.financing__stats { display: flex; gap: 40px; margin: 24px 0; }
.financing__stats strong { display: block; font: 400 52px/1 'Bebas Neue', sans-serif; color: var(--dorado); }
.financing__stats span { font-weight: 700; color: var(--navy); }
/* Botones de financiamiento con el color de cada marca (mismo tamaño para las tres) */
.partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 26px; max-width: 620px; }
.partner { height: 78px; display: grid; place-items: center; padding: 12px 18px; border-radius: 14px; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease; }
.partner:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.14); }
.partner img { max-height: 46px; width: auto; max-width: 100%; }
.partner--greensky { background: #05B04A; }
.partner--wisetack { background: #fff; border-color: #07C0CA; }
.partner--turns { background: #fff; border-color: #8B9B25; }

/* Nosotros */
.about { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.about__media { position: relative; margin: 0; }
.about__photo { border-radius: var(--radio); aspect-ratio: 16/10; object-fit: cover; object-position: 50% 65%; width: 100%;
  box-shadow: 0 30px 60px -20px rgba(41,42,108,.45); }
.about__tag { position: absolute; left: 18px; top: 18px; padding: 10px 16px; border-radius: 12px; background: rgba(22,23,64,.82); color: #fff;
  backdrop-filter: blur(6px); font-size: 13px; font-weight: 700; font-style: italic; border-left: 4px solid var(--dorado); }
.about__tag b { display: block; font: 400 22px/1 'Bebas Neue', sans-serif; letter-spacing: .05em; font-style: normal; color: var(--dorado-claro); }
.about__stats { list-style: none; padding: 0; margin: 26px 0 6px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.about__stats li { padding: 14px 12px; border-radius: 14px; background: #fff; box-shadow: 0 8px 22px rgba(41,42,108,.08); border-top: 3px solid var(--dorado); }
.about__stats b { display: block; font: 400 38px/1 'Bebas Neue', sans-serif; color: var(--navy); letter-spacing: .02em; }
.about__stats span { display: block; margin-top: 4px; font-size: 12px; font-weight: 700; color: #5d607e; line-height: 1.3; }
.about__texas { display: flex; align-items: center; gap: 18px; margin-top: 24px; }
.about__texas img { width: 96px; }
.about__texas p { margin: 0; font-style: italic; font-size: 19px; color: var(--navy); }

/* Galería y reseñas */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.gallery img { border-radius: var(--radio); aspect-ratio: 16/9; object-fit: cover; width: 100%; }
/* Tarjetas de servicio con fotos reales: fundido + zoom lento (Ken Burns), rótulo de cliente y barras de avance */
.card--media { padding: 0; overflow: hidden; }
.card--media > :not(.card__media) { margin-left: 30px; margin-right: 30px; }
.card--media .card__icon { position: relative; z-index: 2; margin-top: -27px; box-shadow: 0 8px 20px rgba(41,42,108,.35); border: 3px solid #fff; }
.card--media .card__link { display: inline-block; margin-bottom: 28px; }
.card__media { position: relative; height: 250px; overflow: hidden; background: var(--navy); }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12);
  transition: opacity 1.1s ease, transform 5.5s linear; }
.card__media img.activa { opacity: 1; transform: scale(1); }
.card__media--vacio { background: var(--navy) url('assets/img/patron-rayos.webp') center / cover; }
.card__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,23,64,0) 45%, rgba(22,23,64,.9)); pointer-events: none; }
.card__tag { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 36px; color: #fff; }
.card__tag b { display: block; font: 400 21px/1.05 'Bebas Neue', sans-serif; letter-spacing: .04em; color: var(--dorado-claro); }
.card__tag span { display: block; font-size: 13px; font-weight: 700; font-style: italic; }
.card__tag.entra { animation: rotulo .7s cubic-bezier(.2,.8,.2,1); }
@keyframes rotulo { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.card__bars { position: absolute; z-index: 1; left: 16px; right: 16px; top: 14px; display: flex; gap: 5px; }
.card__bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.35); overflow: hidden; position: relative; }
.card__bars i.lista { background: var(--dorado); }
.card__bars i.actual::after { content: ''; position: absolute; inset: 0; background: var(--dorado); transform-origin: left; animation: avance 4.2s linear forwards; }
@keyframes avance { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .card__media img { transition: none; transform: none; } .card__bars i.actual::after { animation: none; } }

/* Filtros por cliente */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; }
.filters__btn { border: 2px solid var(--borde); background: #fff; color: var(--navy); border-radius: 999px; padding: 8px 16px;
  font: 700 14px 'Open Sans', sans-serif; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.filters__btn:hover { border-color: var(--dorado); }
.filters__btn[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
/* Contenedor de la fila de marcas: degradado en los bordes y flechas cuando no caben todas (celular) */
.filters-wrap { position: relative; margin: 26px 0 0; }
.filters-wrap .filters { margin: 0; }
.filters-wrap.desborda::before, .filters-wrap.desborda::after { content: ""; position: absolute; top: 0; bottom: 6px; width: 56px; z-index: 1;
  pointer-events: none; transition: opacity .2s; }
.filters-wrap.desborda::before { left: 0; background: linear-gradient(90deg, #fff 30%, rgba(255,255,255,0)); }
.filters-wrap.desborda::after { right: 0; background: linear-gradient(270deg, #fff 30%, rgba(255,255,255,0)); }
.filters-wrap.al-inicio::before, .filters-wrap.al-final::after { opacity: 0; }
.filters__arrow { position: absolute; top: calc(50% - 3px); transform: translateY(-50%); z-index: 2; width: 36px; height: 36px;
  border-radius: 50%; border: 2px solid var(--navy); background: #fff; color: var(--navy); display: grid; place-items: center;
  cursor: pointer; padding: 0; box-shadow: 0 4px 12px rgba(41,42,108,.18); }
.filters__arrow[hidden] { display: none; }
.filters__arrow svg { width: 20px; height: 20px; fill: currentColor; }
.filters__arrow--prev { left: 6px; }
.filters__arrow--next { right: 6px; }
.filters__arrow:active { background: var(--navy); color: #fff; }
.works__item[hidden] { display: none; }
.works__city { display: block; font-size: 12px; font-style: normal; font-weight: 700; opacity: .85; }
.works__more { margin: 22px 0 0; text-align: center; font-style: italic; color: #6b6d86; }

/* Galería de trabajos */
/* Carrusel horizontal: 4 fotos a la vista en escritorio, 2 en tableta, 1 y un poco en celular.
   Se mueve con las flechas, deslizando con el dedo, arrastrando con el mouse o con el teclado. */
.works { --por-vista: 4; --gap: 14px; list-style: none; padding: 0 0 6px; margin: 22px 0 0; display: flex; gap: var(--gap);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
  scrollbar-width: none; cursor: grab; }
.works::-webkit-scrollbar { display: none; }
.works.arrastrando { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.works.arrastrando a { pointer-events: none; }
.works:focus-visible { outline: 3px solid var(--dorado); outline-offset: 4px; border-radius: var(--radio); }
.works > .works__item { flex: 0 0 calc((100% - (var(--por-vista) - 1) * var(--gap)) / var(--por-vista)); height: 300px; scroll-snap-align: start; }
.works img { -webkit-user-drag: none; }
.works__controls { margin-top: 18px; }
.carousel__btn:disabled { opacity: .35; cursor: default; transform: none; background: #fff; color: var(--navy); }
.works__item--tall { grid-row: span 2; }
.works__item--wide { grid-column: span 2; }
.works__item--full { grid-column: 1 / -1; grid-row: span 2; }
.works a { position: relative; display: block; height: 100%; border-radius: var(--radio); overflow: hidden; background: var(--gris); }
.works img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.works a:hover img, .works a:focus-visible img { transform: scale(1.06); }
.works a:focus-visible { outline: 3px solid var(--dorado); outline-offset: 2px; }
.works__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; color: #fff; font-weight: 800; font-style: italic;
  font-size: 14px; background: linear-gradient(transparent, rgba(22,23,64,.88)); }
.works__client { display: block; font-family: 'Bebas Neue', sans-serif; font-style: normal; font-weight: 400; font-size: 18px; letter-spacing: .04em; color: var(--dorado-claro); }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(12,13,35,.94); display: grid; place-items: center; padding: 50px 70px; }
.lightbox[hidden] { display: none; }
.lightbox__fig { margin: 0; max-width: 100%; max-height: 100%; display: grid; gap: 12px; justify-items: center; }
.lightbox__fig img { max-width: min(1200px, 100%); max-height: calc(100vh - 140px); width: auto; border-radius: 10px; }
.lightbox__fig figcaption { color: #fff; font-weight: 700; font-style: italic; text-align: center; }
.lightbox__close, .lightbox__nav { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer;
  border-radius: 50%; display: grid; place-items: center; transition: background .15s; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--dorado); color: var(--navy); }
.lightbox__close { top: 16px; right: 16px; width: 46px; height: 46px; font-size: 30px; line-height: 1; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 34px; line-height: 1; }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }
.lightbox__count { position: absolute; top: 26px; left: 24px; color: #fff; font: 400 22px 'Bebas Neue', sans-serif; letter-spacing: .08em; }

/* Reseñas de Google */
.reviews { background: var(--gris); padding: 90px 0 70px; overflow: hidden; }
.reviews__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 34px; }
.rating { display: grid; grid-template-columns: auto auto; column-gap: 12px; align-items: center; background: #fff; border-radius: var(--radio);
  padding: 14px 20px; text-decoration: none; box-shadow: 0 8px 24px rgba(41,42,108,.1); transition: transform .2s; }
.rating:hover { transform: translateY(-2px); }
.rating__g { width: 34px; height: 34px; grid-row: span 2; }
.rating__num { font: 400 40px/1 'Bebas Neue', sans-serif; color: var(--navy); }
.rating__stars { color: #FBBC05; font-size: 20px; letter-spacing: 2px; grid-column: 2; margin-top: -30px; margin-left: 48px; }
.rating__count { grid-column: 2; font-size: 13px; font-weight: 700; color: var(--azul); }
/* Carrusel de reseñas: se desliza con el dedo, la rueda, arrastrando con el mouse o con las flechas */
.carousel__track { display: flex; gap: 18px; margin: 0; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; cursor: grab;
  padding: 6px max(20px, calc((100vw - var(--wrap)) / 2 + 20px)) 18px;
  scroll-padding-inline: max(20px, calc((100vw - var(--wrap)) / 2 + 20px)); }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track.arrastrando { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.carousel__track:focus-visible { outline: 3px solid var(--dorado); outline-offset: -3px; }
.carousel__track > li { scroll-snap-align: start; flex: none; }
.carousel__controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 6px; }
.carousel__btn { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--navy); background: #fff; color: var(--navy);
  display: grid; place-items: center; cursor: pointer; transition: background .15s, color .15s, transform .15s; }
.carousel__btn:hover { background: var(--navy); color: #fff; transform: scale(1.05); }
.carousel__btn svg { width: 22px; height: 22px; fill: currentColor; }
.carousel__dots { display: flex; gap: 8px; }
.carousel__dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: #c9cbd8; cursor: pointer; transition: width .2s, background .2s; }
.carousel__dots button[aria-selected="true"] { width: 26px; border-radius: 6px; background: var(--dorado); }
.carousel__count { min-width: 64px; justify-content: center; font: 400 24px/1 'Bebas Neue', sans-serif; color: var(--navy); letter-spacing: .06em; }
.reviews__track { align-items: stretch; }
.review { width: 360px; background: #fff; border-radius: var(--radio); padding: 24px 26px; box-shadow: 0 10px 28px rgba(41,42,108,.09);
  display: flex; flex-direction: column; border-top: 4px solid var(--dorado); }
.review__stars { color: #FBBC05; letter-spacing: 2px; font-size: 18px; }
.review p { margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: #3d3f5c; }
.review__tr { display: block; margin-top: 8px; font-size: 11px; font-style: italic; color: #9a9cb0; }
.review__who { margin-top: auto !important; padding-top: 14px; font-weight: 800; font-style: italic; color: var(--navy) !important; }
/* El Rey junto a la calificación (solo celular): misma foto instantánea del hero, en chico.
   Entra girando cuando la sección aparece en pantalla (clase .entra desde main.js). */
.reviews__rey { display: none; position: relative; flex: 0 0 132px; margin: 14px 4px 0 0; padding: 8px 8px 0; border-radius: 14px;
  background: #fff; rotate: 5deg; box-shadow: 0 18px 30px -10px rgba(22,23,64,.45), 0 4px 10px rgba(22,23,64,.15); opacity: 0; scale: .7; }
.reviews__rey::before { content: ''; position: absolute; z-index: 2; top: -9px; left: 50%; width: 54px; height: 18px; translate: -50% 0; rotate: -5deg;
  background: rgba(241,215,155,.9); box-shadow: 0 2px 4px rgba(0,0,0,.12); }
.reviews__rey-win { position: relative; display: block; aspect-ratio: 1 / .84; border-radius: 8px;
  background: radial-gradient(circle at 72% 28%, #4656c9 0%, var(--azul) 35%, var(--navy) 75%); clip-path: inset(-60% 0 0 0 round 0 0 8px 8px); }
.reviews__rey-win img { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; transform: translateY(40%); }
.reviews__rey figcaption { padding: 6px 2px 8px; text-align: center; font-size: 11px; font-weight: 800; font-style: italic; color: var(--navy); white-space: nowrap; }
.reviews__rey .hero__spark--1 { top: 10%; right: -12px; }
.reviews__rey .hero__spark--2 { top: -16px; left: 4px; }
.reviews__rey .hero__spark { animation-play-state: paused; }
.reviews__rey.entra { animation: rey-card-in .9s cubic-bezier(.34,1.56,.64,1) forwards, rey-card-float 5s 1s ease-in-out infinite; }
.reviews__rey.entra img { animation: rey-pop .7s .45s cubic-bezier(.34,1.4,.64,1) forwards; }
.reviews__rey.entra .hero__spark { animation-play-state: running; }
@keyframes rey-card-in { from { opacity: 0; scale: .6; rotate: -18deg; } to { opacity: 1; scale: 1; rotate: 5deg; } }
@keyframes rey-card-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) {
  .reviews__rey { opacity: 1; scale: 1; animation: none !important; }
  .reviews__rey img { transform: none; animation: none !important; }
}
.reviews__note { margin-top: 8px; font-size: 12px; color: #8a8ca3; text-align: center; }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact__direct { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0; }
.contact__meta a { color: var(--dorado-claro); }
.contact__rey { width: min(330px, 100%); margin: 34px 0 0 6px; }
.form { background: #fff; color: var(--tinta); border-radius: var(--radio); padding: 30px; display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; color: var(--navy); }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid var(--borde); border-radius: 10px; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--dorado); border-color: var(--dorado); }
.form__consent { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: 12px !important; color: #555 !important; }
.form__consent input { width: auto; margin-top: 3px; }
.form .btn { justify-content: center; }
.form .btn:disabled { opacity: .6; cursor: wait; transform: none; }
.form__title { margin: 0; font: 400 34px/1 'Bebas Neue', sans-serif; color: var(--navy); }
.hero--small .hero__in { padding: 80px 20px 90px; }
.careers { display: grid; grid-template-columns: 1fr 280px; gap: 56px; align-items: center; margin-bottom: 40px; }
.why__list--dark b { color: var(--navy) !important; }

@media (max-width: 960px) { .careers { grid-template-columns: 1fr; gap: 20px; } .careers__rey { width: min(260px, 80%); margin: 10px auto 0; } }

/* Solicitud de empleo completa (misma estructura y nombres de campo que el formulario anterior) */
.form--app { max-width: 980px; margin: 0 auto; padding: 40px; box-shadow: 0 18px 44px rgba(41,42,108,.12); border: 1px solid var(--borde); gap: 0; }
.form--app .form__title { margin-bottom: 18px; }
.form--app .instructions-box { background: var(--gris); border-left: 4px solid var(--dorado); border-radius: 10px; padding: 16px 18px; font-size: 14px; color: #3d3f5c; }
.form--app .instructions-box p { margin: 10px 0 0; }
.form--app .section-title { margin: 34px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--navy);
  font: 400 26px/1 'Bebas Neue', sans-serif; letter-spacing: .03em; color: var(--navy); }
.form--app .grid, .form--app .grid-3 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-bottom: 14px; }
.form--app .grid-3 { grid-template-columns: repeat(3, 1fr); }
.form--app .form-group { display: grid; gap: 6px; align-content: start; }
.form--app .form-group.full { grid-column: 1 / -1; }
.form--app .form-group label { font-weight: 700; font-size: 13px; color: var(--navy); text-transform: uppercase; letter-spacing: .02em; }
.form--app .checkbox-group, .form--app .radio-group { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 6px 0; }
.form--app .checkbox-label, .form--app .radio-label { display: inline-flex !important; align-items: center; gap: 8px; font-weight: 600 !important;
  text-transform: none !important; font-size: 15px !important; color: var(--tinta) !important; cursor: pointer; }
.form--app .checkbox-label input, .form--app .radio-label input { width: 18px; height: 18px; accent-color: var(--navy); }
.form--app .sub-card { border: 1px solid var(--borde); border-radius: 12px; padding: 18px; margin-bottom: 14px; background: #fcfcfe; }
.form--app .legal-text, .form--app .legal-box, .form--app .texas-notice-box { font-size: 13px; line-height: 1.6; color: #4a4c66; margin: 0 0 14px; }
.form--app .legal-box, .form--app .texas-notice-box { background: var(--gris); border-radius: 10px; padding: 16px 18px; }
.form--app .texas-notice-box { border-left: 4px solid var(--azul); }
.form--app > .btn { margin-top: 24px; width: 100%; }
.form--app .form__status { margin-top: 14px; }
@media (max-width: 700px) {
  .form--app { padding: 22px 16px; }
  .form--app .grid, .form--app .grid-3 { grid-template-columns: 1fr; }
}
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__status { margin: 0; padding: 12px 14px; border-radius: 10px; font-size: 14px; font-weight: 700; }
.form__status--info { background: var(--gris); color: var(--navy); }
.form__status--ok { background: #e6f6ec; color: #136c35; }
.form__status--error { background: #fdecec; color: #a3191f; }

/* Pie */
.footer { background: var(--tinta); color: rgba(255,255,255,.8); padding: 64px 0 90px; font-size: 15px; }
.footer__in { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; }
.footer img { width: 150px; margin-bottom: 14px; }
.footer h4 { margin: 0 0 12px; color: var(--dorado); font: 400 22px 'Bebas Neue', sans-serif; letter-spacing: .04em; }
.footer__in a, .footer__in span:not(.en):not(.es) { display: block; text-decoration: none; margin-bottom: 6px; }
.footer a:hover { color: var(--dorado-claro); }
.footer__legal { text-align: center; margin: 46px 0 0; font-size: 13px; opacity: .6; }

/* Barra fija en celular */
.mobilebar { display: none; }

/* Animación de entrada */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Tableta y celular */
@media (max-width: 960px) {
  .header { position: sticky; }
  .header__in { gap: 12px; }
  .header__cta { margin-left: auto; }
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; margin: 0;
         background: #fff; border-bottom: 3px solid var(--dorado); box-shadow: 0 18px 30px rgba(41,42,108,.18);
         max-height: calc(100vh - 110px); overflow-y: auto; }
  .nav a { padding: 16px 24px; border-top: 1px solid var(--borde); font-size: 17px; }
  .nav a:active, .nav a:hover { background: #f6f3ea; }
  .header.menu-abierto .nav { display: flex; }
  .badges__in { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .why, .financing, .about, .contact { grid-template-columns: 1fr; gap: 34px; }
  .why__rey, .financing__rey { width: min(320px, 82%); margin: 10px auto 0; }
  .contact__rey { margin: 30px auto 0; }
  .about__media { max-width: 640px; }
  .about__stats { grid-template-columns: repeat(2, 1fr); }
  .footer__in { grid-template-columns: 1fr 1fr; }
  .works { --por-vista: 2; }
  .works > .works__item { height: 280px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .topbar__pulse { font-size: 12px; }
  .topbar__phone { display: none; }
  .lang { margin-left: auto; }
  .header__in { min-height: 64px; }
  .header__logo img { height: 46px; }
  .header__cta { padding: 10px 14px; font-size: 12px; }
  .hero__in { padding: 56px 20px 130px; }
  .hero:not(.hero--small) { min-height: calc(100vh - 172px); min-height: calc(100svh - 172px); }
  .hero:not(.hero--small) .hero__in { padding: 56px 20px 74px; }
  .hero:not(.hero--small) .hero__sub { margin-bottom: 22px; }
  .hero:not(.hero--small) .hero__ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero:not(.hero--small) .hero__ctas .btn { padding-left: 8px; padding-right: 8px; font-size: 15px; white-space: nowrap; gap: 8px; }
  .hero:not(.hero--small) .hero__ctas .btn--ghost { display: none; }
  .hero__bolt { right: -24px; height: 40%; opacity: .3; top: 30%; }
  .hero__cap { top: 14px; bottom: auto; right: 16px; transform-origin: 100% 0; gap: 8px; }
  .hero__bubble { min-height: 38px; padding: 7px 12px 8px; font-size: 11px; border-radius: 16px 4px 16px 16px; }
  .hero__bubble::after { top: 0; bottom: auto; clip-path: polygon(0 0, 100% 0, 0 100%); }
  .hero__bubble-txt b { font-size: 16px; }
  .hero__cap { align-items: flex-start; }
  .hero__avatar { width: 32px; height: 32px; }
  .hero__stats { margin-top: 30px; }
  .hero__stats li { padding: 2px 14px; }
  .hero__stats b { font-size: 30px; }
  .hero__stats span { font-size: 10px; }
  .hero__nav { bottom: 18px; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
  .section { padding: 64px 0; }
  .badges img { max-height: 76px; }
  .clients { padding: 60px 0 54px; }
  .marquee__track img { width: 96px; height: 96px; border-radius: 16px; }
  .reviews { padding: 64px 0 50px; }
  .reviews__head { align-items: center; row-gap: 18px; column-gap: 14px; }
  .reviews__head > div:first-child { flex-basis: 100%; }
  .reviews__head { flex-wrap: wrap; }
  .rating { flex: 1 1 0; min-width: 0; padding-left: 14px; padding-right: 14px; column-gap: 10px; }
  .rating__g { width: 28px; height: 28px; }
  .rating__stars { font-size: 15px; margin-left: 40px; }
  .rating__count { font-size: 12px; }
  .reviews__rey { display: block; flex: 0 0 116px; margin: 8px 4px 0 0; }
  .reviews__rey figcaption { font-size: 10px; }
  .works { --por-vista: 1.25; --gap: 10px; }
  .works > .works__item { height: 320px; }
  .filters-wrap { margin-left: -20px; margin-right: -20px; }
  .filters-wrap .filters { flex-wrap: nowrap; overflow-x: auto; padding: 0 20px 6px; scrollbar-width: none; scroll-padding-inline: 48px; cursor: grab; }
  .filters::-webkit-scrollbar { display: none; }
  .filters__btn { flex: none; }
  .card__media { height: 220px; }
  .works__cap { font-size: 12px; padding: 24px 10px 8px; }
  .lightbox { padding: 60px 8px 70px; }
  .lightbox__nav { top: auto; bottom: 14px; transform: none; }
  .lightbox__nav--prev { left: calc(50% - 64px); }
  .lightbox__nav--next { right: calc(50% - 64px); }
  .review { width: 290px; padding: 20px; }
  .form__row { grid-template-columns: 1fr; }
  .financing__stats { gap: 24px; }
  .partners { grid-template-columns: 1fr; }
  .partner { height: 70px; }
  .gallery { grid-template-columns: 1fr; }
  .footer__in { grid-template-columns: 1fr; }
  .mobilebar { display: grid; grid-template-columns: 1fr 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--navy); border-top: 2px solid var(--dorado); }
  .mobilebar a { padding: 14px 6px; text-align: center; color: #fff; text-decoration: none; font: 800 italic 14px 'Open Sans', sans-serif; text-transform: uppercase; }
  .mobilebar a:nth-child(2) { background: var(--whatsapp); }
  .mobilebar a:nth-child(3) { background: var(--dorado); color: var(--navy); }
}

/* Página de financiamiento */
.fin-intro { margin: 0 0 22px; }
.fin-jump { margin-bottom: 0; }
.fin { scroll-margin-top: 90px; }
.fin__in { display: grid; grid-template-columns: 260px 1fr; gap: 50px; align-items: start; }
.fin__logo { position: sticky; top: 110px; display: grid; place-items: center; height: 140px; border-radius: 18px; padding: 24px; box-shadow: 0 14px 30px rgba(41,42,108,.12); }
.fin__logo img { max-height: 70px; width: auto; max-width: 100%; }
.fin__logo--greensky { background: #05B04A; }
.fin__logo--wisetack { background: #fff; border: 2px solid #07C0CA; }
.fin__logo--turns { background: #fff; border: 2px solid #8B9B25; }
.fin__plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 22px 0; }
.fin__plan { display: grid; gap: 8px; align-content: start; padding: 24px; border-radius: 16px; background: #fff; border: 2px solid var(--borde);
  text-decoration: none; color: var(--navy); transition: border-color .2s, transform .2s, box-shadow .2s; }
.fin__plan:hover { border-color: #05B04A; transform: translateY(-3px); box-shadow: 0 14px 28px rgba(41,42,108,.12); }
.fin__plan strong { font: 400 46px/1 'Bebas Neue', sans-serif; color: #05B04A; letter-spacing: .02em; }
.fin__plan > span { font-weight: 700; }
.fin__plan .btn { justify-self: start; margin-top: 8px; font-style: italic; }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.fin__legal { margin-top: 18px; font-size: 12px; line-height: 1.55; color: #6b6d86; }
.fin__legal p { margin: 0 0 8px; }
.fin__legal a { color: var(--azul); }
.fin__facts { list-style: none; padding: 0; margin: 22px 0; display: flex; flex-wrap: wrap; gap: 14px; }
.fin__facts li { flex: 1 1 150px; padding: 16px 18px; border-radius: 14px; background: var(--gris); }
.fin__facts b { display: block; font: 400 34px/1 'Bebas Neue', sans-serif; color: #07A5AE; }
.fin__facts span { font-size: 13px; font-weight: 700; color: var(--navy); }
.fin__note { font-weight: 700; color: var(--navy); }
.fin__calc { margin: 22px 0; border-radius: 16px; overflow: hidden; border: 2px solid #07C0CA; background: #fff; }
.fin__calc iframe { display: block; width: 100%; height: 560px; border: 0; }
.fin__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn--ghost-navy { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn--ghost-navy:hover { background: var(--navy); color: #fff; }
.fin__big { font: 400 34px/1.1 'Bebas Neue', sans-serif; color: var(--navy); letter-spacing: .02em; margin: 6px 0 18px; }
.fin__big b { color: #8B9B25; font-weight: 400; }
.fin__checks { margin: 12px 0 26px; padding-left: 22px; display: grid; gap: 10px; }
.fin__checks li { padding-left: 6px; }
.fin__checks li::marker { font-weight: 800; color: #8B9B25; }
@media (max-width: 960px) {
  .fin__in { grid-template-columns: 1fr; gap: 22px; }
  .fin__logo { position: static; height: 100px; max-width: 260px; }
  .fin__plans { grid-template-columns: 1fr; }
  .fin__calc iframe { height: 620px; }
}

/* Páginas legales, gracias y 404 */
.legal__in { max-width: 820px; }
.legal__nota .en:empty { display: none; }
.legal__nota { margin: -6px 0 18px; font-size: 14px; font-style: italic; color: #6b6d86; }
.legal__texto h2 { margin: 30px 0 10px; font: 400 26px/1.1 'Bebas Neue', sans-serif; letter-spacing: .03em; color: var(--navy); }
.legal__texto p, .legal__texto li { line-height: 1.7; }
.legal__texto a { color: var(--azul); }
.aviso__in { display: grid; grid-template-columns: 300px 1fr; gap: 60px; align-items: center; min-height: 52vh; }
.aviso__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
@media (max-width: 760px) { .aviso__in { grid-template-columns: 1fr; gap: 30px; } .aviso__rey { width: min(240px, 70%); margin: 0 auto; } }
