/*
Theme Name: SeHablaParley Magazine
Theme URI: https://sehablaparley.com
Author: Tu Nombre
Description: Tema personalizado estilo revista deportiva para SeHablaParley. Optimizado para móviles y SEO.
Version: 1.2
License: GNU General Public License v2 or later
Text Domain: sehablaparley
*/

:root {
    --primary-color: #101b2d;
    --accent-color: #e63946;
    --orange-color: #f28c28;
    --text-color: #202a38;
    --bg-light: #f2f4f7;
    --white: #ffffff;
}

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

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

a:hover {
    color: var(--accent-color);
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--orange-color);
    outline-offset: 3px;
}


/* =========================================================
   CONTENEDORES
========================================================= */

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}


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

.site-header {
    background-color: var(--primary-color);
    padding: 17px 0;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.site-title,
.site-title a {
    color: var(--white);
}

.site-title {
    font-size: 24px;
    font-weight: 900;
    line-height: 1.15;
}

.custom-logo-link {
    display: block;
    line-height: 0;
}

.custom-logo {
    display: block;
    width: auto;
    max-width: 210px;
    max-height: 58px;
    object-fit: contain;
}

/* =========================================================
   MENÚ RESPONSIVE
========================================================= */

.main-navigation {
    display: flex;
    align-items: center;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
}

.main-menu {
    list-style: none;
    display: flex;
    gap: 26px;
}

.main-menu a {
    color: var(--white);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 16px;
    padding: 10px 0;
    transition: color 0.3s;
}

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


/* =========================================================
   GRID DEL BLOG
========================================================= */

.magazine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
    margin-top: 24px;
}

.post-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(16, 27, 45, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(16, 27, 45, 0.13);
}

.post-card > a {
    display: block;
    height: 100%;
}

.post-card > a > img:not(.hero-image) {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.hero-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: 560px;
    object-fit: cover;
}

.hero-image-placeholder {
    background: linear-gradient(135deg, #263750, #101b2d);
}

.post-content {
    padding: 22px 24px 24px;
}

.category-badge {
    background: var(--accent-color);
    color: white;
    padding: 4px 10px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 10px;
}

.post-title {
    color: var(--primary-color);
    font-size: 21px;
    margin-bottom: 10px;
    line-height: 1.3;
}

.post-meta {
    font-size: 16px;
    color: #777;
    margin-top: 15px;
}

.section-title {
    padding-left: 14px;
    margin-top: 0;
    border-left: 5px solid var(--accent-color);
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 900;
    line-height: 1.2;
}


/* =========================================================
   HERO ANTIGUO / COMPATIBILIDAD
========================================================= */

.hero-section {
    margin: 32px 0 52px;
}

.magazine-section + .magazine-section {
    margin-top: 52px;
}

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

.hero-card {
    grid-column: 1 / -1;
    position: relative;
    border-radius: 14px;
    background: var(--primary-color);
}

.hero-card > a {
    position: relative;
    overflow: hidden;
}

.hero-card > a::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(
        180deg,
        rgba(9, 18, 31, 0.02) 20%,
        rgba(9, 18, 31, 0.88) 100%
    );
    pointer-events: none;
}

.hero-card .hero-image {
    transition: transform 0.5s ease;
}

.hero-card:hover .hero-image {
    transform: scale(1.025);
}

.hero-card .post-content {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 0;
    left: 0;
    padding: clamp(24px, 5vw, 56px);
    color: var(--white);
}

.hero-card .post-content p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 16px;
}

.hero-card .category-badge {
    background: var(--accent-color);
}

.hero-section .section-title {
    margin-top: 0;
    margin-bottom: 20px;
}

.hero-section .post-title {
    color: var(--white);
    font-size: clamp(28px, 4vw, 46px);
    max-width: 850px;
}

.news-title {
    border-left-color: var(--primary-color);
}


/* =========================================================
   PAGE ENTRY
========================================================= */

.page-entry {
    background: var(--white);
    padding: clamp(24px, 5vw, 48px);
    margin: 36px 0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(16, 27, 45, 0.06);
}

.entry-title {
    margin-bottom: 20px;
}


/* =========================================================
   SOBRE NOSOTROS
========================================================= */

.about-page {
    padding: clamp(36px, 7vw, 76px) 0;
}

.about-intro {
    max-width: 790px;
    margin: 0 auto 42px;
    text-align: center;
}

.about-eyebrow,
.profile-number {
    color: var(--accent-color);
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.about-title {
    margin: 10px 0 16px;
    color: var(--primary-color);
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 900;
    line-height: 1.1;
}

.about-lead {
    color: #526071;
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.7;
}

.about-profiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.about-profile {
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid rgba(16, 27, 45, 0.07);
    border-radius: 14px;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(16, 27, 45, 0.06);
}

.profile-heading {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.profile-avatar {
    display: grid;
    width: 68px;
    height: 68px;
    flex: 0 0 68px;
    place-items: center;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    font-size: 22px;
    font-weight: 900;
}

.about-profile:nth-child(2) .profile-avatar {
    background: var(--accent-color);
}

.profile-heading h2 {
    margin-top: 3px;
    color: var(--primary-color);
    font-size: 27px;
    font-weight: 900;
    line-height: 1.2;
}

.profile-role {
    margin-bottom: 14px;
    color: var(--accent-color);
    font-weight: 700;
}

.about-profile > p:not(.profile-role) {
    margin-bottom: 14px;
    color: #526071;
    line-height: 1.75;
}

.profile-role a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--orange-color);
    text-underline-offset: 3px;
}

