/* VARIABLES DEL DISENO - los colores y fuentes finales */
:root {
    --color-bg: #030712;
    --color-bg-secondary: #0f172a;
    --color-text: #f8fafc;
    --color-text-muted: #cbd5e1;

    --color-primary: #1e40af;
    /* Blue from logo */
    --color-primary-light: #3b82f6;
    --color-accent: #b91c1c;
    /* Deep Red from logo */
    --color-whatsapp: #25D366;

    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);

    --font-primary: 'Outfit', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;

    --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* reset de estilos para que todo cuadre */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-primary);
    overflow-x: hidden;
    line-height: 1.6;
    cursor: none;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: none;
}

ul {
    list-style: none;
}

/* CURSOR PERSONALIZADO QUE SE VE BIEN */
/* falta revisar si en movil se desactiva solo */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--color-primary-light);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
}

.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: width 0.3s, height 0.3s, background 0.3s, border-color 0.3s;
    mix-blend-mode: difference;
}

/* Boton de Whatsapp flotando */
.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 65px;
    height: 65px;
    background-color: var(--color-whatsapp);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 9000;
    transition: transform var(--transition-smooth), box-shadow 0.3s;
}

.whatsapp-btn svg {
    width: 35px;
    height: 35px;
}

.whatsapp-btn:hover {
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
}

/* LA BARRA DE ARRIBA (HEADER) */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 1000;
    transition: background var(--transition-smooth), padding var(--transition-smooth);
    background: rgba(3, 7, 18, 0.3);
    backdrop-filter: blur(5px);
}

.header--scrolled {
    background: rgba(3, 7, 18, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.header__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo-img {
    height: 120px;
    width: 120px;
    border-radius: 50%;
    object-fit: cover;
    filter: drop-shadow(0 6px 15px rgba(0, 0, 0, 0.6));
    border: 3px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.4s;
    background-color: white; /* Optional: para que el logo resalte bien si tiene transparencias */
}

.header__logo-img:hover {
    transform: scale(1.1) rotate(6deg);
    border-color: var(--color-primary-light);
}

.nav__list {
    display: flex;
    gap: 2.5rem;
}

.nav__link {
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.hover-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition-smooth);
}

.hover-line:hover::after {
    width: 100%;
}

/* ESTILOS DE LOS BOTONES */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.5px;
    overflow: hidden;
    transition: transform var(--transition-smooth);
    border-radius: 50px;
}

.btn--primary {
    /* BOTON AZUL PRINCIPAL */
    background: var(--color-primary);
    color: white;
    border: 1px solid var(--color-primary-light);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.btn__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-accent);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-smooth);
}

.btn:hover .btn__bg {
    transform: scaleX(1);
    transform-origin: left;
}

.btn--glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn--glass:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

/* SECCION PRINCIPAL DE INICIO - HERO */
/* FALTA REVISAR EL ALTURA EN PANTALLAS CHICAS */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(3, 7, 18, 0.95) 0%, rgba(3, 7, 18, 0.6) 50%, rgba(3, 7, 18, 0.3) 100%);
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero__subtitle {
    display: inline-block;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 4px;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 7vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.hero__title-line {
    display: block;
}

.hero__title-line--accent {
    color: var(--color-primary-light);
}

.hero__description {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--color-text);
    margin: 0 0 3rem 0;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
    font-weight: 500;
}

/* seccion de quienes somos (about) */
.about {
    padding: 8rem 2rem;
    background: var(--color-bg);
    max-width: 1400px;
    margin: 0 auto;
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.slider-box {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 500px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    background: var(--color-bg);
}

.slider-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.05);
    /* un poquito de zoom para que se vea pro */
    transition: opacity 1.5s ease-in-out, transform 4s ease-out;
}

.slide-item.active-slide {
    opacity: 1;
    transform: scale(1);
}


