/* ==========================================================
   ARROZ PELÍN AGROTECH
   PREMIUM COMMAND CENTER v3.0
========================================================== */


/* ==========================================================
   VARIABLES
========================================================== */

:root {

    --bg-dark: #02070a;
    --bg-panel: rgba(4, 13, 17, 0.82);

    --white: #ffffff;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    --blue: #008cff;
    --blue-bright: #00c8ff;
    --blue-soft: rgba(0, 200, 255, 0.18);

    --green: #00e676;
    --green-bright: #39ff88;
    --green-soft: rgba(0, 230, 118, 0.15);

    --glass: rgba(7, 20, 26, 0.62);
    --glass-light: rgba(255,255,255,0.055);

    --border: rgba(255,255,255,0.10);
    --border-blue: rgba(0,200,255,0.28);

    --shadow:
        0 30px 80px rgba(0,0,0,0.65);

    --ease:
        cubic-bezier(0.16,1,0.3,1);

}


/* ==========================================================
   RESET
========================================================== */

* {

    margin: 0;
    padding: 0;
    box-sizing: border-box;

}


html {

    scroll-behavior: smooth;

}


body {

    min-height: 100vh;

    color: var(--text-main);

    background: var(--bg-dark);

    font-family:
        "Segoe UI",
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;

    overflow-x: hidden;

}


body.modal-open {

    overflow: hidden;

}


button,
a {

    -webkit-tap-highlight-color: transparent;

}


button {

    font-family: inherit;

}


/* ==========================================================
   HERO
========================================================== */

.bg-hero {

    position: relative;

    min-height: 100vh;

    overflow: hidden;

    display: flex;

    flex-direction: column;

    isolation: isolate;

}


/* ==========================================================
   VIDEO
========================================================== */

.video-bg {

    position: fixed;

    top: 50%;
    left: 50%;

    width: 100%;
    height: 100%;

    min-width: 100%;
    min-height: 100%;

    object-fit: cover;

    transform:
        translate(-50%, -50%)
        scale(1.03);

    z-index: -5;

    filter:
        brightness(0.48)
        contrast(1.12)
        saturate(1.08);

}


/* ==========================================================
   OVERLAY PRINCIPAL
========================================================== */

.hero-overlay {

    position: fixed;

    inset: 0;

    z-index: -4;

    pointer-events: none;

    background:

        radial-gradient(
            circle at 50% 45%,
            rgba(0,160,255,0.10),
            transparent 34%
        ),

        radial-gradient(
            circle at 85% 75%,
            rgba(0,230,118,0.10),
            transparent 30%
        ),

        linear-gradient(
            180deg,
            rgba(2,7,10,0.60),
            rgba(2,7,10,0.80)
        );

}


/* ==========================================================
   GRID TECNOLÓGICO
========================================================== */

.grid-overlay {

    position: fixed;

    inset: 0;

    z-index: -3;

    pointer-events: none;

    opacity: 0.42;

    background-image:

        linear-gradient(
            rgba(0,200,255,0.035) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(0,200,255,0.035) 1px,
            transparent 1px
        );

    background-size:
        55px 55px;

    mask-image:
        radial-gradient(
            circle at center,
            black,
            transparent 82%
        );

}


/* ==========================================================
   ORBES DE LUZ
========================================================== */

.light-orb {

    position: fixed;

    border-radius: 50%;

    pointer-events: none;

    filter: blur(80px);

    z-index: -2;

    opacity: 0.35;

}


.orb-1 {

    width: 420px;
    height: 420px;

    background: rgba(0,140,255,0.18);

    top: 5%;
    left: -150px;

    animation:
        orbFloat1 12s ease-in-out infinite alternate;

}


.orb-2 {

    width: 350px;
    height: 350px;

    background: rgba(0,230,118,0.12);

    right: -120px;
    bottom: 5%;

    animation:
        orbFloat2 15s ease-in-out infinite alternate;

}


.orb-3 {

    width: 260px;
    height: 260px;

    background: rgba(0,200,255,0.10);

    right: 25%;
    top: 20%;

    animation:
        orbFloat3 10s ease-in-out infinite alternate;

}


@keyframes orbFloat1 {

    from {
        transform: translate3d(0,0,0);
    }

    to {
        transform: translate3d(100px,80px,0);
    }

}


@keyframes orbFloat2 {

    from {
        transform: translate3d(0,0,0);
    }

    to {
        transform: translate3d(-100px,-70px,0);
    }

}


@keyframes orbFloat3 {

    from {
        transform: translate3d(0,0,0);
    }

    to {
        transform: translate3d(-50px,70px,0);
    }

}


/* ==========================================================
   PARTÍCULAS
========================================================== */