.profile-tag {
    display: inline-block;
    margin-top: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #f2f4f7;
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 700;
}

.about-closing {
    margin-top: 34px;
    padding: clamp(28px, 5vw, 48px);
    border-radius: 14px;
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.about-closing h2 {
    margin-bottom: 10px;
    font-size: clamp(24px, 4vw, 34px);
    font-weight: 900;
}

.about-closing p {
    max-width: 660px;
    margin: 0 auto 22px;
    color: rgba(255, 255, 255, 0.82);
}

.about-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 6px;
    background: var(--accent-color);
    color: var(--white);
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(230, 57, 70, 0.2);
    transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.about-cta:hover,
.about-cta:focus-visible {
    transform: translateY(-2px);
    background: var(--orange-color);
    color: var(--primary-color);
    box-shadow: 0 9px 20px rgba(242, 140, 40, 0.25);
}


/* =========================================================
   CONTACTO
========================================================= */

.contact-page {
    padding: clamp(36px, 7vw, 76px) 0;
}

.contact-intro {
    max-width: 790px;
    margin: 0 auto 42px;
    text-align: center;
}

.contact-people {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.contact-card {
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid rgba(16, 27, 45, 0.07);
    border-radius: 14px;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(16, 27, 45, 0.06);
}

.contact-index {
    color: var(--orange-color);
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.contact-card h2 {
    margin: 10px 0;
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 900;
}

.contact-card > p:not(.contact-site) {
    min-height: 52px;
    margin-bottom: 18px;
    color: #526071;
    line-height: 1.65;
}

.contact-phone {
    display: block;
    margin-bottom: 16px;
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 700;
}

.contact-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 6px;
    background: var(--accent-color);
    color: var(--white);
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(230, 57, 70, 0.2);
    transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.contact-action:hover,
.contact-action:focus-visible {
    transform: translateY(-2px);
    background: var(--orange-color);
    color: var(--primary-color);
    box-shadow: 0 9px 20px rgba(242, 140, 40, 0.25);
}

.vip-page {
    padding-top: clamp(36px, 7vw, 76px);
    padding-bottom: clamp(36px, 7vw, 76px);
}

.vip-intro {
    max-width: 850px;
    margin: 0 auto 42px;
    text-align: center;
}

.vip-plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.vip-plan-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid rgba(16, 27, 45, 0.08);
    border-radius: 14px;
    background: var(--white);
    box-shadow: 0 12px 32px rgba(16, 27, 45, 0.07);
}

.vip-plan-label {
    color: var(--accent-color);
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.vip-plan-card h2 {
    margin-top: 10px;
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 900;
    line-height: 1.2;
}

.vip-plan-description {
    margin-top: 12px;
    color: #526071;
    line-height: 1.65;
}

.vip-plan-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 22px;
    color: #526071;
}

.vip-plan-price strong {
    color: var(--primary-color);
    font-size: 40px;
    font-weight: 900;
    line-height: 1.1;
}

.vip-plan-card h3 {
    margin-top: 24px;
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 900;
}

.vip-payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    list-style: none;
}

.vip-payment-methods li {
    padding: 8px 12px;
    border-radius: 6px;
    background: #f2f4f7;
    color: var(--primary-color);
    font-weight: 700;
}

.vip-payment-note {
    margin-top: 20px;
    color: #526071;
    line-height: 1.6;
}

.vip-plan-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    margin-top: auto;
    padding: 12px 18px;
    border-radius: 6px;
    background: var(--accent-color);
    color: var(--white);
    font-weight: 900;
    text-align: center;
    box-shadow: 0 6px 16px rgba(230, 57, 70, 0.2);
    transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.vip-plan-action:hover,
.vip-plan-action:focus-visible {
    transform: translateY(-2px);
    background: var(--orange-color);
    color: var(--primary-color);
    box-shadow: 0 9px 20px rgba(242, 140, 40, 0.25);
}

.vip-independent-note {
    max-width: 850px;
    margin: 28px auto 0;
    padding: 18px 22px;
    border: 1px solid rgba(16, 27, 45, 0.06);
    border-radius: 10px;
    background: var(--white);
    color: #526071;
    line-height: 1.65;
    text-align: center;
}

.contact-site {
    margin-top: 20px;
    color: #526071;
}

.contact-site a {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--orange-color);
    text-underline-offset: 3px;
}

.contact-note {
    margin-top: 24px;
    color: #687587;
    font-size: 16px;
    text-align: center;
}

.contact-social {
    margin-top: 34px;
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid rgba(16, 27, 45, 0.06);
    border-radius: 14px;
    background: var(--white);
    text-align: center;
}

.contact-social h2 {
    margin-bottom: 14px;
    color: var(--primary-color);
    font-size: 21px;
    font-weight: 900;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 0 auto 22px;
}

.social-links a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 9px;
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 7px;
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.social-links svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.social-links svg rect {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
}

.social-links a:hover,
.social-links a:focus-visible {
    background: var(--orange-color);
    color: var(--primary-color);
}

.contact-social .social-links {
    margin-bottom: 0;
}

.contact-social .social-links a {
    border-color: rgba(16, 27, 45, 0.12);
    background: var(--primary-color);
}

.contact-social .social-links a:hover,
.contact-social .social-links a:focus-visible {
    border-color: var(--orange-color);
    background: var(--orange-color);
    color: var(--primary-color);
}


/* =========================================================
   ARCHIVOS / CATEGORÍAS
========================================================= */

.archive-header {
    margin: 42px 0 10px;
    padding-left: 16px;
    border-left: 5px solid var(--orange-color);
}