.about__badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--color-accent);
    padding: 2rem;
    border-radius: 50%;
    width: 160px;
    height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(185, 28, 28, 0.5);
}

.about__badge-number {
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-heading);
    line-height: 1;
}

.about__badge-text {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.about__content {
    padding-right: 2rem;
}

.about__text {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.about__values {
    background: var(--glass-bg);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--color-primary-light);
}

.about__value-item {
    margin-bottom: 1rem;
}

.about__value-item:last-child {
    margin-bottom: 0;
}

.text-left {
    text-align: left;
    margin-bottom: 2rem;
}

/* seccion de SERVICIOS - lo mas importante */
/* falta revisar los iconos del grid */
.services {
    position: relative;
    padding: 8rem 2rem;
    overflow: hidden;
}

.services__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    /* altura extra por el efecto de movimiento */
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.services__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 7, 18, 0.85);
    /* color oscuro encima de la foto */
    z-index: 1;
}

.services__container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-align: center;
    margin-bottom: 1rem;
}

.text-accent {
    color: var(--color-primary-light);
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    margin-bottom: 5rem;
    font-size: 1.2rem;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.card {
    position: relative;
    padding: 3rem 2rem;
    border-radius: 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    box-shadow: var(--glass-shadow);
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.card__icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(225, 29, 72, 0.1);
    /* color del fondo del icono */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    border: 1px solid rgba(225, 29, 72, 0.3);
    color: var(--color-accent);
}

.card__icon {
    width: 32px;
    height: 32px;
}

.card__title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.card__list {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.card__list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.card__list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-primary-light);
    font-weight: bold;
}

.card__link {
    display: inline-block;
    color: var(--color-text);
    font-weight: 700;
    border-bottom: 1px solid var(--color-primary-light);
    padding-bottom: 4px;
    transition: color 0.3s, border-color 0.3s;
}

.card__link:hover {
    color: var(--color-primary-light);
    border-color: var(--color-accent);
}

/* TEXTO QUE SE MUEVE (MARQUEE) */
.marquee {
    width: 100%;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    background: var(--color-primary);
}

.marquee__inner {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    animation: marquee 25s linear infinite;
}

.marquee__inner .dot {
    color: var(--color-bg);
    margin: 0 2rem;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* EL FOOTER - lo de hasta abajo */
.footer {
    padding: 6rem 2rem 2rem;
    text-align: center;
    background: var(--color-bg-secondary);
}

.footer__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.footer__text {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.footer__email {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    font-family: var(--font-heading);
    display: inline-block;
    margin-bottom: 0.5rem;
    color: var(--color-primary-light);
}

.footer__phone {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    font-weight: 600;
}

.footer__links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.footer__link {
    color: var(--color-text-muted);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s, color 0.3s;
}

.footer__link:hover {
    background: var(--color-primary);
    color: white;
}

.footer__bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* ESTILOS PARA LAS SUBPAGINAS */
/* falta revisar si esto rompe el layout de index */
.btn--outline {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--glass-border);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.btn--outline:hover {
    background: var(--color-primary);
    border-color: var(--color-primary-light);
    color: white;
}

.sub-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.sub-hero .hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(3, 7, 18, 0.4) 0%, rgba(3, 7, 18, 0.92) 100%);
    z-index: 1;
}

.sub-hero .container {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.sub-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

.sub-hero p {
    font-size: 1.3rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.sub-hero .accent {
    color: var(--color-primary-light);
}

.subpage-content .section {
    padding: 5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.subpage-content .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.detail-box {
    position: relative;
    padding: 2.5rem;
    border-radius: 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    box-shadow: var(--glass-shadow);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s, box-shadow 0.4s;
    overflow: hidden;
}

.detail-box__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.3);
    transform: scale(1);
    opacity: 0.75;
    z-index: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}

/* Hover & mobile tap — zoom the background a bit */
.detail-box:hover .detail-box__bg,
.detail-box:active .detail-box__bg,
.detail-box:focus .detail-box__bg {
    transform: scale(1.12);
    filter: brightness(0.25);
}

/* Ensure text and icons are above the background */
.detail-box>* {
    position: relative;
    z-index: 1;
}

.detail-box .card__icon-wrapper {
    margin-bottom: 0.75rem !important;
    margin-top: -0.5rem;
}

.detail-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0%;
    background: linear-gradient(180deg, var(--color-primary-light), var(--color-accent));
    transition: height 0.6s ease-out;
    border-radius: 0 0 4px 0;
    z-index: 2;
}

