/* =========================================================
   VEICLOUD WEB
   Estilos generales de la portada
   ========================================================= */

:root {
    --background: #050505;
    --background-soft: #0b0b0d;
    --panel: rgba(20, 20, 23, 0.76);
    --panel-solid: #111114;
    --panel-border: rgba(255, 255, 255, 0.08);

    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.66);
    --text-muted: rgba(255, 255, 255, 0.45);

    --accent: #e50914;
    --accent-hover: #ff1d29;
    --accent-soft: rgba(229, 9, 20, 0.15);

    --header-height: 76px;
    --content-width: 1220px;

    --radius-small: 12px;
    --radius-medium: 18px;
    --radius-large: 28px;

    --transition-fast: 180ms ease;
    --transition-normal: 280ms ease;
}

/* =========================================================
   RESETEO
   ========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;

    background:
        radial-gradient(
            circle at 15% 10%,
            rgba(229, 9, 20, 0.08),
            transparent 28rem
        ),
        var(--background);

    color: var(--text-primary);

    font-family:
        "Inter",
        Arial,
        sans-serif;

    -webkit-font-smoothing: antialiased;
}

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

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

/* =========================================================
   BARRA SUPERIOR
   ========================================================= */

.topbar {
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;

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

    width: 100%;
    height: var(--header-height);
    padding: 0 6vw;

    background:
        linear-gradient(
            to bottom,
            rgba(5, 5, 5, 0.96),
            rgba(5, 5, 5, 0.78)
        );

    border-bottom:
        1px solid rgba(255, 255, 255, 0.05);

    backdrop-filter: blur(18px);
}

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

.brand-mark {
    display: grid;
    place-items: center;

    width: 36px;
    height: 36px;

    border-radius: 11px;

    background:
        linear-gradient(
            145deg,
            #ff2b35,
            #b80009
        );

    box-shadow:
        0 8px 24px rgba(229, 9, 20, 0.30);

    color: #ffffff;

    font-size: 20px;
    font-weight: 900;
    letter-spacing: -1px;
}

.brand-name {
    color: #ffffff;

    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.8px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.desktop-nav a {
    position: relative;

    color: var(--text-secondary);

    font-size: 14px;
    font-weight: 600;

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

.desktop-nav a::after {
    position: absolute;
    bottom: -8px;
    left: 0;

    width: 0;
    height: 2px;

    border-radius: 10px;

    background: var(--accent);

    content: "";

    transition:
        width var(--transition-fast);
}

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

.desktop-nav a:hover::after {
    width: 100%;
}

.topbar-button {
    padding: 11px 17px;

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

    border-radius: 999px;

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

    color: var(--text-primary);

    font-size: 13px;
    font-weight: 700;

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

.topbar-button:hover {
    border-color:
        rgba(255, 255, 255, 0.22);

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

    transform:
        translateY(-2px);
}

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

.hero {
    position: relative;

    display: flex;
    align-items: center;

    min-height: 780px;
    padding:
        calc(var(--header-height) + 86px)
        6vw
        92px;

    overflow: hidden;

    background-image:
        linear-gradient(
            90deg,
            rgba(5, 5, 5, 0.98) 0%,
            rgba(5, 5, 5, 0.85) 32%,
            rgba(5, 5, 5, 0.42) 64%,
            rgba(5, 5, 5, 0.78) 100%
        ),
        linear-gradient(
            0deg,
            #050505 0%,
            transparent 26%
        ),
        url(
            "https://images.unsplash.com/photo-1489599849927-2ee91cede3ba?auto=format&fit=crop&w=2200&q=88"
        );

    background-position:
        center;

    background-size:
        cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 72% 38%,
            rgba(229, 9, 20, 0.10),
            transparent 32rem
        );

    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;

    width: min(100%, 690px);
}

.hero-label,
.section-label {
    margin-bottom: 16px;

    color: #ff5961;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2.5px;
}

.hero h1 {
    max-width: 760px;

    color: #ffffff;

    font-size:
        clamp(56px, 7vw, 92px);

    font-weight: 900;
    letter-spacing: -5px;
    line-height: 0.98;
}

.hero-description {
    max-width: 630px;
    margin-top: 26px;

    color: var(--text-secondary);

    font-size: 18px;
    line-height: 1.72;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;

    margin-top: 32px;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 146px;
    padding: 14px 21px;

    border-radius: 999px;

    font-size: 14px;
    font-weight: 800;

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

.primary-button {
    background:
        var(--accent);

    color:
        #ffffff;

    box-shadow:
        0 12px 34px rgba(229, 9, 20, 0.25);
}

.primary-button:hover {
    background:
        var(--accent-hover);

    box-shadow:
        0 16px 42px rgba(229, 9, 20, 0.40);

    transform:
        translateY(-3px);
}

.secondary-button {
    border:
        1px solid rgba(255, 255, 255, 0.14);

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

    color:
        #ffffff;

    backdrop-filter:
        blur(10px);
}

.secondary-button:hover {
    border-color:
        rgba(255, 255, 255, 0.25);

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

    transform:
        translateY(-3px);
}

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

.features,
.plans {
    width: min(
        calc(100% - 12vw),
        var(--content-width)
    );

    margin:
        0 auto;

    padding:
        106px 0;
}

.section-heading {
    max-width: 660px;
    margin-bottom: 38px;
}

.section-heading h2 {
    color:
        var(--text-primary);

    font-size:
        clamp(34px, 4vw, 54px);

    font-weight:
        900;

    letter-spacing:
        -2.3px;

    line-height:
        1.05;
}

.section-heading p:last-child {
    margin-top:
        18px;

    color:
        var(--text-secondary);

    font-size:
        17px;

    line-height:
        1.7;
}

/* =========================================================
   TARJETAS DE VENTAJAS
   ========================================================= */

.feature-grid {
    display:
        grid;

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

    gap:
        16px;
}

.feature-card {
    min-height:
        246px;

    padding:
        26px;

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

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

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.075),
            rgba(255, 255, 255, 0.025)
        );

    box-shadow:
        0 18px 60px rgba(0, 0, 0, 0.16);

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

.feature-card:hover {
    border-color:
        rgba(255, 255, 255, 0.16);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.10),
            rgba(255, 255, 255, 0.035)
        );

    transform:
        translateY(-7px);
}

