/* ========================================= */
/*        DESIGN SYSTEM  (VARIABLES)         */
/* ========================================= */
:root {

    /* ---------- Paleta de marca ---------- */
    /* Identidad principal: Negro · Rojo · Dorado          */
    /* Azul: color institucional SECUNDARIO                */
    --color-black: #0e0e10;
    --color-navy: #101a2b;
    --color-red: #e11b22;
    --color-gold: #f5b301;
    --color-blue: #0d47a1;        /* secundario institucional */

    /* ---------- Neutros ---------- */
    --color-white: #ffffff;
    --color-gray-100: #f5f5f5;
    --color-gray-300: #d9d9d9;
    --color-gray-600: #6b6b6b;
    --color-gray-900: #1a1a1c;

    /* ---------- Externos ---------- */
    --color-whatsapp: #25d366;

    /* ---------- Roles semánticos ---------- */
    --color-primary: var(--color-red);     /* acción / energía     */
    --color-accent: var(--color-gold);     /* acentos premium      */
    --color-dark: var(--color-navy);       /* fondos fuertes / confianza institucional */
    --color-light: var(--color-white);     /* espacio / texto claro*/
    --color-text: var(--color-gray-900);   /* texto principal      */
    --color-muted: var(--color-gray-600);  /* texto secundario     */

    /* ---------- Tipografía ---------- */
    --font-base: 'Poppins', system-ui, -apple-system, sans-serif;

    --fw-light: 300;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fw-extra: 800;

    /* Escala de tamaños (fluida con clamp donde aporta) */
    --fs-xs: 0.75rem;     /* 12px */
    --fs-sm: 0.875rem;    /* 14px */
    --fs-base: 1rem;      /* 16px */
    --fs-md: 1.125rem;    /* 18px */
    --fs-lg: clamp(1.25rem, 2vw, 1.5rem);
    --fs-xl: clamp(1.5rem, 3vw, 2rem);
    --fs-2xl: clamp(2rem, 4vw, 2.75rem);
    --fs-display: clamp(2.5rem, 6vw, 4rem);

    /* Interlineados */
    --lh-tight: 1.15;
    --lh-base: 1.6;

    /* ---------- Espaciados ---------- */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2.5rem;
    --space-2xl: 4rem;
    --space-section: clamp(3.5rem, 8vw, 7rem);  /* padding vertical de secciones */

    /* ---------- Border radius ---------- */
    --radius-sm: 0.375rem;   /* 6px  */
    --radius-md: 0.625rem;   /* 10px */
    --radius-lg: 1rem;       /* 16px */
    --radius-pill: 50rem;    /* botones tipo píldora */

    /* ---------- Sombras ---------- */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.18);

    /* ---------- Transiciones ---------- */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* ---------- Layout ---------- */
    --container-width: 75rem;                       /* 1200px */
    --container-padding: clamp(1rem, 4vw, 2.5rem);
    --header-height: clamp(4.5rem, 8vw, 5.5rem);
    --header-height-solid: 4.5rem;
    --z-header: 1000;
}

/* ========================================= */
/*               RESET / BASE                */
/* ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
}

body {
    font-family: var(--font-base);
    font-size: var(--fs-base);
    line-height: var(--lh-base);
    color: var(--color-text);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

/* ========================================= */
/*          CONTAINER REUTILIZABLE           */
/* ========================================= */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

/* ========================================= */
/*                 HEADER                    */
/* ========================================= */

/* Barra fija que arranca transparente sobre el Hero */
.header {
    position: fixed;
    inset: 0 0 auto 0;                       /* top/left/right = 0 */
    z-index: var(--z-header);
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: background-color var(--transition-base),
                height var(--transition-base),
                box-shadow var(--transition-base);
}

/* Las 3 zonas del header en una sola fila */
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
}

/* --- Estado transparente (inicial, sobre Hero oscuro) --- */
.header--transparent,
.header-transparent {
    background-color: transparent;
    border: none;
    box-shadow: none;
}

.header,
.header .container {
    border: none;
}

.header::before,
.header::after,
.header .container::before,
.header .container::after {
    content: none;
    display: none;
}
/* --- Estado sólido (lo activa JS con .header-solid) --- */
.header-solid {
    height: var(--header-height-solid);
    background-color: rgba(16, 26, 43, 0.97);
    box-shadow: none;
}

/* ---------- LOGO ---------- */
.logo {
    display: inline-flex;
    align-items: center;
}

.logo-img {
    height: clamp(2.5rem, 5vw, 3.25rem);
    width: auto;
    border-radius: 12px;
    transition: transform var(--transition-base);
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

/* ---------- NAVEGACIÓN ---------- */
.menu {
    display: flex;
    align-items: center;
    gap: clamp(1.25rem, 2.5vw, 2.25rem);
}

.menu-link {
    position: relative;
    font-weight: var(--fw-medium);
    font-size: var(--fs-sm);
    color: var(--color-light);               /* Blanco sobre Hero oscuro */
    padding-block: var(--space-xs);
    transition: color var(--transition-base);
}

/* Subrayado animado: línea dorada que crece al pasar el cursor */
.menu-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition-base);
}

.menu-link:hover::after,
.menu-link.is-active::after {
    width: 100%;
}

/* En estado sólido los enlaces pasan a oscuro y resaltan en rojo */
.header-solid .menu-link {
    color: var(--color-light);
}

.header-solid .menu-link:hover,
.header-solid .menu-link.is-active {
    color: var(--color-primary);
}

/* ---------- ACCIONES (WhatsApp + Hamburguesa) ---------- */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* Botón "Escríbenos" — moderno, con ícono y elevación al hover */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.65rem 1.35rem;
    border-radius: var(--radius-pill);
    background-color: var(--color-whatsapp);
    color: var(--color-light);
    font-weight: var(--fw-semibold);
    font-size: var(--fs-sm);
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
    transition: transform var(--transition-base),
                box-shadow var(--transition-base),
                filter var(--transition-base);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45);
}

.icon-whatsapp {
    width: 1.15rem;
    height: 1.15rem;
    fill: currentColor;
}

/* ---------- BOTÓN HAMBURGUESA (oculto en escritorio) ---------- */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.5rem;
    height: 2.5rem;
}

.nav-toggle-bar {
    width: 1.6rem;
    height: 2px;
    background-color: var(--color-light);
    border-radius: 2px;
    transition: transform var(--transition-base),
                opacity var(--transition-base),
                background-color var(--transition-base);
}

.header-solid .nav-toggle-bar {
    background-color: var(--color-text);
}

/* Transformación a "X" cuando el menú está abierto (clase vía JS) */
.nav-toggle.is-active .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ========================================= */
/*           HEADER — RESPONSIVE             */
/* ========================================= */
@media (max-width: 62rem) {                  /* ~992px */

    /* Se muestra la hamburguesa */
    .nav-toggle {
        display: flex;
    }

    /* La navegación pasa a panel lateral deslizable */
    .nav {
        position: fixed;
        inset: 0 0 0 auto;                   /* alto completo, anclado a la derecha */
        width: min(80%, 20rem);
        background-color: var(--color-dark);
        padding: var(--header-height) var(--space-xl) var(--space-xl);
        transform: translateX(100%);
        transition: transform var(--transition-base);
        box-shadow: var(--shadow-md);
    }

    /* Clase que añade JS para abrir el menú */
    .nav.is-open {
        transform: translateX(0);
    }

    .menu {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-lg);
    }

    /* En el panel los enlaces siempre van claros sobre fondo oscuro */
    .menu-link,
    .header-solid .menu-link {
        color: var(--color-light);
        font-size: var(--fs-md);
    }
}

/* ========================================= */
/*                  HERO                     */
/* ========================================= */

/* Sección principal: ocupa casi toda la primera pantalla.
   El padding superior reserva el espacio del Header fijo. */
.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: auto;
    padding-block: calc(var(--header-height) + 0.75rem) 2rem;
    background:
        linear-gradient(135deg, #0c1524 0%, var(--color-navy) 55%, #182235 100%);
    color: var(--color-light);
    overflow: hidden;
}
/* ---------- Overlay decorativo (profundidad visual) ---------- */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        /* Resplandor rojo (energía) arriba a la derecha */
        radial-gradient(ellipse at 85% 15%, rgba(225, 27, 34, 0.22), transparent 55%),
        /* Resplandor dorado (premium) abajo a la izquierda */
        radial-gradient(ellipse at 10% 90%, rgba(245, 179, 1, 0.12), transparent 50%),
        /* Viñeteado inferior para fundir con la siguiente sección */
        linear-gradient(to bottom, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

/* ---------- Distribución en dos columnas ---------- */
.hero-container {
    position: relative;
    z-index: 1;                         /* sobre el overlay */
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 4.5rem);
    width: 100%;
}