.detail-box:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 60px rgba(30, 64, 175, 0.15), var(--glass-shadow);
}

.detail-box:hover::before {
    height: 100%;
}

.detail-box h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.detail-box p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ===== WHATSAPP FLOATING BUTTON ===== */
.whatsapp-float {
    position: fixed;
    bottom: 4.5rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.whatsapp-float__label {
    background: #25d366;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.whatsapp-float:hover .whatsapp-float__label {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.whatsapp-float__icon {
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.45);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover .whatsapp-float__icon {
    transform: scale(1.1);
    box-shadow: 0 8px 40px rgba(37, 211, 102, 0.6);
}

.whatsapp-float__icon svg {
    width: 34px;
    height: 34px;
    fill: #fff;
}

/* Pulse animation */
@keyframes wa-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    70% {
        box-shadow: 0 0 0 18px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float__icon {
    animation: wa-pulse 2s infinite;
}

/* EFECTOS DE BLINDAJE Y SEGURIDAD - SECCION SEGUROS */
.shield-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
}

.shield-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 15px var(--color-primary-light));
    animation: shield-float 3s ease-in-out infinite;
}

.shield-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: var(--color-primary-light);
    border-radius: 50%;
    opacity: 0.3;
    animation: shield-pulse-anim 2s ease-out infinite;
    z-index: -1;
}

@keyframes shield-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes shield-pulse-anim {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.8); opacity: 0; }
}

/* Glassmorphism Pro - Brillo que recorre la tarjeta */
.card-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: skewX(-25deg);
    transition: 0.75s;
}

.detail-box:hover .card-shine {
    left: 150%;
}

/* Mejora de Performance: Reducir layout shifts */
.services-detail {
    contain: content;
}

/* ASK MAPS - LOGISTICS INTELLIGENCE TERMINAL */
.ask-maps {
    position: relative;
    background: #020617;
    padding: 6rem 2rem;
    overflow: hidden;
}

.ask-maps__container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--color-primary-light);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 0 50px rgba(30, 64, 175, 0.2);
    backdrop-filter: blur(20px);
}

.map-viewport {
    position: relative;
    height: 500px;
    background: radial-gradient(circle at center, #1e293b 0%, #020617 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

/* SVG Map Styling */
.world-map-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(30, 64, 175, 0.5));
}

.route-line {
    stroke-dasharray: 10;
    animation: route-flow 20s linear infinite;
    stroke: var(--color-primary-light);
    stroke-width: 1;
    opacity: 0.6;
}

@keyframes route-flow {
    from { stroke-dashoffset: 1000; }
    to { stroke-dashoffset: 0; }
}

.port-node {
    cursor: pointer;
    transition: 0.3s;
}

.port-node:hover {
    filter: brightness(1.5) drop-shadow(0 0 8px var(--color-primary-light));
}

.radar-ping {
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
    fill: var(--color-primary-light);
    opacity: 0.75;
}