.feature-icon {
    display:
        grid;

    place-items:
        center;

    width:
        50px;

    height:
        50px;

    margin-bottom:
        24px;

    border-radius:
        15px;

    background:
        var(--accent-soft);

    color:
        #ff4d55;

    font-size:
        22px;

    font-weight:
        900;
}

.feature-card h3 {
    color:
        #ffffff;

    font-size:
        20px;

    font-weight:
        800;

    line-height:
        1.26;
}

.feature-card p {
    margin-top:
        12px;

    color:
        var(--text-secondary);

    font-size:
        14px;

    line-height:
        1.7;
}

/* =========================================================
   PLANES
   ========================================================= */

.plans {
    padding-top:
        44px;

    padding-bottom:
        118px;
}

.plans-placeholder {
    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    min-height:
        190px;

    padding:
        24px;

    border:
        1px dashed rgba(255, 255, 255, 0.16);

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

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

    text-align:
        center;
}

.plans-placeholder p {
    color:
        var(--text-muted);

    font-size:
        15px;
}

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

.footer {
    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        18px;

    padding:
        28px 6vw;

    border-top:
        1px solid rgba(255, 255, 255, 0.06);

    background:
        #070707;
}

.footer-brand .brand-mark {
    width:
        30px;

    height:
        30px;

    border-radius:
        9px;

    font-size:
        16px;
}

.footer-brand .brand-name {
    font-size:
        18px;
}

.footer p {
    color:
        var(--text-muted);

    font-size:
        12px;
}

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

@media (max-width: 900px) {

    .desktop-nav {
        display:
            none;
    }

    .hero {
        min-height:
            720px;

        background-position:
            58% center;
    }

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

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

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

@media (max-width: 600px) {

    :root {
        --header-height:
            68px;
    }

    .topbar {
        padding:
            0 18px;
    }

    .brand {
        gap:
            8px;
    }

    .brand-mark {
        width:
            32px;

        height:
            32px;

        border-radius:
            10px;

        font-size:
            17px;
    }

    .brand-name {
        font-size:
            19px;
    }

    .topbar-button {
        padding:
            10px 13px;

        font-size:
            11px;
    }

    .hero {
        align-items:
            flex-end;

        min-height:
            720px;

        padding:
            calc(var(--header-height) + 36px)
            20px
            74px;

        background-image:
            linear-gradient(
                0deg,
                rgba(5, 5, 5, 1) 0%,
                rgba(5, 5, 5, 0.90) 28%,
                rgba(5, 5, 5, 0.40) 72%,
                rgba(5, 5, 5, 0.66) 100%
            ),
            url(
                "https://images.unsplash.com/photo-1489599849927-2ee91cede3ba?auto=format&fit=crop&w=1200&q=84"
            );

        background-position:
            center;
    }

    .hero-label {
        max-width:
            270px;

        margin-bottom:
            13px;

        font-size:
            10px;

        letter-spacing:
            2px;
    }

    .hero h1 {
        font-size:
            clamp(54px, 17vw, 72px);

        letter-spacing:
            -4px;
    }

    .hero-description {
        margin-top:
            19px;

        font-size:
            15px;

        line-height:
            1.62;
    }

    .hero-actions {
        margin-top:
            24px;
    }

    .primary-button,
    .secondary-button {
        min-width:
            132px;

        padding:
            13px 17px;

        font-size:
            13px;
    }

    .features,
    .plans {
        width:
            calc(100% - 38px);

        padding:
            74px 0;
    }

    .section-heading {
        margin-bottom:
            27px;
    }

    .section-label {
        margin-bottom:
            12px;

        font-size:
            10px;

        letter-spacing:
            2px;
    }

    .section-heading h2 {
        font-size:
            38px;

        letter-spacing:
            -1.9px;
    }

    .section-heading p:last-child {
        margin-top:
            14px;

        font-size:
            15px;

        line-height:
            1.62;
    }

    .feature-grid {
        gap:
            13px;
    }

    .feature-card {
        padding:
            22px;

        border-radius:
            17px;
    }

    .feature-icon {
        width:
            46px;

        height:
            46px;

        margin-bottom:
            19px;
    }

    .feature-card h3 {
        font-size:
            18px;
    }

    .plans {
        padding-top:
            12px;

        padding-bottom:
            84px;
    }

    .plans-placeholder {
        min-height:
            150px;

        border-radius:
            20px;
    }

    .footer {
        flex-direction:
            column;

        align-items:
            flex-start;

        padding:
            25px 20px;
    }
}
