/* ======================================================
   AdminX — Home
   Ruta: /assets/css/home.css

   Identidad visual:
   Graphite / Deep Navy / Steel Blue / Electric Blue
   ====================================================== */

:root {
    --bg: #070b13;
    --bg-deep: #050810;
    --bg-soft: #0b111c;

    --surface: #0e1623;
    --surface-2: #121d2d;
    --surface-3: #172438;

    --text: #f3f6fb;
    --text-soft: #d8e0eb;
    --muted: #8d9bad;

    --primary: #3f8cff;
    --primary-hover: #63a2ff;
    --primary-soft: rgba(63, 140, 255, 0.12);

    --secondary: #7068d9;
    --secondary-soft: rgba(112, 104, 217, 0.11);

    --cyan: #45b7d8;

    --border: rgba(151, 177, 211, 0.13);
    --border-strong: rgba(90, 151, 235, 0.28);

    --shadow:
        0 28px 80px rgba(0, 0, 0, 0.32);

    --shadow-blue:
        0 22px 65px rgba(32, 93, 180, 0.13);

    --radius: 22px;
    --max-width: 1180px;
}


/* ======================================================
   BASE
   ====================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    min-height: 100vh;

    background:
        radial-gradient(
            circle at 13% 9%,
            rgba(39, 103, 194, 0.14),
            transparent 30%
        ),
        radial-gradient(
            circle at 88% 28%,
            rgba(91, 74, 177, 0.09),
            transparent 27%
        ),
        linear-gradient(
            135deg,
            #070b13 0%,
            #080d16 45%,
            #060a11 100%
        );

    color: var(--text);

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
}

img {
    max-width: 100%;
}

.page-shell {
    width: min(
        calc(100% - 40px),
        var(--max-width)
    );

    margin: 0 auto;
}


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

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    border-bottom: 1px solid var(--border);

    background:
        rgba(6, 10, 17, 0.82);

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

.header-inner {
    min-height: 78px;

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

    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
}

.brand-logo {
    display: block;

    width: 58px;
    height: 58px;

    object-fit: contain;

    filter:
        drop-shadow(
            0 5px 16px
            rgba(50, 115, 210, 0.18)
        );
}

.main-nav {
    display: flex;
    align-items: center;

    gap: 30px;

    font-size: 0.91rem;
    font-weight: 700;
}

.main-nav a {
    position: relative;

    padding: 28px 0;

    color: var(--muted);

    transition:
        color 0.18s ease;
}

.main-nav a::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 20px;

    width: 0;
    height: 2px;

    border-radius: 2px;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--cyan)
        );

    transform: translateX(-50%);

    transition:
        width 0.2s ease;
}

.main-nav a:hover {
    color: var(--text);
}

.main-nav a:hover::after {
    width: 22px;
}

.header-actions {
    display: flex;
    align-items: center;

    gap: 12px;
}

.theme-toggle {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    padding: 0;

    border:
        1px solid var(--border);

    border-radius: 12px;

    background:
        rgba(255, 255, 255, 0.035);

    color: var(--text);

    cursor: pointer;

    font-size: 1rem;

    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}

.theme-toggle:hover {
    transform: translateY(-2px);

    background: var(--surface-2);

    border-color:
        var(--border-strong);
}


/* ======================================================
   BOTONES
   ====================================================== */

.btn {
    min-height: 46px;

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

    gap: 9px;

    padding: 0 20px;

    border:
        1px solid var(--border);

    border-radius: 13px;

    background:
        rgba(255, 255, 255, 0.035);

    color: var(--text);

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

    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, 0.025);

    transition:
        transform 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.btn:hover {
    transform: translateY(-2px);

    background: var(--surface-2);

    border-color:
        var(--border-strong);
}

.btn-primary {
    border-color:
        rgba(102, 167, 255, 0.55);

    background:
        linear-gradient(
            135deg,
            #367fe5,
            #4b91ef
        );

    color: #ffffff;

    box-shadow:
        0 10px 30px
        rgba(42, 110, 210, 0.20);
}

.btn-primary:hover {
    background:
        linear-gradient(
            135deg,
            #438cef,
            #60a1f7
        );

    border-color:
        rgba(130, 188, 255, 0.75);

    box-shadow:
        0 13px 35px
        rgba(42, 110, 210, 0.27);
}

.btn-small {
    min-height: 40px;

    padding: 0 16px;
}


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

.hero {
    position: relative;

    padding:
        112px 0
        94px;

    overflow: hidden;
}

