/* =========================================================
   ESSTADIOMAX - LANDING PAGE
   CSS PRINCIPAL
========================================================= */


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

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #102c40;
    line-height: 1.6;
}

a {
    text-decoration: none;
}

.container {
    width: min(1140px, 90%);
    margin: auto;
}


/* =========================
   COLORES
========================= */

:root {

    /* Identidad EsStadioMax */

    --primary: #0789d1;
    --primary-light: #35b5ec;
    --primary-dark: #102c40;

    /* Fondos */

    --bg: #ffffff;
    --bg-light: #eaf7ff;
    --bg-soft: #f5fbff;

    /* Tarjetas */

    --card: #ffffff;

    /* Texto */

    --text: #102c40;
    --gray: #5e7a8e;
    --gray-light: #7f97a8;

    /* Otros */

    --white: #ffffff;
    --border: #d8eaf5;

    --shadow:
        0 10px 30px rgba(16, 44, 64, 0.08);
}


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

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

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

    backdrop-filter: blur(12px);

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

.nav {
    min-height: 80px;

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

    gap: 30px;
}

.logo {
    color: var(--primary-dark);

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

.logo span {
    color: var(--primary);
}


/* =========================
   MENU
========================= */

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

    gap: 28px;
}

.menu a {
    color: var(--gray);

    font-size: 0.94rem;
    font-weight: 600;

    transition: 0.2s;
}

.menu a:hover {
    color: var(--primary);
}


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

.btn {
    display: inline-flex;

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

    padding: 14px 25px;

    background: var(--primary-light);
    color: var(--white);

    border: 2px solid var(--primary-light);

    border-radius: 10px;

    font-weight: 700;

    transition: 0.25s;
}

.btn:hover {
    background: var(--primary);
    border-color: var(--primary);

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(7, 137, 209, 0.20);
}

.btn-small {
    padding: 11px 20px;

    font-size: 0.9rem;
}

.btn-outline {
    background: transparent;

    color: var(--primary);

    border: 2px solid var(--primary-light);
}

.btn-outline:hover {
    background: var(--primary-light);

    color: var(--white);
}

.btn-full {
    width: 100%;
}


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

.hero {
    min-height: 650px;

    display: flex;
    align-items: center;

    background:
        radial-gradient(
            circle at 78% 30%,
            rgba(53, 181, 236, 0.15),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #f5fbff,
            #e5f5ff
        );

    overflow: hidden;
}

.hero-grid {
    display: grid;

    grid-template-columns:
        1.05fr 0.95fr;

    gap: 80px;

    align-items: center;
}


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

.tag,
.section-label {
    display: inline-block;

    color: var(--primary);

    font-size: 0.85rem;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 1.2px;

    margin-bottom: 15px;
}

.tag {
    padding: 7px 14px;

    background: var(--white);

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

    border-radius: 30px;

    box-shadow:
        0 4px 15px rgba(16, 44, 64, 0.04);
}

.hero h1 {
    max-width: 680px;

    color: var(--primary-dark);

    font-size:
        clamp(3rem, 6vw, 5.2rem);

    line-height: 1.03;

    margin-bottom: 23px;

    letter-spacing: -2px;
}

.hero h1 span {
    display: block;

    color: var(--primary);
}

.hero-description {
    max-width: 610px;

    color: var(--gray);

    font-size: 1.12rem;

    margin-bottom: 25px;
}

.hero-price {
    color: var(--primary-dark);

    font-size: 1.05rem;

    margin-bottom: 27px;
}

.hero-price strong {
    color: var(--primary);

    font-size: 1.65rem;

    margin: 0 4px;
}

.hero-buttons {
    display: flex;

    gap: 12px;

    flex-wrap: wrap;
}


/* =========================
   TV MOCKUP
========================= */

.hero-visual {
    position: relative;
}

.tv {
    padding: 8px;

    background:
        linear-gradient(
            145deg,
            #16374e,
            #0d2537
        );

    border-radius: 18px;

    box-shadow:
        0 30px 65px rgba(16, 44, 64, 0.20);
}

.tv-screen {
    min-height: 330px;

    display: flex;
    flex-direction: column;

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

    text-align: center;

    padding: 30px;

    border-radius: 12px;

    background:
        radial-gradient(
            circle,
            rgba(53, 181, 236, 0.18),
            transparent 55%
        ),
        linear-gradient(
            145deg,
            #eaf7ff,
            #ffffff
        );
}