.particles {

    position: fixed;

    inset: 0;

    z-index: -1;

    pointer-events: none;

}


.particles span {

    position: absolute;

    width: 2px;
    height: 2px;

    background: rgba(255,255,255,0.75);

    border-radius: 50%;

    box-shadow:
        0 0 8px rgba(0,200,255,0.7);

    animation:
        particleMove linear infinite;

}


.particles span:nth-child(1) {
    left: 7%;
    top: 18%;
    animation-duration: 9s;
}

.particles span:nth-child(2) {
    left: 18%;
    top: 72%;
    animation-duration: 12s;
}

.particles span:nth-child(3) {
    left: 29%;
    top: 31%;
    animation-duration: 10s;
}

.particles span:nth-child(4) {
    left: 42%;
    top: 82%;
    animation-duration: 14s;
}

.particles span:nth-child(5) {
    left: 55%;
    top: 14%;
    animation-duration: 11s;
}

.particles span:nth-child(6) {
    left: 66%;
    top: 63%;
    animation-duration: 13s;
}

.particles span:nth-child(7) {
    left: 78%;
    top: 26%;
    animation-duration: 8s;
}

.particles span:nth-child(8) {
    left: 88%;
    top: 78%;
    animation-duration: 15s;
}

.particles span:nth-child(9) {
    left: 94%;
    top: 42%;
    animation-duration: 10s;
}

.particles span:nth-child(10) {
    left: 13%;
    top: 47%;
    animation-duration: 16s;
}

.particles span:nth-child(11) {
    left: 48%;
    top: 52%;
    animation-duration: 9s;
}

.particles span:nth-child(12) {
    left: 72%;
    top: 88%;
    animation-duration: 12s;
}


@keyframes particleMove {

    0% {

        transform:
            translateY(20px);

        opacity: 0;

    }

    20% {

        opacity: 0.8;

    }

    80% {

        opacity: 0.8;

    }

    100% {

        transform:
            translateY(-120px);

        opacity: 0;

    }

}


/* ==========================================================
   HEADER
========================================================== */

.main-header {

    position: relative;

    z-index: 20;

    width: 100%;

    padding:
        22px
        clamp(25px, 5vw, 70px);

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-bottom:
        1px solid
        rgba(255,255,255,0.07);

    background:
        rgba(2,7,10,0.58);

    backdrop-filter:
        blur(20px);

    -webkit-backdrop-filter:
        blur(20px);

}


/* ==========================================================
   LOGO HEADER
========================================================== */

.logo-header {

    display: flex;

    align-items: center;

    gap: 14px;

}


.logo-frame {

    width: 48px;
    height: 48px;

    padding: 2px;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            var(--blue-bright),
            transparent 50%,
            var(--green)
        );

    box-shadow:
        0 0 25px rgba(0,200,255,0.25);

}


.logo-frame img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 11px;

    display: block;

}


.brand-text {

    display: flex;

    flex-direction: column;

    gap: 3px;

}


.brand-name {

    font-size: 1rem;

    font-weight: 800;

    letter-spacing: 2px;

}


.brand-tech {

    font-size: 0.58rem;

    letter-spacing: 3px;

    color: var(--blue-bright);

    font-weight: 600;

}


/* ==========================================================
   HEADER RIGHT
========================================================== */

.header-right {

    display: flex;

    align-items: center;

    gap: 14px;

}


.system-id {

    display: flex;

    align-items: center;

    gap: 7px;

    color: rgba(255,255,255,0.5);

    font-size: 0.65rem;

    letter-spacing: 2px;

}


.system-id span {

    color: var(--blue-bright);

    font-weight: 800;

}


.system-id small {

    opacity: 0.65;

}


.system-status {

    display: flex;

    align-items: center;

    gap: 9px;

    padding:
        8px
        14px;

    border:
        1px solid
        rgba(0,230,118,0.18);

    border-radius: 30px;

    background:
        rgba(0,230,118,0.045);

    color:
        rgba(255,255,255,0.55);

    font-size: 0.64rem;

    letter-spacing: 1.5px;

}


.system-status strong {

    color: var(--green);

    font-weight: 700;

}


.status-dot {

    width: 7px;
    height: 7px;

    flex: 0 0 7px;

    border-radius: 50%;

    background:
        var(--green);

    box-shadow:
        0 0 10px
        var(--green);

    animation:
        statusPulse 2s ease-in-out infinite;

}


@keyframes statusPulse {

    0%,
    100% {

        opacity: 1;

        transform: scale(1);

    }

    50% {

        opacity: 0.45;

        transform: scale(0.75);

    }

}


/* ==========================================================
   HERO CONTAINER
========================================================== */

