/* =========================================================
   TIERSTRATEGY — HOME
   assets/css/pages/home.css
   ========================================================= */


/* =========================================================
   VARIABLES LOCALES
   ========================================================= */

.home-page {
    --home-primary: #2563eb;
    --home-primary-dark: #1d4ed8;
    --home-primary-light: #eff6ff;

    --home-bg: #ffffff;
    --home-bg-soft: #f8fafc;
    --home-bg-dark: #0f172a;

    --home-text: #0f172a;
    --home-text-soft: #475569;
    --home-text-muted: #64748b;

    --home-border: #e2e8f0;

    --home-radius-sm: 10px;
    --home-radius-md: 16px;
    --home-radius-lg: 24px;

    --home-shadow-sm:
        0 2px 8px rgba(15, 23, 42, 0.06);

    --home-shadow-md:
        0 10px 30px rgba(15, 23, 42, 0.08);

    --home-shadow-lg:
        0 20px 50px rgba(15, 23, 42, 0.12);
}


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

.home-page {
    width: 100%;
    overflow: hidden;
}

.home-container {
    width: min(1200px, calc(100% - 40px));
    margin-inline: auto;
}


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

.home-hero {
    position: relative;
    padding: 110px 0 120px;

    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(37, 99, 235, 0.14),
            transparent 35%
        ),
        linear-gradient(
            180deg,
            #f8fbff 0%,
            #ffffff 100%
        );

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

.home-hero::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;

    top: -220px;
    right: -180px;

    border-radius: 50%;

    background: rgba(37, 99, 235, 0.06);

    pointer-events: none;
}

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

    max-width: 820px;
    margin-inline: auto;

    text-align: center;
}


/* =========================================================
   KICKERS
   ========================================================= */

.home-hero-kicker,
.home-section-kicker {
    display: inline-block;

    margin-bottom: 16px;

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

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

    color: var(--home-primary);
}


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

.home-hero h1 {
    margin: 0 auto 24px;

    max-width: 800px;

    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.02;

    font-weight: 800;
    letter-spacing: -0.045em;

    color: var(--home-text);
}

.home-hero p {
    max-width: 680px;

    margin: 0 auto;

    font-size: 18px;
    line-height: 1.75;

    color: var(--home-text-soft);
}


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

.home-hero-actions {
    display: flex;

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

    gap: 14px;

    margin-top: 34px;

    flex-wrap: wrap;
}


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

.home-button {
    display: inline-flex;

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

    min-height: 48px;

    padding: 0 24px;

    border-radius: 10px;

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

    text-decoration: none;

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

.home-button:hover {
    transform: translateY(-2px);
}

.home-button-primary {
    color: #ffffff !important;

    background: var(--home-primary);

    box-shadow:
        0 8px 20px rgba(37, 99, 235, 0.22);
}

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

    box-shadow:
        0 12px 25px rgba(37, 99, 235, 0.28);
}

.home-button-secondary {
    color: var(--home-text) !important;

    background: #ffffff;

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

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

.home-button-secondary:hover {
    border-color: #cbd5e1;

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


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

.home-section {
    padding: 100px 0;
}

.home-section:nth-of-type(even) {
    background: var(--home-bg-soft);
}


/* =========================================================
   ENCABEZADOS DE SECCIÓN
   ========================================================= */

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

    margin-bottom: 46px;
}

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

    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.1;

    font-weight: 800;
    letter-spacing: -0.035em;

    color: var(--home-text);
}

.home-section-heading p {
    max-width: 620px;

    margin: 0;

    font-size: 16px;
    line-height: 1.7;

    color: var(--home-text-soft);
}


/* =========================================================
   META / TIERS
   ========================================================= */

.home-tier-grid {
    display: grid;

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

    gap: 18px;
}