/* ---------- Columna de texto ---------- */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-lg);
    max-width: 36rem;
}

/* Etiqueta superior con línea dorada de acento */
.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.hero-kicker::before {
    content: '';
    width: 2.25rem;
    height: 2px;
    background-color: var(--color-accent);
}

/* Título principal */
.hero-title {
    font-size: var(--fs-display);
    font-weight: var(--fw-extra);
    line-height: var(--lh-tight);
    letter-spacing: -0.01em;
}

/* Palabra clave resaltada (segunda línea) */
.hero-title-accent {
    display: block;
    color: var(--color-accent);
}

/* Subtítulo */
.hero-subtitle {
    font-size: var(--fs-md);
    color: rgba(255, 255, 255, 0.82);
    max-width: 30rem;
}

/* ---------- Botones del Hero ---------- */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-top: var(--space-sm);
}

/* Botón base reutilizable en todo el sitio */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 0.9rem 1.9rem;
    border-radius: var(--radius-pill);
    font-weight: var(--fw-semibold);
    font-size: var(--fs-base);
    line-height: 1;
    transition: transform var(--transition-base),
                box-shadow var(--transition-base),
                background-color var(--transition-base),
                border-color var(--transition-base),
                color var(--transition-base),
                filter var(--transition-base);
}

/* Botón principal: rojo, llamativo, con elevación */
.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-light);
    box-shadow: 0 8px 24px rgba(225, 27, 34, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    filter: brightness(1.05);
    box-shadow: 0 14px 32px rgba(225, 27, 34, 0.5);
}

/* Botón secundario: outline elegante que se rellena en dorado */
.btn-outline {
    background-color: transparent;
    color: var(--color-light);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    transform: translateY(-3px);
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-dark);
}

/* ---------- Columna del vehículo ---------- */
.hero-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Empuja el vehículo para que sobresalga del borde inferior */
    transform: translateY(clamp(1rem, 3vw, 2.5rem));
}

/* Resplandor difuso detrás del vehículo (profundidad 3D) */
.hero-glow {
    position: absolute;
    z-index: -1;
    width: 80%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(225, 27, 34, 0.35), rgba(245, 179, 1, 0.12) 45%, transparent 70%);
    filter: blur(20px);
}

/* Imagen del vehículo (PNG sin fondo) con sombra flotante */
.hero-vehicle {
    width: 112%;
    max-width: 43rem;
    height: auto;
    margin-inline: auto;

    border-radius: 1.5rem;

    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 5%,
        black 95%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 5%,
        black 95%,
        transparent 100%
    );

    filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.35));
    animation: hero-vehicle-in 0.9s var(--transition-base) both;
}
/* ========================================= */
/*        HERO — MICROANIMACIONES (CSS)      */
/* ========================================= */

/* Entrada suave hacia arriba para el texto */
@keyframes hero-fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Entrada lateral para el vehículo */
@keyframes hero-vehicle-in {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Aplicación escalonada a los elementos de texto */
.hero-kicker,
.hero-title,
.hero-subtitle,
.hero-actions {
    animation: hero-fade-up 0.7s var(--transition-base) both;
}

.hero-title    { animation-delay: 0.1s; }
.hero-subtitle { animation-delay: 0.2s; }
.hero-actions  { animation-delay: 0.3s; }

/* Respeto por usuarios que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
    .hero-kicker,
    .hero-title,
    .hero-subtitle,
    .hero-actions,
    .hero-vehicle {
        animation: none;
    }
}

/* ========================================= */
/*            HERO — RESPONSIVE              */
/* ========================================= */

/* Tablet y móvil: una sola columna (texto arriba, vehículo abajo) */
@media (max-width: 62rem) {              /* ~992px */

    .hero {
        min-height: auto;
        padding-block: calc(var(--header-height) + var(--space-2xl)) var(--space-2xl);
        text-align: center;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    /* Centrar texto, botones y kicker */
    .hero-content {
        align-items: center;
        max-width: 38rem;
        margin-inline: auto;
    }

    .hero-subtitle {
        margin-inline: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    /* El vehículo deja de sobresalir para no invadir contenido */
    .hero-media {
        transform: none;
    }

    .hero-vehicle {
        max-width: 28rem;
    }
}

/* Móvil pequeño: botones a ancho completo y apilados */
@media (max-width: 30rem) {               /* ~480px */

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }
}

/* ========================================= */
/*     ENCABEZADO DE SECCIÓN (REUTILIZABLE)  */
/*     Patrón común: kicker → título → texto */
/* ========================================= */

/* Etiqueta superior con línea de acento */
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary);
}

/* Encabezado centrado de la sección Servicios */
.services-kicker,
.services .section-kicker {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: max-content;
    max-width: calc(100% - (2 * var(--container-padding)));
    margin-inline: auto;
    text-align: center;
    justify-content: center;
    transform: none;
    font-size: 1.1rem;
}

/* Línea decorativa del encabezado */
.section-kicker::before {
    content: '';
    flex: none;
    width: 2.25rem;
    height: 2px;
    background-color: var(--color-primary);
}

/* Título de sección */
.section-title {
    font-size: var(--fs-2xl);
    font-weight: var(--fw-extra);
    line-height: var(--lh-tight);
    letter-spacing: -0.01em;
    color: var(--color-text);
}

/* Palabra/frase clave resaltada dentro de un título */
.text-accent {
    color: var(--color-primary);
}

/* Texto introductorio de sección */
.section-text {
    font-size: var(--fs-md);
    color: var(--color-muted);
    max-width: 34rem;
}


/* ========================================= */
/*                SERVICIOS                  */
/*      Slider integrado + contenido actual  */
/* ========================================= */

.services {
    background-color: var(--color-light);
    padding-top: 2.5rem;
    padding-bottom: var(--space-section);
    overflow: hidden;
}


/* ========================================= */
/*          ESTRUCTURA GENERAL               */
/* ========================================= */

.services-container {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 4vw, 3.5rem);

    /* Reserva el espacio del encabezado centrado */
    padding-top: 5rem;
}


/* ========================================= */
/*          SLIDER VISUAL INTEGRADO          */
/* ========================================= */

.services-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: clamp(1rem, 2vw, 1.5rem);
    background-color: #17191d;
    box-shadow: var(--shadow-lg);
}

.services-slider-track {
    position: relative;
    width: 100%;
}


/* Cada slide ocupa exactamente el mismo espacio */

.services-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(19rem, 0.85fr);
    min-height: clamp(25rem, 38vw, 31rem);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.7s ease,
        visibility 0.7s ease;
}

.services-slide.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* ========================================= */
/*              ZONA DE IMAGEN               */
/* ========================================= */

.services-slide-media {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background-color: #111317;
}

.services-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


/* Fusión suave entre fotografía y panel */

.services-slide-media::after {
    content: '';
    position: absolute;
    z-index: 2;
    top: 0;
    right: -8rem;
    bottom: 0;

    width: clamp(18rem, 28vw, 28rem);

    pointer-events: none;

    background: linear-gradient(
        to right,
        rgba(23, 25, 29, 0) 0%,
        rgba(23, 25, 29, 0.02) 12%,
        rgba(23, 25, 29, 0.06) 24%,
        rgba(23, 25, 29, 0.14) 36%,
        rgba(23, 25, 29, 0.28) 49%,
        rgba(23, 25, 29, 0.48) 62%,
        rgba(23, 25, 29, 0.70) 75%,
        rgba(23, 25, 29, 0.88) 88%,
        #17191d 100%
    );
}

/* ========================================= */
/*               PANEL DE TEXTO              */
/* ========================================= */

.services-slide-panel {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    min-width: 0;

    padding:
        clamp(2rem, 4vw, 3.5rem)
        clamp(2rem, 4vw, 3.75rem)
        clamp(4.5rem, 6vw, 5.5rem)
        clamp(1rem, 2vw, 2rem);

    background-color: #17191d;
    color: var(--color-light);
}

.services-slide-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    max-width: 27rem;
}


/* Número pequeño del slide */