@keyframes ping {
    75%, 100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* Console Styling */
.map-console {
    background: #000;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 1.5rem;
    font-family: 'Space Grotesk', monospace;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.console-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 0.5rem;
}

.console-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.console-input-wrapper {
    position: relative;
    margin-top: 1rem;
}

.console-input {
    width: 100%;
    background: transparent;
    border: 1px solid var(--color-primary-light);
    border-radius: 4px;
    padding: 0.75rem;
    color: var(--color-primary-light);
    font-size: 0.9rem;
    outline: none;
    box-shadow: 0 0 10px rgba(30, 64, 175, 0.3);
}

.console-log {
    flex: 1;
    overflow-y: auto;
    font-size: 0.8rem;
    color: #4ade80;
    line-height: 1.4;
}

.typewriter {
    overflow: hidden;
    border-right: .15em solid orange;
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: .15em;
    animation: typing 3.5s steps(40, end), blink-caret .75s step-end infinite;
}

@media (max-width: 1024px) {
    .ask-maps__container { grid-template-columns: 1fr; }
    .map-viewport { height: 350px; }
}

/* ASK MAPS V3.0 - INTELLIGENCE HUB */
.command-center {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #0f172a 0%, #020617 100%);
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    padding: 2rem;
    color: white;
}

.command-center--active {
    display: flex;
    opacity: 1;
}

.cc-container {
    max-width: 1400px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    height: 80vh;
}

.cc-main-screen {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--color-primary-light);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.cc-header {
    border-bottom: 2px solid var(--color-primary-light);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.cc-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-primary-light);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cc-news-content {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    flex: 1;
}

/* Sugerencias Estilo YouTube */
.cc-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cc-suggestion-label {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
}

.cc-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    gap: 1rem;
    align-items: center;
}

.cc-card:hover {
    border-color: var(--color-primary-light);
    transform: translateX(-10px);
    background: rgba(30, 64, 175, 0.2);
}

.cc-card-img {
    width: 100px;
    height: 60px;
    background: var(--color-bg-secondary);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: var(--color-primary-light);
    border: 1px solid var(--color-primary-light);
}

.cc-card-info h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    color: white;
}

.cc-card-info p {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.cc-close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: 1px solid white;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    z-index: 10001;
}

/* Map Zoom Classes */
.map-transition {
    transition: all 1.2s cubic-bezier(0.85, 0, 0.15, 1);
}

/* ADAPTACION PARA CELULARES Y TABLETS */
/* TODO: revisar si en ipad se ve bien */
@media (max-width: 992px) {
    .about__grid {
        grid-template-columns: 1fr;
    }

    .about__image-container {
        height: 400px;
    }

    .subpage-content .grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .header__container {
        padding: 0 1rem;
    }

    .header__logo-img {
        height: 60px;
        width: 60px;
    }

    .whatsapp-btn {
        right: 1rem;
        bottom: 3.5rem;
        width: 55px;
        height: 55px;
    }

    .whatsapp-btn svg {
        width: 30px;
        height: 30px;
    }

    .sub-hero {
        min-height: 40vh;
    }

    .whatsapp-float {
        bottom: 3.5rem;
        right: 1rem;
    }

    .whatsapp-float__icon {
        width: 50px;
        height: 50px;
    }

    .whatsapp-float__icon svg {
        width: 28px;
        height: 28px;
    }

    .whatsapp-float__label {
        display: none;
    }

    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.8rem;
    }
}

/* =====================================================
   PERFORMANCE: Fix expensive parallax on mobile/tablet
   background-attachment: fixed causes full-page repaints
   on every scroll event — very slow on iOS/Android
   ===================================================== */
@media (max-width: 1024px) {
    .parallax-section {
        background-attachment: scroll !important;
    }
    /* Also fix any inline-styled fixed backgrounds */
    [style*="background-attachment: fixed"] {
        background-attachment: scroll !important;
    }
}

/* =====================================================
   PERFORMANCE: GPU acceleration hints for animated elements
   ===================================================== */
.cursor,
.cursor-follower,
.carousel-slide,
.header {
    will-change: transform;
}

/* =====================================================
   SVG CARD HEADER GRADIENTS
   Used to replace external Unsplash images in detail cards.
   Zero HTTP requests, faster load.
   ===================================================== */