.hero::before {
    content: "";

    position: absolute;

    width: 520px;
    height: 520px;

    left: -260px;
    top: 40px;

    border-radius: 50%;

    background:
        rgba(42, 107, 200, 0.08);

    filter: blur(20px);

    pointer-events: none;
}

.hero-grid {
    position: relative;

    display: grid;

    grid-template-columns:
        minmax(0, 1.12fr)
        minmax(340px, 0.88fr);

    gap: 72px;

    align-items: center;
}

.eyebrow {
    display: inline-flex;

    margin-bottom: 22px;

    color: #68a9ff;

    font-size: 0.76rem;
    font-weight: 900;

    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 760px;

    margin: 0;

    font-size:
        clamp(3rem, 7vw, 6.2rem);

    line-height: 0.96;

    letter-spacing: -0.065em;
}

.hero h1 span {
    background:
        linear-gradient(
            105deg,
            #62a7ff 0%,
            #3f8cff 43%,
            #7c78df 100%
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.hero-text {
    max-width: 690px;

    margin:
        30px 0
        0;

    color: var(--muted);

    font-size:
        clamp(1rem, 2vw, 1.16rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 34px;
}


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

.hero-panel {
    position: relative;

    padding: 32px;

    border:
        1px solid var(--border-strong);

    border-radius: 28px;

    background:
        linear-gradient(
            145deg,
            rgba(55, 105, 175, 0.13),
            rgba(14, 22, 35, 0.92) 45%,
            rgba(16, 22, 38, 0.94)
        );

    box-shadow:
        var(--shadow),
        var(--shadow-blue);

    overflow: hidden;
}

.hero-panel::before {
    content: "";

    position: absolute;

    width: 260px;
    height: 260px;

    right: -110px;
    top: -130px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(79, 139, 224, 0.23),
            rgba(89, 78, 180, 0.08) 45%,
            transparent 70%
        );
}

.hero-panel::after {
    content: "";

    position: absolute;

    left: 0;
    top: 0;

    width: 100%;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(105, 169, 255, 0.45),
            transparent
        );
}

.panel-label {
    position: relative;

    color: #73adf7;

    font-size: 0.74rem;
    font-weight: 900;

    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.panel-title {
    position: relative;

    margin:
        10px 0
        28px;

    font-size: 1.65rem;
    line-height: 1.15;
}

.flow-list {
    position: relative;

    display: grid;

    gap: 12px;
}

.flow-item {
    display: flex;
    align-items: center;

    gap: 14px;

    padding: 15px;

    border:
        1px solid var(--border);

    border-radius: 14px;

    background:
        rgba(255, 255, 255, 0.025);

    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}

.flow-item:hover {
    transform: translateX(3px);

    background:
        rgba(63, 140, 255, 0.055);

    border-color:
        rgba(82, 147, 234, 0.22);
}

.flow-number {
    width: 36px;
    height: 36px;

    flex: 0 0 36px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background:
        var(--primary-soft);

    border:
        1px solid
        rgba(76, 145, 239, 0.13);

    color: #6aa9ff;

    font-weight: 900;
}

.flow-item strong {
    display: block;

    color: var(--text);
}

.flow-item span {
    display: block;

    margin-top: 2px;

    color: var(--muted);

    font-size: 0.82rem;
}


/* ======================================================
   SECCIONES
   ====================================================== */

.section {
    padding: 92px 0;
}

.section-heading {
    max-width: 720px;

    margin-bottom: 42px;
}

.section-heading h2 {
    margin:
        0 0
        14px;

    font-size:
        clamp(2rem, 4vw, 3.25rem);

    line-height: 1.04;

    letter-spacing: -0.045em;
}

.section-heading p {
    margin: 0;

    color: var(--muted);
}


/* ======================================================
   SERVICIOS
   ====================================================== */

.service-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 16px;
}

.service-card {
    position: relative;

    min-height: 260px;

    display: flex;
    flex-direction: column;

    padding: 28px;

    border:
        1px solid var(--border);

    border-radius: var(--radius);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.025),
            transparent
        ),
        var(--surface);

    overflow: hidden;

    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease,
        box-shadow 0.22s ease;
}

.service-card::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;

    width: 100%;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(78, 147, 239, 0.30),
            transparent
        );

    opacity: 0;

    transition:
        opacity 0.2s ease;
}