.archive-title {
    margin-top: 6px;
    color: var(--primary-color);
    font-size: clamp(32px, 5vw, 46px);
    font-weight: 900;
    line-height: 1.15;
}

.archive-description {
    margin-top: 10px;
    color: #526071;
}

.archive-grid {
    margin-bottom: 38px;
}

.archive-image-placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    background: linear-gradient(135deg, var(--primary-color), #263750);
}

.archive-excerpt {
    color: #526071;
    line-height: 1.6;
}

.archive-layout,
.single-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 32px;
    margin-top: 38px;
    margin-bottom: 48px;
}

.archive-layout.has-sidebar,
.single-layout.has-sidebar {
    grid-template-columns: minmax(0, 1fr) 280px;
}

.archive-content,
.single-content {
    min-width: 0;
}

.archive-layout .archive-header {
    margin-top: 0;
}

.archive-layout .magazine-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}


/* =========================================================
   SIDEBAR
========================================================= */

.site-sidebar {
    position: sticky;
    top: 110px;
    display: grid;
    gap: 32px;
    min-width: 0;
    padding-top: 4px;
}

.sidebar-widget-group {
    display: grid;
    gap: 32px;
}

.sidebar-heading {
    padding-left: 12px;
    border-left: 4px solid var(--orange-color);
    color: var(--primary-color);
    font-size: 22px;
    font-weight: 900;
    line-height: 1.2;
}

.sidebar-ad-slot,
.sidebar-widget-group .widget {
    overflow: hidden;
    border: 1px solid rgba(16, 27, 45, 0.08);
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(16, 27, 45, 0.07);
}

.sidebar-ad-title,
.sidebar-widget-group .widget-title {
    padding: 13px 16px;
    border-bottom: 1px solid rgba(16, 27, 45, 0.08);
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 900;
}

.sidebar-ad-slot .widget {
    padding: 12px;
}

.sidebar-ad-slot .widget-title {
    margin: -12px -12px 12px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(16, 27, 45, 0.08);
    color: var(--primary-color);
    font-size: 16px;
}

.sidebar-ad-slot .widget_media_image,
.sidebar-ad-slot .wp-block-image {
    margin: 0;
}

.sidebar-ad-slot img,
.sidebar-widget-group img {
    display: block;
    width: 100%;
    height: auto;
}

.sidebar-ad-slot .widget_media_image a,
.sidebar-ad-slot .wp-block-image a {
    display: block;
}


/* =========================================================
   SINGLE
========================================================= */

.single-layout {
    margin-top: 38px;
}

.single-entry {
    margin: 0;
}

.single-header {
    margin-bottom: 24px;
}

.single-title {
    margin: 8px 0 12px;
    color: var(--primary-color);
    font-size: clamp(30px, 5vw, 46px);
    font-weight: 900;
    line-height: 1.15;
}

.single-featured-image {
    margin: 0 0 26px;
}

.single-featured-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.entry-content {
    color: #384657;
    line-height: 1.8;
}

.entry-content > * + * {
    margin-top: 1.2em;
}

.entry-content img {
    max-width: 100%;
    height: auto;
}

.archive-empty {
    margin: 28px 0;
    padding: 24px;
    border-radius: 10px;
    background: var(--white);
    color: #526071;
}

.navigation.pagination {
    margin: 32px 0 44px;
}