.services-slide-number {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;

    font-size: 0.8rem;
    font-weight: var(--fw-bold);
    letter-spacing: 0.12em;
    color: var(--color-primary);
}

.services-slide-number::after {
    content: '';
    width: 2.25rem;
    height: 2px;
    background-color: var(--color-primary);
}


/* Título cambiante */

.services-slide-title {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.65rem);
    font-weight: var(--fw-extra);
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--color-light);
    text-wrap: balance;
}


/* Descripción cambiante */

.services-slide-text {
    margin: 0;
    font-size: clamp(0.95rem, 1.3vw, 1.08rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.76);
}


/* ========================================= */
/*           INDICADORES DEL SLIDER          */
/* ========================================= */

.services-slider-dots {
    position: absolute;
    z-index: 10;
    right: clamp(2rem, 4vw, 3.75rem);
    bottom: clamp(1.5rem, 3vw, 2.25rem);

    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.services-slider-dot {
    width: 0.6rem;
    height: 0.6rem;
    padding: 0;
    border: 0;
    border-radius: 50%;

    background-color: rgba(255, 255, 255, 0.35);

    transition:
        width var(--transition-base),
        border-radius var(--transition-base),
        background-color var(--transition-base),
        transform var(--transition-base);
}

.services-slider-dot:hover {
    background-color: rgba(255, 255, 255, 0.7);
    transform: scale(1.1);
}

.services-slider-dot.is-active {
    width: 2rem;
    border-radius: var(--radius-pill);
    background-color: var(--color-primary);
}


/* ========================================= */
/*      SERVICIOS ACTUALES CONSERVADOS       */
/* ========================================= */

.services-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(2rem, 3vw, 2.75rem);
    width: 100%;
}


/* Los 5 servicios se distribuyen en una grilla */

.services-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    gap: clamp(0.75rem, 1.5vw, 1.25rem);
}


/* Cada servicio conserva su mini icono */

.services-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.85rem;

    min-width: 0;
    padding: 1.35rem 1rem;

    border: 1px solid var(--color-gray-100);
    border-radius: var(--radius-md);

    background-color: var(--color-light);
    text-align: center;

    transition:
        transform var(--transition-base),
        border-color var(--transition-base),
        box-shadow var(--transition-base);
}

.services-item:last-child {
    padding-bottom: 1.35rem;
    border-bottom: 1px solid var(--color-gray-100);
}


/* ========================================= */
/*                 ICONOS                    */
/* ========================================= */

.services-icon {
    flex: none;
    display: grid;
    place-items: center;

    width: 2.9rem;
    height: 2.9rem;

    border-radius: 50%;
    background-color: rgba(225, 27, 34, 0.1);
    color: var(--color-primary);

    transition:
        background-color var(--transition-base),
        color var(--transition-base),
        transform var(--transition-base);
}

.services-icon-svg {
    width: 1.4rem;
    height: 1.4rem;
    fill: currentColor;
}


/* ========================================= */
/*          TEXTO DE CADA SERVICIO           */
/* ========================================= */

.services-item-text {
    font-size: 0.92rem;
    font-weight: var(--fw-semibold);
    line-height: 1.45;
    color: var(--color-text);

    transition:
        transform var(--transition-base),
        color var(--transition-base);
}


/* ========================================= */
/*             MICROANIMACIONES              */
/* ========================================= */

.services-item:hover {
    transform: translateY(-4px);
    border-color: rgba(225, 27, 34, 0.18);
    box-shadow: var(--shadow-sm);
}

.services-item:hover .services-icon {
    background-color: var(--color-primary);
    color: var(--color-light);
    transform: scale(1.08);
}

.services-item:hover .services-item-text {
    transform: none;
    color: var(--color-primary);
}


/* ========================================= */
/*              TABLET GRANDE                */
/*            641px hasta 992px              */
/* ========================================= */

@media (min-width: 40.01rem) and (max-width: 62rem) {

    .services-container {
        gap: 2.5rem;
    }

    .services-slide {
        grid-template-columns: minmax(0, 1.35fr) minmax(17rem, 0.85fr);
        min-height: clamp(22rem, 52vw, 27rem);
    }

    .services-slide-panel {
        padding:
            2rem
            2rem
            4.25rem
            0.75rem;
    }

    .services-slide-title {
        font-size: clamp(1.6rem, 3.7vw, 2.15rem);
    }

    .services-slide-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .services-slider-dots {
        right: 2rem;
        bottom: 1.5rem;
    }

    .services-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 46rem;
        margin-inline: auto;
    }

    .services-item {
        flex-direction: row;
        justify-content: flex-start;
        padding: 1.1rem 1.2rem;
        text-align: left;
    }

    .services-item:last-child {
        grid-column: 1 / -1;
        width: calc(50% - 0.625rem);
        justify-self: center;
        padding-bottom: 1.1rem;
    }

}


/* ========================================= */
/*                 CELULAR                   */
/*               hasta 640px                 */
/* ========================================= */

@media (max-width: 40rem) {

    .services {
        padding-top: 2.5rem;
    }

    .services-container {
        gap: 2rem;
        padding-top: 4.75rem;
        text-align: center;
    }

    .services-slider {
        border-radius: 1rem;
    }

    .services-slide {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        min-height: 0;
    }

    .services-slide-media {
        aspect-ratio: 4 / 3;
    }

    .services-slide-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }


    /* En celular la integración cambia:
       foto arriba + panel unido debajo */

    .services-slide-media::after {
        top: auto;
        right: 0;
        bottom: -1px;
        left: 0;

        width: 100%;
        height: 4.5rem;

        background: linear-gradient(
            to bottom,
            transparent 0%,
            rgba(23, 25, 29, 0.32) 35%,
            #17191d 100%
        );
    }

    .services-slide-panel {
        align-items: flex-start;

        padding:
            1.5rem
            1.35rem
            4.5rem;

        text-align: left;
    }

    .services-slide-copy {
        gap: 0.8rem;
        max-width: none;
    }

    .services-slide-title {
        font-size: clamp(1.55rem, 7vw, 2rem);
        line-height: 1.15;
    }

    .services-slide-text {
        font-size: 0.95rem;
        line-height: 1.65;
    }

    .services-slider-dots {
        right: auto;
        left: 1.35rem;
        bottom: 1.5rem;
    }


    /* Los servicios vuelven a una sola columna */

    .services-list {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        width: 100%;
        max-width: none;
        margin-inline: 0;
    }

    .services-item,
    .services-item:last-child {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;

        width: 100%;
        padding: 0.9rem 1rem;

        text-align: left;
    }

    .services-icon {
        width: 2.65rem;
        height: 2.65rem;
    }

    .services-item-text {
        font-size: 0.95rem;
    }

    .services-content .btn {
        width: 100%;
    }

}


/* ========================================= */
/*        MOVIMIENTO REDUCIDO                */
/* ========================================= */

@media (prefers-reduced-motion: reduce) {

    .services-slide,
    .services-slider-dot,
    .services-item,
    .services-icon,
    .services-item-text {
        transition: none;
    }

}

/* ========================================= */
/*   1. ENCABEZADO DE SECCIÓN (.section-head) */
/*   Encabezado centrado reutilizable         */
/* ========================================= */
.section-head {
    max-width: 46rem;
    margin-inline: auto;
    margin-bottom: var(--space-2xl);
    text-align: center;
    /* Espaciado interno entre kicker, título y texto */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

/* ========================================= */
/*            2. SECCIÓN CATEGORIES          */
/*   Fondo gris claro (alternancia visual)    */
/* ========================================= */
.categories {
    background-color: var(--color-gray-100);
    padding-top: 2.5rem;
    padding-bottom: var(--space-section);
}
.categories .section-kicker {
    font-size: 1.1rem;
}

/* ========================================= */
/*             3. BLOQUE DE AYUDA            */
/*   Franja oscura de asesoría (conversión)   */
/* ========================================= */
.categories-help {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: var(--radius-lg);
    background-color: var(--color-dark);
    box-shadow: var(--shadow-md);
}

/* Columna de texto del bloque de ayuda */
.categories-help-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.categories-help-title {
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    color: var(--color-light);
}

.categories-help-desc {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.8);
    max-width: 46rem;
}

/* El botón evita partirse en dos líneas */
.categories-help .btn {
    flex: none;
    white-space: nowrap;
}

/* ========================================= */
/*                4. GRILLA                  */
/*   CSS Grid de 6 columnas: 3 tarjetas por   */
/*   fila y última fila (C2-C3) centrada      */
/* ========================================= */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-xl);
}