.service-card:hover {
    transform: translateY(-5px);

    border-color:
        rgba(81, 149, 239, 0.24);

    background: var(--surface-2);

    box-shadow:
        0 20px 50px
        rgba(0, 0, 0, 0.18);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    margin-bottom: 28px;

    border:
        1px solid
        rgba(82, 148, 239, 0.15);

    border-radius: 13px;

    background:
        var(--primary-soft);

    color: #6baaff;

    font-size: 1.25rem;
    font-weight: 900;
}

.service-card h3 {
    margin:
        0 0
        10px;

    font-size: 1.2rem;
}

.service-card p {
    margin:
        0 0
        24px;

    color: var(--muted);

    font-size: 0.91rem;
}

.service-card .card-link {
    margin-top: auto;

    color: #70adff;

    font-weight: 800;
    font-size: 0.88rem;
}


/* ======================================================
   AUTOSERVICIO
   ====================================================== */

.self-service {
    position: relative;

    display: grid;

    grid-template-columns:
        minmax(0, 0.9fr)
        minmax(0, 1.1fr);

    gap: 60px;

    align-items: center;

    padding: 48px;

    border:
        1px solid var(--border);

    border-radius: 30px;

    background:
        linear-gradient(
            135deg,
            rgba(48, 111, 198, 0.09),
            transparent 48%
        ),
        linear-gradient(
            315deg,
            rgba(102, 86, 190, 0.055),
            transparent 45%
        ),
        var(--surface);

    box-shadow:
        0 24px 70px
        rgba(0, 0, 0, 0.14);
}

.self-service h2 {
    margin:
        8px 0
        16px;

    font-size:
        clamp(2rem, 4vw, 3.2rem);

    line-height: 1.04;

    letter-spacing: -0.045em;
}

.self-service p {
    color: var(--muted);
}

.steps {
    display: grid;

    gap: 12px;
}

.step {
    display: grid;

    grid-template-columns:
        44px 1fr;

    gap: 15px;

    align-items: center;

    padding: 16px;

    border:
        1px solid var(--border);

    border-radius: 15px;

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

.step-number {
    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    background:
        linear-gradient(
            145deg,
            #347bdc,
            #527fd5
        );

    color: #ffffff;

    box-shadow:
        0 8px 20px
        rgba(43, 102, 190, 0.20);

    font-weight: 900;
}

.step strong {
    display: block;
}

.step span {
    display: block;

    color: var(--muted);

    font-size: 0.84rem;
}


/* ======================================================
   PAGOS
   ====================================================== */

.payment-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;
}

.payment-card {
    position: relative;

    padding: 30px;

    border:
        1px solid var(--border);

    border-radius: var(--radius);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.025),
            transparent
        ),
        var(--surface);

    transition:
        border-color 0.18s ease,
        transform 0.18s ease;
}

.payment-card:hover {
    transform: translateY(-3px);

    border-color:
        rgba(82, 148, 239, 0.23);
}

.payment-card strong {
    display: block;

    margin-bottom: 8px;

    color: var(--text);

    font-size: 1.2rem;
}

.payment-card p {
    margin: 0;

    color: var(--muted);
}


/* ======================================================
   VIVA PLAYER
   ====================================================== */

.viva-box {
    position: relative;

    display: grid;

    grid-template-columns:
        1fr auto;

    gap: 40px;

    align-items: center;

    padding: 42px;

    border:
        1px solid
        rgba(75, 143, 235, 0.24);

    border-radius: 28px;

    background:
        linear-gradient(
            135deg,
            rgba(48, 111, 198, 0.11),
            rgba(94, 79, 181, 0.055) 55%,
            rgba(255, 255, 255, 0.015)
        );

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

    overflow: hidden;
}

.viva-box::after {
    content: "";

    position: absolute;

    width: 240px;
    height: 240px;

    right: -100px;
    bottom: -150px;

    border-radius: 50%;

    background:
        rgba(58, 124, 216, 0.08);
}

.viva-box > * {
    position: relative;
    z-index: 1;
}

.viva-box h2 {
    margin:
        8px 0
        12px;

    font-size:
        clamp(2rem, 4vw, 3rem);

    letter-spacing: -0.045em;
}

.viva-box p {
    max-width: 680px;

    margin: 0;

    color: var(--muted);
}


/* ======================================================
   MEJORAS CONTINUAS
   ====================================================== */

.improvements {
    position: relative;

    text-align: center;

    padding:
        120px 20px;

    overflow: hidden;
}

.improvements::before {
    content: "";

    position: absolute;

    width: 550px;
    height: 300px;

    left: 50%;
    top: 50%;

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

    background:
        radial-gradient(
            ellipse,
            rgba(48, 111, 198, 0.11),
            transparent 67%
        );

    pointer-events: none;
}