.navigation.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.navigation.pagination .page-numbers {
    display: inline-flex;
    min-width: 42px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid rgba(16, 27, 45, 0.12);
    border-radius: 8px;
    background: var(--white);
    color: var(--primary-color);
    font-weight: 800;
    transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.navigation.pagination .page-numbers:hover,
.navigation.pagination .page-numbers:focus-visible,
.navigation.pagination .page-numbers.current {
    transform: translateY(-1px);
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: var(--white);
}


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

.site-footer {
    background: #111;
    color: #aaa;
    padding: 44px 0;
    text-align: center;
    margin-top: 50px;
}

.home .site-footer {
    margin-top: 0;
}

.site-footer .social-links {
    margin-bottom: 20px;
}

.site-footer .social-links a:hover,
.site-footer .social-links a:focus-visible {
    border-color: var(--orange-color);
}


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

@media (max-width: 960px) {

    .menu-toggle {
        display: block;
    }

    .container {
        padding-right: 18px;
        padding-left: 18px;
    }

    .custom-logo {
        max-width: 150px;
        max-height: 44px;
    }

    .main-navigation {
        position: relative;
    }

    .main-menu {
        display: none;
        flex-direction: column;
        min-width: 220px;
        position: absolute;
        top: 100%;
        right: 0;
        background: var(--primary-color);
        padding: 20px;
        gap: 15px;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    }

    .main-menu.active {
        display: flex;
    }

    .hero-section {
        margin: 24px 0 40px;
    }

    .hero-image {
        min-height: 280px;
        aspect-ratio: 4 / 3;
    }

    .hero-card .post-content {
        padding: 22px;
    }

    .hero-card .post-content p {
        font-size: 16px;
    }

    .magazine-grid {
        grid-template-columns: repeat(
            auto-fill,
            minmax(min(100%, 260px), 1fr)
        );
        gap: 20px;
    }

    .page-entry {
        margin: 24px 0;
    }
}

@media (max-width: 700px) {

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

    .about-intro {
        margin-bottom: 28px;
    }

    .about-closing {
        margin-top: 22px;
    }

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

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

    .contact-intro {
        margin-bottom: 28px;
    }

    .contact-card > p:not(.contact-site) {
        min-height: 0;
    }
}

@media (max-width: 900px) {

    .archive-layout.has-sidebar,
    .single-layout.has-sidebar {
        grid-template-columns: minmax(0, 1fr);
    }

    .site-sidebar {
        position: static;
        grid-template-columns: repeat(
            auto-fit,
            minmax(min(100%, 240px), 1fr)
        );
        align-items: start;
    }

    .sidebar-heading {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {

    .hero-image {
        min-height: 320px;
    }

    .hero-section .post-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 21px;
    }
}


/* =========================================================
   AJUSTES FLUIDOS DE TIPOGRAFÍA Y CONTENIDO
   Mantiene títulos y acciones dentro de sus tarjetas en todas
   las anchuras, incluidas las pantallas móviles estrechas.
========================================================= */

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

img,
video,
iframe {
    max-width: 100%;
}

.container,
.homepage-section-heading,
.homepage-featured-content,
.homepage-secondary-content,
.homepage-achievement-content,
.homepage-news-content,
.expert-banner-content,
.post-content,
.single-content,
.archive-content {
    min-width: 0;
}

.post-title,
.archive-title,
.single-title,
.homepage-hero-header h1,
.homepage-section-title,
.homepage-featured-content h2,
.homepage-secondary-content h3,
.homepage-achievement-content h3,
.homepage-news-content h3,
.expert-banner-content h2,
.vip-plan-card h2,
.contact-card h2 {
    overflow-wrap: anywhere;
    hyphens: auto;
    text-wrap: pretty;
}

.post-title { font-size: clamp(1.15rem, 1.7vw, 1.4rem); }
.archive-title { font-size: clamp(1.8rem, 5vw, 2.875rem); }
.homepage-hero-header h1 { font-size: clamp(1.9rem, 5.1vw, 3.25rem); }
.homepage-section-title { font-size: clamp(1.55rem, 3.6vw, 2.25rem); }
.homepage-featured-content h2 { font-size: clamp(1.75rem, 4.2vw, 3.5rem); }
.homepage-achievement-featured .homepage-achievement-content h3 { font-size: clamp(1.35rem, 2.8vw, 2.5rem); }

.homepage-secondary-content h3,
.homepage-achievement-content h3,
.homepage-news-content h3,
.post-title {
    line-height: 1.3;
}

.homepage-category,
.homepage-small-category,
.homepage-achievement-label,
.homepage-achievement-read,
.homepage-read-more,
.homepage-news-meta,
.post-meta,
.category-badge {
    font-size: clamp(.75rem, 1.1vw, .9rem);
}

.homepage-secondary-card > a,
.homepage-news-card > a,
.post-card > a {
    min-width: 0;
}

.expert-banner {
    min-width: 0;
}

.expert-banner-content h2 {
    font-size: clamp(1.9rem, 4vw, 3rem);
}

/* Colores de marca: verde parley sobre la base azul marino. */
.homepage-expert-pedro .expert-banner-background,
.homepage-expert-pablo .expert-banner-background {
    background:
        radial-gradient(circle at 78% 48%, rgba(104, 217, 0, .22), transparent 36%),
        linear-gradient(110deg, #0a1321 0%, #101b2d 58%, #19283e 100%);
}

.homepage-expert-pedro .expert-banner-label,
.homepage-expert-pablo .expert-banner-label,
.homepage-expert-pedro .expert-banner-plan i,
.homepage-expert-pablo .expert-banner-plan i {
    color: #7be000;
}

.homepage-expert-pedro .expert-banner-button,
.homepage-expert-pablo .expert-banner-button {
    background: var(--accent-color);
    color: var(--white);
}

.homepage-expert-pedro .expert-banner-button:hover,
.homepage-expert-pablo .expert-banner-button:hover {
    background: var(--orange-color);
    color: var(--primary-color);
}

@media (max-width: 700px) {
    .container { padding-right: 18px; padding-left: 18px; }
    .homepage-hero-header h1 { font-size: clamp(1.85rem, 8vw, 2.3rem); line-height: 1.12; }
    .homepage-featured-content { width: 100%; padding: clamp(18px, 5vw, 28px); }
    .homepage-featured-content h2 { font-size: clamp(1.65rem, 7vw, 2.2rem); }
    .homepage-section-title { font-size: clamp(1.45rem, 6vw, 1.8rem); }
    .homepage-secondary-card > a { grid-template-columns: minmax(92px, 34%) minmax(0, 1fr); }
    .homepage-secondary-content { padding: 12px; }
    .homepage-secondary-content h3 { font-size: clamp(.92rem, 4vw, 1.05rem); }
    .homepage-achievements-grid { grid-template-rows: minmax(260px, auto) repeat(2, minmax(190px, auto)); }
    .homepage-achievement-content h3,
    .homepage-achievement-featured .homepage-achievement-content h3 { font-size: clamp(1.2rem, 5vw, 1.55rem); }
    .expert-banner-content h2 { font-size: clamp(1.8rem, 8vw, 2.25rem); }
    .expert-banner-label { font-size: .78rem; letter-spacing: .08em; }
    .expert-banner-actions { align-items: stretch; }
    .expert-banner-actions > a { overflow-wrap: anywhere; }
}

@media (max-width: 360px) {
    .container { padding-right: 14px; padding-left: 14px; }
    .homepage-secondary-card > a { grid-template-columns: 1fr; }
    .homepage-secondary-image { aspect-ratio: 16 / 9; min-height: 0; }
    .homepage-achievement-content { padding: 15px; }
    .expert-banner-content { padding-right: 15px; padding-left: 15px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; }
}


/* =========================================================
   =========================================================
   NUEVO HOMEPAGE — SE HABLA PARLEY
   =========================================================
   ========================================================= */


/* =========================================================
   VARIABLES ESPECÍFICAS DEL HOMEPAGE
========================================================= */

.homepage {
    overflow: hidden;
}

.homepage a {
    text-decoration: none;
}

.homepage img {
    display: block;
}


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

.homepage-hero {
    padding: 34px 0 56px;
}

.homepage-intro {
    padding-bottom: 18px;
}

.homepage-hero-header {
    margin-bottom: 22px;
}

.homepage-kicker {
    display: inline-block;
    margin-bottom: 7px;
    color: var(--accent-color);
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.homepage-hero-header h1 {
    margin: 0;
    color: var(--primary-color);
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 900;
    line-height: 1.05;
}

.homepage-hero-header p {
    max-width: 700px;
    margin-top: 10px;
    color: #687587;
    font-size: 16px;
}


/* Hero principal */

.homepage-featured-card {
    position: relative;
    overflow: hidden;
    min-height: 570px;
    border-radius: 16px;
    background: var(--primary-color);
    box-shadow: 0 18px 45px rgba(16, 27, 45, 0.18);
}

.homepage-featured-link {
    position: relative;
    display: block;
    min-height: 570px;
    color: var(--white);
}

.homepage-featured-media {
    position: absolute;
    inset: 0;
}

.homepage-featured-media img,
.homepage-featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.homepage-featured-card:hover .homepage-featured-image {
    transform: scale(1.035);
}

.homepage-featured-placeholder {
    width: 100%;
    height: 100%;
    min-height: 570px;
    background:
        linear-gradient(
            135deg,
            #263750 0%,
            #101b2d 70%,
            #0a1321 100%
        );
}

.homepage-featured-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            90deg,
            rgba(7, 15, 27, 0.88) 0%,
            rgba(7, 15, 27, 0.67) 42%,
            rgba(7, 15, 27, 0.20) 76%,
            rgba(7, 15, 27, 0.10) 100%
        ),
        linear-gradient(
            0deg,
            rgba(7, 15, 27, 0.80) 0%,
            transparent 60%
        );
}

.homepage-featured-content {
    position: absolute;
    z-index: 2;
    right: auto;
    bottom: 0;
    left: 0;
    width: min(760px, 80%);
    padding: clamp(30px, 5vw, 62px);
}

.homepage-category,
.homepage-small-category {
    display: inline-block;
    color: var(--white);
    background: var(--accent-color);
    border-radius: 4px;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
}

.homepage-category {
    padding: 8px 11px;
    margin-bottom: 15px;
}

.homepage-featured-content h2 {
    max-width: 760px;
    margin: 0;
    color: var(--white);
    font-size: clamp(30px, 5vw, 56px);
    font-weight: 900;
    line-height: 1.08;
}

.homepage-featured-content p {
    max-width: 650px;
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 16px;
    line-height: 1.65;
}

.homepage-read-more {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 22px;
    padding: 11px 17px;
    border-radius: 5px;
    background: var(--orange-color);
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition:
        background-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.homepage-read-more i {
    transition: transform 0.25s ease;
}

.homepage-featured-card:hover .homepage-read-more {
    background: #ff9f3d;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(242, 140, 40, 0.28);
}

.homepage-featured-card:hover .homepage-read-more i {
    transform: translateX(4px);
}


/* =========================================================
   NOTICIAS SECUNDARIAS DEL HERO
========================================================= */

.homepage-secondary-news {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.homepage-secondary-card {
    overflow: hidden;
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(16, 27, 45, 0.07);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.homepage-secondary-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(16, 27, 45, 0.13);
}

.homepage-secondary-card > a {
    display: flex;
    height: 100%;
    flex-direction: column;
}

.homepage-secondary-image {
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--primary-color);
}

.homepage-secondary-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.homepage-secondary-card:hover .homepage-secondary-image img {
    transform: scale(1.04);
}

.homepage-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 150px;
    background: linear-gradient(135deg, #263750, #101b2d);
}

.homepage-secondary-content {
    flex: 1;
    padding: 18px 19px 20px;
}

.homepage-small-category {
    padding: 6px 8px;
    margin-bottom: 9px;
    background: #edf0f4;
    color: var(--primary-color);
}

.homepage-secondary-content h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 19px;
    font-weight: 900;
    line-height: 1.3;
}

.homepage-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 13px;
    color: #7a8594;
    font-size: 16px;
}

.homepage-card-meta i {
    margin-right: 4px;
}


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

.homepage-section {
    padding: 62px 0;
    background: var(--white);
}

.homepage-picks-section,
.homepage-news-section {
    background: var(--white);
}

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

.homepage-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 28px;
}