/* Cada tarjeta ocupa 2 de las 6 columnas → 3 tarjetas por fila */
.categories-grid > .category-card {
    grid-column: span 2;
}

/* Segunda fila (C2 y C3) centrada horizontalmente */
.categories-grid > .category-card:nth-child(4) {
    grid-column: 2 / span 2;
}

.categories-grid > .category-card:nth-child(5) {
    grid-column: 4 / span 2;
}

/* ========================================= */
/*                5. TARJETAS                */
/* ========================================= */
.category-card {
    display: flex;
    flex-direction: column;
    overflow: visible;
    background-color: var(--color-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base),
                box-shadow var(--transition-base);
}

/* Cuerpo de la tarjeta: contenido + botón.
   flex:1 permite que el botón se alinee abajo en todas. */
.category-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: var(--space-lg);
    padding: var(--space-lg);
}

/* Botón a lo ancho de la tarjeta (reutiliza .btn .btn-outline).
   Override de contexto para fondo claro (sin tocar el global). */
.category-card .btn {
    width: 100%;
}

.category-card .btn-outline {
    color: var(--color-text);
    border-color: var(--color-gray-300);
}

.category-card .btn-outline:hover {
    color: var(--color-light);
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

/* ========================================= */
/*         6. IMAGEN DEL VEHÍCULO            */
/*   Protagonista de la tarjeta               */
/* ========================================= */
.category-media {
    position: relative;
    display: grid;
    place-items: center;
    padding: var(--space-lg);
    background: radial-gradient(circle at 50% 40%, var(--color-light), var(--color-gray-100));
}

.category-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 360 / 260;
    object-fit: contain;
    transition: transform var(--transition-base),
                filter var(--transition-base);
}

/* ========================================= */
/*                 7. BADGE                  */
/*   Sello discreto que complementa la imagen */
/* ========================================= */
.category-badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-sm);
    background-color: var(--color-accent);
    color: var(--color-dark);
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    letter-spacing: 0.02em;
}

/* ========================================= */
/*                8. CONTENIDO               */
/*   Información de la categoría              */
/* ========================================= */

/* Bloque de información (separado del botón) */
.category-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: var(--space-sm);
}

.category-name {
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    color: var(--color-text);
}

.category-desc {
    font-size: var(--fs-sm);
    color: var(--color-muted);
}

/* Sub-bloque "Ideal para…" */
.category-ideal {
    margin-top: var(--space-xs);
}

.category-ideal-label {
    display: block;
    margin-bottom: 0.15rem;
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-accent);
}

.category-ideal-text {
    font-size: var(--fs-sm);
    color: var(--color-muted);
}

/* ========================================= */
/*                 9. PRECIO                 */
/*   Label + value (controlables por CSS)     */
/* ========================================= */


/* Nota discreta de precios (una sola vez, al cierre) */
.categories-note {
    margin-top: var(--space-xl);
    text-align: center;
    font-size: var(--fs-sm);
    color: var(--color-muted);
}

/* ========================================= */
/*                 10. HOVER                 */
/*   Microinteracciones premium               */
/* ========================================= */
.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.category-card:hover .category-img {
    transform: scale(1.06);
}

.category-card:hover .category-badge {
    background-color: var(--color-primary);
    color: var(--color-light);
}

/* ========================================= */
/*           11. RESPONSIVE — TABLET         */
/* ========================================= */
@media (max-width: 62rem) {              /* ~992px */

    /* Grilla a 2 columnas */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }

    /* Se anula el span/centrado del escritorio */
    .categories-grid > .category-card,
    .categories-grid > .category-card:nth-child(4),
    .categories-grid > .category-card:nth-child(5) {
        grid-column: auto;
    }

    /* Bloque de ayuda en vertical */
    .categories-help {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ========================================= */
/*           12. RESPONSIVE — MÓVIL          */
/* ========================================= */
@media (max-width: 40rem) {              /* ~640px */

    /* Grilla a 1 columna */
    .categories-grid {
        grid-template-columns: 1fr;
    }

    /* Bloque de ayuda centrado y botón a ancho completo */
    .categories-help {
        align-items: stretch;
        text-align: center;
    }

    .categories-help .btn {
        width: 100%;
    }
}
/* ========================================= */
/*         ¿POR QUÉ ELEGIR SANTACRUZ?        */
/*   Sección de confianza (fondo oscuro)      */
/* ========================================= */

/* Fondo oscuro premium */
.why {
    background-color: var(--color-dark);
    padding-top: 2.5rem;
    padding-bottom: var(--space-section);
    color: var(--color-light);
}

.why .section-kicker {
    font-size: 1.1rem;
}

/* El título de sección pasa a claro sobre el fondo oscuro
   (override de contexto, sin modificar la clase global) */
.why .section-title {
    color: var(--color-light);
}

/* ---------- Grilla de ventajas ---------- */

/* Contenedor (hook de layout + límite de ancho en monitores grandes) */
.why-grid-wrapper {
    width: 100%;
    max-width: 64rem;
    margin-inline: auto;
}

/* Computador: 3 columnas. align-items: stretch (por defecto)
   garantiza que todas las tarjetas tengan la misma altura. */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

/* ---------- Tarjeta de ventaja ---------- */
.why-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-md);
    /* Igual altura ante futuros cambios de contenido */
    height: 100%;
    /* Respiración premium con padding fluido */
    padding: clamp(1.75rem, 3vw, 2.75rem);
    border-radius: var(--radius-lg);
    /* Fondo ligeramente más claro que la sección, sin bordes fuertes */
    background-color: var(--color-gray-900);
    transition: transform var(--transition-base),
                box-shadow var(--transition-base);
}

/* ---------- Ícono protagonista ---------- */
.why-icon {
    display: grid;
    place-items: center;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    /* Tinte dorado sutil de reposo */
    background-color: rgba(245, 179, 1, 0.12);
    color: var(--color-accent);
    transition: background-color var(--transition-base),
                color var(--transition-base),
                transform var(--transition-base);
}

.why-icon-svg {
    width: 1.8rem;
    height: 1.8rem;
    fill: currentColor;
}

/* ---------- Textos de la tarjeta ---------- */
.why-name {
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    color: var(--color-light);
}

.why-desc {
    font-size: var(--fs-sm);
    color: var(--color-gray-300);
}

/* ---------- Hover elegante ---------- */
.why-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* El ícono se "enciende" en rojo al pasar el cursor */
.why-card:hover .why-icon {
    background-color: var(--color-primary);
    color: var(--color-light);
    transform: scale(1.08);
}

/* ========================================= */
/*           CTA DE CIERRE (CENTRADO)        */
/* ========================================= */
.why-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-md);
    margin-top: var(--space-2xl);
}

.why-cta-title {
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--color-light);
}

.why-cta-text {
    font-size: var(--fs-md);
    color: var(--color-gray-300);
}

/* ========================================= */
/*         WHY — RESPONSIVE (TABLET)         */
/* ========================================= */
@media (max-width: 62rem) {              /* ~992px */

    /* Grilla a 2 columnas */
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================= */
/*          WHY — RESPONSIVE (MÓVIL)         */
/* ========================================= */
@media (max-width: 40rem) {              /* ~640px */

    /* Grilla a 1 columna */
    .why-grid {
        grid-template-columns: 1fr;
    }

    /* Botón del CTA a ancho completo */
    .why-cta .btn {
        width: 100%;
    }
}
/* ========================================= */
/*          ¿CÓMO ES EL PROCESO?             */
/*  Sección de recorrido del usuario         */
/* ========================================= */

.process {
    background-color: var(--color-light);
    padding-block: var(--space-section);
}

/* ========================================= */
/*             CONTENEDOR PRINCIPAL          */
/* ========================================= */

.process-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);

    margin: 0;
    margin-top: var(--space-2xl);
    padding: 0;

    list-style: none;
}

/* ========================================= */
/*              CADA PASO                    */
/* ========================================= */

.process-step {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    gap: var(--space-md);
}
/* ========================================= */
/*          NÚMEROS Y TEXTOS                 */
/* ========================================= */

.process-number {
    display: grid;
    place-items: center;

    width: 4.5rem;
    height: 4.5rem;

    margin-inline: auto;

    border-radius: 50%;

    background-color: rgba(245, 179, 1, 0.12);
    color: var(--color-accent);

    font-size: 2rem;
    font-weight: 800;

    transition:
        background-color var(--transition-base),
        color var(--transition-base),
        transform var(--transition-base);
}
/* ========================================= */
/*          LÍNEA DEL RECORRIDO              */
/* ========================================= */