.hero-container {

    position: relative;

    z-index: 5;

    flex: 1;

    width: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    padding:
        45px
        clamp(25px, 6vw, 90px)
        35px;

}


.hero-layout {

    width: 100%;

    max-width: 1320px;

    display: grid;

    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(320px, 0.65fr);

    align-items: center;

    gap: clamp(40px, 7vw, 110px);

}


/* ==========================================================
   HERO CONTENT
========================================================== */

.hero-content {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

}


.hero-kicker {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 22px;

    color: var(--blue-bright);

    font-size: 0.68rem;

    letter-spacing: 3px;

    font-weight: 700;

}


.kicker-line {

    width: 28px;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--blue-bright)
        );

}


.kicker-line:last-child {

    background:
        linear-gradient(
            90deg,
            var(--blue-bright),
            transparent
        );

}


.pulse-icon {

    animation:
        iconPulse 3s ease-in-out infinite;

}


@keyframes iconPulse {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }

}


/* ==========================================================
   LABEL
========================================================== */

.hero-label {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    margin-bottom: 18px;

    padding:
        7px
        13px;

    border:
        1px solid
        rgba(255,255,255,0.10);

    border-radius: 6px;

    background:
        rgba(255,255,255,0.035);

    color:
        rgba(255,255,255,0.52);

    font-size: 0.58rem;

    letter-spacing: 2px;

}


.label-dot {

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background:
        var(--green);

    box-shadow:
        0 0 8px
        var(--green);

}


/* ==========================================================
   HERO TITLE
========================================================== */

.hero-title {

    max-width: 800px;

    margin-bottom: 25px;

    color: white;

    font-size:
        clamp(3.2rem, 6vw, 6rem);

    line-height: 0.98;

    letter-spacing: -3px;

    font-weight: 850;

}


.title-line {

    display: block;

}


.text-gradient {

    background:
        linear-gradient(
            100deg,
            #ffffff 0%,
            #ffffff 30%,
            var(--blue-bright) 68%,
            var(--green-bright) 100%
        );

    -webkit-background-clip: text;

    background-clip: text;

    -webkit-text-fill-color: transparent;

    background-size: 200% auto;

    animation:
        gradientFlow 6s linear infinite;

}


@keyframes gradientFlow {

    to {

        background-position:
            200% center;

    }

}


/* ==========================================================
   SUBTITLE
========================================================== */

.hero-subtitle {

    max-width: 670px;

    margin-bottom: 32px;

    color:
        rgba(226,232,240,0.68);

    font-size:
        clamp(1rem, 1.5vw, 1.16rem);

    line-height: 1.7;

}


.hero-subtitle strong {

    color:
        rgba(255,255,255,0.9);

}


/* ==========================================================
   MÉTRICAS
========================================================== */

.hero-metrics {

    display: flex;

    align-items: center;

    gap: 25px;

    margin-bottom: 35px;

}


.metric-item {

    display: flex;

    align-items: center;

    gap: 11px;

}


.metric-icon {

    width: 34px;
    height: 34px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid
        rgba(0,200,255,0.20);

    border-radius: 9px;

    color:
        var(--blue-bright);

    background:
        rgba(0,150,255,0.07);

    font-size: 0.95rem;

}


.metric-data {

    display: flex;

    flex-direction: column;

    gap: 2px;

}


.metric-number {

    color:
        var(--white);

    font-size: 1rem;

    font-weight: 800;

    letter-spacing: 1px;

}


.metric-label {

    color:
        rgba(255,255,255,0.40);

    font-size: 0.52rem;

    letter-spacing: 1.5px;

}


.metric-divider {

    width: 1px;

    height: 32px;

    background:
        rgba(255,255,255,0.10);

}


/* ==========================================================
   BOTÓN PORTAL
========================================================== */

.hero-actions {

    margin-bottom: 32px;

}


.btn-portal {

    position: relative;

    display: flex;

    align-items: center;

    gap: 30px;

    min-width: 285px;

    padding: 4px 5px 4px 23px;

    border:
        1px solid
        rgba(0,200,255,0.45);

    border-radius: 13px;

    color: white;

    background:
        linear-gradient(
            110deg,
            rgba(0,80,180,0.78),
            rgba(0,130,255,0.35)
        );

    box-shadow:
        0 0 30px
        rgba(0,120,255,0.20),

        inset 0 0 25px
        rgba(0,200,255,0.08);

    cursor: pointer;

    overflow: hidden;

    transition:
        transform 0.35s var(--ease),
        box-shadow 0.35s ease,
        border-color 0.35s ease;

}