.homepage-section-label {
    display: block;
    margin-bottom: 7px;
    color: var(--accent-color);
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.homepage-section-title {
    position: relative;
    margin: 0;
    padding-left: 15px;
    color: var(--primary-color);
    font-size: clamp(27px, 4vw, 38px);
    font-weight: 900;
    line-height: 1.1;
}

.homepage-section-title::before {
    position: absolute;
    top: 2px;
    bottom: 2px;
    left: 0;
    width: 5px;
    border-radius: 4px;
    background: var(--accent-color);
    content: "";
}

.homepage-section-description {
    max-width: 650px;
    margin-top: 8px;
    color: #687587;
    font-size: 16px;
}

.homepage-section-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: var(--accent-color);
    color: var(--white);
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
    box-shadow: 0 5px 14px rgba(230, 57, 70, 0.18);
    transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.homepage-section-link i {
    transition: transform 0.25s ease;
}

.homepage-section-link:hover,
.homepage-section-link:focus-visible {
    transform: translateY(-2px);
    background: var(--orange-color);
    color: var(--primary-color);
    box-shadow: 0 8px 18px rgba(242, 140, 40, 0.24);
}

.homepage-section-link:hover i {
    transform: translateX(4px);
}


/* =========================================================
   BANNERS DE EXPERTOS
========================================================= */

.homepage-expert-banner {
    padding: 20px 0;
    background: var(--primary-color);
}

.expert-banner {
    position: relative;
    display: flex;
    min-height: 300px;
    align-items: center;
    overflow: hidden;
    border-radius: 16px;
    background: #0b1525;
    box-shadow: 0 18px 40px rgba(16, 27, 45, 0.20);
}

.expert-banner-background {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 80% 50%,
            rgba(230, 57, 70, 0.22),
            transparent 35%
        ),
        linear-gradient(
            110deg,
            #0a1321 0%,
            #101b2d 58%,
            #19283e 100%
        );
}