.process-steps::before {
    content: "";

    position: absolute;

    top: 2.25rem;
    left: 12%;
    right: 12%;

    height: 2px;

    background-color: var(--color-gray-300);

    z-index: 0;
}

.process-step {
    z-index: 1;
}

.process-number {
    position: relative;
    z-index: 2;
}
/* ========================================= */
/*                  CTA                       */
/* ========================================= */

.process-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    margin-top: var(--space-2xl);

    gap: var(--space-md);
}

.process-cta-title {
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--color-text);
}
/* ========================================= */
/*           NÚMEROS DEL RECORRIDO           */
/* ========================================= */

.process-number {
    display: grid;
    place-items: center;

    width: 5rem;
    height: 5rem;

    border-radius: 50%;

    background-color: rgba(245, 179, 1, 0.12);
    color: var(--color-accent);

    font-size: var(--fs-xl);
    font-weight: var(--fw-extra);

    transition:
        background-color var(--transition-base),
        color var(--transition-base),
        transform var(--transition-base);
}

/* Último paso destacado */
.process-step--final .process-number {
    background-color: var(--color-primary);
    color: var(--color-light);
}
/* ========================================= */
/*        FORMACIÓN PARA TU TRÁMITE          */
/* ========================================= */

.training {
    padding-block: var(--space-section);
    background-color: var(--color-gray-100);
}

/* ---------- Tarjeta ---------- */

.training-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);

    margin-top: var(--space-2xl);

    padding: clamp(2rem, 4vw, 3rem);

    background-color: var(--color-light);

    border-radius: var(--radius-xl);

    box-shadow: var(--shadow-md);

    transition:
        transform var(--transition-base),
        box-shadow var(--transition-base);
}

.training-card:hover {
    transform: translateY(-6px);

    box-shadow: var(--shadow-lg);
}

/* ---------- Logo ---------- */

.training-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.training-logo img {
    display: block;

    width: 100%;
    max-width: 220px;

    height: auto;

    object-fit: contain;
}

/* ---------- Contenido ---------- */

.training-content {
    display: flex;
    flex-direction: column;

    gap: var(--space-md);
}

.training-title {
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);

    color: var(--color-text);
}

.training-text {
    max-width: 42rem;

    font-size: var(--fs-md);

    line-height: 1.8;

    color: var(--color-muted);
}

/* ---------- CTA ---------- */

.training-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: var(--space-lg);

    margin-top: var(--space-2xl);

    text-align: center;
}

.training-cta-title {
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--color-text);
}

/* ========================================= */
/*          RESPONSIVE TABLET                */
/* ========================================= */

@media (max-width: 62rem) {

    .training-card {

        grid-template-columns: 1fr;

        text-align: center;

        gap: var(--space-xl);
    }

}

/* ========================================= */
/*          RESPONSIVE MÓVIL                 */
/* ========================================= */

@media (max-width:40rem){

    .training{

        text-align:center;

    }

    .training-logo img{

        max-width:180px;

    }

    .training-title{

        font-size:var(--fs-xl);

    }

    .training-text{

        font-size:var(--fs-sm);

    }

    .training-cta .btn{

        width:100%;

    }

}
/* ========================================= */
/*        FRANJA VISUAL SANTACRUZ            */
/* ========================================= */

.visual-banner {
    position: relative;
    min-height: 28rem;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--color-gray-900);
}

.visual-banner__slides,
.visual-banner__slide,
.visual-banner__overlay {
    position: absolute;
    inset: 0;
}

.visual-banner__slide {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.04);
    animation: visualBanner 15s infinite;
}

/* Imágenes pendientes */
.visual-banner__slide--1 {
    animation-delay: 0s;
}

.visual-banner__slide--2 {
    animation-delay: 5s;
}

.visual-banner__slide--3 {
    animation-delay: 10s;
}

.visual-banner__overlay {
    z-index: 1;
    background: linear-gradient(
        90deg,
        rgba(14, 14, 16, 0.92) 0%,
        rgba(14, 14, 16, 0.72) 50%,
        rgba(14, 14, 16, 0.38) 100%
    );
}

.visual-banner__container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.visual-banner__content {
    max-width: 42rem;
    padding-block: 4rem;
}

.visual-banner__kicker {
    margin-bottom: var(--space-md);
    color: var(--color-gold);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.visual-banner__title {
    margin-bottom: var(--space-lg);
    color: var(--color-white);
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.05;
}

.visual-banner__title span {
    display: block;
    color: var(--color-red);
}

.visual-banner__text {
    max-width: 36rem;
    margin-bottom: var(--space-xl);
    color: var(--color-white);
    font-size: var(--fs-lg);
    line-height: 1.7;
}

@keyframes visualBanner {
    0% {
        opacity: 0;
        transform: scale(1.04);
    }

    8%,
    30% {
        opacity: 1;
        transform: scale(1);
    }

    38%,
    100% {
        opacity: 0;
        transform: scale(1.04);
    }
}

@media (max-width: 40rem) {
    .visual-banner {
        min-height: 32rem;
    }

    .visual-banner__overlay {
        background: rgba(14, 14, 16, 0.78);
    }

    .visual-banner__content {
        text-align: center;
    }

    .visual-banner__text {
        margin-inline: auto;
    }
}
/* ========================================= */
/*                 CONTACTO                  */
/* ========================================= */

.contact {
    padding-block: var(--space-section);
    background-color: var(--color-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);

    margin-top: var(--space-2xl);
}

.contact-item {
    padding: clamp(1.5rem, 3vw, 2.5rem);

    background-color: var(--color-gray-100);
    border-radius: var(--radius-xl);

    transition:
        transform var(--transition-base),
        box-shadow var(--transition-base);
}

.contact-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.contact-item h3 {
    margin-bottom: var(--space-md);

    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);

    color: var(--color-text);
}

.contact-item p {
    margin: 0;

    color: var(--color-muted);
    line-height: 1.8;
}

.contact-item .btn {
    margin-top: var(--space-lg);
}

.contact-item > a:not(.btn) {
    display: inline-block;

    color: var(--color-primary);
    font-weight: var(--fw-bold);

    text-decoration: none;
}

.contact-item > a:not(.btn):hover {
    text-decoration: underline;
}

/* ========================================= */
/*          CONTACTO — RESPONSIVE            */
/* ========================================= */

@media (max-width: 48rem) {

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-item {
        text-align: center;
    }

    .contact-item .btn {
        width: 100%;
    }

}
/* ========================================= */
/*                  FOOTER                   */
/* ========================================= */

.footer {
    background-color: var(--color-dark);
    color: var(--color-light);
}

.footer__container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-2xl);
    align-items: start;

    padding-block: clamp(3rem, 6vw, 5rem);
}

.footer__name {
    margin-bottom: var(--space-md);

    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);

    color: var(--color-light);
}

.footer__text {
    max-width: 32rem;

    color: var(--color-gray-300);
    line-height: 1.7;
}

.footer__info p {
    color: var(--color-gray-300);
    line-height: 1.8;
}

.footer__social a {
    color: var(--color-accent);
    font-weight: var(--fw-bold);
    text-decoration: none;

    transition: color var(--transition-base);
}

.footer__social a:hover {
    color: var(--color-light);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__bottom .container {
    padding-block: var(--space-lg);
}

.footer__bottom p {
    margin: 0;

    color: var(--color-gray-300);
    font-size: var(--fs-sm);
    text-align: center;
}

/* ========================================= */
/*           FOOTER — RESPONSIVE             */
/* ========================================= */

@media (max-width: 48rem) {

    .footer__container {
        grid-template-columns: 1fr;
        gap: var(--space-xl);

        text-align: center;
    }

    .footer__text {
        margin-inline: auto;
    }
}

/* ========================================= */
/*              FINANCIACIÓN                 */
/* ========================================= */

.financing {
    scroll-margin-top: 0;
    padding: 0 0 var(--space-section);
    background-color: var(--color-light);
}

.financing-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(3rem, 7vw, 6rem);
}

/* ---------- Composición visual ---------- */

.financing-visual {
    position: relative;
    padding-bottom: 2rem;
}