.btn-portal::before {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            110deg,
            transparent 20%,
            rgba(255,255,255,0.14) 50%,
            transparent 80%
        );

    transform:
        translateX(-120%);

    transition:
        transform 0.7s ease;

}


.btn-portal:hover {

    transform:
        translateY(-4px);

    border-color:
        rgba(0,220,255,0.85);

    box-shadow:
        0 12px 40px
        rgba(0,140,255,0.28),

        0 0 50px
        rgba(0,200,255,0.12);

}


.btn-portal:hover::before {

    transform:
        translateX(120%);

}


.btn-content {

    position: relative;

    z-index: 2;

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 2px;

}


.btn-small-text {

    font-size: 0.5rem;

    color:
        rgba(255,255,255,0.50);

    letter-spacing: 2px;

}


.btn-main-text {

    font-size: 0.85rem;

    font-weight: 800;

    letter-spacing: 2px;

}


.btn-arrow {

    position: relative;

    z-index: 2;

    width: 48px;
    height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 9px;

    color:
        var(--blue-bright);

    background:
        rgba(0,0,0,0.22);

    transition:
        transform 0.3s ease;

}


.btn-portal:hover .btn-arrow {

    transform:
        translateX(4px);

}


/* ==========================================================
   HERO FOOTER
========================================================== */

.hero-footer {

    display: flex;

    align-items: center;

    gap: 10px;

    color:
        rgba(255,255,255,0.25);

    font-size: 0.52rem;

    letter-spacing: 2px;

}


.footer-line {

    width: 38px;

    height: 1px;

    background:
        rgba(255,255,255,0.16);

}


/* ==========================================================
   PANEL TECNOLÓGICO
========================================================== */

.hero-tech-panel {

    position: relative;

    min-height: 500px;

    padding: 30px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: space-between;

    border:
        1px solid
        rgba(0,200,255,0.18);

    border-radius: 28px;

    background:
        linear-gradient(
            145deg,
            rgba(6,20,27,0.70),
            rgba(3,10,14,0.42)
        );

    backdrop-filter:
        blur(16px);

    -webkit-backdrop-filter:
        blur(16px);

    box-shadow:
        var(--shadow),

        inset 0 0 40px
        rgba(0,200,255,0.035);

    overflow: hidden;

    transition:
        transform 0.4s ease;

}


.hero-tech-panel::before {

    content: "";

    position: absolute;

    top: 0;
    left: 25px;
    right: 25px;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--blue-bright),
            transparent
        );

    opacity: 0.6;

}


.tech-panel-glow {

    position: absolute;

    width: 260px;
    height: 260px;

    top: 80px;

    border-radius: 50%;

    background:
        rgba(0,150,255,0.08);

    filter:
        blur(50px);

}


/* ==========================================================
   TECH HEADER
========================================================== */

.tech-panel-header {

    position: relative;

    z-index: 2;

    width: 100%;

    display: flex;

    justify-content: space-between;

    color:
        rgba(255,255,255,0.40);

    font-size: 0.56rem;

    letter-spacing: 2px;

}


.tech-live {

    color:
        var(--green);

    text-shadow:
        0 0 8px
        rgba(0,230,118,0.5);

}


/* ==========================================================
   CÍRCULO
========================================================== */

.tech-circle {

    position: relative;

    width: 270px;
    height: 270px;

    display: flex;

    align-items: center;

    justify-content: center;

}


.circle-ring {

    position: absolute;

    inset: 0;

    border-radius: 50%;

    border:
        1px solid
        rgba(0,200,255,0.20);

}


.ring-1 {

    animation:
        rotateRing 18s linear infinite;

    border-top-color:
        var(--blue-bright);

}


.ring-2 {

    inset: 25px;

    border-style:
        dashed;

    animation:
        rotateRingReverse 15s linear infinite;

    border-color:
        rgba(0,230,118,0.22);

}


.ring-3 {

    inset: 52px;

    border:
        1px solid
        rgba(0,200,255,0.12);

}


@keyframes rotateRing {

    to {
        transform: rotate(360deg);
    }

}


@keyframes rotateRingReverse {

    to {
        transform: rotate(-360deg);
    }

}


.circle-center {

    position: relative;

    width: 130px;
    height: 130px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 7px;

    border:
        1px solid
        rgba(0,200,255,0.30);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(0,140,255,0.12),
            rgba(0,20,30,0.75)
        );

    box-shadow:
        0 0 50px
        rgba(0,180,255,0.12);

}


.circle-symbol {

    font-size: 2.3rem;

    filter:
        drop-shadow(
            0 0 12px
            rgba(0,230,118,0.35)
        );

}


.circle-text {

    color:
        rgba(255,255,255,0.7);

    font-size: 0.55rem;

    letter-spacing: 4px;

    font-weight: 700;

}