.homepage-expert-pedro .expert-banner-background {
    background:
        radial-gradient(
            circle at 75% 50%,
            rgba(242, 140, 40, 0.22),
            transparent 35%
        ),
        linear-gradient(
            110deg,
            #0a1321 0%,
            #101b2d 58%,
            #19283e 100%
        );
}

.homepage-expert-pablo .expert-banner-background {
    background:
        radial-gradient(
            circle at 75% 50%,
            rgba(230, 57, 70, 0.25),
            transparent 35%
        ),
        linear-gradient(
            110deg,
            #0a1321 0%,
            #101b2d 58%,
            #19283e 100%
        );
}

.expert-banner-photo {
    position: relative;
    z-index: 2;
    align-self: stretch;
    width: 340px;
    min-height: 300px;
    flex: 0 0 340px;
}

.expert-banner-photo::after {
    position: absolute;
    top: 0;
    right: -1px;
    bottom: 0;
    width: 100px;
    background:
        linear-gradient(
            90deg,
            transparent,
            #0b1525
        );
    content: "";
}

.expert-banner-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.expert-banner-content {
    position: relative;
    z-index: 3;
    padding: 38px 42px;
    color: var(--white);
}

.expert-banner-label {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--orange-color);
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.homepage-expert-pablo .expert-banner-label {
    color: #ff6470;
}

.expert-banner-content h2 {
    margin: 0;
    color: var(--white);
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1;
}

.expert-banner-role {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 16px;
}

.expert-banner-plan {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 18px;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
    font-size: 16px;
    font-weight: 800;
}

.expert-banner-plan i {
    color: var(--orange-color);
}

.homepage-expert-pablo .expert-banner-plan i {
    color: #ff6470;
}

.expert-banner-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.expert-banner-phone,
.expert-banner-button,
.expert-banner-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 900;
}

.expert-banner-phone {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.20);
    background: rgba(255, 255, 255, 0.05);
}

.expert-banner-phone:hover {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.40);
}

.expert-banner-button {
    background: var(--accent-color);
    color: var(--white);
}

.expert-banner-button:hover {
    background: var(--orange-color);
    color: var(--primary-color);
}

.expert-banner-whatsapp {
    background: #25d366;
    color: var(--white);
}

.expert-banner-whatsapp:hover {
    background: #1ebe5d;
    color: var(--white);
}

.expert-banner-mark {
    position: absolute;
    z-index: 1;
    right: 35px;
    bottom: 18px;
    color: rgba(255, 255, 255, 0.035);
    font-size: 130px;
    font-weight: 900;
    line-height: 1;
    user-select: none;
}


/* =========================================================
   LOGROS
========================================================= */

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

.homepage-achievements-grid {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    grid-template-rows: repeat(2, 250px);
    gap: 24px;
}

.homepage-achievement-card {
    position: relative;
    overflow: hidden;
    min-height: 0;
    border-radius: 14px;
    background: var(--primary-color);
    box-shadow: 0 9px 25px rgba(16, 27, 45, 0.12);
}

.homepage-achievement-card:first-child {
    grid-row: 1 / 3;
}

.homepage-achievement-card > a {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 250px;
    color: var(--white);
}

.homepage-achievement-media {
    position: absolute;
    inset: 0;
}

.homepage-achievement-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.homepage-achievement-card:hover .homepage-achievement-media img {
    transform: scale(1.045);
}

.homepage-achievement-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #263750, #101b2d);
}

.homepage-achievement-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            0deg,
            rgba(7, 15, 27, 0.90) 0%,
            rgba(7, 15, 27, 0.38) 55%,
            rgba(7, 15, 27, 0.04) 100%
        );
}

.homepage-achievement-content {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    padding: clamp(18px, 2vw, 28px);
}

.homepage-achievement-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 75px;
    padding: 6px 8px;
    border-radius: 4px;
    background: var(--orange-color);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.homepage-pick-label {
    background: var(--accent-color);
    color: var(--white);
}

.homepage-achievement-content h3 {
    max-width: 720px;
    margin-top: 0;
    color: var(--white);
    font-size: clamp(1rem, 1.35vw, 1.25rem);
    font-weight: 900;
    line-height: 1.3;
    overflow-wrap: normal;
    hyphens: manual;
}

.homepage-achievement-featured .homepage-achievement-content h3 {
    font-size: clamp(1.35rem, 2.2vw, 1.9rem);
}

.homepage-achievement-author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 16px;
    font-weight: 800;
}

.homepage-achievement-author i {
    color: var(--orange-color);
}