.financing-brilla {
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.financing-brilla-img {
    display: block;
    width: 100%;
    height: auto;
}

/* Tarjeta Santacruz superpuesta y salida del cuadro */

.financing-santacruz {
    position: absolute;
    right: -1.5rem;
    bottom: 0;
    width: clamp(9rem, 14vw, 12rem);
    padding: 1rem;
    background-color: var(--color-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 2;
}

.financing-santacruz-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* ---------- Contenido ---------- */

.financing-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-lg);
}

.financing-text {
    max-width: 34rem;
    font-size: var(--fs-md);
    color: var(--color-muted);
}

.financing-requirements {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.financing-requirements-title {
    font-weight: var(--fw-bold);
    color: var(--color-text);
}

.financing-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    padding-left: 1.25rem;
    list-style: disc;
    color: var(--color-muted);
}

/* ========================================= */
/*        FINANCIACIÓN — RESPONSIVE          */
/* ========================================= */

@media (max-width: 62rem) {
    .financing-container {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .financing-visual {
        width: 100%;
        max-width: 38rem;
        margin-inline: auto;
    }

    .financing-content {
        align-items: center;
        text-align: center;
    }

    .financing-list {
        text-align: left;
    }
}

@media (max-width: 40rem) {
    .financing-santacruz {
        right: 0;
        width: 8rem;
    }

    .financing-content .btn {
        width: 100%;
    }
}/* ========================================= */
/*       BANNER SUPERIOR FINANCIACIÓN        */
/* ========================================= */

.financing-hero {
    position: relative;
    width: 100%;
    height: clamp(17rem, 27vw, 23rem);
    overflow: hidden;
}

.financing-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 48%;
}

.financing-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.48);
    z-index: 1;
}

.financing-hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--color-light);
}

.financing-hero-title {
    max-width: 48rem;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.05;
    font-weight: var(--fw-extra);
}

.financing-hero-title span {
    display: block;
}

.financing-hero-text {
    max-width: 42rem;
    margin-top: var(--space-md);
    margin-bottom: var(--space-lg);
    font-size: var(--fs-md);
    color: rgba(255, 255, 255, 0.9);
}
.why {
    padding-bottom: 4rem;
}
/* ========================================= */
/*        REDISEÑO FINAL — CONTACTO          */
/* ========================================= */

.contact {
    scroll-margin-top: 0;
    padding: 0;
    background: var(--color-light);
}

/* ---------- Banner superior ---------- */

.contact-banner {
    position: relative;
    min-height: clamp(15rem, 24vw, 21rem);
    display: flex;
    align-items: center;
    overflow: hidden;

    /*
    AQUÍ PONDREMOS LA IMAGEN DEL BANNER.
    Por ahora conserva un fondo oscuro para revisar la estructura.
    */
    background-image: url("../img/contacto-banner.png");
background-size: cover;
background-position: center 35%;
background-repeat: no-repeat;
}

.contact-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(0, 0, 0, 0.12) 45%,
        rgba(0, 0, 0, 0) 70%
    );
    pointer-events: none;
}

.contact-banner-content {
    position: relative;
    z-index: 2;
    text-align: left;
    padding-left: clamp(3rem, 9vw, 9rem);
    color: var(--color-light);
}

.contact-banner-kicker {
    margin-bottom: 0.5rem;
    color: var(--color-gold);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.contact-banner-title {
    margin: 0;
    color: var(--color-light);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1;
    font-weight: 800;
}


/* ---------- Contenedor principal ---------- */

.contact-container {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(3rem, 6vw, 6rem);
    align-items: stretch;
    padding-top: clamp(3.5rem, 6vw, 5.5rem);
    padding-bottom: clamp(3.5rem, 6vw, 5.5rem);
}


/* ---------- Tarjeta izquierda ---------- */

.contact-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 4vw, 3.5rem);
    background: #f3f5f8;
    border-radius: 1.25rem;
    overflow: hidden;
}

.contact-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0.3rem;
    background: var(--color-red);
}

.contact-card-title {
    margin: 0.75rem 0 1rem;
    color: var(--color-dark);
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.08;
    font-weight: 800;
}

.contact-card-title span {
    display: block;
    color: var(--color-red);
}

.contact-card-text {
    max-width: 32rem;
    margin: 0 0 2rem;
    color: var(--color-gray-600);
    font-size: 1rem;
    line-height: 1.7;
}


/* ---------- Ayuda por WhatsApp ---------- */

.contact-card-help {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-card-help-icon {
    width: 3.5rem;
    height: 3.5rem;
    flex: 0 0 3.5rem;
    display: grid;
    place-items: center;
    background: var(--color-red);
    border-radius: 50%;
}

.contact-card-help-icon svg {
    width: 1.65rem;
    height: 1.65rem;
    fill: var(--color-light);
}

.contact-card-help div {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.contact-card-help-label {
    color: var(--color-gray-600);
    font-size: 0.85rem;
}

.contact-card-help strong {
    color: var(--color-dark);
    font-size: 1.15rem;
}

.contact-btn {
    align-self: flex-start;
}


/* ---------- Información derecha ---------- */

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info-head {
    margin-bottom: 1.75rem;
}

.contact-info-title {
    margin: 0.75rem 0 0.75rem;
    color: var(--color-dark);
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.08;
    font-weight: 800;
}

.contact-info-title span {
    color: var(--color-red);
}

.contact-info-text {
    margin: 0;
    color: var(--color-gray-600);
    line-height: 1.7;
}


/* ---------- Datos de contacto ---------- */

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(15, 15, 18, 0.1);
}

.contact-detail-icon {
    width: 2.8rem;
    height: 2.8rem;
    flex: 0 0 2.8rem;
    display: grid;
    place-items: center;
    background: rgba(237, 28, 36, 0.1);
    border-radius: 0.75rem;
}

.contact-detail-icon svg {
    width: 1.35rem;
    height: 1.35rem;
    fill: var(--color-red);
}

.contact-detail h4 {
    margin: 0 0 0.35rem;
    color: var(--color-dark);
    font-size: 1rem;
    font-weight: 700;
}

.contact-detail p {
    margin: 0;
    color: var(--color-gray-600);
    line-height: 1.65;
}


/* ---------- Redes sociales ---------- */

.contact-social {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-top: 1.75rem;
}

.contact-social h4 {
    margin: 0 0 0.3rem;
    color: var(--color-dark);
    font-size: 1rem;
    font-weight: 700;
}

.contact-social p {
    margin: 0;
    color: var(--color-gray-600);
    font-size: 0.9rem;
}

.contact-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 1rem;
    color: var(--color-light);
    background: #1877f2;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.contact-social-link svg {
    width: 1.15rem;
    height: 1.15rem;
    fill: currentColor;
}

.contact-social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.65rem 1.5rem rgba(24, 119, 242, 0.25);
}


/* ========================================= */
/*             CONTACTO RESPONSIVE           */
/* ========================================= */

@media (max-width: 900px) {

    .contact-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-card {
        min-height: auto;
    }

}

