/* K Motors — sitio estático (reemplaza WordPress) */
:root {
  --rojo: #c8100c;
  --rojo-o: #9e0b08;
  --rojo-c: #ff3b30;
  --azul: #0f1a33;
  --azul-2: #18264a;
  --azul-3: #22335f;
  --tinta: #1c2233;
  --gris: #5b6478;
  --claro: #f4f5f8;
  --borde: #e3e6ee;
  --blanco: #fff;
  --radio: 18px;
  --sombra: 0 20px 50px -20px rgba(15, 26, 51, .35);
  --fuente-t: "Chakra Petch", system-ui, sans-serif;
  --fuente: "Mulish", system-ui, sans-serif;
  --e: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.65 var(--fuente); color: var(--tinta); background: var(--blanco); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--fuente-t); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); text-transform: uppercase; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
svg { width: 1.1em; height: 1.1em; flex: none; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.seccion { padding: clamp(80px, 10vw, 130px) 0; position: relative; overflow-x: clip; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--rojo); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--rojo-c); outline-offset: 3px; }

/* rótulos */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px; font: 700 .82rem/1 var(--fuente-t); letter-spacing: .16em; text-transform: uppercase; color: var(--rojo); }
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--rojo), var(--rojo-c)); transform: skewX(-30deg); transform-origin: left; }
.eyebrow--claro { color: #ff6b62; }
.encabezado { max-width: 760px; margin-bottom: 56px; }
.encabezado--centro { margin-inline: auto; text-align: center; }
.encabezado--centro .eyebrow { justify-content: center; }

/* botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 26px; border-radius: 12px; font: 700 .95rem/1 var(--fuente-t); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .25s, color .25s, border-color .25s, box-shadow .25s, transform .25s; }
.btn--rojo { background: linear-gradient(135deg, var(--rojo-c), var(--rojo) 55%, var(--rojo-o)); color: #fff; box-shadow: 0 12px 30px -12px rgba(200, 16, 12, .7); }
.btn--rojo:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -12px rgba(200, 16, 12, .85); }
.btn--linea { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn--linea:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn--grande { padding: 19px 32px; font-size: 1rem; }
.btn--ancho { width: 100%; }
.btn svg { width: 18px; height: 18px; }

/* ================= NAV ================= */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; transition: background .35s, box-shadow .35s, padding .35s; padding: 14px 0; }
.nav.is-scrolled { background: rgba(15, 26, 51, .88); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6); padding: 6px 0; }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav__logo img { width: 112px; height: auto; transition: width .35s; }
.nav.is-scrolled .nav__logo img { width: 92px; }
.nav__menu { display: flex; align-items: center; gap: 30px; }
.nav__menu > a:not(.btn) { position: relative; color: #fff; text-decoration: none; font: 600 .9rem/1 var(--fuente-t); letter-spacing: .1em; text-transform: uppercase; padding: 8px 0; opacity: .85; transition: opacity .2s; }
.nav__menu > a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--rojo-c); scale: 0 1; transform-origin: left; transition: scale .35s var(--e); }
.nav__menu > a:not(.btn):hover, .nav__menu > a.activo { opacity: 1; }
.nav__menu > a:not(.btn):hover::after, .nav__menu > a.activo::after { scale: 1 1; }
.nav__cta { padding: 12px 20px; }
.nav__burger { display: none; width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--rojo); cursor: pointer; padding: 0; position: relative; }
.nav__burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav__burger span:nth-child(1) { top: 16px; } .nav__burger span:nth-child(2) { top: 22px; } .nav__burger span:nth-child(3) { top: 28px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ================= HERO ================= */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 130px 0 110px; color: #fff; background: var(--azul); overflow: hidden; isolation: isolate; }
.hero__fondo { position: absolute; inset: -6% 0 0; z-index: -2; background: linear-gradient(100deg, rgba(15, 26, 51, .97) 0%, rgba(15, 26, 51, .9) 38%, rgba(15, 26, 51, .55) 70%, rgba(15, 26, 51, .75) 100%), url(/img/hero.jpg) center/cover no-repeat; }
.hero__fondo::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 30% 50%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 30% 50%, #000 20%, transparent 75%); }
.hero__rayas { position: absolute; z-index: -1; right: -10%; bottom: -40px; width: 75%; height: 260px; pointer-events: none; }
.hero__rayas span { position: absolute; left: 0; right: 0; height: 26px; transform: skewY(-9deg); transform-origin: right; border-radius: 4px; }
.hero__rayas span:nth-child(1) { bottom: 90px; background: linear-gradient(90deg, transparent, var(--rojo) 30%); }
.hero__rayas span:nth-child(2) { bottom: 50px; height: 14px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .85) 40%); }
.hero__rayas span:nth-child(3) { bottom: 6px; height: 34px; background: linear-gradient(90deg, transparent, var(--azul-3) 30%); }
.hero__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 30px; }
.hero__texto { max-width: 640px; position: relative; z-index: 2; }
.hero .eyebrow { color: #ff6b62; }
.hero h1 { font-size: clamp(2.3rem, 4.9vw, 3.9rem); line-height: 1.02; text-transform: uppercase; margin-bottom: 24px; }
.hero h1 em { font-style: normal; color: transparent; background: linear-gradient(90deg, var(--rojo-c), #ff7a52); -webkit-background-clip: text; background-clip: text; }
.hero h1 .linea { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero h1 .linea > span { display: block; }
.hero__lead { font-size: 1.12rem; color: rgba(255, 255, 255, .82); max-width: 520px; margin-bottom: 32px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.chips li { padding: 8px 14px; border-radius: 999px; font: 600 .78rem/1 var(--fuente-t); letter-spacing: .1em; text-transform: uppercase; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); }
.hero__visual { position: relative; margin-right: calc((100vw - min(1200px, 100vw - 40px)) / -2); aspect-ratio: 1194 / 680; }
.hero__auto { position: absolute; left: 0; bottom: 0; width: 100%; filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .55)); }
.hero__faro { position: absolute; left: 34%; top: 54%; width: 13%; height: 6%; border-radius: 50%; background: radial-gradient(ellipse, rgba(255, 255, 255, .95), rgba(190, 220, 255, .35) 45%, transparent 70%); filter: blur(4px); opacity: 0; pointer-events: none; mix-blend-mode: screen; }
.hero__arco { position: absolute; left: 18%; top: 0; width: 64%; height: 38%; overflow: visible; }
.hero__arco path { fill: none; stroke: rgba(255, 255, 255, .35); stroke-width: 2; stroke-dasharray: 6 10; vector-effect: non-scaling-stroke; }
.hero__ico { position: absolute; width: clamp(52px, 5.2vw, 76px); aspect-ratio: 1; border-radius: 50%; background: #fff; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .5), 0 0 0 6px rgba(255, 255, 255, .12); display: grid; place-items: center; }
.hero__ico img { width: 100%; height: 100%; border-radius: 50%; }
.hero__ico--1 { left: 20%; top: 18%; }
.hero__ico--2 { left: 46%; top: -6%; }
.hero__ico--3 { left: 72%; top: 6%; }
.hero__desliza { position: absolute; left: 50%; bottom: 24px; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(255, 255, 255, .7); text-decoration: none; font: 600 .7rem/1 var(--fuente-t); letter-spacing: .22em; text-transform: uppercase; z-index: 2; }
.hero__desliza span { width: 22px; height: 34px; border: 2px solid rgba(255, 255, 255, .5); border-radius: 12px; position: relative; }
.hero__desliza span::after { content: ""; position: absolute; left: 50%; top: 6px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: var(--rojo-c); animation: rueda 1.8s ease-in-out infinite; }
@keyframes rueda { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ================= EXPLORA ================= */
.explora { background: var(--claro); }
.tarjetas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; perspective: 1400px; }
.tarjeta { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); transform-origin: 50% 100%; transition: box-shadow .35s, transform .35s; }
.tarjeta:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -24px rgba(15, 26, 51, .5); }
.tarjeta__foto { aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.tarjeta__foto::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, rgba(15, 26, 51, .55)); }
.tarjeta__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--e); }
.tarjeta:hover .tarjeta__foto img { transform: scale(1.06); }
.tarjeta__cuerpo { position: relative; padding: 34px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.tarjeta__num { position: absolute; top: -26px; right: 24px; width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--rojo-c), var(--rojo-o)); color: #fff; font: 700 1.1rem/1 var(--fuente-t); box-shadow: 0 10px 22px -8px rgba(200, 16, 12, .7); }
.tarjeta h3 { text-transform: uppercase; color: var(--azul); }
.tarjeta p { color: var(--gris); font-size: .98rem; flex: 1; }
.tarjeta__cta { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; color: var(--rojo); font: 700 .88rem/1 var(--fuente-t); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.tarjeta__cta svg { transition: translate .3s var(--e); }
.tarjeta__cta:hover svg { translate: 5px 0; }

/* ================= CALIDAD ================= */
.calidad { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; background: var(--azul); color: #fff; padding: 0; isolation: isolate; }
.calidad::before { content: ""; position: absolute; z-index: -1; right: 0; top: 0; bottom: 0; width: 55%; background: linear-gradient(160deg, var(--azul-2), var(--azul)); clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%); }
.calidad__media { position: relative; min-height: 560px; height: 100%; }
.calidad__foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.calidad__rombo { position: absolute; right: -60px; top: 50%; margin-top: -150px; width: 300px; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); z-index: 2; }
.calidad__texto { padding: clamp(70px, 9vw, 120px) clamp(20px, 6vw, 90px) clamp(70px, 9vw, 120px) clamp(90px, 9vw, 130px); max-width: 680px; }
.calidad__texto p { color: rgba(255, 255, 255, .8); }
.calidad__texto strong { color: #fff; }
.motores { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.motores li { padding: 18px 20px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-left: 4px solid var(--rojo-c); }
.motores strong { display: block; font: 700 1.25rem/1.2 var(--fuente-t); text-transform: uppercase; }
.motores span { font-size: .9rem; color: rgba(255, 255, 255, .7); }

/* ================= SERVICIOS ================= */
.servicios { background: #fff; }
.servicios::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 60%, rgba(200, 16, 12, .06), transparent 60%); pointer-events: none; }
.orbita { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr); gap: 34px; align-items: center; }
.orbita__col { display: grid; gap: 34px; }
.orbita__centro { display: grid; gap: 10px; justify-items: center; }
.orbita__auto { position: relative; width: 100%; display: grid; place-items: center; }
.orbita__auto img { position: relative; width: 100%; max-width: 420px; filter: drop-shadow(0 30px 30px rgba(15, 26, 51, .25)); }
.orbita__anillo { position: absolute; width: 92%; aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(200, 16, 12, .25); box-shadow: inset 0 0 0 26px rgba(200, 16, 12, .035); animation: girar 60s linear infinite; }
@keyframes girar { to { rotate: 360deg; } }
.servicio { position: relative; display: flex; gap: 18px; align-items: flex-start; padding: 24px; border-radius: var(--radio); background: #fff; border: 1px solid var(--borde); box-shadow: 0 14px 34px -24px rgba(15, 26, 51, .4); transition: transform .35s, box-shadow .35s, border-color .35s; }
.servicio:hover { transform: translateY(-4px); border-color: rgba(200, 16, 12, .35); box-shadow: 0 24px 44px -24px rgba(15, 26, 51, .45); }
.servicio img { width: 64px; height: 64px; border-radius: 50%; flex: none; box-shadow: 0 8px 20px -8px rgba(15, 26, 51, .35); }
.servicio h3 { font-size: 1.12rem; text-transform: uppercase; color: var(--azul); margin-bottom: 6px; }
.servicio p { font-size: .93rem; color: var(--gris); margin: 0; }
.servicio--centro { flex-direction: column; align-items: center; text-align: center; max-width: 380px; }

/* ================= BANDA FLOTILLAS ================= */
.banda { color: #fff; isolation: isolate; padding: clamp(70px, 8vw, 100px) 0; }
.banda__fondo { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(158, 11, 8, .95), rgba(200, 16, 12, .82) 50%, rgba(15, 26, 51, .7)), url(/img/equipo.jpg) center/cover no-repeat; }
.banda__in { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.banda h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); max-width: 640px; }
.banda p { color: rgba(255, 255, 255, .88); max-width: 560px; margin: 0; }
.banda .eyebrow--claro { color: #fff; }
.banda .eyebrow::before { background: #fff; }
.banda .btn--rojo { background: #fff; color: var(--rojo); box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .55); flex: none; }

/* ================= POR QUÉ ================= */
.porque { background: var(--claro); }
.porque__in { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 60px; align-items: center; }
.porque__media { position: relative; display: grid; place-items: end center; }
.porque__halo { position: absolute; bottom: 0; width: 88%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 40%, var(--azul-3), var(--azul) 70%); box-shadow: 0 0 0 14px rgba(200, 16, 12, .12); }
.porque__media img { position: relative; width: min(420px, 90%); }
.porque__texto p { color: var(--gris); }
.porque__texto h2 { color: var(--azul); }
.pilares { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pilares li { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--borde); font: 700 .92rem/1.25 var(--fuente-t); text-transform: uppercase; letter-spacing: .04em; color: var(--azul); }
.pilares svg { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--rojo); color: #fff; }

/* ================= CONTACTO ================= */
.contacto { isolation: isolate; color: #fff; }
.contacto__fondo { position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(15, 26, 51, .92), rgba(15, 26, 51, .96)), url(/img/taller.jpg) center/cover no-repeat; }
.contacto__caja { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 0; border-radius: 28px; overflow: hidden; background: rgba(24, 38, 74, .75); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); backdrop-filter: blur(6px); }
.contacto__info { padding: clamp(32px, 5vw, 56px); }
.contacto__info h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.contacto .eyebrow { color: #ff6b62; }
.datos { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 20px; }
.datos li { display: flex; gap: 16px; align-items: flex-start; }
.datos__ico { width: 46px; height: 46px; border-radius: 12px; flex: none; display: grid; place-items: center; background: rgba(200, 16, 12, .18); color: #ff6b62; }
.datos__ico svg { width: 22px; height: 22px; }
.datos small { display: block; font: 700 .72rem/1 var(--fuente-t); letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .55); margin-bottom: 6px; }
.datos a, .datos span { color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.datos a { font-weight: 700; font-size: 1.08rem; }
.datos a:hover { color: #ff6b62; }
.contacto__horario { padding: clamp(32px, 5vw, 56px); background: linear-gradient(160deg, var(--rojo), var(--rojo-o)); display: flex; flex-direction: column; }
.contacto__horario h3 { display: flex; align-items: center; gap: 10px; text-transform: uppercase; font-size: 1.4rem; }
.contacto__horario dl { margin: 10px 0 30px; flex: 1; }
.contacto__horario dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .22); }
.contacto__horario dt { font-weight: 600; }
.contacto__horario dd { margin: 0; font-weight: 800; font-family: var(--fuente-t); }
.contacto__horario .btn--rojo { background: #fff; color: var(--rojo); }
.contacto__mapa { grid-column: 1 / -1; height: 320px; background: var(--azul-2); }
.contacto__mapa iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05); }

/* ================= FOOTER ================= */
.footer { position: relative; isolation: isolate; background: #0a1226; color: rgba(255, 255, 255, .75); padding: 90px 0 0; overflow: hidden; }
.footer__auto { position: absolute; z-index: -1; left: -60px; bottom: 40px; width: 380px; opacity: .22; }
.footer__in { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 60px; }
.footer__marca img { width: 130px; margin-bottom: 18px; }
.footer__marca p { max-width: 320px; font-size: .95rem; }
.footer h4 { font: 700 .82rem/1 var(--fuente-t); letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer__nav { display: flex; flex-direction: column; gap: 10px; }
.footer a { color: rgba(255, 255, 255, .75); text-decoration: none; overflow-wrap: anywhere; }
.footer a:hover { color: #ff6b62; }
.footer__col p { font-size: .95rem; margin-bottom: 12px; }
.footer__legal { border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0 26px; font-size: .85rem; text-align: center; }
.footer__legal p { margin: 0; }

/* botón flotante de llamada (móvil) */
.flotante { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; display: none; place-items: center; background: linear-gradient(135deg, var(--rojo-c), var(--rojo-o)); color: #fff; box-shadow: 0 14px 30px -10px rgba(200, 16, 12, .8); }
.flotante svg { width: 26px; height: 26px; }
.flotante::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--rojo-c); animation: latido 2.2s ease-out infinite; }
@keyframes latido { from { scale: 1; opacity: .8; } to { scale: 1.6; opacity: 0; } }

/* ================= RESPONSIVO ================= */
@media (max-width: 1080px) {
  .orbita { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .orbita__centro { grid-column: 1 / -1; order: -1; }
  .calidad__rombo { width: 220px; margin-top: -110px; right: -40px; }
}
@media (max-width: 920px) {
  .nav__burger { display: block; }
  .nav__menu { position: fixed; inset: 0 0 auto; top: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 90px 20px 26px; background: rgba(15, 26, 51, .98); box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .6); translate: 0 -105%; transition: translate .45s var(--e); z-index: -1; }
  .nav__menu.abierto { translate: 0 0; }
  .nav__menu > a:not(.btn) { padding: 16px 4px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 1rem; }
  .nav__menu > a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 18px; padding: 16px; }
  .hero { padding-top: 110px; }
  .hero__in { grid-template-columns: minmax(0, 1fr); }
  .hero__visual { margin-right: -20px; margin-left: 10%; }
  .tarjetas { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; }
  .calidad { grid-template-columns: minmax(0, 1fr); }
  .calidad::before { width: 100%; clip-path: none; }
  .calidad__media { min-height: 0; height: auto; aspect-ratio: 934 / 700; }
  .calidad__rombo { width: 170px; right: 16px; top: auto; bottom: -70px; margin-top: 0; }
  .calidad__texto { padding: 100px 20px 80px; max-width: none; }
  .banda__in { flex-direction: column; align-items: flex-start; }
  .porque__in { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .porque__media img { width: min(340px, 80%); }
  .contacto__caja { grid-template-columns: minmax(0, 1fr); }
  .footer__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer__marca { grid-column: 1 / -1; }
  .flotante { display: grid; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .orbita { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .orbita__col { gap: 20px; }
  .servicio { padding: 20px; }
  .servicio img { width: 54px; height: 54px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .hero__desliza { display: none; }
  .pilares, .motores { grid-template-columns: minmax(0, 1fr); }
  .encabezado { margin-bottom: 40px; }
  .footer__in { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .contacto__mapa { height: 260px; }
  .hero__fondo { background: linear-gradient(180deg, rgba(15, 26, 51, .9) 0%, rgba(15, 26, 51, .86) 60%, rgba(15, 26, 51, .7) 100%), url(/img/hero.jpg) 62% center/cover no-repeat; }
  .datos a { font-size: .96rem; }
  .footer__auto { width: 260px; left: auto; right: -70px; bottom: 70px; }
  .m .footer.on .footer__auto[data-f] { opacity: .12; }
}

/* ================= Coreografía: el sitio se arma al navegar =================
   Todo vive bajo .m (lo pone el <head> solo si no se pidió menos movimiento).
   Se anima con translate / scale / rotate sueltos para no pisar los transform de hover. */
.palabra { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.palabra > span { display: inline-block; }
.m [data-m] { opacity: 0; }
.m [data-m="palabras"].dividido { opacity: 1; }
.m [data-m="palabras"] .palabra > span { opacity: 0; translate: 0 110%; }
.m [data-m="check"] svg { stroke-dasharray: 24; stroke-dashoffset: 24; }
.m [data-m].eyebrow::before { scale: 0 1; transition: scale .7s var(--e) .25s; }
.m [data-m].eyebrow.on::before { scale: 1 1; }

/* hero: se arma al cargar */
.m .hero__fondo { opacity: 0; scale: 1.12; }
.m .hero__fondo::after { opacity: 0; }
.m .hero__rayas span { scale: 0 1; }
.m .hero .eyebrow, .m .hero__lead, .m .hero__ctas, .m .chips li, .m .hero__auto, .m .hero__ico, .m .hero__desliza { opacity: 0; }
.m .hero .eyebrow::before { scale: 0 1; }
.m .hero h1 .linea > span { translate: 0 110%; }
.m .hero__arco path { stroke-dashoffset: 900; stroke-dasharray: 900; }
.m-go .hero__fondo { animation: fondo 1.6s var(--e) both; }
.m-go .hero__fondo::after { animation: aparecer 1.8s ease .5s both; }
.m-go .hero__rayas span:nth-child(1) { animation: raya .9s var(--e) .55s both; }
.m-go .hero__rayas span:nth-child(2) { animation: raya .9s var(--e) .68s both; }
.m-go .hero__rayas span:nth-child(3) { animation: raya .9s var(--e) .8s both; }
.m-go .hero .eyebrow { animation: subir .8s var(--e) .1s both; }
.m-go .hero .eyebrow::before { animation: raya .8s var(--e) .4s both; }
.m-go .hero h1 .linea:nth-child(1) > span { animation: linea 1.1s var(--e) .25s both; }
.m-go .hero h1 .linea:nth-child(2) > span { animation: linea 1.1s var(--e) .42s both; }
.m-go .hero__lead { animation: subir .9s var(--e) .62s both; }
.m-go .hero__ctas { animation: subir .9s var(--e) .76s both; }
.m-go .chips li { animation: chip .6s var(--e) both; animation-delay: calc(.95s + var(--n, 0) * .08s); }
.m-go .chips li:nth-child(2) { --n: 1; } .m-go .chips li:nth-child(3) { --n: 2; } .m-go .chips li:nth-child(4) { --n: 3; }
.m-go .hero__auto { animation: llegar 1.5s cubic-bezier(.16, .84, .3, 1) .45s both; }
.m-go .hero__faro { animation: faro 1.4s ease 1.6s both; }
.m-go .hero__arco path { animation: trazo 1.4s var(--e) 1.5s both; }
.m-go .hero__ico--1 { animation: icono .7s var(--e) 1.75s both, flotar 6s ease-in-out 2.6s infinite; }
.m-go .hero__ico--2 { animation: icono .7s var(--e) 1.95s both, flotar 6s ease-in-out 3.1s infinite; }
.m-go .hero__ico--3 { animation: icono .7s var(--e) 2.15s both, flotar 6s ease-in-out 3.6s infinite; }
.m-go .hero__desliza { animation: aparecer 1s ease 2.4s both; }
@keyframes fondo { from { opacity: 0; scale: 1.12; } to { opacity: 1; scale: 1; } }
@keyframes aparecer { from { opacity: 0; } to { opacity: 1; } }
@keyframes subir { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
@keyframes linea { from { translate: 0 110%; } to { translate: 0 0; } }
@keyframes raya { from { scale: 0 1; } to { scale: 1 1; } }
@keyframes chip { from { opacity: 0; scale: .6; } to { opacity: 1; scale: 1; } }
@keyframes llegar { from { opacity: 0; translate: 38% 0; filter: blur(14px) drop-shadow(0 40px 50px rgba(0, 0, 0, 0)); } 60% { opacity: 1; filter: blur(0) drop-shadow(0 40px 50px rgba(0, 0, 0, .3)); } to { opacity: 1; translate: 0 0; filter: blur(0) drop-shadow(0 40px 50px rgba(0, 0, 0, .55)); } }
@keyframes faro { 0% { opacity: 0; } 35% { opacity: 1; } 100% { opacity: .55; } }
@keyframes trazo { to { stroke-dashoffset: 0; } }
@keyframes icono { from { opacity: 0; scale: .3; rotate: -40deg; } to { opacity: 1; scale: 1; rotate: 0deg; } }
@keyframes flotar { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* luz que sigue al puntero */
@media (hover: hover) {
  .tarjeta::before, .servicio::before {
    content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 59, 48, .13), transparent 60%);
  }
  .tarjeta:hover::before, .servicio:hover::before { opacity: 1; }
}

/* barra de avance de lectura */
.progreso { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 101; pointer-events: none; transform-origin: left; scale: 0 1; background: linear-gradient(90deg, var(--rojo-o), var(--rojo-c), #ff8a5c); box-shadow: 0 0 10px rgba(255, 59, 48, .7); }

/* footer: línea con brillo, halo y luego cada bloque */
.footer__linea { position: absolute; top: 0; left: 0; right: 0; height: 2px; transform-origin: left; background: linear-gradient(90deg, transparent, var(--rojo) 20%, var(--rojo-c) 60%, transparent); box-shadow: 0 0 18px 2px rgba(255, 59, 48, .55); }
.footer::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 0; width: min(900px, 100%); height: 260px; translate: -50% 0; background: radial-gradient(ellipse at top, rgba(200, 16, 12, .22), transparent 70%); pointer-events: none; }
.m .footer__linea { scale: 0 1; }
.m .footer::before { opacity: 0; }
.m .footer [data-f] { opacity: 0; translate: 0 22px; filter: blur(6px); }
.m .footer .footer__auto[data-f] { translate: -80px 0; }
.m .footer.on .footer__linea { scale: 1 1; transition: scale 1s var(--e); }
.m .footer.on::before { opacity: 1; transition: opacity 1.2s ease .45s; }
.m .footer.on [data-f] { opacity: 1; translate: 0 0; filter: blur(0); transition: opacity .8s ease, translate .8s var(--e), filter .8s ease; transition-delay: calc(.25s + var(--i, 0) * .11s); }
.m .footer.on .footer__auto[data-f] { opacity: .22; transition-duration: 1.4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