.home-tier-card {
    position: relative;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    min-height: 180px;

    padding: 28px;

    text-decoration: none;

    background: #ffffff;

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

    border-radius: var(--home-radius-md);

    box-shadow: var(--home-shadow-sm);

    overflow: hidden;

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

.home-tier-card::after {
    content: "";

    position: absolute;

    width: 100px;
    height: 100px;

    right: -40px;
    bottom: -40px;

    border-radius: 50%;

    background: var(--home-primary-light);

    transition: transform 0.25s ease;
}

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

    border-color: rgba(37, 99, 235, 0.35);

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

.home-tier-card:hover::after {
    transform: scale(1.4);
}

.home-tier-name {
    position: relative;
    z-index: 1;

    font-size: 32px;
    line-height: 1;

    font-weight: 900;

    letter-spacing: -0.03em;

    color: var(--home-primary);
}

.home-tier-description {
    position: relative;
    z-index: 1;

    margin-top: 14px;

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

    color: var(--home-text-muted);
}


/* =========================================================
   POKÉMON DESTACADOS
   ========================================================= */

.home-featured-grid {
    display: grid;

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

    gap: 22px;
}

.home-featured-card {
    overflow: hidden;

    background: #ffffff;

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

    border-radius: var(--home-radius-lg);

    box-shadow: var(--home-shadow-sm);

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

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

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

.home-featured-placeholder {
    display: flex;

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

    min-height: 190px;

    padding: 30px;

    background:
        linear-gradient(
            135deg,
            #eff6ff,
            #f8fafc
        );

    color: var(--home-primary);

    font-size: 18px;
    font-weight: 800;
}

.home-featured-content {
    padding: 26px;
}

.home-featured-content h3 {
    margin: 0 0 12px;

    font-size: 21px;
    line-height: 1.25;

    font-weight: 800;

    color: var(--home-text);
}

.home-featured-content p {
    margin: 0 0 20px;

    font-size: 14px;
    line-height: 1.7;

    color: var(--home-text-soft);
}

.home-featured-content a {
    font-size: 14px;
    font-weight: 700;

    color: var(--home-primary);

    text-decoration: none;
}

.home-featured-content a:hover {
    text-decoration: underline;
}


/* =========================================================
   RECURSOS
   ========================================================= */

.home-resources-grid {
    display: grid;

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

    gap: 16px;
}

.home-resource-card {
    display: flex;

    flex-direction: column;

    gap: 8px;

    padding: 24px;

    text-decoration: none;

    background: #ffffff;

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

    border-radius: var(--home-radius-md);

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

.home-resource-card:hover {
    transform: translateY(-4px);

    border-color: rgba(37, 99, 235, 0.3);

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

.home-resource-card strong {
    font-size: 17px;
    font-weight: 800;

    color: var(--home-text);
}

.home-resource-card span {
    font-size: 13px;
    line-height: 1.55;

    color: var(--home-text-muted);
}


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

.home-cta {
    padding-top: 40px;
    padding-bottom: 110px;

    background: #ffffff !important;
}

.home-cta-box {
    position: relative;

    padding: 70px 50px;

    text-align: center;

    overflow: hidden;

    border-radius: var(--home-radius-lg);

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(255,255,255,0.16),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #0f172a,
            #1e3a8a
        );

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

.home-cta-box .home-section-kicker {
    color: #bfdbfe;
}

.home-cta-box h2 {
    position: relative;
    z-index: 1;

    max-width: 760px;

    margin: 0 auto 18px;

    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.1;

    font-weight: 800;
    letter-spacing: -0.035em;

    color: #ffffff;
}

.home-cta-box p {
    position: relative;
    z-index: 1;

    max-width: 620px;

    margin: 0 auto 30px;

    font-size: 16px;
    line-height: 1.7;

    color: #cbd5e1;
}

.home-cta-box .home-button-primary {
    position: relative;
    z-index: 1;

    background: #ffffff;

    color: var(--home-primary) !important;

    box-shadow: none;
}

.home-cta-box .home-button-primary:hover {
    background: #eff6ff;

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.18);
}


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

@media (max-width: 1000px) {

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

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

    .home-featured-card:last-child {
        grid-column: 1 / -1;
        max-width: calc(50% - 11px);
    }

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

}


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

@media (max-width: 700px) {

    .home-container {
        width: min(
            100% - 28px,
            1200px
        );
    }

    .home-hero {
        padding: 75px 0 80px;
    }

    .home-hero h1 {
        font-size: clamp(
            36px,
            11vw,
            52px
        );
    }

    .home-hero p {
        font-size: 16px;
        line-height: 1.65;
    }

    .home-hero-actions {
        flex-direction: column;

        align-items: stretch;
    }

    .home-button {
        width: 100%;
    }

    .home-section {
        padding: 70px 0;
    }

    .home-section-heading {
        margin-bottom: 32px;
    }

    .home-section-heading h2 {
        font-size: 32px;
    }

    .home-tier-grid {
        grid-template-columns: 1fr;
    }

    .home-tier-card {
        min-height: 150px;
    }

    .home-featured-grid {
        grid-template-columns: 1fr;
    }

    .home-featured-card:last-child {
        grid-column: auto;

        max-width: none;
    }

    .home-resources-grid {
        grid-template-columns: 1fr;
    }

    .home-cta {
        padding-top: 20px;
        padding-bottom: 75px;
    }

    .home-cta-box {
        padding: 50px 24px;
    }

}


/* =========================================================
   MÓVIL PEQUEÑO
   ========================================================= */

@media (max-width: 420px) {

    .home-container {
        width: calc(100% - 24px);
    }

    .home-hero {
        padding: 60px 0 65px;
    }

    .home-hero h1 {
        font-size: 35px;
    }

    .home-section {
        padding: 60px 0;
    }

    .home-tier-card {
        padding: 24px;
    }

    .home-featured-content {
        padding: 22px;
    }

    .home-cta-box {
        padding: 42px 20px;
    }

}


/* =========================================================
   RECURSOS COMPETITIVOS
   ========================================================= */

.ts-resources {
    padding: 100px 0;
    background: #ffffff;
}

.ts-section-header {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto 46px;
}

.ts-eyebrow {
    display: inline-block;

    margin: 0 0 16px;

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

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

    color: #2563eb;
}

.ts-section-header h2 {
    margin: 0 0 14px;

    font-size: clamp(34px, 5vw, 48px);
    line-height: 1.1;

    font-weight: 800;
    letter-spacing: -0.035em;

    color: #0f172a;
}

.ts-section-header > p:last-child {
    max-width: 680px;

    margin: 0;

    font-size: 18px;
    line-height: 1.7;

    color: #475569;
}


/* =========================================================
   GRID DE RECURSOS
   ========================================================= */

.ts-resources-grid {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;

    display: grid;

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

    gap: 18px;
}


/* =========================================================
   TARJETAS
   ========================================================= */

.ts-resource-card {
    display: flex;

    flex-direction: column;

    justify-content: space-between;

    min-height: 180px;

    padding: 28px;

    text-decoration: none;

    background: #ffffff;

    border: 1px solid #e2e8f0;

    border-radius: 16px;

    box-shadow:
        0 2px 8px rgba(15, 23, 42, 0.06);

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

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

    border-color: rgba(37, 99, 235, 0.35);

    box-shadow:
        0 10px 30px rgba(15, 23, 42, 0.08);
}


/* =========================================================
   TÍTULO DE RECURSO
   ========================================================= */

.ts-resource-card h3 {
    margin: 0 0 14px;

    font-size: 22px;
    line-height: 1.25;

    font-weight: 800;

    color: #0f172a;
}


/* =========================================================
   DESCRIPCIÓN
   ========================================================= */

.ts-resource-card p {
    margin: 0;

    font-size: 14px;
    line-height: 1.6;

    color: #64748b;
}


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

@media (max-width: 1000px) {

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

}


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

@media (max-width: 700px) {

    .ts-resources {
        padding: 70px 0;
    }

    .ts-section-header {
        width: min(
            100% - 28px,
            1200px
        );

        margin-bottom: 32px;
    }

    .ts-section-header h2 {
        font-size: 32px;
    }

    .ts-section-header > p:last-child {
        font-size: 16px;
        line-height: 1.65;
    }

    .ts-resources-grid {
        width: min(
            100% - 28px,
            1200px
        );

        grid-template-columns: 1fr;

        gap: 14px;
    }

    .ts-resource-card {
        min-height: 150px;

        padding: 24px;
    }

}


/* =========================================================
   MÓVIL PEQUEÑO
   ========================================================= */

@media (max-width: 420px) {

    .ts-resources {
        padding: 60px 0;
    }

    .ts-section-header,
    .ts-resources-grid {
        width: calc(100% - 24px);
    }

    .ts-resource-card {
        padding: 22px;
    }

}