/* ==========================================================
   TECH DATA
========================================================== */

.tech-data-grid {

    width: 100%;

    display: grid;

    grid-template-columns:
        1fr 1fr;

    border:
        1px solid
        rgba(255,255,255,0.07);

    border-radius: 12px;

    overflow: hidden;

}


.tech-data {

    padding:
        14px;

    display: flex;

    flex-direction: column;

    gap: 5px;

    background:
        rgba(255,255,255,0.025);

}


.tech-data:nth-child(1),
.tech-data:nth-child(2) {

    border-bottom:
        1px solid
        rgba(255,255,255,0.07);

}


.tech-data:nth-child(odd) {

    border-right:
        1px solid
        rgba(255,255,255,0.07);

}


.tech-data span {

    color:
        rgba(255,255,255,0.30);

    font-size: 0.48rem;

    letter-spacing: 1.5px;

}


.tech-data strong {

    color:
        rgba(255,255,255,0.78);

    font-size: 0.72rem;

    letter-spacing: 1px;

}


.tech-data strong.online {

    color:
        var(--green);

}


/* ==========================================================
   SCAN LINE
========================================================== */

.scan-line {

    position: absolute;

    left: 0;
    right: 0;

    height: 1px;

    top: -10%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(0,200,255,0.35),
            transparent
        );

    animation:
        scanMove 6s linear infinite;

}


@keyframes scanMove {

    0% {
        top: 5%;
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    85% {
        opacity: 1;
    }

    100% {
        top: 95%;
        opacity: 0;
    }

}


/* ==========================================================
   COMMAND CENTER / MODAL
========================================================== */

.lightbox-backdrop {

    position: fixed;

    inset: 0;

    z-index: 999;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 25px;

    background:
        rgba(1,5,7,0.88);

    backdrop-filter:
        blur(18px);

    -webkit-backdrop-filter:
        blur(18px);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.45s ease,
        visibility 0.45s ease;

}


.lightbox-backdrop.active {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

}


/* ==========================================================
   COMMAND PANEL
========================================================== */

.command-center {

    position: relative;

    width: min(1050px, 96vw);

    max-height: 94vh;

    padding:
        34px
        clamp(22px, 4vw, 48px);

    border:
        1px solid
        rgba(0,200,255,0.20);

    border-radius: 26px;

    background:
        linear-gradient(
            145deg,
            rgba(4,15,20,0.97),
            rgba(2,8,11,0.98)
        );

    box-shadow:
        0 50px 120px
        rgba(0,0,0,0.85),

        0 0 80px
        rgba(0,150,255,0.08);

    overflow-y: auto;

    transform:
        translateY(30px)
        scale(0.97);

    transition:
        transform 0.55s var(--ease);

}


.lightbox-backdrop.active .command-center {

    transform:
        translateY(0)
        scale(1);

}


/* ==========================================================
   COMMAND GRID
========================================================== */

.command-grid {

    position: absolute;

    inset: 0;

    pointer-events: none;

    background-image:

        linear-gradient(
            rgba(0,200,255,0.025) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(0,200,255,0.025) 1px,
            transparent 1px
        );

    background-size:
        35px 35px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent 90%
        );

}


.command-glow {

    position: absolute;

    width: 450px;
    height: 450px;

    right: -200px;
    top: -250px;

    border-radius: 50%;

    background:
        rgba(0,160,255,0.08);

    filter:
        blur(70px);

    pointer-events: none;

}


/* ==========================================================
   CLOSE
========================================================== */

.lightbox-close {

    position: absolute;

    top: 22px;
    right: 25px;

    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid
        rgba(255,255,255,0.09);

    border-radius: 10px;

    background:
        rgba(255,255,255,0.035);

    cursor: pointer;

    z-index: 20;

    transition:
        all 0.3s ease;

}


.lightbox-close span {

    position: absolute;

    width: 16px;
    height: 1px;

    background:
        rgba(255,255,255,0.65);

}


.lightbox-close span:first-child {

    transform:
        rotate(45deg);

}


.lightbox-close span:last-child {

    transform:
        rotate(-45deg);

}


.lightbox-close:hover {

    border-color:
        var(--blue-bright);

    background:
        rgba(0,200,255,0.08);

    transform:
        rotate(90deg);

}


/* ==========================================================
   COMMAND HEADER
========================================================== */

.command-header {

    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding-bottom: 25px;

    border-bottom:
        1px solid
        rgba(255,255,255,0.07);

}


.command-brand {

    display: flex;

    align-items: center;

    gap: 12px;

}


.command-logo {

    width: 45px;
    height: 45px;

    padding: 2px;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            var(--blue-bright),
            var(--green)
        );

}


