/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    color: #ffffff;
    background: #020506;
    overflow-x: hidden;
}


/* =========================================================
   FONDOS AMBIENTALES
========================================================= */

.ambient {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.ambient-base {
    opacity: 1;
    background:
        radial-gradient(
            circle at 50% 18%,
            #122832 0%,
            #081217 37%,
            #030709 67%,
            #010203 100%
        );
}

.ambient-drones {
    background:
        radial-gradient(
            circle at 15% 70%,
            rgba(0,174,200,0.18),
            transparent 42%
        );
}

.ambient-3d {
    background:
        radial-gradient(
            circle at 32% 30%,
            rgba(0,166,206,0.18),
            transparent 42%
        );
}

.ambient-code {
    background:
        radial-gradient(
            circle at 55% 25%,
            rgba(0,114,160,0.18),
            transparent 42%
        );
}

.ambient-media {
    background:
        radial-gradient(
            circle at 78% 65%,
            rgba(60,118,143,0.18),
            transparent 44%
        );
}

.ambient-web {
    background:
        radial-gradient(
            circle at 85% 25%,
            rgba(0,171,196,0.15),
            transparent 42%
        );
}

body[data-active="drones"] .ambient-drones {
    opacity: 1;
}

body[data-active="3d"] .ambient-3d {
    opacity: 1;
}

body[data-active="code"] .ambient-code {
    opacity: 1;
}

body[data-active="media"] .ambient-media {
    opacity: 1;
}

body[data-active="web"] .ambient-web {
    opacity: 1;
}


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

.hero {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 32px 28px;
    transition:
        filter 0.45s ease,
        opacity 0.45s ease,
        transform 0.45s ease;
}


/* =========================================================
   HERO TÉCNICO / LUZ UV
========================================================= */

.brand-stage {
    --uv-x: 50%;
    --uv-y: 50%;

    position: relative;
    width: min(1380px, 98vw);
    min-height: 330px;

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

    margin-bottom: 20px;
    overflow: hidden;
}

.technical-definitions {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.hero-tech-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    user-select: none;
    transform: scale(1.015);
    transition: transform 1.2s ease;
}

.brand-stage:hover .hero-tech-art {
    transform: scale(1.025);
}

/* Capa casi invisible */
.hero-tech-art-ghost {
    opacity: 0.012;
    color: #72dce9;
    filter: blur(0.2px);
}

/* Capa que se revela con el mouse */
.hero-tech-art-reveal {
    opacity: 0.86;
    color: #89eff7;

    -webkit-mask-image:
        radial-gradient(
            circle 155px
            at var(--uv-x) var(--uv-y),
            rgba(0,0,0,1) 0%,
            rgba(0,0,0,0.97) 24%,
            rgba(0,0,0,0.68) 46%,
            rgba(0,0,0,0.24) 67%,
            transparent 83%
        );

    mask-image:
        radial-gradient(
            circle 155px
            at var(--uv-x) var(--uv-y),
            rgba(0,0,0,1) 0%,
            rgba(0,0,0,0.97) 24%,
            rgba(0,0,0,0.68) 46%,
            rgba(0,0,0,0.24) 67%,
            transparent 83%
        );

    filter:
        drop-shadow(
            0 0 3px
            rgba(103,234,247,0.55)
        )
        drop-shadow(
            0 0 13px
            rgba(63,189,223,0.20)
        );
}

/* Estética técnica */
.technical-object {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.15;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.technical-detail {
    opacity: 0.55;
    stroke-width: 0.75;
}

.technical-dashed {
    opacity: 0.46;
    stroke-width: 0.7;
    stroke-dasharray: 4 7;
}

.technical-hot {
    fill: currentColor;
    stroke: none;
    opacity: 0.78;
}

.technical-links {
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 0.7;
    opacity: 0.34;
    stroke-dasharray: 3 9;
}

.technical-code {
    fill: none;
    stroke: currentColor;
}

.technical-code text {
    fill: currentColor;
    stroke: none;
    font-family: Consolas, "Courier New", monospace;
    font-size: 9px;
    letter-spacing: 0.2px;
}

.technical-label {
    fill: currentColor;
    stroke: none;
    font-family: Consolas, "Courier New", monospace;
    font-size: 7px;
    letter-spacing: 1.7px;
    opacity: 0.48;
}

.technical-faint {
    opacity: 0.28;
}

/* Halo UV */
.brand-stage::after {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0;
    pointer-events: none;

    background:
        radial-gradient(
            circle 165px
            at var(--uv-x) var(--uv-y),
            rgba(115,237,248,0.065) 0%,
            rgba(65,191,221,0.032) 40%,
            rgba(18,77,94,0.012) 62%,
            transparent 79%
        );

    opacity: 0;
    transition: opacity 0.25s ease;
}

.brand-stage:hover::after {
    opacity: 1;
}


/* =========================================================
   MARCA PRINCIPAL
========================================================= */

.brand {
    position: relative;
    z-index: 5;

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

    animation:
        brandEntrance
        1.2s
        cubic-bezier(0.16,1,0.3,1)
        forwards;
}

.main-logo {
    width: min(700px,70vw);
    height: auto;

    filter:
        drop-shadow(
            0 15px 30px
            rgba(0,0,0,0.24)
        );
}

.intro {
    margin-top: 24px;
    font-size: 10px;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.43);
}

@keyframes brandEntrance {
    from {
        opacity: 0;
        transform: translateY(17px);
        filter: blur(7px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}


/* =========================================================
   UNIDADES
========================================================= */

.divisions {
    width: min(1650px,96vw);
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 8px;

    animation:
        divisionsEntrance
        1.2s
        0.16s
        cubic-bezier(0.16,1,0.3,1)
        both;
}

@keyframes divisionsEntrance {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   DIVISIÓN
========================================================= */

.division {
    position: relative;
    min-height: 235px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 30px 18px 22px;

    color: #ffffff;
    text-decoration: none;
    overflow: hidden;

    transition: opacity 0.45s ease;
}

.division::before {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 8px;

    background:
        radial-gradient(
            circle at 50% 48%,
            rgba(10,163,190,0.11),
            transparent 72%
        );

    opacity: 0;
    transition: opacity 0.45s ease;
}

.division:hover::before {
    opacity: 1;
}


/* =========================================================
   MISMO LOGO EN TODAS
========================================================= */

.division-logo {
    position: relative;
    z-index: 5;

    width: 82%;
    max-width: 230px;
    max-height: 65px;

    object-fit: contain;

    transition:
        transform 0.5s
        cubic-bezier(0.16,1,0.3,1),

        filter 0.5s ease;
}


/* =========================================================
   INFORMACIÓN
========================================================= */

.division-info {
    position: relative;
    z-index: 6;

    width: 100%;
    min-height: 90px;
    margin-top: 22px;

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

.division-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 4.5px;

    color: rgba(255,255,255,0.42);

    transition:
        color 0.35s ease,
        letter-spacing 0.35s ease;
}

.effect-line {
    position: relative;
    width: 100%;
    min-height: 54px;
    margin-top: 9px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.division-description {
    position: relative;
    z-index: 5;

    font-size: 9px;
    line-height: 1.6;
    letter-spacing: 1.25px;
    text-align: center;

    color: rgba(124,225,239,0.91);
}


/* =========================================================
   HOVER
========================================================= */

.divisions:hover .division {
    opacity: 0.20;
}

.divisions .division:hover {
    opacity: 1;
}

.division:hover .division-logo {
    transform: scale(1.06);

    filter:
        drop-shadow(
            0 0 14px
            rgba(27,186,214,0.18)
        )
        drop-shadow(
            0 0 32px
            rgba(27,186,214,0.07)
        );
}

.division:hover .division-label {
    color: rgba(255,255,255,0.94);
    letter-spacing: 5.2px;
}


/* =========================================================
   FLECHA
========================================================= */

.division-arrow {
    position: absolute;
    z-index: 10;
    top: 18px;
    right: 18px;

    opacity: 0;

    color: rgba(255,255,255,0.70);

    transform: translate(-5px,5px);

    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
}

.division:hover .division-arrow {
    opacity: 1;
    transform: translate(0,0);
}


/* =========================================================
   DRONES
========================================================= */

.drones-description {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 3px;
    width: 100%;
}

.drones-line {
    display: flex;
    justify-content: center;
    white-space: pre;
    min-height: 15px;
}

.drones-line:first-child {
    font-size: 9.5px;
    letter-spacing: 1.5px;
    color: rgba(143,230,241,0.96);
}

.drones-line-secondary {
    font-size: 8.5px;
    letter-spacing: 1.1px;
    color: rgba(118,211,225,0.75);
}

.drone-letter {
    display: inline-block;
    opacity: 0;
    filter: blur(5px);

    transform:
        translate(
            var(--fly-x),
            var(--fly-y)
        )
        rotate(
            var(--fly-rotation)
        )
        scale(0.74);
}

.division-drones.is-flying .drone-letter {
    animation:
        droneFlight
        0.65s
        cubic-bezier(0.16,1,0.3,1)
        forwards;

    animation-delay: var(--delay);
}

@keyframes droneFlight {
    0% {
        opacity: 0;
        filter: blur(6px);

        transform:
            translate(
                var(--fly-x),
                var(--fly-y)
            )
            rotate(
                var(--fly-rotation)
            )
            scale(0.72);
    }

    60% {
        opacity: 1;
        filter: blur(0);

        transform:
            translate(-1px,1px)
            rotate(0)
            scale(1.06);

        text-shadow:
            0 0 14px
            rgba(94,232,250,0.76);
    }

    100% {
        opacity: 1;

        transform:
            translate(0)
            rotate(0)
            scale(1);

        filter: blur(0);

        text-shadow:
            0 0 5px
            rgba(61,211,235,0.28);
    }
}


/* =========================================================
   3D
========================================================= */

.cube-wire {
    position: absolute;

    width: 58px;
    height: 48px;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%,-50%)
        scale(0.7);

    opacity: 0;
}

.cube-line {
    fill: none;
    stroke: rgba(111,232,244,0.86);
    stroke-width: 1.2;
    stroke-dasharray: 220;
    stroke-dashoffset: 220;
}

.division-3d.is-building .cube-wire {
    animation:
        cubeAppear
        0.85s
        ease
        forwards;
}

.division-3d.is-building .cube-line {
    animation:
        drawCube
        0.6s
        ease-out
        forwards;
}

.division-3d.is-building .cube-line-2 {
    animation-delay: 0.08s;
}

.division-3d.is-building .cube-line-3 {
    animation-delay: 0.16s;
}

.division-3d.is-building .cube-line-4 {
    animation-delay: 0.24s;
}

.division-3d.is-building .cube-line-5 {
    animation-delay: 0.31s;
}

@keyframes drawCube {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes cubeAppear {
    0% {
        opacity: 0;

        transform:
            translate(-50%,-50%)
            scale(0.55)
            rotate(-8deg);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.20;

        transform:
            translate(-50%,-50%)
            scale(1.1);
    }
}

.threed-description {
    opacity: 0;
    filter: blur(7px);
    transform: scale(0.72);
}

.division-3d.is-building .threed-description {
    animation:
        materialize3D
        0.65s
        0.44s
        cubic-bezier(0.16,1,0.3,1)
        forwards;
}

@keyframes materialize3D {
    to {
        opacity: 1;
        filter: blur(0);
        transform: scale(1);

        text-shadow:
            0 0 5px
            rgba(61,211,235,0.30);
    }
}


/* =========================================================
   CODE
========================================================= */

.code-rain {
    position: absolute;
    z-index: 2;
    inset: 0;

    overflow: hidden;
    pointer-events: none;

    opacity: 0;
    transition: opacity 1.15s ease;
}

.division-code.is-decoding .code-rain {
    opacity: 0.45;
}

.division-code.code-stopping .code-rain {
    opacity: 0;
}

.code-column {
    position: absolute;
    top: -220px;

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

    gap: 4px;
    width: 14px;

    font-family: Consolas, monospace;
    font-size: var(--column-size);

    color: rgba(88,226,237,0.52);
    opacity: var(--column-opacity);

    text-shadow:
        0 0 5px
        rgba(39,210,225,0.40);
}

.code-column span {
    height: 10px;
    line-height: 10px;
}

.code-column span:first-child {
    color: rgba(201,251,255,0.95);
}

.division-code.is-decoding .code-column {
    animation:
        codeColumnFall
        var(--column-duration)
        linear
        infinite;

    animation-delay: var(--column-delay);
}

@keyframes codeColumnFall {
    from {
        transform: translateY(-50px);
    }

    to {
        transform: translateY(500px);
    }
}

.code-description {
    font-family: Consolas, monospace;
    white-space: normal;
    opacity: 0;
}

.division-code.is-decoding .code-description {
    opacity: 1;
}

.division-code.decode-complete .code-description {
    text-shadow:
        0 0 7px
        rgba(61,211,235,0.38);
}


/* =========================================================
   MEDIA
========================================================= */

.media-effect {
    overflow: hidden;
}

.film-strip {
    position: absolute;

    left: -35%;
    top: 50%;

    width: 170%;
    height: 25px;

    opacity: 0;
    transform: translateY(-50%);

    border-top:
        1px solid
        rgba(125,226,238,0.22);

    border-bottom:
        1px solid
        rgba(125,226,238,0.22);

    background:
        repeating-linear-gradient(
            90deg,
            rgba(101,214,226,0.04) 0 20px,
            rgba(101,214,226,0.18) 21px 22px,
            transparent 23px 30px
        );
}

.film-strip::before,
.film-strip::after {
    content: "";
    position: absolute;

    left: 0;
    width: 100%;
    height: 3px;

    background:
        repeating-linear-gradient(
            90deg,
            rgba(144,236,244,0.42) 0 6px,
            transparent 6px 13px
        );
}

.film-strip::before {
    top: 3px;
}

.film-strip::after {
    bottom: 3px;
}

.division-media.is-projecting .film-strip {
    animation:
        filmMovement
        0.9s
        ease-out
        forwards;
}

@keyframes filmMovement {
    0% {
        opacity: 0;
        transform: translate(-8%,-50%);
    }

    25% {
        opacity: 0.55;
    }

    100% {
        opacity: 0.08;
        transform: translate(9%,-50%);
    }
}

.projector-beam {
    position: absolute;
    z-index: 3;

    left: -60%;
    top: -10%;

    width: 42%;
    height: 120%;

    opacity: 0;
    transform: skewX(-17deg);

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(192,249,255,0.62),
            transparent
        );

    filter: blur(4px);
}

.division-media.is-projecting .projector-beam {
    animation:
        projectorSweep
        0.75s
        ease-out
        forwards;
}

@keyframes projectorSweep {
    15% {
        opacity: 0.8;
    }

    100% {
        left: 125%;
        opacity: 0;
    }
}

.media-description {
    opacity: 0;
    filter: blur(5px);

    clip-path:
        inset(0 100% 0 0);
}

.division-media.is-projecting .media-description {
    animation:
        mediaReveal
        0.7s
        0.15s
        ease-out
        forwards;
}

@keyframes mediaReveal {
    to {
        opacity: 1;
        filter: blur(0);
        clip-path: inset(0);

        text-shadow:
            0 0 5px
            rgba(61,211,235,0.28);
    }
}


/* =========================================================
   WEB DESIGN
========================================================= */

.web-effect {
    overflow: visible;
}

.design-board {
    position: absolute;
    width: 110px;
    height: 47px;

    opacity: 0;
    overflow: visible;
}

.design-frame,
.design-line,
.design-block {
    fill: none;

    stroke:
        rgba(113,232,244,0.84);

    stroke-width: 1;
    stroke-dasharray: 250;
    stroke-dashoffset: 250;
}

.design-handle {
    fill:
        rgba(172,244,250,0.85);

    opacity: 0;
}

.design-cursor {
    position: absolute;

    left: 72%;
    top: -2px;

    opacity: 0;
    font-size: 16px;

    color:
        rgba(191,248,253,0.90);

    text-shadow:
        0 0 8px
        rgba(89,229,240,0.70);
}

.web-description {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(4px);
}

.division-web.is-designing .design-board {
    animation:
        designBoardIn
        0.25s
        forwards;
}

.division-web.is-designing .design-frame {
    animation:
        drawDesign
        0.55s
        forwards;
}

.division-web.is-designing .design-line-1 {
    animation:
        drawDesign
        0.45s
        0.18s
        forwards;
}

.division-web.is-designing .design-line-2 {
    animation:
        drawDesign
        0.45s
        0.27s
        forwards;
}

.division-web.is-designing .design-block {
    animation:
        drawDesign
        0.38s
        0.36s
        forwards;
}

.division-web.is-designing .design-handle {
    animation:
        handlesIn
        0.3s
        0.48s
        forwards;
}

.division-web.is-designing .design-cursor {
    animation:
        cursorDesign
        0.75s
        0.15s
        ease-out
        forwards;
}

.division-web.is-designing .web-description {
    animation:
        webReveal
        0.5s
        0.58s
        ease
        forwards;
}

@keyframes designBoardIn {
    to {
        opacity: 0.25;
    }
}

@keyframes drawDesign {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes handlesIn {
    to {
        opacity: 0.8;
    }
}

@keyframes cursorDesign {
    0% {
        opacity: 0;
        transform: translate(15px,-10px);
    }

    25% {
        opacity: 1;
    }

    65% {
        opacity: 1;
        transform: translate(-35px,18px);
    }

    100% {
        opacity: 0;
        transform: translate(-52px,23px);
    }
}

@keyframes webReveal {
    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);

        text-shadow:
            0 0 5px
            rgba(61,211,235,0.27);
    }
}


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

.footer {
    display: flex;
    align-items: center;

    gap: 13px;
    margin-top: 26px;

    font-size: 8px;
    letter-spacing: 3px;

    color: rgba(255,255,255,0.25);
}

.footer-dot {
    width: 3px;
    height: 3px;

    border-radius: 50%;

    background:
        rgba(255,255,255,0.30);
}

.contact-trigger {
    border: none;
    background: none;

    color:
        rgba(255,255,255,0.40);

    font: inherit;
    letter-spacing: inherit;
    cursor: pointer;

    transition: color 0.3s ease;
}

.contact-trigger:hover {
    color:
        rgba(255,255,255,0.90);
}


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

body.contact-open {
    overflow: hidden;
}

body.contact-open .hero {
    filter: blur(6px);
    opacity: 0.34;
    transform: scale(0.99);
}

.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;

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

    padding: 22px;

    visibility: hidden;
    pointer-events: none;
}

.contact-modal.is-open {
    visibility: visible;
    pointer-events: auto;
}

.contact-backdrop {
    position: absolute;
    inset: 0;

    background:
        rgba(0,4,6,0.69);

    opacity: 0;
    transition: opacity 0.4s ease;
}

.contact-modal.is-open .contact-backdrop {
    opacity: 1;
}

.contact-panel {
    position: relative;

    width:
        min(610px,92vw);

    background:
        rgba(4,12,16,0.97);

    border:
        1px solid
        rgba(160,233,241,0.11);

    box-shadow:
        0 30px 90px
        rgba(0,0,0,0.64);

    opacity: 0;

    transform:
        translateY(18px)
        scale(0.975);

    transition:
        opacity 0.42s
        cubic-bezier(0.16,1,0.3,1),

        transform 0.42s
        cubic-bezier(0.16,1,0.3,1);
}

.contact-modal.is-open .contact-panel {
    opacity: 1;

    transform:
        translateY(0)
        scale(1);
}

.contact-close {
    position: absolute;

    top: 19px;
    right: 21px;

    border: none;
    background: none;

    color:
        rgba(255,255,255,0.40);

    font-size: 28px;
    cursor: pointer;

    transition:
        color 0.3s ease,
        transform 0.3s ease;
}

.contact-close:hover {
    color: white;
    transform: rotate(90deg);
}

.contact-content {
    padding:
        62px
        58px
        52px;
}

.contact-eyebrow {
    display: block;
    margin-bottom: 17px;

    font-size: 8px;
    letter-spacing: 5px;

    color:
        rgba(115,224,237,0.54);
}

.contact-content h2 {
    font-size:
        clamp(
            29px,
            4vw,
            42px
        );

    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -1px;
}

.contact-email {
    width: fit-content;

    display: flex;
    align-items: center;

    gap: 13px;
    margin-top: 31px;
    padding-bottom: 7px;

    text-decoration: none;

    color:
        rgba(154,235,244,0.88);

    font-size: 14px;
    letter-spacing: 0.6px;

    border-bottom:
        1px solid
        rgba(125,226,238,0.16);
}

.contact-email:hover {
    color:
        #ffffff;
}


/* =========================================================
   WHATSAPP
========================================================= */

.whatsapp-list {
    display: grid;
    grid-template-columns: repeat(2,1fr);

    gap: 9px;
    margin-top: 38px;
}

.whatsapp-item {
    position: relative;
    min-height: 82px;

    display: flex;
    align-items: center;

    gap: 14px;
    padding: 15px 16px;

    border:
        1px solid
        rgba(255,255,255,0.07);

    text-decoration: none;
    color: white;

    transition:
        background 0.3s ease,
        border-color 0.3s ease;
}

.whatsapp-item:hover {
    background:
        rgba(92,218,230,0.035);

    border-color:
        rgba(113,226,238,0.18);
}


/* =========================================================
   BANDERAS CSS
========================================================= */

.flag {
    position: relative;
    display: block;

    width: 29px;
    height: 19px;

    flex:
        0 0 29px;

    overflow: hidden;

    box-shadow:
        0 0 0 1px
        rgba(255,255,255,0.10);
}

/* COLOMBIA */
.flag-colombia {
    background:
        linear-gradient(
            to bottom,
            #fcd116 0%,
            #fcd116 50%,
            #003893 50%,
            #003893 75%,
            #ce1126 75%,
            #ce1126 100%
        );
}

/* CHILE */
.flag-chile {
    background:
        linear-gradient(
            to bottom,
            #ffffff 0%,
            #ffffff 50%,
            #d52b1e 50%,
            #d52b1e 100%
        );
}

.flag-chile::before {
    content: "";
    position: absolute;

    left: 0;
    top: 0;

    width: 50%;
    height: 50%;

    background:
        #0039a6;
}

.flag-chile::after {
    content: "★";
    position: absolute;

    left: 5px;
    top: -1px;

    color: #ffffff;

    font-size: 9px;
    line-height: 10px;
}


/* =========================================================
   WHATSAPP TEXTOS
========================================================= */

.country-name {
    display: block;
    margin-bottom: 5px;

    font-size: 7px;
    letter-spacing: 2px;

    color:
        rgba(255,255,255,0.31);
}

.whatsapp-number {
    display: block;

    font-size: 11px;
    letter-spacing: 0.5px;

    color:
        rgba(255,255,255,0.78);
}

.whatsapp-arrow {
    position: absolute;

    right: 13px;
    top: 12px;

    font-size: 11px;

    color:
        rgba(255,255,255,0.30);
}


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

@media
(max-width: 1200px) {

    .divisions {
        grid-template-columns:
            repeat(3,1fr);
    }

}

@media
(max-width: 820px) {

    .divisions {
        grid-template-columns:
            repeat(2,1fr);
    }

    .brand-stage {
        min-height: 280px;
    }

}

@media
(max-width: 560px) {

    .hero {
        justify-content: flex-start;

        padding:
            35px
            16px
            30px;
    }

    .brand-stage {
        width: 100%;
        min-height: 240px;
        margin-bottom: 22px;
    }

    .hero-tech-art {
        width: 150%;
        left: -25%;
    }

    .main-logo {
        width: 89vw;
    }

    .intro {
        font-size: 8px;
        line-height: 1.8;
        letter-spacing: 4px;
    }

    .divisions {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 0;
    }

    .division {
        min-height: 195px;
    }

    .division-logo {
        max-width: 250px;
    }

    .whatsapp-list {
        grid-template-columns: 1fr;
    }

    .contact-content {
        padding:
            58px
            27px
            32px;
    }

    .contact-email {
        font-size: 12px;
    }

}


/* =========================================================
   REDUCCIÓN DE MOVIMIENTO
========================================================= */

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

    * {
        animation: none !important;
        transition: none !important;
    }

}


/* =========================================================
   MOBILE V4 — SIN HOVER / SIN LONG PRESS
========================================================= */

@media
(max-width: 900px),
(hover: none),
(pointer: coarse) {

    /*
       Neutraliza por completo el hover "pegajoso" de Chrome/Safari móvil.
       El motor V4 utiliza .mobile-active.
    */
    .divisions:hover .division {
        opacity: 1 !important;
    }

    .division:hover::before {
        opacity: 0 !important;
    }

    .division:hover .division-logo {
        transform: none !important;
        filter: none !important;
    }

    .division:hover .division-label {
        color: rgba(255,255,255,0.42) !important;
        letter-spacing: 4.5px !important;
    }

    .division:hover .division-arrow {
        opacity: 0 !important;
        transform: translate(-5px,5px) !important;
    }

    /*
       Estado real móvil.
    */
    .division.mobile-active {
        opacity: 1 !important;
    }

    .division.mobile-active::before {
        opacity: 1 !important;
    }

    .division.mobile-active .division-logo {
        transform: scale(1.06) !important;
        filter:
            drop-shadow(0 0 14px rgba(27,186,214,0.18))
            drop-shadow(0 0 32px rgba(27,186,214,0.07)) !important;
    }

    .division.mobile-active .division-label {
        color: rgba(255,255,255,0.94) !important;
        letter-spacing: 5.2px !important;
    }

    .division.mobile-active .division-arrow {
        opacity: 1 !important;
        transform: translate(0,0) !important;
    }

    .division {
        touch-action: pan-y;
        -webkit-tap-highlight-color: transparent;
    }

    /*
       La luz del hero YA NO depende de :hover.
       Siempre está visible en móvil y --uv-x / --uv-y
       se mueven por requestAnimationFrame.
    */
    .brand-stage::after {
        opacity: 0.88 !important;
        transition: none !important;
    }

    .brand-stage:hover::after {
        opacity: 0.88 !important;
    }

    .brand-stage:hover .hero-tech-art,
    .brand-stage .hero-tech-art {
        transform: scale(1.025);
    }

    .brand-stage.mobile-uv-touch::after {
        opacity: 1 !important;
    }
}


/* =========================================================
   V5 · RESPONSIVE / LEGIBILIDAD / ZOOM
   ========================================================= */

:root{
    --micro-readable: clamp(10px, .62vw, 13px);
    --small-readable: clamp(11px, .72vw, 14px);
}

/* Textos funcionales: nunca microscópicos */
.intro{
    font-size: var(--micro-readable) !important;
    letter-spacing: clamp(3px,.32vw,6px);
}

.division-label{
    font-size: var(--small-readable) !important;
    letter-spacing: clamp(2.8px,.30vw,4.8px);
}

.division-description,
.drones-line:first-child,
.drones-line-secondary{
    font-size: clamp(10px,.60vw,12.5px) !important;
    line-height: 1.55;
}

.footer{
    font-size: clamp(9.5px,.55vw,11.5px) !important;
}

.contact-eyebrow,
.country-name{
    font-size: clamp(9px,.52vw,11px) !important;
}

.whatsapp-number{
    font-size: clamp(12px,.68vw,14px) !important;
}

/* El gateway refluye antes cuando el usuario aumenta zoom. */
@media (max-width: 1450px){
    .divisions{
        width:min(1180px,96vw);
        grid-template-columns:repeat(3,minmax(0,1fr));
        gap:12px;
    }

    .division{
        min-height:220px;
    }

    .brand-stage{
        width:min(1180px,96vw);
    }
}

@media (max-width: 980px){
    .divisions{
        width:min(760px,96vw);
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .hero{
        min-height:auto;
        justify-content:flex-start;
        padding-top:30px;
    }

    .brand-stage{
        min-height:270px;
        margin-bottom:12px;
    }
}

@media (max-width: 620px){
    .divisions{
        grid-template-columns:1fr;
        width:100%;
    }

    .division{
        min-height:190px;
        padding:26px 16px 20px;
    }

    .division-info{
        min-height:82px;
        margin-top:17px;
    }

    .division-label{
        font-size:12px !important;
        letter-spacing:3.5px !important;
    }

    .division-description,
    .drones-line:first-child,
    .drones-line-secondary{
        font-size:11px !important;
    }

    .footer{
        font-size:10px !important;
        letter-spacing:2px;
        flex-wrap:wrap;
        justify-content:center;
    }
}

/* Cuando Chrome hace zoom hacia afuera aumenta el viewport CSS.
   Este bloque compensa parte de esa reducción física. */
@media (min-width: 1850px){
    .hero{
        padding-left:clamp(32px,3vw,70px);
        padding-right:clamp(32px,3vw,70px);
    }

    .brand-stage{
        width:min(1540px,94vw);
        min-height:360px;
    }

    .main-logo{
        width:min(760px,68vw);
    }

    .divisions{
        width:min(1760px,94vw);
        gap:16px;
    }

    .division{
        min-height:260px;
    }

    .division-label{
        font-size:14px !important;
    }

    .division-description,
    .drones-line:first-child,
    .drones-line-secondary{
        font-size:12px !important;
    }

    .footer{
        font-size:11px !important;
    }
}