.play {
    width: 75px;
    height: 75px;

    display: grid;
    place-items: center;

    margin-bottom: 20px;

    border-radius: 50%;

    background: var(--primary-light);

    color: var(--white);

    font-size: 1.7rem;

    box-shadow:
        0 10px 25px rgba(7, 137, 209, 0.20);
}

.tv-screen h2 {
    color: var(--primary-dark);

    font-size: 2rem;
}

.tv-screen p {
    color: var(--gray);
}


/* =========================
   TARJETA FLOTANTE
========================= */

.device-card {
    position: absolute;

    right: -20px;
    bottom: -25px;

    padding: 15px 20px;

    background: var(--white);

    color: var(--primary-dark);

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

    border-radius: 10px;

    font-size: 0.9rem;
    font-weight: 700;

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

.device-card span {
    color: var(--primary);

    margin-right: 5px;
}


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

.section {
    padding: 95px 0;

    background: var(--white);
}

.section-dark {
    background: var(--bg-light);
}

.section-header {
    max-width: 700px;

    margin: 0 auto 50px;

    text-align: center;
}

.section-header h2,
.devices-grid h2 {
    color: var(--primary-dark);

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

    line-height: 1.15;

    margin-bottom: 13px;
}

.section-header p {
    color: var(--gray);
}


/* =========================
   BENEFICIOS
========================= */

.features-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;
}

.feature-card {
    padding: 30px 25px;

    background: var(--white);

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

    border-radius: 15px;

    box-shadow:
        0 7px 22px rgba(16, 44, 64, 0.04);

    transition: 0.25s;
}

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

    border-color:
        rgba(7, 137, 209, 0.30);

    box-shadow:
        0 12px 30px rgba(16, 44, 64, 0.08);
}

.feature-icon {
    width: 52px;
    height: 52px;

    display: grid;
    place-items: center;

    margin-bottom: 17px;

    background: var(--bg-light);

    border-radius: 50%;

    font-size: 1.6rem;
}

.feature-card h3 {
    color: var(--primary-dark);

    margin-bottom: 8px;
}

.feature-card p {
    color: var(--gray);

    font-size: 0.94rem;
}


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

.plans-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;

    align-items: stretch;
}

.plan-card {
    position: relative;

    display: flex;
    flex-direction: column;

    padding: 35px 25px;

    background: var(--white);

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

    border-radius: 16px;

    box-shadow:
        0 8px 25px rgba(16, 44, 64, 0.05);

    transition: 0.25s;
}

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

    box-shadow:
        0 15px 35px rgba(16, 44, 64, 0.09);
}

.plan-card.featured {
    border: 2px solid var(--primary-light);

    box-shadow:
        0 15px 35px rgba(7, 137, 209, 0.13);

    transform: scale(1.03);
}

.popular {
    position: absolute;

    top: -14px;
    left: 50%;

    transform: translateX(-50%);

    padding: 6px 16px;

    background: var(--primary-light);

    color: var(--white);

    border-radius: 30px;

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

    white-space: nowrap;
}

.plan-time {
    color: var(--gray);

    font-size: 0.9rem;
}

.plan-price {
    color: var(--primary);

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

    margin: 12px 0;
}

.plan-price span {
    font-size: 1.3rem;
}

.plan-price small {
    color: var(--gray);

    font-size: 0.75rem;
}

.plan-card p {
    flex: 1;

    color: var(--gray);

    margin-bottom: 25px;

    font-size: 0.92rem;
}

.plans-note {
    margin-top: 32px;

    color: var(--gray-light);

    text-align: center;

    font-size: 0.82rem;
}


/* =========================
   DISPOSITIVOS
========================= */

.devices-grid {
    display: grid;

    grid-template-columns:
        1fr 0.8fr;

    align-items: center;

    gap: 80px;
}

.device-description {
    max-width: 600px;

    color: var(--gray);

    margin: 15px 0 25px;
}

.device-items {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;

    margin-bottom: 30px;
}

.device-items div {
    padding: 11px 16px;

    background: var(--white);

    color: var(--primary-dark);

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

    border-radius: 9px;

    box-shadow:
        0 4px 12px rgba(16, 44, 64, 0.03);

    font-weight: 600;
}


/* =========================
   CELULAR MOCKUP
========================= */

.devices-visual {
    display: flex;

    justify-content: center;
}