.command-logo img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 9px;

    display: block;

}


.command-brand > div:last-child {

    display: flex;

    flex-direction: column;

    gap: 3px;

}


.command-brand-name {

    font-size: 0.85rem;

    font-weight: 800;

    letter-spacing: 2px;

}


.command-brand-sub {

    font-size: 0.50rem;

    letter-spacing: 2px;

    color:
        var(--blue-bright);

}


.command-status {

    display: flex;

    align-items: center;

    gap: 8px;

    color:
        rgba(255,255,255,0.38);

    font-size: 0.52rem;

    letter-spacing: 1.5px;

}


/* ==========================================================
   COMMAND TITLE
========================================================== */

.command-title-area {

    position: relative;

    z-index: 2;

    text-align: center;

    padding:
        32px
        20px;

}


.command-overline {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    margin-bottom: 10px;

    color:
        var(--blue-bright);

    font-size: 0.53rem;

    letter-spacing: 3px;

    font-weight: 700;

}


.command-overline span {

    width: 25px;

    height: 1px;

    background:
        var(--blue-bright);

    opacity: 0.5;

}


.command-title-area h2 {

    margin-bottom: 10px;

    font-size:
        clamp(2rem, 4vw, 3rem);

    line-height: 1;

    letter-spacing: -1.5px;

}


.command-title-area h2 span {

    color:
        var(--blue-bright);

}


.command-title-area p {

    max-width: 600px;

    margin: auto;

    color:
        rgba(255,255,255,0.43);

    font-size: 0.82rem;

    line-height: 1.6;

}


/* ==========================================================
   MENU GRID
========================================================== */

.menu-grid {

    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 15px;

}


/* ==========================================================
   MENU CARD
========================================================== */

.menu-card {

    position: relative;

    min-height: 260px;

    padding: 23px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    color: white;

    text-decoration: none;

    border:
        1px solid
        rgba(255,255,255,0.08);

    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.045),
            rgba(255,255,255,0.015)
        );

    overflow: hidden;

    transition:
        transform 0.4s var(--ease),
        border-color 0.4s ease,
        box-shadow 0.4s ease,
        background 0.4s ease;

}


.menu-card::before {

    content: "";

    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at 0% 0%,
            rgba(0,200,255,0.13),
            transparent 40%
        );

    opacity: 0;

    transition:
        opacity 0.4s ease;

}


.menu-card.card-active:hover {

    transform:
        translateY(-7px);

    border-color:
        rgba(0,200,255,0.50);

    background:
        linear-gradient(
            145deg,
            rgba(0,120,220,0.12),
            rgba(255,255,255,0.025)
        );

    box-shadow:
        0 20px 45px
        rgba(0,0,0,0.45),

        0 0 35px
        rgba(0,160,255,0.10);

}


.menu-card.card-active:hover::before {

    opacity: 1;

}


/* ==========================================================
   WIDE CARD
========================================================== */

.menu-card-wide {

    grid-column:
        1 / -1;

    min-height: 190px;

}


/* ==========================================================
   CARD TOP
========================================================== */

.card-top {

    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;

    justify-content: space-between;

}


.module-number {

    color:
        rgba(255,255,255,0.20);

    font-size: 0.55rem;

    letter-spacing: 2px;

    font-weight: 700;

}


/* ==========================================================
   TAGS
========================================================== */

.tag-live,
.tag-soon {

    padding:
        5px
        9px;

    border-radius: 5px;

    font-size: 0.48rem;

    letter-spacing: 1.3px;

    font-weight: 700;

}


.tag-live {

    color:
        var(--green);

    border:
        1px solid
        rgba(0,230,118,0.30);

    background:
        rgba(0,230,118,0.08);

}


.tag-soon {

    color:
        rgba(255,255,255,0.35);

    border:
        1px solid
        rgba(255,255,255,0.10);

    background:
        rgba(255,255,255,0.035);

}


/* ==========================================================
   CARD MAIN
========================================================== */

.card-main {

    position: relative;

    z-index: 2;

    display: flex;

    align-items: flex-start;

    gap: 18px;

}


.card-icon {

    width: 58px;
    height: 58px;

    flex: 0 0 58px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid
        rgba(0,200,255,0.22);

    border-radius: 14px;

    color:
        var(--blue-bright);

    background:
        rgba(0,130,220,0.08);

    box-shadow:
        inset 0 0 20px
        rgba(0,200,255,0.04);

    transition:
        transform 0.4s ease,
        background 0.4s ease;

}


.card-icon svg {

    width: 28px;
    height: 28px;

}


.card-active:hover .card-icon {

    transform:
        scale(1.08)
        rotate(-3deg);

    background:
        rgba(0,150,255,0.14);

}