@media (max-width: 600px) {

    .contact-banner {
        min-height: 13rem;
    }

    .contact-container {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .contact-card {
        padding: 2rem 1.5rem;
        border-radius: 1rem;
    }

    .contact-social {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }

}
/* ========================================= */
/*     AJUSTE DE TAMAÑO — CONTACTO           */
/* ========================================= */


/* Menos espacio vertical en toda la sección */
.contact-container {
    gap: clamp(2rem, 4vw, 4rem);
    padding-top: clamp(2rem, 3.5vw, 3rem);
    padding-bottom: clamp(2rem, 3.5vw, 3rem);
}

/* Tarjeta izquierda más compacta */
.contact-card {
    padding: clamp(1.5rem, 2.5vw, 2.25rem);
}

/* Títulos un poco más pequeños */
.contact-card-title,
.contact-info-title {
    font-size: clamp(1.7rem, 2.7vw, 2.35rem);
}

/* Menos separación en los textos */
.contact-card-text {
    margin-bottom: 1.25rem;
    line-height: 1.55;
}

.contact-card-help {
    margin-bottom: 1.25rem;
}

/* Información derecha más compacta */
.contact-info-head {
    margin-bottom: 0.75rem;
}

.contact-info-title {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Filas de dirección, horario y WhatsApp más bajas */
.contact-detail {
    padding: 0.8rem 0;
}

/* Redes sociales más compactas */
.contact-social {
    padding-top: 1rem;
}/* ========================================= */
/*          FOOTER MÁS COMPACTO              */
/* ========================================= */

.footer__container {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.footer__bottom {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}
/* ========================================= */
/*         IMAGEN MY ROJ MÁS GRANDE          */
/* ========================================= */

.training-logo img {
    width: min(100%, 38rem);
    max-width: none;
    height: auto;
    display: block;
    margin: 0 auto;
}
/* ========================================= */
/*       SECCIÓN FORMACIÓN MÁS COMPACTA      */
/* ========================================= */

.training-title {
    margin-bottom: 0.75rem;
}

.training-text {
    margin-top: 0;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.training-cta {
    margin-top: 0.25rem;
}

.training-cta-title {
    margin-bottom: 0.5rem;
}

.training-cta p {
    margin-top: 0;
}

/* ========================================= */
/*       DISEÑO RESPONSIVE DEFINITIVO         */
/*   Consolidado para móvil y Android real    */
/* ========================================= */

@media (max-width: 62rem) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
    }

    main,
    section,
    header,
    footer {
        width: 100%;
        max-width: 100%;
    }

    .container {
        width: 100%;
        max-width: 100%;
        margin-inline: auto;
        padding-inline: 1rem;
    }

    /* Header inicial: integrado con el hero, sin franja desperdiciada */
    .header {
        height: 5.25rem;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .header .container {
        width: 100%;
        max-width: none;
        padding-inline: 1rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .logo {
        margin-right: auto;
        flex-shrink: 0;
        transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
    }

    .logo-img {
        width: 8rem;
        height: auto;
        max-height: 4rem;
        object-fit: contain;
    }

    .btn-whatsapp{
    display:flex;
}

    .nav-toggle {
        display: flex;
        position: relative;
        z-index: 1003;
        margin-left: auto;
        align-items: center;
        padding: 0;
        border: 0;
        background: transparent;
    }

    .nav-toggle-bar,
    .header-solid .nav-toggle-bar {
        background-color: #fff;
        box-shadow: 0 1px 2px rgba(0, 0, 0, .8);
    }

    .nav {
        z-index: 1002;
        height: 100dvh;
        background-color: var(--color-navy);
    }

    /* Al bajar: desaparece la barra; queda solo la hamburguesa flotante */
    .header.header-scrolled {
        height: 0;
        background: transparent;
        box-shadow: none;
        pointer-events: auto;
    }

    .header.header-scrolled .logo {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-1rem);
    }

    .header.header-scrolled .nav-toggle {
        position: fixed;
        top: 1rem;
        right: 1rem;
        width: 3rem;
        height: 3rem;
        padding: .7rem;
        border-radius: 50%;
        background: rgba(16, 26, 43, .88);
        box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
        pointer-events: auto;
        backdrop-filter: blur(8px);
    }

    .header.header-scrolled .nav {
        pointer-events: auto;
    }

    /* Hero móvil: bloque completo realmente centrado */
    .hero {
        min-height: 100svh;
        padding: 7rem 0 3rem;
        background:
            radial-gradient(ellipse at 88% 12%, rgba(225, 27, 34, .24), transparent 52%),
            radial-gradient(ellipse at 12% 92%, rgba(245, 179, 1, .12), transparent 48%),
            linear-gradient(145deg, #0c1524 0%, #101a2b 58%, #29171d 100%);
    }

    .hero-container {
        display: block;
        width: 100%;
    }

    .hero-content {
        width: min(100%, 38rem);
        max-width: none;
        margin-inline: auto;
        padding-inline: .35rem;
        align-items: center;
        text-align: center;
        gap: 1.4rem;
    }

    .hero-kicker {
        justify-content: center;
        width: 100%;
        font-size: clamp(.8rem, 3.2vw, .95rem);
    }

    .hero-kicker::before {
        display: none;
    }

    .hero-title {
        width: 100%;
        margin: 0;
        font-size: clamp(2.75rem, 12vw, 4.4rem);
        line-height: 1.05;
        text-align: center;
        text-wrap: balance;
    }

    .hero-title-accent {
        margin-top: .2rem;
    }

    .hero-subtitle {
        width: min(100%, 34rem);
        margin-inline: auto;
        font-size: clamp(1rem, 4.2vw, 1.25rem);
        line-height: 1.65;
        text-align: center;
    }

    .hero-actions {
        width: min(100%, 34rem);
        margin-inline: auto;
        justify-content: center;
    }

    .hero-media {
        width: min(100%, 34rem);
        margin: 2rem auto 0;
        transform: none;
    }

       /* CTA previo a financiación: más compacto y sin competir con el banner */
    .why-cta {
        width: min(100%, 36rem);
        margin: 2.5rem auto 0;
        padding: 1.5rem;
        gap: .85rem;
        border-radius: 1rem;
        background: rgba(255, 255, 255, .04);
    }

    .why-cta-title {
        font-size: clamp(1.65rem, 7vw, 2.15rem);
    }

    .why-cta-text {
        font-size: 1rem;
        line-height: 1.5;
    }

    /* Financiación: transición limpia y contenido respirado */
    .financing {
        scroll-margin-top: 1rem;
    }

    .financing-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding-top: 2.5rem;
    }

    .financing-content {
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 40rem) {
    .hero {
        padding-top: 6.5rem;
    }

    .hero-content {
        padding-inline: .25rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn,
    .why-cta .btn,
    .financing-content .btn {
        width: 100%;
    }

    .categories-grid,
    .why-grid,
    .process-steps,
    .training-card {
        min-width: 0;
        width: 100%;
        max-width: 100%;
        grid-template-columns: minmax(0, 1fr);
    }

    .category-card,
    .why-card,
    .process-step,
    .training-card > * {
        min-width: 0;
        max-width: 100%;
    }

    .process-steps {
        gap: 2rem;
        margin-top: 2.5rem;
    }

    .process-steps::before {
        display: none;
    }

    .process-step {
        width: 100%;
        max-width: 22rem;
        margin-inline: auto;
    }

    .why-cta {
        padding: 1.25rem 1rem;
    }

    .why-cta-text {
        display: none;
    }

    .financing-hero {
        height: clamp(28rem, 125vw, 36rem);
    }

    .financing-hero-content {
        justify-content: center;
        padding-top: 1rem;
        padding-bottom: 1.5rem;
    }

    .financing-hero-title {
        font-size: clamp(2.35rem, 10.5vw, 3.4rem);
        line-height: 1.05;
        text-wrap: balance;
    }

    .financing-hero-text {
        margin: 1.25rem 0 1.5rem;
        font-size: clamp(1rem, 4.4vw, 1.2rem);
        line-height: 1.65;
    }

    .financing-hero-content .btn {
        width: 100%;
        transform: none;
    }

    .financing-container {
        padding-top: 3rem;
    }

    .financing-santacruz {
        right: 0;
        width: 8rem;
    }
}
/* ========================================================= */
/* HEADER FLOTANTE AL HACER SCROLL — PC Y MÓVIL             */
/* SIN DESTELLO DEL MENÚ LATERAL                             */
/* ========================================================= */

.header.header-scrolled {
    height: 0;
    background: transparent;
    box-shadow: none;
}

/* Al hacer scroll, solo desaparece el logo */
.header-scrolled .logo {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* WhatsApp pasa a botón flotante */
.header-scrolled .btn-whatsapp {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1102;

    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Botón circular flotante */
.header-scrolled .nav-toggle {
    display: flex;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1102;

    width: 3.25rem;
    height: 3.25rem;

    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: rgba(10, 27, 46, 0.88);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.28);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Líneas blancas */
.header-scrolled .nav-toggle-bar {
    background-color: #ffffff !important;
}


/* ========================================================= */
/* PC — MENÚ LATERAL DESPUÉS DEL SCROLL                      */
/* ========================================================= */

@media (min-width: 62.01rem) {

    /*
    El menú nace fuera de la pantalla y completamente invisible.
    No hay transición al entrar en modo scroll.
    */
    .header-scrolled .nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;

        width: min(80vw, 22rem);
        padding: 6rem 2.5rem 2.5rem;

        background-color: #0a1b2e;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25);

        transform: translateX(100%);
        visibility: hidden;
        pointer-events: none;

        transition: none;
        z-index: 1100;
    }

    /*
    La animación existe únicamente después de pulsar
    las tres líneas.
    */
    .header-scrolled .nav.is-open {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;

        transition: transform 0.3s ease;
    }

    .header-scrolled .menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .header-scrolled .menu-link {
        color: #ffffff;
        font-size: 1.125rem;
    }
}
/* ========================================================= */
/* DESVANECIDO LATERAL DEL HERO — SIN TOCAR LOS BOTONES      */
/* ========================================================= */

.hero-banner-container {
    position: relative;
}

.hero-banner-img {
    display: block;
    width: 100%;
    height: auto;

    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 7%,
        black 93%,
        transparent 100%
    );

    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 7%,
        black 93%,
        transparent 100%
    );
}
/* BOTONES DEL NUEVO HERO — DEBAJO DE LA IMAGEN */

.hero-banner-actions {
    position: static;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    width: 100%;
    margin-top: 1.5rem;
}

.hero-banner-actions .btn {
    position: static;
}
/* =========================================================
   HERO INICIO — VERSIÓN LIMPIA Y CORREGIDA
   Header intacto + imagen completa + fondo integrado
   ========================================================= */


/* ---------------------------------------------------------
   1. HEADER INICIAL
   Conserva la franja azul original y separada de la imagen
   --------------------------------------------------------- */

#header.header-transparent {
    background-color: #0a1b2e;
}


/* ---------------------------------------------------------
   2. HERO
   Ocupa la pantalla disponible DEBAJO del header
   --------------------------------------------------------- */

.hero.hero-banner {
    position: relative;
    width: 100%;
    height: 100svh;
    min-height: 700px;

    padding-top: var(--header-height);
    padding-bottom: 0;
    margin: 0;

    overflow: hidden;
    background-color: #0a1b2e;
    box-sizing: border-box;
}


/* ---------------------------------------------------------
   3. CONTENEDOR DEL HERO
   Solo este container rompe el límite general de 1200px
   --------------------------------------------------------- */

.hero-banner .hero-banner-container {
    position: relative;

    width: 100%;
    max-width: none;
    height: 100%;
    min-height: 0;

    padding: 0;
    margin: 0;

    overflow: hidden;
}


/* ---------------------------------------------------------
   4. FONDO DE RELLENO
   La copia puede recortarse porque es solo decoración
   La imagen principal NO se recorta
   --------------------------------------------------------- */

.hero-banner .hero-banner-container::before {
    content: "";

    position: absolute;
    inset: -30px;
    z-index: 0;

    background-image: url("../img/hero-santacruz.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    filter: blur(24px);
    transform: scale(1.08);
    opacity: 0.45;
}


/* ---------------------------------------------------------
   5. CAPA SUAVE SOBRE EL FONDO
   Evita que el relleno desenfocado compita visualmente
   --------------------------------------------------------- */

.hero-banner .hero-banner-container::after {
    content: "";

    position: absolute;
    inset: 0;
    z-index: 1;

    pointer-events: none;

    background: rgba(10, 27, 46, 0.22);
}


/* ---------------------------------------------------------
   6. IMAGEN PRINCIPAL
   SIEMPRE COMPLETA — SIN RECORTAR NADA
   --------------------------------------------------------- */

.hero-banner .hero-banner-img {
    position: absolute;
    inset: 0;
    z-index: 2;

    display: block;

    width: 100%;
    height: 100%;
    max-width: none;

    object-fit: contain;
    object-position: center center;

    -webkit-mask-image: none;
    mask-image: none;
}


/* ---------------------------------------------------------
   7. BOTONES
   Integrados dentro de la parte inferior del Hero
   --------------------------------------------------------- */

.hero-banner .hero-banner-actions {
    position: absolute;

    left: 50%;
    bottom: 0.4rem;
    z-index: 3;

    transform: translateX(-50%);

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;

    width: auto;
    margin: 0;
}


/* Evita que reglas anteriores alteren la posición */
.hero-banner .hero-banner-actions .btn {
    position: relative;
    white-space: nowrap;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 62rem) {

    .hero.hero-banner {
        height: 100svh;
        min-height: 650px;

        padding-top: var(--header-height);
        padding-bottom: 0;
    }

    .hero-banner .hero-banner-container {
        height: 100%;
        min-height: 0;
    }

    .hero-banner .hero-banner-img {
        object-fit: contain;
        object-position: center center;
    }
}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 40rem) {

    .hero.hero-banner {
        height: 100svh;
        min-height: 600px;

        padding-top: var(--header-height);
    }

    .hero-banner .hero-banner-container::before {
        filter: blur(18px);
        opacity: 0.55;
    }

    .hero-banner .hero-banner-actions {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;

        width: auto;
        transform: none;

        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-banner .hero-banner-actions .btn {
        width: 100%;
        white-space: normal;
    }
}
/* ========================================= */
/* AJUSTE FINAL HERO — PRIMERA PANTALLA      */
/* ========================================= */

/* PC */
@media (min-width: 62.01rem) {
    .hero {
        min-height: 100svh;
    }
}

/* TABLET */
@media (min-width: 40.01rem) and (max-width: 62rem) {
    .hero {
        min-height: 100svh;
    }
}

/* MÓVIL */
@media (max-width: 40rem) {
    .hero {
        min-height: 100svh;
    }
}
/* ========================================= */
/* HERO — NUEVA DISTRIBUCIÓN APROBADA        */
/* ========================================= */

/* Contenedor general del Hero */
.hero-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    min-height: calc(100svh - var(--header-height));
    gap: clamp(1.5rem, 3vh, 2.5rem);
}

/* Texto pequeño centrado arriba */
.hero-kicker-centered {
    width: 100%;
    justify-content: center;
    text-align: center;
    margin: 0;
}

/* Zona central: texto + imagen */
.hero-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(3rem, 7vw, 7rem);
    width: 100%;
}

/* La columna izquierda ya no contiene los botones */
.hero-main .hero-content {
    width: 100%;
}

/* Imagen con mayor presencia */
.hero-main .hero-media {
    width: 100%;
    margin: 0;
    transform: none;
}

.hero-main .hero-vehicle {
    width: 128%;
    max-width: 51rem;
}

/* Botones centrados abajo */
.hero-actions-centered {
    width: 100%;
    justify-content: center;
    margin-top: clamp(0.5rem, 1vh, 1rem);
}


/* ========================================= */
/* TABLET                                    */
/* ========================================= */

@media (max-width: 62rem) {

    .hero-container {
        min-height: auto;
        gap: 2rem;
    }

    .hero-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-main .hero-content {
        max-width: 38rem;
        margin-inline: auto;
        align-items: center;
        text-align: center;
    }

    .hero-main .hero-media {
        width: min(100%, 38rem);
        margin-inline: auto;
    }

    .hero-main .hero-vehicle {
        width: 100%;
        max-width: 38rem;
    }

    .hero-actions-centered {
        justify-content: center;
    }
}


/* ========================================= */
/* MÓVIL                                     */
/* ========================================= */

@media (max-width: 40rem) {

    .hero-container {
        gap: 1.5rem;
    }

    .hero-kicker-centered {
        font-size: 0.8rem;
    }

    .hero-main {
        gap: 1.5rem;
    }

    .hero-actions-centered {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions-centered .btn {
        width: 100%;
    }
}
/* ========================================= */
/*       BOTÓN GOOGLE MAPS — CONTACTO        */
/* ========================================= */

.contact-map-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    gap: 0.65rem;
    margin-top: 0.9rem;
    margin-bottom: 0.25rem;
    padding: 0.75rem 1.15rem;
    color: var(--color-light);
    background: var(--color-red);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 0.5rem 1.25rem rgba(225, 27, 34, 0.22);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}

.contact-map-btn svg {
    width: 1.15rem;
    height: 1.15rem;
    fill: currentColor;
}

.contact-map-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 0.75rem 1.6rem rgba(225, 27, 34, 0.32);
}

@media (max-width: 600px) {
    .contact-map-btn {
        width: 100%;
    }
}

/* ========================================================= */
/* FINANCIACIÓN — ENCABEZADO SUPERIOR A TODO EL BLOQUE       */
/* ========================================================= */

.financing-section-body {
    padding-top: var(--space-section);
}

.financing-section-head {
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.financing-section-head .section-kicker {
    margin: 0;
}

@media (max-width: 62rem) {
    .financing-section-body {
        padding-top: 2.5rem;
    }

    .financing-section-head {
        margin-bottom: 2rem;
        text-align: center;
    }

    .financing-container {
        padding-top: 0;
    }
}

@media (max-width: 40rem) {
    .financing-section-body {
        padding-top: 3rem;
    }

    .financing-container {
        padding-top: 0;
    }
}