.phone {
    width: 240px;
    height: 470px;

    padding: 10px;

    background:
        linear-gradient(
            145deg,
            #17394f,
            #0d2638
        );

    border-radius: 35px;

    box-shadow:
        0 30px 60px rgba(16, 44, 64, 0.18);
}

.phone-content {
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;

    justify-content: center;

    padding: 25px;

    background:
        radial-gradient(
            circle,
            rgba(53, 181, 236, 0.18),
            transparent 55%
        ),
        linear-gradient(
            145deg,
            #eaf7ff,
            #ffffff
        );

    border-radius: 27px;

    text-align: center;
}

.phone-content span {
    color: var(--primary);

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

.phone-content strong {
    color: var(--primary-dark);

    margin-top: 7px;

    font-size: 0.95rem;
}


/* =========================
   PASOS
========================= */

.steps {
    display: grid;

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

    gap: 30px;
}

.step {
    text-align: center;

    padding: 25px;
}

.step > span {
    width: 58px;
    height: 58px;

    display: grid;
    place-items: center;

    margin: 0 auto 18px;

    border-radius: 50%;

    background: var(--bg-light);

    color: var(--primary);

    font-weight: 800;

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

.step h3 {
    color: var(--primary-dark);
}

.step p {
    color: var(--gray);

    margin-top: 8px;
}


/* =========================
   FAQ
========================= */

.faq {
    max-width: 780px;

    margin: auto;
}

details {
    margin-bottom: 12px;

    padding: 20px 23px;

    background: var(--white);

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

    border-radius: 11px;

    box-shadow:
        0 4px 15px rgba(16, 44, 64, 0.03);
}

summary {
    cursor: pointer;

    color: var(--primary-dark);

    font-weight: 700;
}

details p {
    color: var(--gray);

    margin-top: 13px;
}


/* =========================
   CTA FINAL
========================= */

.final-cta {
    padding: 100px 0;

    text-align: center;

    background:
        radial-gradient(
            circle at center,
            rgba(53, 181, 236, 0.18),
            transparent 50%
        ),
        linear-gradient(
            135deg,
            #eaf7ff,
            #f8fcff
        );
}

.final-cta h2 {
    color: var(--primary-dark);

    font-size:
        clamp(2.2rem, 5vw, 3.7rem);

    margin-bottom: 15px;
}

.final-cta p {
    max-width: 600px;

    margin: 0 auto 28px;

    color: var(--gray);
}


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

.footer {
    padding: 38px 0;

    background: var(--white);

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

.footer-content {
    display: flex;

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

    gap: 20px;
}

.footer p {
    color: var(--gray-light);

    font-size: 0.8rem;
}


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

@media (max-width: 1000px) {

    .menu {
        display: none;
    }

    .hero {
        padding: 80px 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;

        text-align: center;

        gap: 60px;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        max-width: 650px;

        margin: auto;

        width: 100%;
    }

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

    .plan-card.featured {
        transform: none;
    }

    .devices-grid {
        grid-template-columns: 1fr;

        text-align: center;

        gap: 55px;
    }

    .device-description {
        margin-left: auto;
        margin-right: auto;
    }

    .device-items {
        justify-content: center;
    }

}


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

@media (max-width: 650px) {

    .container {
        width: 92%;
    }

    .section {
        padding: 70px 0;
    }

    .nav {
        min-height: 70px;
    }

    .header .logo {
        font-size: 1.15rem;
    }

    .btn-small {
        padding: 9px 12px;

        font-size: 0.78rem;
    }

    .hero {
        min-height: auto;

        padding: 65px 0 85px;
    }

    .hero h1 {
        font-size: 3rem;

        letter-spacing: -1px;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

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

    .features-grid,
    .plans-grid,
    .steps {
        grid-template-columns: 1fr;
    }

    .plan-card.featured {
        border-width: 2px;
    }

    .tv-screen {
        min-height: 260px;
    }

    .device-card {
        right: 5px;
        bottom: -30px;
    }

    .phone {
        width: 210px;
        height: 420px;
    }

    .footer-content {
        flex-direction: column;

        text-align: center;
    }

}


/* =========================
   MÓVILES PEQUEÑOS
========================= */

@media (max-width: 420px) {

    .hero h1 {
        font-size: 2.55rem;
    }

    .hero-price strong {
        display: block;

        margin-top: 5px;
    }

    .device-card {
        position: static;

        display: inline-block;

        margin-top: 15px;
    }

}