.card-hdr {
    position: relative;
    height: 180px;
    overflow: hidden;
    flex-shrink: 0;
}

/* Subtle SVG cross-hatch texture overlay */
.card-hdr::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M0 20 L40 20 M20 0 L20 40' stroke='%23ffffff' stroke-width='0.5' stroke-opacity='0.08'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.card-hdr--blue  { background: linear-gradient(135deg, #0a1628 0%, #1e3a6e 60%, #0c1e45 100%); }
.card-hdr--red   { background: linear-gradient(135deg, #1a0a0a 0%, #7f1d1d 60%, #1a0505 100%); }
.card-hdr--teal  { background: linear-gradient(135deg, #042f2e 0%, #115e59 60%, #042f2e 100%); }
.card-hdr--green { background: linear-gradient(135deg, #052e16 0%, #14532d 60%, #052e16 100%); }
.card-hdr--navy  { background: linear-gradient(135deg, #0c1445 0%, #1d4ed8 60%, #0c1445 100%); }
.card-hdr--dark  { background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0f172a 100%); }
.card-hdr--gold  { background: linear-gradient(135deg, #1c1000 0%, #78350f 60%, #1c1000 100%); }

/* Floating icon inside card header */
.card-hdr__icon {
    position: absolute;
    bottom: -24px;
    left: 2rem;
    background: var(--color-bg-secondary);
    padding: 12px;
    border-radius: 16px;
    border: 1px solid var(--color-primary-light);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

/* Fade gradient at bottom of card header */
.card-hdr__fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--color-bg), transparent 60%);
    z-index: 1;
    pointer-events: none;
}

/* Large SVG decoration inside card header (watermark style) */
.card-hdr__deco {
    position: absolute;
    right: -10px;
    bottom: -10px;
    width: 120px;
    height: 120px;
    opacity: 0.06;
    color: white;
    z-index: 0;
}

/* =====================================================
   SVG SECTION DECORATIONS
   Lightweight animated backgrounds for sections
   ===================================================== */

/* Animated dot-grid pattern for about section */
.dot-grid-bg {
    position: relative;
}
.dot-grid-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(59, 130, 246, 0.15) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}
/* Ensure all direct children are above the dot-grid overlay */
.dot-grid-bg > * {
    position: relative;
    z-index: 1;
}

/* Animated circuit-lines decoration */
@keyframes circuit-flow {
    0%   { stroke-dashoffset: 200; opacity: 0.4; }
    50%  { opacity: 0.9; }
    100% { stroke-dashoffset: 0;   opacity: 0.4; }
}

.circuit-line {
    stroke-dasharray: 8 4;
    animation: circuit-flow 4s linear infinite;
}

/* Services section SVG background instead of Unsplash */
.services__bg-svg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    background:
        radial-gradient(ellipse 60% 50% at 70% 50%, rgba(30, 64, 175, 0.25) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 20% 80%, rgba(185, 28, 28, 0.12) 0%, transparent 70%),
        var(--color-bg);
    overflow: hidden;
}

/* News card gradient for fallback articles */
.news-card-hdr--logistics {
    height: 200px;
    background: linear-gradient(135deg, #0a1628 0%, #1e3a6e 50%, #0a1628 100%);
    position: relative;
    overflow: hidden;
}
.news-card-hdr--customs {
    height: 200px;
    background: linear-gradient(135deg, #0c1445 0%, #7c3aed 50%, #0c1445 100%);
    position: relative;
    overflow: hidden;
}
.news-card-hdr--logistics::after,
.news-card-hdr--customs::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Crect x='10' y='10' width='40' height='2'/%3E%3Crect x='10' y='20' width='30' height='2'/%3E%3Crect x='10' y='30' width='40' height='2'/%3E%3Crect x='10' y='40' width='20' height='2'/%3E%3C/g%3E%3C/svg%3E");
}