.improvements .page-shell {
    position: relative;
}

.improvements h2 {
    max-width: 850px;

    margin:
        8px auto
        22px;

    font-size:
        clamp(2.4rem, 5vw, 4.5rem);

    line-height: 1;

    letter-spacing: -0.055em;
}

.improvements h2 span {
    background:
        linear-gradient(
            100deg,
            #62a7ff,
            #7774dc
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.improvements p {
    max-width: 700px;

    margin: 0 auto;

    color: var(--muted);

    font-size: 1.05rem;
}


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

.site-footer {
    padding:
        35px 0;

    border-top:
        1px solid var(--border);

    background:
        rgba(3, 7, 13, 0.28);

    color: var(--muted);

    font-size: 0.82rem;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;
}

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

    gap: 12px;

    color: var(--text);

    font-weight: 800;
}

.footer-logo {
    width: 38px;
    height: 38px;

    object-fit: contain;
}


/* ======================================================
   TEMA CLARO
   ====================================================== */

body.light-theme {
    --bg: #f4f7fb;
    --bg-deep: #edf2f8;
    --bg-soft: #eef3f9;

    --surface: #ffffff;
    --surface-2: #f8fafd;
    --surface-3: #eef3f9;

    --text: #172232;
    --text-soft: #29384b;
    --muted: #68788c;

    --primary: #347bd8;
    --primary-hover: #286dc5;

    --primary-soft:
        rgba(52, 123, 216, 0.09);

    --secondary: #625bb9;

    --border:
        rgba(39, 66, 101, 0.12);

    --border-strong:
        rgba(52, 123, 216, 0.23);

    --shadow:
        0 25px 70px
        rgba(35, 62, 96, 0.10);

    --shadow-blue:
        0 20px 55px
        rgba(42, 103, 182, 0.09);

    background:
        radial-gradient(
            circle at 12% 7%,
            rgba(52, 123, 216, 0.10),
            transparent 30%
        ),
        radial-gradient(
            circle at 88% 25%,
            rgba(98, 91, 185, 0.06),
            transparent 28%
        ),
        #f4f7fb;
}

body.light-theme .site-header {
    background:
        rgba(247, 249, 252, 0.88);
}

body.light-theme .theme-toggle,
body.light-theme .btn:not(.btn-primary) {
    background:
        rgba(255, 255, 255, 0.75);
}

body.light-theme .hero-panel {
    background:
        linear-gradient(
            145deg,
            rgba(52, 123, 216, 0.08),
            rgba(255, 255, 255, 0.95) 45%,
            #ffffff
        );
}

body.light-theme .flow-item,
body.light-theme .step {
    background:
        rgba(31, 65, 105, 0.025);
}

body.light-theme .service-card,
body.light-theme .payment-card {
    background:
        linear-gradient(
            145deg,
            rgba(52, 123, 216, 0.025),
            transparent
        ),
        #ffffff;
}

body.light-theme .self-service {
    background:
        linear-gradient(
            135deg,
            rgba(52, 123, 216, 0.07),
            transparent 48%
        ),
        linear-gradient(
            315deg,
            rgba(98, 91, 185, 0.035),
            transparent 45%
        ),
        #ffffff;
}

body.light-theme .viva-box {
    background:
        linear-gradient(
            135deg,
            rgba(52, 123, 216, 0.07),
            rgba(98, 91, 185, 0.035) 55%,
            #ffffff
        );
}

body.light-theme .site-footer {
    background:
        rgba(230, 237, 246, 0.35);
}


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

@media (max-width: 900px) {

    .main-nav {
        display: none;
    }

    .hero-grid,
    .self-service {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 80px;
    }

    .hero-panel {
        max-width: 620px;
    }

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

    .viva-box {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 640px) {

    .page-shell {
        width:
            min(
                calc(100% - 28px),
                var(--max-width)
            );
    }

    .header-inner {
        min-height: 68px;
    }

    .brand-logo {
        width: 50px;
        height: 50px;
    }

    .header-actions .btn {
        display: none;
    }

    .hero {
        padding:
            68px 0
            60px;
    }

    .hero h1 {
        font-size:
            clamp(2.9rem, 15vw, 4.4rem);
    }

    .hero-grid {
        gap: 44px;
    }

    .hero-actions {
        display: grid;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .section {
        padding: 66px 0;
    }

    .service-grid,
    .payment-grid {
        grid-template-columns: 1fr;
    }

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

    .self-service {
        padding: 28px 20px;
    }

    .viva-box {
        padding: 28px 22px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

}