/* =========================================================
   TIERSTRATEGY — SINGLE ABILITY
   Página individual de habilidad
   ========================================================= */

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

.ability-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 90px 28px 100px;
}


/* =========================================================
   CABECERA
   ========================================================= */

.ability-page__header {
    margin-bottom: 55px;
}

.ability-page__eyebrow {
    display: block;
    margin-bottom: 28px;
    color: #2864e8;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.ability-page__title {
    margin: 0;
    color: #11182c;
    font-size: clamp(48px, 7vw, 82px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -2px;
}


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

.ability-page__description {
    margin-bottom: 70px;
    padding: 48px;
    border: 1px solid #dbe2ee;
    border-radius: 28px;
    background: #ffffff;
}

.ability-page__description h2 {
    margin: 0 0 28px;
    color: #11182c;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 400;
    line-height: 1.15;
}

.ability-page__description-text {
    color: #647795;
    font-size: 22px;
    line-height: 1.65;
}

.ability-page__description-text p {
    margin: 0;
}


/* =========================================================
   TÍTULOS DE SECCIÓN
   ========================================================= */

.ability-page__section-title {
    margin: 0 0 38px;
    color: #11182c;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 400;
    line-height: 1.15;
}


/* =========================================================
   GRID DE POKÉMON
   ========================================================= */

.pokemon-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 80px;
}


/* =========================================================
   TARJETA DE POKÉMON
   ========================================================= */

.pokemon-card {
    padding: 32px;
    border: 1px solid #dbe2ee;
    border-radius: 24px;
    background: #ffffff;

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

.pokemon-card:hover {
    border-color: #2864e8;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(17, 24, 44, 0.06);
}

.pokemon-card a {
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   SPRITE
   ========================================================= */

.pokemon-sprite {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 130px;
    margin-bottom: 22px;
}

.pokemon-sprite-img {
    display: block;
    width: auto;
    max-width: 120px;
    height: auto;
}


/* =========================================================
   NOMBRE
   ========================================================= */

.pokemon-name {
    margin-bottom: 14px;
    color: #11182c;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.2;
}


/* =========================================================
   TIPOS
   ========================================================= */

.pokemon-types {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pokemon-types .type {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f5f7fa;
    color: #11182c;
    font-size: 15px;
    line-height: 1;
}


/* =========================================================
   RESULTADOS COMPETITIVOS
   ========================================================= */

.competitive-sets {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 70px;
}


/* =========================================================
   TARJETA COMPETITIVA
   ========================================================= */

.set-card {
    overflow: hidden;
    border: 1px solid #dbe2ee;
    border-radius: 24px;
    background: #ffffff;

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

.set-card:hover {
    border-color: #2864e8;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(17, 24, 44, 0.06);
}


/* =========================================================
   CABECERA DE SET
   ========================================================= */

.card-header {
    padding: 32px;
}

.card-header > a {
    color: inherit;
    text-decoration: none;
}

.card-sprite {
    display: block;
    width: auto;
    max-width: 120px;
    height: auto;
    margin: 0 auto 22px;
}

.card-name {
    margin: 0 0 14px;
    color: #11182c;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.2;
}

.card-types {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.card-types .type {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f5f7fa;
    color: #11182c;
    font-size: 15px;
    line-height: 1;
}


/* =========================================================
   CUERPO DEL SET
   ========================================================= */

.card-body {
    padding: 0 32px 32px;
}

.card-body p {
    margin: 0 0 12px;
    color: #647795;
    font-size: 18px;
    line-height: 1.5;
}

.card-body p:last-child {
    margin-bottom: 0;
}

.card-body strong {
    color: #11182c;
    font-weight: 500;
}

.card-body a {
    color: #2864e8;
    text-decoration: none;
}

.card-body a:hover {
    text-decoration: underline;
}


/* =========================================================
   SIN RESULTADOS
   ========================================================= */

.ability-page > p {
    margin: 0 0 70px;
    color: #647795;
    font-size: 21px;
    line-height: 1.6;
}


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

@media (max-width: 900px) {

    .ability-page {
        padding: 70px 28px 80px;
    }

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

    .competitive-sets {
        grid-template-columns: 1fr;
    }

    .ability-page__description {
        padding: 38px;
    }
}


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

@media (max-width: 600px) {

    .ability-page {
        padding: 65px 28px 70px;
    }

    .ability-page__header {
        margin-bottom: 42px;
    }

    .ability-page__eyebrow {
        margin-bottom: 22px;
        font-size: 16px;
        letter-spacing: 2.5px;
    }

    .ability-page__title {
        font-size: 52px;
        letter-spacing: -1.5px;
    }

    .ability-page__description {
        margin-bottom: 55px;
        padding: 32px;
        border-radius: 24px;
    }

    .ability-page__description h2,
    .ability-page__section-title {
        font-size: 34px;
    }

    .ability-page__description-text {
        font-size: 19px;
        line-height: 1.65;
    }

    .pokemon-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .pokemon-card {
        padding: 28px;
        border-radius: 22px;
    }

    .pokemon-name {
        font-size: 26px;
    }

    .competitive-sets {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .set-card {
        border-radius: 22px;
    }

    .card-header {
        padding: 28px;
    }

    .card-body {
        padding: 0 28px 28px;
    }

    .card-name {
        font-size: 26px;
    }
}