.card-info {

    flex: 1;

}


.card-category {

    display: block;

    margin-bottom: 7px;

    color:
        rgba(0,200,255,0.58);

    font-size: 0.48rem;

    letter-spacing: 2px;

    font-weight: 700;

}


.card-info h3 {

    margin-bottom: 8px;

    font-size: 1.18rem;

    line-height: 1.15;

    letter-spacing: -0.3px;

}


.card-info h3 span {

    color:
        var(--blue-bright);

}


.card-info p {

    max-width: 440px;

    color:
        rgba(255,255,255,0.40);

    font-size: 0.72rem;

    line-height: 1.6;

}


/* ==========================================================
   CARD BOTTOM
========================================================== */

.card-bottom {

    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding-top: 15px;

    border-top:
        1px solid
        rgba(255,255,255,0.07);

    color:
        rgba(255,255,255,0.30);

    font-size: 0.48rem;

    letter-spacing: 1.5px;

}


.card-action-icon {

    color:
        var(--blue-bright);

    font-size: 1.2rem;

    opacity: 0;

    transform:
        translateX(-8px);

    transition:
        all 0.3s ease;

}


.card-active:hover .card-action-icon {

    opacity: 1;

    transform:
        translateX(0);

}


.lock-icon {

    font-size: 0.75rem;

    opacity: 0.4;

}


/* ==========================================================
   PROGRESS
========================================================== */

.card-progress {

    position: absolute;

    bottom: 0;
    left: 0;

    width: 0;
    height: 2px;

    background:
        linear-gradient(
            90deg,
            var(--blue),
            var(--blue-bright),
            var(--green)
        );

    box-shadow:
        0 0 15px
        var(--blue-bright);

    transition:
        width 0.5s var(--ease);

}


.card-active:hover .card-progress {

    width: 100%;

}


/* ==========================================================
   DISABLED
========================================================== */

.menu-card.disabled {

    opacity: 0.50;

    cursor:
        not-allowed;

}


.menu-card.disabled:hover {

    transform: none;

    border-color:
        rgba(255,255,255,0.08);

    box-shadow: none;

}


.catalog-decoration {

    position: absolute;

    right: 15px;

    bottom: 5px;

    font-size: 4rem;

    opacity: 0.08;

    transform:
        rotate(-10deg);

    pointer-events: none;

}


/* ==========================================================
   COMMAND FOOTER
========================================================== */

.command-footer {

    position: relative;

    z-index: 2;

    margin-top: 20px;

    padding-top: 18px;

    display: grid;

    grid-template-columns:
        1fr auto 1fr;

    align-items: center;

    gap: 15px;

    border-top:
        1px solid
        rgba(255,255,255,0.07);

}


.footer-status {

    display: flex;

    align-items: center;

    gap: 8px;

    color:
        rgba(255,255,255,0.28);

    font-size: 0.46rem;

    letter-spacing: 1.5px;

}


.btn-close-command {

    padding:
        8px
        14px;

    border:
        1px solid
        rgba(255,255,255,0.10);

    border-radius: 7px;

    color:
        rgba(255,255,255,0.45);

    background:
        rgba(255,255,255,0.03);

    font-size: 0.48rem;

    letter-spacing: 1.5px;

    cursor: pointer;

    transition:
        all 0.3s ease;

}


.btn-close-command span {

    margin-left: 8px;

    color:
        rgba(255,255,255,0.22);

}


.btn-close-command:hover {

    color: white;

    border-color:
        var(--blue-bright);

    background:
        rgba(0,200,255,0.07);

}


.footer-version {

    justify-self: end;

    color:
        rgba(255,255,255,0.20);

    font-size: 0.46rem;

    letter-spacing: 1.3px;

}


.footer-version span {

    margin: 0 4px;

    color:
        var(--blue-bright);

}


/* ==========================================================
   SCROLLBAR
========================================================== */

.command-center::-webkit-scrollbar {

    width: 5px;

}


.command-center::-webkit-scrollbar-track {

    background:
        transparent;

}


.command-center::-webkit-scrollbar-thumb {

    background:
        rgba(0,200,255,0.25);

    border-radius: 10px;

}


/* ==========================================================
   ANIMACIONES DE ENTRADA
========================================================== */

.hero-content > * {

    opacity: 0;

    transform:
        translateY(20px);

    animation:
        heroReveal
        0.8s
        var(--ease)
        forwards;

}


.hero-kicker {
    animation-delay: 0.1s;
}

.hero-label {
    animation-delay: 0.2s;
}

.hero-title {
    animation-delay: 0.3s;
}

.hero-subtitle {
    animation-delay: 0.4s;
}