.homepage-achievement-read {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 2px;
    padding: 8px 12px;
    border-radius: 5px;
    background: var(--accent-color);
    color: var(--white);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.homepage-achievement-read:hover,
.homepage-achievement-card:hover .homepage-achievement-read {
    background: #cf2e3b;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(230, 57, 70, 0.28);
}

.homepage-pick-read {
    background: var(--orange-color);
    color: var(--primary-color);
}

.homepage-pick-read:hover,
.homepage-pick-card:hover .homepage-pick-read {
    background: #ff9f3d;
    color: var(--primary-color);
    box-shadow: 0 6px 18px rgba(242, 140, 40, 0.3);
}

.homepage-achievement-read:focus-visible {
    outline: 3px solid var(--white);
    outline-offset: 3px;
}

.homepage-achievement-read i {
    transition: transform 0.25s ease;
}

.homepage-achievement-card:hover .homepage-achievement-read i {
    transform: translateX(4px);
}


/* =========================================================
   ESTADO VACÍO
========================================================= */

.homepage-empty {
    padding: 30px;
    border: 1px dashed rgba(16, 27, 45, 0.15);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.65);
    color: #687587;
    text-align: center;
}


/* =========================================================
   ÚLTIMAS NOTICIAS
========================================================= */

.homepage-news-section {
    background: var(--white);
}

.homepage-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.homepage-news-card {
    overflow: hidden;
    border-radius: 13px;
    background: var(--white);
    box-shadow: 0 7px 22px rgba(16, 27, 45, 0.07);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.homepage-news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 32px rgba(16, 27, 45, 0.13);
}

.homepage-news-card > a {
    display: block;
    height: 100%;
}

.homepage-news-image {
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--primary-color);
}

.homepage-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.homepage-news-card:hover .homepage-news-image img {
    transform: scale(1.045);
}

.homepage-news-content {
    padding: 19px 20px 20px;
}

.homepage-news-content .homepage-small-category {
    margin-bottom: 9px;
}

.homepage-news-content h3 {
    color: var(--primary-color);
    font-size: 19px;
    font-weight: 900;
    line-height: 1.32;
}

.homepage-news-content p {
    margin-top: 10px;
    color: #687587;
    font-size: 16px;
    line-height: 1.6;
}

.homepage-news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 17px;
    padding-top: 13px;
    border-top: 1px solid rgba(16, 27, 45, 0.08);
    color: #7a8594;
    font-size: 16px;
}

.homepage-news-meta > span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.homepage-news-arrow {
    display: flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.homepage-news-card:hover .homepage-news-arrow {
    background: var(--accent-color);
    transform: translate(2px, -2px);
}


/* =========================================================
   DEPORTES
========================================================= */

.homepage-sports {
    padding: 65px 0 72px;
    background: var(--primary-color);
}

.homepage-sports-header {
    max-width: 680px;
    margin: 0 auto 30px;
    text-align: center;
}

.homepage-sports-header .homepage-section-label {
    color: var(--orange-color);
}

.homepage-sports-header h2 {
    color: var(--white);
    font-size: clamp(30px, 5vw, 42px);
    font-weight: 900;
    line-height: 1.1;
}

.homepage-sports-header p {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 16px;
}

.homepage-sports-nav {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.homepage-sport-item {
    display: flex;
    min-height: 100px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--white);
    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.homepage-sport-item:hover {
    transform: translateY(-4px);
    border-color: rgba(242, 140, 40, 0.65);
    background: rgba(255, 255, 255, 0.09);
    color: var(--white);
}

.homepage-sport-icon {
    display: flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--accent-color);
    color: var(--white);
    font-size: 18px;
}

.homepage-sport-item > span:not(.homepage-sport-icon) {
    margin-top: 12px;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.03em;
}

.homepage-sport-item > i {
    align-self: flex-end;
    margin-top: -16px;
    color: var(--orange-color);
    transition: transform 0.2s ease;
}

.homepage-sport-item:hover > i {
    transform: translateX(4px);
}


/* =========================================================
   RESPONSIVE DEL NUEVO HOMEPAGE
========================================================= */

@media (max-width: 1100px) {

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

    .homepage-sports-nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .expert-banner-photo {
        width: 290px;
        flex-basis: 290px;
    }
}


@media (max-width: 900px) {

    .homepage-featured-card,
    .homepage-featured-link,
    .homepage-featured-placeholder {
        min-height: 500px;
    }

    .homepage-featured-content {
        width: 88%;
        padding: 34px;
    }

    .homepage-secondary-news {
        grid-template-columns: 1fr;
    }

    .homepage-secondary-card > a {
        display: grid;
        grid-template-columns: 220px minmax(0, 1fr);
        flex-direction: row;
    }

    .homepage-secondary-image {
        aspect-ratio: auto;
        min-height: 150px;
    }

    .homepage-achievements-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 260px 260px;
    }

    .homepage-achievement-card:first-child {
        grid-row: 1 / 3;
    }

    .expert-banner-photo {
        width: 250px;
        flex-basis: 250px;
    }

    .expert-banner-content {
        padding: 30px;
    }
}


