/* ==========================================================================
   MAEG Logistics · Hoja de estilos
   Medidas: "Especificaciones_Tecnicas_WEB_MAEG.pdf" + diseño final MAEG-WEB.png
   (lienzo de 1440 px exportado a 2x). Los pt del documento se tratan como px a
   1440 px y se escalan con clamp(mín, vw, valor de diseño).
   ========================================================================== */

@font-face { font-family: "Auren"; src: url("../fonts/Auren-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Auren"; src: url("../fonts/Auren-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Auren"; src: url("../fonts/Auren-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Holversan"; src: url("../fonts/Holversan-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Holversan"; src: url("../fonts/Holversan-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Holversan"; src: url("../fonts/Holversan-BoldItalic.otf") format("opentype"); font-weight: 700; font-style: italic; font-display: swap; }

:root {
    /* Paleta */
    --navy: #03004f;
    --blue: #1259a7;
    --sky: #609ee1;
    --sky-light: #80b1e7;
    --gray-bg: #f2f2f2;
    --gray-text: #4d4d4d;
    --ink: #1a1a1a;
    --white: #ffffff;

    /* Tipografía */
    --f-display: "Auren", "Arial Black", system-ui, sans-serif;
    --f-body: "Holversan", "Helvetica Neue", Arial, sans-serif;

    --fs-nav: clamp(13px, 1.04vw, 15px);
    --fs-hero-1: clamp(30px, 3.47vw, 50px);
    --fs-hero-2: clamp(46px, 5.31vw, 76.5px);
    --fs-hero-sub: clamp(16px, 1.4vw, 20.18px);
    --fs-title: clamp(28px, 2.85vw, 41px);
    --fs-title-xl: clamp(34px, 3.65vw, 52.6px);
    --fs-card-title: clamp(18px, 1.74vw, 25px);
    --fs-body: clamp(16px, 1.53vw, 22px);
    --lh-body: 1.227; /* 27 / 22 */

    --container: 1236px;
    --gutter: clamp(16px, 7.08vw, 102px);
    --side: max(var(--gutter), (100vw - var(--container)) / 2);
    --radius: 5px;
    --btn-h: 44.4255px;
    --circle: clamp(72px, 6.8vw, 98.0426px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--f-body);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--gray-text);
    background: var(--gray-bg);
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 600; letter-spacing: .01em; }
p { margin: 0; }
address { font-style: normal; }
button { font: inherit; color: inherit; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

.icon {
    width: 1em; height: 1em;
    fill: none; stroke: currentColor;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
    flex-shrink: 0;
}

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--white); color: var(--navy); padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

/* Botón cápsula */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    height: var(--btn-h); padding: 0 1.5em;
    font-family: var(--f-display); font-weight: 600; font-size: var(--fs-nav);
    letter-spacing: .02em; text-decoration: none; color: var(--white);
    background: var(--sky); border: 0; border-radius: 999px; cursor: pointer;
    transition: background-color .2s, transform .2s;
}
.btn:hover { background: #4b8bd3; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn-cta { min-width: 218.8423px; }
.nav-cta { min-width: 134.7033px; }

/* Títulos comunes */
.section-title { font-size: var(--fs-title); color: var(--navy); text-align: center; line-height: 1.1; }
.section-title.light { color: var(--white); }
.section-title.big { font-size: var(--fs-title-xl); }
.lead { max-width: 34em; margin: .9em auto 0; text-align: center; }
.lead.light { color: var(--white); }
.br-desk { display: inline; }

/* ========================================================================
   01 · Header + Hero
   ======================================================================== */
.site-header {
    position: absolute; inset: 0 0 auto; z-index: 50;
    /* Degradado #03004f 100 % → blanco 0 %, modo Multiplicar */
    background: linear-gradient(180deg, rgba(3, 0, 79, .95) 0%, rgba(3, 0, 79, .45) 55%, rgba(255, 255, 255, 0) 100%);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    width: min(100% - 2 * var(--gutter), 1072px); margin-inline: auto;
    padding: clamp(20px, 3.8vw, 55px) 0 clamp(16px, 2vw, 30px);
}
.logo img { width: clamp(90px, 8.75vw, 126px); height: auto; }

.main-nav { display: flex; align-items: center; flex: 1; justify-content: space-between; margin-left: clamp(40px, 15vw, 225px); }
.main-nav ul { display: flex; align-items: center; gap: clamp(24px, 3vw, 44px); margin: 0; padding: 0; list-style: none; }
.main-nav ul a {
    position: relative; display: inline-block; padding: 8px 0;
    font-family: var(--f-display); font-weight: 600; font-size: var(--fs-nav);
    color: var(--white); text-decoration: none; text-transform: uppercase; letter-spacing: .02em;
}
.main-nav ul a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
    height: 2px; background: var(--white);
    transform: scaleX(0); transition: transform .25s;
}
.main-nav ul a:hover::after,
.main-nav ul a.is-active::after { transform: scaleX(1); }
.nav-toggle { display: none; }

.hero {
    position: relative; min-height: max(600px, min(52vw, 100svh));
    display: flex; align-items: center;
    color: var(--white); overflow: hidden; isolation: isolate;
    background: var(--navy);
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; z-index: -2; }
.hero::after { /* Degradado inferior #f2f2f2 100 % → 0 % hacia sección 02 */
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26%; z-index: -1;
    background: linear-gradient(0deg, var(--gray-bg) 0%, rgba(242, 242, 242, 0) 100%);
}
.hero-content { padding: clamp(110px, 12vw, 170px) 0 clamp(90px, 13vw, 190px); }
.hero h1 { text-transform: uppercase; letter-spacing: .01em; }
.hero-l1 { display: block; font-family: var(--f-display); font-weight: 500; font-size: var(--fs-hero-1); line-height: 1.04; }
.hero-l2 { display: block; font-family: var(--f-display); font-weight: 800; font-size: var(--fs-hero-2); line-height: 1.02; margin-top: .02em; }
.hero-sub { margin: .7em 0 1.4em; font-size: var(--fs-hero-sub); line-height: 1.227; }
.hero-sub em { font-style: italic; font-weight: 700; color: var(--sky); }

/* ========================================================================
   02 · Quiénes somos
   ======================================================================== */
.about { background: var(--gray-bg); padding: clamp(40px, 5.5vw, 80px) 0 clamp(60px, 9vw, 130px); }
.about-track { display: grid; }
.about-slide { grid-area: 1 / 1; text-align: center; transition: opacity .5s; }
.about-slide[hidden] { display: block; visibility: hidden; opacity: 0; pointer-events: none; }
/* PENDIENTE: el PDF indica #03004f para el cuerpo; el diseño final muestra gris. Se sigue el diseño. */
.about .lead { color: var(--gray-text); max-width: 33em; }
.about .lead strong { font-weight: 700; }

.dots { display: flex; justify-content: center; gap: 12px; margin-top: clamp(16px, 1.6vw, 24px); }
.dots button {
    width: 12px; height: 12px; padding: 0; border-radius: 50%;
    border: 0; background: #bdbdbd; cursor: pointer; transition: background-color .2s;
}
.dots button[aria-selected="true"] { background: #6e6e6e; }

.mv-cards {
    display: flex; justify-content: center; gap: clamp(20px, 3.5vw, 50px);
    margin-top: calc(var(--circle) / 2 + clamp(40px, 4.5vw, 64px));
}
.mv-card {
    position: relative; flex: 0 1 481.6656px; min-height: clamp(220px, 20.4vw, 293.4628px);
    padding: calc(var(--circle) / 2 + clamp(18px, 2vw, 30px)) clamp(20px, 2vw, 28px) clamp(24px, 2.6vw, 38px);
    background: var(--blue); color: var(--white); border-radius: var(--radius);
    text-align: center;
}
.mv-card h3 { font-size: var(--fs-card-title); margin-bottom: .6em; }
/* El PDF indica interlineado 16 pt para 22 pt; se usa 27/22 (como en el diseño final). */
.mv-card p { font-size: clamp(15px, 1.39vw, 20px); line-height: 1.4; }

.icon-circle {
    position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%);
    display: grid; place-items: center;
    width: var(--circle); height: var(--circle); border-radius: 50%;
    background: var(--navy);
}
.icon-circle img { width: 58%; height: auto; }

/* ========================================================================
   03 · Animación de valores
   ======================================================================== */
.values { background: var(--gray-bg); overflow: hidden; }
.road { position: relative; height: calc(var(--unit-h) + 4px); --unit-h: clamp(100px, 12.85vw, 240px); }
.convoy {
    position: absolute; bottom: 0; left: 0;
    display: flex; width: max-content;
    /* La cabina mira a la izquierda: el convoy avanza de derecha a izquierda.
       Dos copias idénticas + desplazamiento de 50 % = ciclo sin saltos. */
    animation: drive 55s linear infinite;
}
.convoy-set { display: flex; align-items: flex-end; }
.unit { position: relative; flex: 0 0 auto; height: var(--unit-h); margin-right: calc(var(--unit-h) * -.06); }
.unit:nth-child(3), .unit:nth-child(6) { margin-right: 8vw; } /* separación entre tractocamiones */
.unit img { height: 100%; width: auto; user-select: none; }
.unit span {
    position: absolute; top: 7%; bottom: 34%; left: 5.3%; right: 3%;
    display: grid; place-items: center; padding: 0 6%;
    font-family: var(--f-display); font-weight: 600; font-size: clamp(13px, 1.74vw, 25px);
    line-height: 1.05; color: var(--white); text-align: center; text-transform: uppercase; letter-spacing: .02em;
}
.unit-04 span { left: 38%; } /* la cabina ocupa el lado izquierdo */
@keyframes drive { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ========================================================================
   04 · Servicios (coverflow: 7 tarjetas, la central activa)
   ======================================================================== */
.services {
    background-color: var(--navy);
    background-image: url("../img/textura-lineas.png");
    background-size: cover; background-blend-mode: multiply;
    color: var(--white); padding: clamp(56px, 7vw, 100px) 0 clamp(64px, 10vw, 150px); overflow: hidden;
}
.svc-carousel { --svc-w: clamp(230px, 31vw, 447px); position: relative; margin-top: clamp(40px, 7vw, 100px); outline: none; }
.svc-stage { position: relative; height: calc(var(--svc-w) * 527 / 447); margin: 0; padding: 0; list-style: none; }
.svc-card {
    position: absolute; left: 50%; top: 0; width: var(--svc-w); height: 100%;
    margin-left: calc(var(--svc-w) / -2);
    border-radius: var(--radius); overflow: hidden; cursor: pointer;
    transform-origin: center center;
    transition: transform .65s cubic-bezier(.22, .7, .2, 1), filter .65s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.svc-card img { width: 100%; height: 100%; object-fit: cover; }
.svc-card.is-active { cursor: default; }
.svc-info {
    position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
    padding: clamp(18px, 2.4vw, 36px);
    background: rgba(242, 242, 242, .85); text-align: center;
    opacity: 0; transition: opacity .35s;
}
.svc-card.is-active .svc-info { opacity: 1; transition-delay: .25s; }
.svc-info h3 { font-size: var(--fs-card-title); color: var(--blue); line-height: 1.1; }
.svc-info p { margin-top: .9em; font-size: var(--fs-body); line-height: var(--lh-body); color: var(--gray-text); }

.svc-arrow {
    position: absolute; top: 50%; z-index: 20; transform: translateY(-50%);
    display: grid; place-items: center; width: 44px; height: 44px;
    border: 0; border-radius: 50%; background: rgba(3, 0, 79, .55);
    color: var(--white); font-size: 22px; cursor: pointer; transition: background-color .2s;
}
.svc-arrow.prev { left: calc(50% - var(--svc-w) / 2 - 22px); }
.svc-arrow.next { right: calc(50% - var(--svc-w) / 2 - 22px); }
.svc-arrow:hover { background: var(--sky); }

/* ========================================================================
   04.1 · Servicios extras
   ======================================================================== */
.extras { position: relative; padding: clamp(100px, 12.5vw, 180px) 0 clamp(80px, 12vw, 175px); isolation: isolate; background: #6f86a8; }
.extras-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; z-index: -1; }
.extras-grid { display: flex; justify-content: space-between; gap: clamp(16px, 3.3vw, 48px); }
.extra-card {
    position: relative; flex: 0 1 380px; min-height: clamp(260px, 26.4vw, 380px);
    padding: calc(var(--circle) / 2 + clamp(18px, 2.4vw, 34px)) clamp(16px, 1.8vw, 26px) 28px;
    background: rgba(242, 242, 242, .85); border-radius: var(--radius); text-align: center;
}
.extra-card h3 { font-size: var(--fs-card-title); line-height: 1.08; color: var(--blue); margin: 0 auto .9em; max-width: 11em; }
/* PENDIENTE: HEX del cuerpo (gris aparente) */
.extra-card p { color: var(--gray-text); }

/* ========================================================================
   05 · Flotilla (marquesina interactiva)
   ======================================================================== */
.fleet {
    /* PENDIENTE: HEX exacto del fondo; se toma el azul #1259a7 + textura de líneas */
    background-color: var(--blue);
    background-image: url("../img/textura-lineas.png");
    background-size: cover; background-blend-mode: multiply;
    padding: clamp(36px, 4.6vw, 66px) 0 clamp(20px, 2.5vw, 36px); overflow: hidden;
}
.fleet-marquee { overflow: hidden; }
.fleet-track {
    display: flex; width: max-content; margin: 0; padding: 0; list-style: none;
    animation: marquee 50s linear infinite;
}
.fleet-marquee.is-paused .fleet-track { animation-play-state: paused; }
.fleet-item {
    flex: 0 0 auto; width: clamp(220px, 21.5vw, 309px);
    min-height: clamp(160px, 13vw, 190px); /* reserva altura para la descripción */
    padding: 0 clamp(10px, 1.2vw, 18px);
    text-align: center; color: var(--navy);
}
.fleet-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px; width: 100%;
    min-height: clamp(110px, 9vw, 130px);
    padding: 0; border: 0; background: none; cursor: pointer; color: inherit;
}
.fleet-icon { position: relative; width: clamp(80px, 7.6vw, 110px); aspect-ratio: 455 / 324; }
.fleet-icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .25s; }
.fleet-icon .ic-on { opacity: 0; }
.fleet-title { font-family: var(--f-display); font-weight: 600; font-size: var(--fs-card-title); line-height: 1.08; transition: color .25s; }
.fleet-desc {
    margin-top: 8px; font-size: var(--fs-body); line-height: var(--lh-body); color: var(--white);
    opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s;
}
.fleet-item.is-active { color: var(--white); }
.fleet-item.is-active .ic-on { opacity: 1; }
.fleet-item.is-active .ic-off { opacity: 0; }
.fleet-item.is-active .fleet-desc { opacity: 1; transform: none; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ========================================================================
   06 · Galería
   ======================================================================== */
.gallery { background: var(--gray-bg); padding: clamp(48px, 6.9vw, 100px) 0; }
/* Fila 1: horizontal + cuadrado; fila 2: cuadrado + horizontal. Ambos módulos
   comparten altura (768.3744 × 382.5995 y 382.5995²). */
.gallery-grid {
    --gap: clamp(10px, 1.67vw, 24px);
    --unit: calc((100% - var(--gap)) / (768.3744 + 382.5995));
    display: flex; flex-wrap: wrap; gap: var(--gap);
}
.g-cell { position: relative; margin: 0; overflow: hidden; background: #dcdcdc; }
.g-wide { width: calc(var(--unit) * 768.3744); aspect-ratio: 768.3744 / 382.5995; }
.g-square { width: calc(var(--unit) * 382.5995); aspect-ratio: 1; }
.g-img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transition: opacity 1.2s ease;
}
.g-img.is-on { opacity: 1; }

/* ========================================================================
   07 · Contáctanos
   ======================================================================== */
.contact {
    position: relative; display: grid; grid-template-columns: 1fr 35%;
    background: var(--navy); color: var(--white); isolation: isolate; overflow: hidden;
}
/* PENDIENTE: mapa decorativo #609ee1 al 10 % (no viene como archivo separado).
   Cuando exista: .contact::before { background:url("../img/mapa-decorativo.svg") …; opacity:.1 } */
.contact-info { padding: clamp(56px, 6.5vw, 94px) clamp(24px, 4vw, 60px) clamp(56px, 6.5vw, 94px) var(--side); }
.contact .section-title { text-align: left; }
.contact-tag { margin: .2em 0 clamp(28px, 3.5vw, 50px); }
.contact-tag em { font-style: italic; font-weight: 700; color: var(--sky); }
.contact-list { display: grid; gap: clamp(14px, 1.8vw, 26px); margin: 0; padding: 0; list-style: none; max-width: 38em; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .icon { width: 20px; height: 20px; color: var(--sky); margin-top: .2em; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; color: var(--sky); }
.contact-map { position: relative; display: block; min-height: 320px; background: #dfe3ea; }
.contact-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.map-hint {
    position: absolute; right: 14px; bottom: 14px;
    padding: 8px 14px; border-radius: 999px; background: var(--sky);
    font-family: var(--f-display); font-weight: 600; font-size: 14px; color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}

/* ========================================================================
   08 · Cotiza tu servicio
   ======================================================================== */
.quote { position: relative; padding: clamp(56px, 6.5vw, 94px) 0 clamp(80px, 11vw, 160px); color: var(--white); isolation: isolate; overflow: hidden; background: var(--navy); }
.quote-bg { position: absolute; inset: 0; z-index: -1; }
.quote-bg img { width: 100%; height: 100%; object-fit: cover; }
.quote-bg::before { content: ""; position: absolute; inset: 0; background: rgba(26, 26, 26, .55); mix-blend-mode: multiply; }
.quote-bg::after { content: ""; position: absolute; inset: 0; background: rgba(128, 177, 231, .44); mix-blend-mode: color; }
.quote::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; z-index: -1;
    background: linear-gradient(0deg, var(--navy) 0%, rgba(3, 0, 79, 0) 100%);
}
.quote .section-title { text-align: left; }
.quote-lead { margin-top: .15em; }
.quote-form {
    display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(14px, 1.7vw, 24px) clamp(14px, 1.67vw, 24px);
    margin-top: clamp(28px, 3vw, 44px);
}
.f-wide { grid-column: span 4; }
.f-narrow { grid-column: span 2; }
.f-half { grid-column: span 3; }
.f-full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 10px; min-width: 0; border: 0; margin: 0; padding: 0; }
.field label, .field legend { font-size: var(--fs-body); color: var(--white); }
.field sup { font-family: Arial, sans-serif; font-size: .7em; vertical-align: .5em; line-height: 0; }
.field legend { margin-bottom: 14px; padding: 0; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select {
    width: 100%; height: clamp(42px, 3.4vw, 49px); padding: 0 16px;
    font: inherit; font-size: 17px; color: var(--ink);
    background: rgba(255, 255, 255, .75); border: 2px solid transparent; border-radius: var(--radius);
    transition: border-color .2s, background-color .2s;
}
.field select {
    appearance: none; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 9l7 6 7-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center; background-size: 24px; padding-right: 50px;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--sky); background-color: rgba(255, 255, 255, .92); }
.field.has-error input, .field.has-error select { border-color: #ff8a8a; }
.field .err { font-size: 14px; color: #ffc2c2; }
.choices { display: flex; flex-wrap: wrap; gap: 14px clamp(28px, 6.5vw, 94px); }
.choice { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: var(--fs-body); }
.choice input {
    appearance: none; width: 30px; height: 30px; margin: 0; flex-shrink: 0;
    border-radius: 50%; background: rgba(255, 255, 255, .75); border: 2px solid transparent; cursor: pointer;
    display: grid; place-items: center; transition: background-color .2s;
}
.choice input::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--sky); transform: scale(0); transition: transform .15s; }
.choice input:checked::after { transform: scale(1); }
.choice input:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: clamp(10px, 1.6vw, 24px); }
.form-status { font-size: 16px; }
.form-status.is-error { color: #ffc2c2; }
.hp { position: absolute; left: -9999px; }
.form-success {
    margin-top: clamp(32px, 3vw, 56px); padding: clamp(28px, 3vw, 48px); max-width: 720px;
    background: rgba(242, 242, 242, .92); color: var(--navy); border-radius: var(--radius); text-align: center;
}
.form-success h3 { font-size: var(--fs-card-title); color: var(--blue); margin-bottom: .5em; }
.form-success p { color: var(--gray-text); }

/* ========================================================================
   09 · Footer
   ======================================================================== */
.site-footer { background: var(--navy); color: var(--white); padding: 0 0 clamp(40px, 5vw, 70px); }
.footer-inner { display: flex; align-items: flex-end; gap: clamp(20px, 2.3vw, 34px); }
.footer-links { font-size: var(--fs-body); }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--sky); }
.footer-links .sep { color: var(--sky); margin: 0 .6em; }
.footer-social { display: flex; gap: 10px; margin-right: auto; }
.footer-social a { color: var(--sky); font-size: clamp(30px, 2.7vw, 39px); display: grid; }
.footer-social a:hover { color: var(--white); }
.footer-logo { width: clamp(90px, 8.75vw, 126px); height: auto; }

/* ========================================================================
   Responsive (PENDIENTE: retícula móvil aprobada)
   ======================================================================== */
@media (max-width: 1024px) {
    .mv-cards, .extras-grid { flex-wrap: wrap; justify-content: center; }
    .extras-grid { row-gap: calc(var(--circle) / 2 + 28px); }
    .extra-card { flex-basis: 340px; }
    .contact { grid-template-columns: 1fr; }
    .contact-info { padding-inline: var(--side); }
    .contact-map { min-height: 340px; }
}

@media (max-width: 860px) {
    .br-desk { display: none; }
    .nav-toggle {
        display: grid; gap: 5px; place-content: center; width: 44px; height: 44px;
        background: none; border: 0; cursor: pointer; z-index: 2;
    }
    .nav-toggle span { display: block; width: 26px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .25s, opacity .25s; }
    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .main-nav {
        position: fixed; inset: 0; margin: 0; background: var(--navy);
        flex-direction: column; justify-content: center; gap: 32px;
        opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
    }
    .main-nav.is-open { opacity: 1; visibility: visible; }
    .main-nav ul { flex-direction: column; gap: 28px; }
    .main-nav ul a { font-size: 22px; }

    .hero { min-height: 100svh; align-items: flex-end; }
    .hero-bg { object-position: 68% center; }
    .hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(3, 0, 79, .7) 15%, rgba(3, 0, 79, 0) 65%); }

    .svc-arrow.prev { left: 8px; }
    .svc-arrow.next { right: 8px; }

    .gallery-grid { --unit: calc((100% - var(--gap)) / 2); }
    .g-wide { width: 100%; }
    .g-square { width: calc((100% - var(--gap)) / 2); }

    .quote-form { grid-template-columns: 1fr 1fr; }
    .f-wide, .f-half { grid-column: span 2; }
    .f-narrow { grid-column: span 1; }

    .footer-inner { flex-wrap: wrap; justify-content: center; text-align: center; padding-top: 24px; }
    .footer-links { width: 100%; }
    .footer-social { margin: 0; }
}

@media (max-width: 600px) {
    .mv-card, .extra-card { flex-basis: 100%; }
    .mv-cards { flex-direction: column; align-items: stretch; row-gap: calc(var(--circle) / 2 + 28px); }
    .quote-form { grid-template-columns: 1fr; }
    .f-wide, .f-half, .f-narrow { grid-column: 1 / -1; }
    .fleet-item { width: 72vw; }
    .footer-links .sep { margin: 0 .35em; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .convoy, .fleet-track { animation: none; }
    .convoy { position: static; width: auto; justify-content: center; }
    .road { height: auto; }
    .convoy-set { flex-wrap: wrap; justify-content: center; row-gap: 16px; }
    .convoy-set + .convoy-set { display: none; }
    .unit:nth-child(3), .unit:nth-child(6) { margin-right: 0; }
    .fleet-track { flex-wrap: wrap; justify-content: center; width: auto; }
    .fleet-track .fleet-item[aria-hidden="true"] { display: none; }
    .svc-card, .g-img { transition: none; }
}