.hero-metrics {
    animation-delay: 0.5s;
}

.hero-actions {
    animation-delay: 0.6s;
}

.hero-footer {
    animation-delay: 0.7s;
}


.hero-tech-panel {

    opacity: 0;

    transform:
        translateX(25px);

    animation:
        panelReveal
        1s
        var(--ease)
        0.35s
        forwards;

}


@keyframes heroReveal {

    to {

        opacity: 1;

        transform:
            translateY(0);

    }

}


@keyframes panelReveal {

    to {

        opacity: 1;

        transform:
            translateX(0);

    }

}


/* ==========================================================
   RESPONSIVE TABLET
========================================================== */

@media (max-width: 1050px) {

    .hero-layout {

        grid-template-columns:
            1fr;

        max-width: 800px;

    }


    .hero-content {

        align-items: center;

        text-align: center;

    }


    .hero-tech-panel {

        display: none;

    }


    .hero-footer {

        justify-content: center;

    }


    .hero-subtitle {

        margin-left: auto;
        margin-right: auto;

    }

}


/* ==========================================================
   RESPONSIVE MÓVIL
========================================================== */

@media (max-width: 700px) {

    .main-header {

        padding:
            15px
            18px;

    }


    .logo-frame {

        width: 40px;
        height: 40px;

    }


    .brand-name {

        font-size: 0.82rem;

    }


    .brand-tech {

        font-size: 0.45rem;

        letter-spacing: 2px;

    }


    .system-id {

        display: none;

    }


    .system-status {

        padding:
            6px
            10px;

        font-size: 0.48rem;

    }


    .hero-container {

        padding:
            40px
            18px
            25px;

    }


    .hero-kicker {

        font-size: 0.52rem;

        letter-spacing: 2px;

    }


    .hero-label {

        font-size: 0.47rem;

        letter-spacing: 1.2px;

    }


    .hero-title {

        font-size:
            clamp(2.6rem, 12vw, 4rem);

        letter-spacing:
            -2px;

    }


    .hero-subtitle {

        font-size: 0.9rem;

        line-height: 1.6;

    }


    .hero-metrics {

        width: 100%;

        justify-content: center;

        gap: 13px;

    }


    .metric-icon {

        display: none;

    }


    .metric-number {

        font-size: 0.85rem;

    }


    .metric-label {

        font-size: 0.43rem;

        letter-spacing: 1px;

    }


    .metric-divider {

        height: 25px;

    }


    .btn-portal {

        min-width: 260px;

        width: 100%;

        justify-content: space-between;

    }


    .hero-footer {

        font-size: 0.43rem;

        gap: 6px;

    }


    .footer-line {

        width: 18px;

    }


    /* COMMAND CENTER */


    .lightbox-backdrop {

        padding:
            10px;

        align-items:
            flex-end;

    }


    .command-center {

        width: 100%;

        max-height: 96vh;

        padding:
            23px
            17px;

        border-radius:
            22px
            22px
            0
            0;

    }


    .command-header {

        padding-bottom: 18px;

    }


    .command-logo {

        width: 38px;
        height: 38px;

    }


    .command-brand-name {

        font-size: 0.7rem;

    }


    .command-brand-sub {

        font-size: 0.42rem;

    }


    .command-status {

        font-size: 0.42rem;

    }


    .command-title-area {

        padding:
            25px
            5px;

    }


    .command-title-area h2 {

        font-size: 1.8rem;

    }


    .command-title-area p {

        font-size: 0.68rem;

    }


    .menu-grid {

        grid-template-columns:
            1fr;

    }


    .menu-card,
    .menu-card-wide {

        grid-column:
            auto;

        min-height:
            225px;

    }


    .card-info h3 {

        font-size: 1rem;

    }


    .card-info p {

        font-size: 0.65rem;

    }


    .command-footer {

        grid-template-columns:
            1fr;

        justify-items: center;

        text-align: center;

    }


    .footer-version {

        justify-self:
            center;

    }

}


/* ==========================================================
   MÓVILES MUY PEQUEÑOS
========================================================== */

@media (max-width: 420px) {

    .hero-metrics {

        gap: 8px;

    }


    .metric-label {

        font-size: 0.38rem;

    }


    .hero-title {

        font-size: 2.45rem;

    }


    .hero-footer {

        display: none;

    }


    .card-main {

        gap: 12px;

    }


    .card-icon {

        width: 48px;
        height: 48px;

        flex-basis: 48px;

    }


    .card-icon svg {

        width: 23px;
        height: 23px;

    }

}


/* ==========================================================
   REDUCIR MOVIMIENTO
========================================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;

        scroll-behavior:
            auto !important;

    }

}