@media (max-width: 700px) {

    .homepage-hero {
        padding-top: 25px;
        padding-bottom: 38px;
    }

    .homepage-hero-header {
        margin-bottom: 17px;
    }

    .homepage-hero-header h1 {
        font-size: 34px;
    }

    .homepage-hero-header p {
        font-size: 16px;
    }

    .homepage-featured-card,
    .homepage-featured-link {
        min-height: 470px;
    }

    .homepage-featured-placeholder {
        min-height: 470px;
    }

    .homepage-featured-overlay {
        background:
            linear-gradient(
                0deg,
                rgba(7, 15, 27, 0.94) 0%,
                rgba(7, 15, 27, 0.62) 55%,
                rgba(7, 15, 27, 0.15) 100%
            );
    }

    .homepage-featured-content {
        width: 100%;
        padding: 24px;
    }

    .homepage-featured-content h2 {
        font-size: 30px;
    }

    .homepage-featured-content p {
        margin-top: 11px;
        font-size: 16px;
    }

    .homepage-secondary-news {
        gap: 12px;
        margin-top: 12px;
    }

    .homepage-secondary-card > a {
        grid-template-columns: 125px minmax(0, 1fr);
    }

    .homepage-secondary-image {
        min-height: 115px;
    }

    .homepage-secondary-content {
        padding: 13px 14px;
    }

    .homepage-secondary-content h3 {
        font-size: 16px;
        line-height: 1.28;
    }

    .homepage-small-category {
        padding: 5px 6px;
        margin-bottom: 6px;
        font-size: 16px;
    }

    .homepage-card-meta {
        margin-top: 8px;
        font-size: 16px;
    }

    .homepage-section {
        padding: 44px 0;
    }

    .homepage-section-heading {
        display: block;
        margin-bottom: 22px;
    }

    .homepage-section-title {
        font-size: 28px;
    }

    .homepage-section-description {
        font-size: 16px;
    }

    .homepage-section-link {
        margin-top: 15px;
    }

    /* Expert banners */

    .homepage-expert-banner {
        padding: 12px 0;
    }

    .expert-banner {
        display: block;
        min-height: 0;
        padding-top: 0;
    }

    .expert-banner-photo {
        width: 100%;
        display: flex;
        justify-content: center;
        height: clamp(240px, 75vw, 340px);
        min-height: 0;
        background: #0b1525;
    }

    .expert-banner-photo::after {
        display: none;
    }

    .expert-banner-photo img {
        width: auto;
        max-width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }

    .expert-banner-content {
        position: relative;
        margin-top: 0;
        padding: 22px clamp(18px, 5vw, 28px) 26px;
    }

    .expert-banner-content h2 {
        font-size: clamp(1.8rem, 8vw, 2.25rem);
    }

    .expert-banner-role {
        font-size: 16px;
    }

    .expert-banner-plan {
        margin-top: 13px;
        font-size: 16px;
    }

    .expert-banner-actions {
        margin-top: 15px;
    }

    .expert-banner-phone,
    .expert-banner-button,
    .expert-banner-whatsapp {
        min-height: 40px;
        padding: 9px 12px;
        font-size: 16px;
    }

    .expert-banner-mark {
        right: 15px;
        bottom: 18px;
        font-size: 75px;
    }

    /* Logros */

    .homepage-achievements-grid {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 330px 220px 220px;
        gap: 12px;
    }

    .homepage-achievement-card:first-child {
        grid-row: auto;
    }

    .homepage-achievement-card {
        min-height: 220px;
    }

    .homepage-achievement-card > a {
        min-height: 220px;
    }

    .homepage-achievement-content {
        gap: 8px;
        padding: 16px;
    }

    .homepage-achievement-content h3,
    .homepage-achievement-featured .homepage-achievement-content h3 {
        font-size: 18px;
    }

    /* Noticias */

    .homepage-news-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .homepage-news-content {
        padding: 16px;
    }

    .homepage-news-content h3 {
        font-size: 17px;
    }

    /* Deportes */

    .homepage-sports {
        padding: 46px 0 52px;
    }

    .homepage-sports-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .homepage-sport-item {
        min-height: 90px;
        padding: 13px;
    }
}


@media (max-width: 480px) {

    .homepage-featured-card,
    .homepage-featured-link {
        min-height: 440px;
    }

    .homepage-featured-placeholder {
        min-height: 440px;
    }

    .homepage-featured-content {
        padding: 20px;
    }

    .homepage-featured-content h2 {
        font-size: 27px;
    }

    .homepage-featured-content p {
        display: none;
    }

    .homepage-category {
        padding: 6px 8px;
        margin-bottom: 11px;
        font-size: 16px;
    }

    .homepage-read-more {
        margin-top: 17px;
        font-size: 16px;
    }

    .homepage-secondary-card > a {
        grid-template-columns: 105px minmax(0, 1fr);
    }

    .homepage-secondary-image {
        min-height: 105px;
    }

    .homepage-secondary-content h3 {
        font-size: 16px;
    }

    .homepage-achievements-grid {
        grid-template-rows: minmax(280px, auto) repeat(2, minmax(220px, auto));
        gap: 16px;
    }

    .homepage-achievement-content h3,
    .homepage-achievement-featured .homepage-achievement-content h3 {
        font-size: 17px;
    }

    .expert-banner-photo {
        height: min(88vw, 320px);
        min-height: 0;
    }

    .expert-banner-content {
        padding-right: 18px;
        padding-left: 18px;
    }

    .expert-banner-content h2 {
        font-size: clamp(1.8rem, 8vw, 2.25rem);
    }

    .expert-banner-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .expert-banner-phone,
    .expert-banner-button,
    .expert-banner-whatsapp {
        justify-content: center;
        width: 100%;
    }

    .homepage-sports-nav {
        grid-template-columns: 1fr 1fr;
    }

    .homepage-sport-item {
        min-height: 82px;
    }
}


/* =========================================================
   ACCESIBILIDAD / FOCUS
========================================================= */

.homepage a:focus-visible,
.homepage button:focus-visible {
    outline: 3px solid var(--orange-color);
    outline-offset: 3px;
}


/* =========================================================
   REDUCE MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .homepage *,
    .homepage *::before,
    .homepage *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
