/*
Theme Name: El Caballo del Folklor
Theme URI: https://elcaballodelfolklor.com/
Author: Juan Sierra
Description: Tema personalizado para El Caballo del Folklor.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.3
Text Domain: caballo-folklor
*/
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f1f1f1;
    color: #111;
}

.site-header {
    background: #062d5c;
    color: #fff;
}

.site-header__container {
    max-width: 1200px;
    min-height: 95px;
    margin: 0 auto;
    padding: 10px 25px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.site-logo a {
    display: flex;
    align-items: center;
}

.site-logo img {
    display: block;
    width: 180px;
    height: auto;
}

.site-navigation {
    display: flex;
    align-items: center;
}

.site-navigation ul {
    display: flex;
    align-items: center;
    gap: 28px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.site-navigation li {
    margin: 0;
    padding: 0;
}

.site-navigation a {
    display: block;

    color: #fff;
    text-decoration: none;

    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;

    transition: color 0.2s ease;
}

.site-navigation a:hover {
    color: #e31e24;
}

main {
    max-width: 1200px;
    min-height: 600px;
    margin: 30px auto;
    padding: 50px 30px;
    background: #fff;
}

main h1 {
    color: #062d5c;
    font-size: 42px;
}

.site-footer {
    background: #062d5c;
    color: #fff;
    padding: 60px 25px;
}

.site-footer__container {
    max-width: 1200px;
    margin: 0 auto;
}

.site-footer h2 {
    font-size: 42px;
    margin: 0 0 20px;
}

@media (max-width: 768px) {

    .site-header__container {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-navigation {
        flex-direction: column;
        gap: 10px;
    }

    main h1 {
        font-size: 32px;
    }
}

/* =========================================================
   HOME
========================================================= */

.home {
    background: #f2f3f5;
}

/* =========================================================
   HERO
========================================================= */

.hero {
    min-height: 500px;
    display: flex;
    align-items: center;

    background:
        linear-gradient(
            90deg,
            rgba(3, 39, 82, 0.95),
            rgba(3, 39, 82, 0.65)
        ),
        linear-gradient(
            135deg,
            #123e70,
            #071f43
        );

    color: #fff;
}

.hero__content {
    width: 1200px;
    max-width: calc(100% - 50px);
    margin: 0 auto;
    padding: 80px 25px;
}

.hero__category {
    display: inline-block;
    margin-bottom: 20px;

    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;

    color: #e51e2a;
}

.hero h1 {
    max-width: 700px;
    margin: 0 0 20px;

    font-size: clamp(42px, 6vw, 76px);
    line-height: 1;
    font-weight: 900;
}

.hero p {
    max-width: 600px;
    margin-bottom: 35px;

    font-size: 20px;
    line-height: 1.6;
}

.hero__buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* =========================================================
   BUTTONS
========================================================= */

.btn {
    display: inline-block;

    padding: 14px 25px;

    border-radius: 3px;

    text-decoration: none;
    font-weight: 800;

    transition: 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn--primary {
    background: #e21d2a;
    color: #fff;
}

.btn--secondary {
    background: #fff;
    color: #092f5c;
}

.btn--light {
    background: #fff;
    color: #092f5c;
}

/* =========================================================
   SECTIONS
========================================================= */

.home-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 25px;
}

.home-section--gray {
    max-width: none;
    padding-left: max(25px, calc((100% - 1150px) / 2));
    padding-right: max(25px, calc((100% - 1150px) / 2));
    background: #e9ebee;
}

.section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 35px;
}

.section-header__eyebrow {
    display: block;

    margin-bottom: 8px;

    color: #e21d2a;

    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2px;
}

.section-header h2 {
    margin: 0;

    color: #092f5c;

    font-size: 38px;
    font-weight: 900;
}

.section-header__link {
    color: #092f5c;

    font-weight: 800;
    text-decoration: none;
}

/* =========================================================
   NEWS
========================================================= */

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.news-card {
    overflow: hidden;

    background: #fff;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.news-card__image {
    height: 220px;

    display: flex;
    align-items: end;

    padding: 20px;

    background:
        linear-gradient(
            135deg,
            #123e70,
            #071f43
        );

    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.news-card__content {
    padding: 25px;
}

.news-card__date {
    color: #e21d2a;

    font-size: 12px;
    font-weight: 800;
}

.news-card h3 {
    margin: 10px 0;

    color: #092f5c;

    font-size: 22px;
    line-height: 1.2;
}

.news-card p {
    color: #555;
    line-height: 1.6;
}

.news-card a {
    color: #092f5c;

    font-weight: 800;
    text-decoration: none;
}

/* =========================================================
   FEATURED EVENT
========================================================= */

.featured-event {
    background: #092f5c;
    color: #fff;
}

.featured-event__content {
    max-width: 1200px;
    margin: 0 auto;

    padding: 80px 25px;
}

.featured-event h2 {
    margin: 10px 0 15px;

    font-size: 44px;
}

.featured-event p {
    max-width: 650px;

    color: rgba(255, 255, 255, 0.8);

    font-size: 18px;
    line-height: 1.6;
}

.event-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    max-width: 750px;

    margin: 35px 0;

    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.event-info div {
    padding: 25px;

    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.event-info div:last-child {
    border-right: 0;
}

.event-info strong,
.event-info span {
    display: block;
}

.event-info strong {
    font-size: 22px;
}

.event-info span {
    margin-top: 5px;

    color: rgba(255, 255, 255, 0.65);
}

/* =========================================================
   RANKING
========================================================= */

.ranking {
    background: #fff;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

.ranking__header,
.ranking__row {
    display: grid;
    grid-template-columns: 100px 1fr 120px;

    align-items: center;
}

.ranking__header {
    padding: 15px 25px;

    background: #092f5c;
    color: #fff;

    font-size: 12px;
    font-weight: 800;
}

.ranking__row {
    padding: 18px 25px;

    border-bottom: 1px solid #eee;
}

.ranking__athlete {
    display: flex;
    align-items: center;
    gap: 15px;

    color: #092f5c;
    font-weight: 800;
}

.ranking__avatar {
    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #e21d2a;
    color: #fff;

    font-weight: 900;
}

/* =========================================================
   COMPETITIONS
========================================================= */

.competitions {
    background: #fff;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

.competition {
    display: grid;
    grid-template-columns: 100px 1fr auto;

    align-items: center;
    gap: 25px;

    padding: 25px;

    border-bottom: 1px solid #eee;
}

.competition__date {
    text-align: center;

    color: #e21d2a;
}

.competition__date strong {
    display: block;

    font-size: 34px;
    line-height: 1;
}

.competition__date span {
    font-size: 12px;
    font-weight: 900;
}

.competition__info > span {
    color: #e21d2a;

    font-size: 11px;
    font-weight: 900;
}

.competition__info h3 {
    margin: 5px 0;

    color: #092f5c;
}

.competition__info p {
    margin: 0;

    color: #666;
}

.competition__link {
    color: #092f5c;

    font-weight: 900;
    text-decoration: none;
}

/* =========================================================
   VIDEOS
========================================================= */

.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.video-card__image {
    height: 230px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #123e70,
            #071f43
        );
}

.video-card__play {
    width: 65px;
    height: 65px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #e21d2a;
    color: #fff;

    font-size: 22px;
}

.video-card h3 {
    margin: 15px 0 0;

    color: #092f5c;
}

/* =========================================================
   VIDEOS RELACIONADOS - COMPETENCIA
========================================================= */

.competencia-single__videos {
    margin-top: 50px;
}

.competencia-single__videos-header {
    margin-bottom: 25px;
}

.competencia-single__videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.competencia-single__videos .video-card {
    display: flex;
    flex-direction: column;

    background: #fff;
    border: 1px solid #e5e7eb;

    overflow: hidden;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

.competencia-single__videos .video-card__image {
    display: block;

    width: 100%;
    height: 190px;

    overflow: hidden;

    background: #092f5c;
}

.competencia-single__videos .video-card__image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.competencia-single__videos .video-card__content {
    display: flex;
    flex-direction: column;

    padding: 20px;

    flex: 1;
}

.competencia-single__videos .video-card__content h3 {
    margin: 0 0 12px;

    font-size: 20px;
    line-height: 1.3;
}

.competencia-single__videos .video-card__content h3 a {
    color: #092f5c;
    text-decoration: none;
}

.competencia-single__videos .video-card__content h3 a:hover {
    text-decoration: underline;
}

.competencia-single__videos .video-card__content p {
    margin: 0 0 20px;

    color: #666;

    font-size: 14px;
    line-height: 1.6;
}

.competencia-single__videos .video-card__content .button {
    align-self: flex-start;

    margin-top: auto;
}

/* =========================================================
   RESPONSIVE - VIDEOS RELACIONADOS
========================================================= */

@media (max-width: 900px) {

    .competencia-single__videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 600px) {

    .competencia-single__videos-grid {
        grid-template-columns: 1fr;
    }

    .competencia-single__videos .video-card__image {
        height: 220px;
    }

}

/* =========================================================
   CTA
========================================================= */

.competition-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    padding: 70px max(25px, calc((100% - 1150px) / 2));

    background: #e21d2a;
    color: #fff;
}

.competition-cta span {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2px;
}

.competition-cta h2 {
    max-width: 700px;

    margin: 10px 0;

    font-size: 38px;
}

.competition-cta p {
    margin: 0;

    opacity: 0.9;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .news-grid,
    .videos-grid {
        grid-template-columns: 1fr 1fr;
    }

    .event-info {
        grid-template-columns: 1fr;
    }

    .event-info div {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .competition-cta {
        flex-direction: column;
        align-items: flex-start;
    }

}

@media (max-width: 650px) {

    .hero {
        min-height: 450px;
    }

    .news-grid,
    .videos-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .competition {
        grid-template-columns: 70px 1fr;
    }

    .competition__link {
        display: none;
    }

    .ranking__header,
    .ranking__row {
        grid-template-columns: 60px 1fr 70px;
    }

    .competition-cta h2 {
        font-size: 30px;
    }

}

/* =========================================================
   EL CABALLO DEL FOLKLOR
   Estilos de la página principal
   ========================================================= */

/* Variables */
:root {
    --cf-blue: #082f5f;
    --cf-blue-dark: #061f40;
    --cf-blue-light: #0d437f;
    --cf-red: #d71920;
    --cf-gray: #f2f3f5;
    --cf-border: #e1e4e8;
    --cf-text: #1c1c1c;
    --cf-white: #ffffff;
}


/* Contenedor general */
.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;
    background:
        linear-gradient(
            90deg,
            rgba(6, 31, 64, 0.98),
            rgba(8, 47, 95, 0.90)
        );
    color: #ffffff;
    min-height: 430px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -180px;
    width: 500px;
    height: 500px;
    border: 80px solid rgba(255, 255, 255, 0.04);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 70px 0;
}

.hero-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffffff;
    margin-bottom: 15px;
    border-left: 4px solid var(--cf-red);
    padding-left: 12px;
}

.hero h1 {
    margin: 0 0 20px;
    color: #ffffff;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero p {
    max-width: 620px;
    margin: 0 0 30px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.7;
}


/* =========================================================
   BOTONES
   ========================================================= */

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-block;
    padding: 13px 24px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--cf-red);
    color: #ffffff;
}

.btn-primary:hover {
    background: #b9151b;
    color: #ffffff;
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: #ffffff;
}

.btn-secondary:hover {
    background: #ffffff;
    color: var(--cf-blue);
}


/* =========================================================
   SECCIONES
   ========================================================= */

.section {
    padding: 70px 0;
}

.section-gray {
    background: var(--cf-gray);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 35px;
}

.section-label {
    display: block;
    margin-bottom: 7px;
    color: var(--cf-red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.section h2 {
    margin: 0;
    color: var(--cf-blue);
    font-size: 34px;
    line-height: 1.15;
    font-weight: 800;
}

.section-link {
    color: var(--cf-blue);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.section-link:hover {
    color: var(--cf-red);
}


/* =========================================================
   COMPETENCIAS
   ========================================================= */

.competitions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.competition-card {
    display: flex;
    background: #ffffff;
    border: 1px solid var(--cf-border);
    min-height: 150px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.competition-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.competition-date {
    width: 90px;
    min-width: 90px;
    background: var(--cf-blue);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.competition-date span {
    font-size: 13px;
    font-weight: 700;
}

.competition-date strong {
    font-size: 38px;
    line-height: 1;
}

.competition-info {
    padding: 22px;
}

.competition-status {
    color: var(--cf-red);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.competition-info h3 {
    margin: 8px 0;
    color: var(--cf-blue);
    font-size: 18px;
}

.competition-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
}


/* =========================================================
   NOTICIAS
   ========================================================= */

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    background: #ffffff;
    border: 1px solid var(--cf-border);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.news-image {
    height: 210px;
    background: var(--cf-blue-dark);
    overflow: hidden;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
}

.news-content {
    padding: 22px;
}

.news-category {
    color: var(--cf-red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.news-content h3 {
    margin: 10px 0;
    color: var(--cf-blue);
    font-size: 20px;
    line-height: 1.3;
}

.news-content p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}


/* =========================================================
   CLASIFICACIONES
   ========================================================= */

.ranking {
    background: #ffffff;
    border: 1px solid var(--cf-border);
}

.ranking-header,
.ranking-row {
    display: grid;
    grid-template-columns: 100px 1fr 100px;
    align-items: center;
}

.ranking-header {
    background: var(--cf-blue);
    color: #ffffff;
    padding: 15px 20px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.ranking-row {
    padding: 18px 20px;
    border-bottom: 1px solid var(--cf-border);
}

.ranking-row:last-child {
    border-bottom: 0;
}

.ranking-row strong:first-child {
    color: var(--cf-red);
    font-size: 18px;
}

.ranking-row span {
    color: var(--cf-blue);
    font-weight: 700;
}

.ranking-row strong:last-child {
    text-align: right;
    color: var(--cf-blue);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .competitions-grid,
    .news-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero {
        min-height: 380px;
    }

}


@media (max-width: 650px) {

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .section {
        padding: 50px 0;
    }

    .section-header {
        display: block;
    }

    .section-link {
        display: inline-block;
        margin-top: 15px;
    }

    .competitions-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 55px 0;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero p {
        font-size: 16px;
    }

    .ranking-header,
    .ranking-row {
        grid-template-columns: 60px 1fr 70px;
    }

}

/* =========================================
   NOTICIAS
========================================= */

.noticias-page {
    padding: 70px 0 90px;
}

.noticias-header {
    margin-bottom: 45px;
}

.section-label {
    display: block;
    margin-bottom: 10px;
    color: #e31b23;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.noticias-header h1 {
    margin: 0 0 15px;
    color: #0b3768;
    font-size: 42px;
    line-height: 1.1;
}

.noticias-header p {
    margin: 0;
    color: #666;
    font-size: 17px;
}

/* GRID */

.noticias-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* CARD */

.noticia-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.noticia-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

/* IMAGE */

.noticia-image {
    display: block;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #082d56;
}

.noticia-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.noticia-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
}

/* CONTENT */

.noticia-content {
    padding: 25px;
}

.noticia-category {
    display: block;
    margin-bottom: 10px;

    color: #e31b23;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.noticia-content h2 {
    margin: 0 0 10px;
    font-size: 21px;
    line-height: 1.25;
}

.noticia-content h2 a {
    color: #0b3768;
    text-decoration: none;
}

.noticia-content h2 a:hover {
    color: #e31b23;
}

.noticia-date {
    margin-bottom: 15px;
    color: #888;
    font-size: 12px;
}

.noticia-content p {
    margin: 0 0 20px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.noticia-link {
    color: #0b3768;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.noticia-link:hover {
    color: #e31b23;
}

/* SIN NOTICIAS */

.noticias-empty {
    padding: 50px;
    text-align: center;
    background: #f3f4f5;
}

.noticias-empty h2 {
    color: #0b3768;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {

    .noticias-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 600px) {

    .noticias-page {
        padding: 45px 20px 60px;
    }

    .noticias-header h1 {
        font-size: 32px;
    }

    .noticias-grid {
        grid-template-columns: 1fr;
    }

}

/* =========================================
   NOTICIA INDIVIDUAL
========================================= */

.single-noticia {
    padding: 70px 0 90px;
}

.noticia-single {
    max-width: 900px;
    margin: 0 auto;
}

.noticia-single-header {
    margin-bottom: 35px;
}

.noticia-single-header h1 {
    margin: 0 0 15px;
    color: #0b3768;
    font-size: 46px;
    line-height: 1.15;
}

.noticia-single-meta {
    color: #777;
    font-size: 14px;
}

/* IMAGEN PRINCIPAL */

.noticia-single-image {
    width: 100%;
    margin-bottom: 40px;
    overflow: hidden;
}

.noticia-single-image img {
    display: block;
    width: 100%;
    height: auto;
}

/* CONTENIDO */

.noticia-single-content {
    color: #333;
    font-size: 17px;
    line-height: 1.8;
}

.noticia-single-content p {
    margin: 0 0 25px;
}

.noticia-single-content h2 {
    margin-top: 40px;
    margin-bottom: 15px;
    color: #0b3768;
    font-size: 30px;
}

.noticia-single-content h3 {
    margin-top: 30px;
    color: #0b3768;
}

.noticia-single-content img {
    max-width: 100%;
    height: auto;
}

/* FOOTER DE LA NOTICIA */

.noticia-single-footer {
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid #ddd;
}

.noticia-back {
    color: #0b3768;
    font-weight: 700;
    text-decoration: none;
}

.noticia-back:hover {
    color: #e31b23;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 600px) {

    .single-noticia {
        padding: 45px 20px 60px;
    }

    .noticia-single-header h1 {
        font-size: 34px;
    }

    .noticia-single-content {
        font-size: 16px;
    }

}

/* =========================================================
   PÁGINA DE COMPETENCIAS
   ========================================================= */

.competencias-page {
    background: #ffffff;
}

/* Encabezado de página */
.competencias-page .page-header {
    padding: 55px 0 35px;
}

.competencias-page .page-header h1 {
    margin: 8px 0 10px;
    color: #0b3564;
    font-size: 42px;
    line-height: 1.1;
    font-weight: 800;
}

.competencias-page .page-header p {
    margin: 0;
    color: #5f6b76;
    font-size: 17px;
}

/* Sección principal */
.competencias-section {
    padding: 20px 0 70px;
}

.competencias-page .section-title-row {
    margin-bottom: 30px;
}

.competencias-page .section-title-row h2 {
    margin: 6px 0 0;
    color: #0b3564;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 800;
}

/* Etiquetas pequeñas */
.competencias-page .section-label,
.competencia-estado {
    display: inline-block;
    color: #e31b23;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Grid de competencias */
.competencias-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

/* Tarjeta */
.competencia-card {
    display: flex;
    min-height: 230px;
    background: #ffffff;
    border: 1px solid #e2e6ea;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.competencia-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10);
}

/* Fecha */
.competencia-fecha {
    width: 90px;
    min-width: 90px;
    background: #0b3564;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.competencia-fecha .mes {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}

.competencia-fecha strong {
    margin-top: 4px;
    font-size: 38px;
    line-height: 1;
}

/* Información */
.competencia-info {
    padding: 25px 22px;
}

.competencia-info h3 {
    margin: 9px 0 10px;
    color: #0b3564;
    font-size: 19px;
    line-height: 1.25;
    font-weight: 800;
}

.competencia-info p {
    margin: 0 0 10px;
    color: #66717c;
    font-size: 14px;
    line-height: 1.5;
}

.competencia-info .competencia-lugar {
    color: #25313c;
    font-weight: 600;
}

.competencia-link {
    display: inline-block;
    margin-top: 8px;
    color: #0b3564;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.competencia-link:hover {
    color: #e31b23;
}

/* Responsive - tablet */
@media (max-width: 900px) {

    .competencias-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

/* Responsive - celular */
@media (max-width: 600px) {

    .competencias-page .page-header {
        padding: 35px 0 25px;
    }

    .competencias-page .page-header h1 {
        font-size: 32px;
    }

    .competencias-grid {
        grid-template-columns: 1fr;
    }

    .competencia-card {
        min-height: 210px;
    }

}

/* =========================================
   RESULTADOS
   ========================================= */

.page-resultados {
    max-width: 980px;
    margin: 0 auto;
    padding: 70px 40px 90px;
    background: #ffffff;
}

/* Encabezado */

.page-resultados .page-header {
    margin-bottom: 55px;
}

.page-resultados .page-header h1 {
    margin: 10px 0 8px;
    color: #0b3b70;
    font-size: 42px;
    line-height: 1.1;
}

.page-resultados .page-header p {
    margin: 0;
    color: #667085;
    font-size: 16px;
}

/* Filtro */

.results-filter {
    margin-bottom: 60px;
    padding: 30px;
    background: #f2f4f7;
    border-left: 4px solid #e31b23;
}

.results-filter-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.results-filter h2 {
    margin: 8px 0 0;
    color: #0b3b70;
    font-size: 24px;
}

.results-filter select {
    min-width: 280px;
    height: 48px;
    padding: 0 15px;
    border: 1px solid #d0d5dd;
    background: #ffffff;
    color: #173b63;
    font-size: 15px;
}

/* Sección de resultados */

.results-section {
    margin-top: 20px;
}

.section-heading {
    margin-bottom: 25px;
}

.section-heading h2 {
    margin: 8px 0;
    color: #0b3b70;
    font-size: 30px;
}

.section-heading p {
    margin: 0;
    color: #667085;
}

/* Tabla */

.results-table-wrapper {
    overflow-x: auto;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.results-table thead {
    background: #0b3b70;
    color: #ffffff;
}

.results-table th {
    padding: 16px 18px;
    text-align: left;
    font-size: 12px;
    letter-spacing: 1px;
}

.results-table td {
    padding: 18px;
    border-bottom: 1px solid #e4e7ec;
    color: #173b63;
    font-size: 15px;
}

.results-table tbody tr:last-child td {
    border-bottom: none;
}

.results-table .position {
    width: 70px;
    color: #e31b23;
    font-weight: 700;
}

.results-table .points {
    text-align: right;
    font-weight: 700;
}

/* Responsive */

@media (max-width: 768px) {

    .page-resultados {
        padding: 45px 20px 60px;
    }

    .page-resultados .page-header h1 {
        font-size: 34px;
    }

    .results-filter-header {
        flex-direction: column;
        align-items: stretch;
    }

    .results-filter select {
        width: 100%;
        min-width: 0;
    }

    .results-table th,
    .results-table td {
        padding: 12px;
    }
}

/* =========================================
   CLASIFICACIONES
   ========================================= */

.page-clasificaciones {
    max-width: 980px;
    margin: 0 auto;
    padding: 70px 40px 90px;
    background: #ffffff;
}

/* Encabezado */

.page-clasificaciones .page-header {
    margin-bottom: 55px;
}

.page-clasificaciones .page-header h1 {
    margin: 10px 0 8px;
    color: #0b3b70;
    font-size: 42px;
    line-height: 1.1;
}

.page-clasificaciones .page-header p {
    margin: 0;
    color: #667085;
    font-size: 16px;
}

/* Filtro */

.classification-filter {
    margin-bottom: 60px;
    padding: 30px;
    background: #f2f4f7;
    border-left: 4px solid #e31b23;
}

.classification-filter-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.classification-filter h2 {
    margin: 8px 0 0;
    color: #0b3b70;
    font-size: 24px;
}

.classification-filter select {
    min-width: 280px;
    height: 48px;
    padding: 0 15px;
    border: 1px solid #d0d5dd;
    background: #ffffff;
    color: #173b63;
    font-size: 15px;
}

/* Sección */

.classification-section {
    margin-top: 20px;
}

.classification-section .section-heading {
    margin-bottom: 25px;
}

.classification-section .section-heading h2 {
    margin: 8px 0;
    color: #0b3b70;
    font-size: 30px;
}

.classification-section .section-heading p {
    margin: 0;
    color: #667085;
}

/* Tabla */

.classification-table-wrapper {
    overflow-x: auto;
}

.classification-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.classification-table thead {
    background: #0b3b70;
    color: #ffffff;
}

.classification-table th {
    padding: 16px 18px;
    text-align: left;
    font-size: 12px;
    letter-spacing: 1px;
}

.classification-table td {
    padding: 18px;
    border-bottom: 1px solid #e4e7ec;
    color: #173b63;
    font-size: 15px;
}

.classification-table tbody tr:last-child td {
    border-bottom: none;
}

.classification-table .position {
    width: 70px;
    color: #e31b23;
    font-weight: 700;
}

.classification-table .points {
    text-align: right;
    font-weight: 700;
}

/* Responsive */

@media (max-width: 768px) {

    .page-clasificaciones {
        padding: 45px 20px 60px;
    }

    .page-clasificaciones .page-header h1 {
        font-size: 34px;
    }

    .classification-filter-header {
        flex-direction: column;
        align-items: stretch;
    }

    .classification-filter select {
        width: 100%;
        min-width: 0;
    }

    .classification-table th,
    .classification-table td {
        padding: 12px;
    }
}

/* =========================================================
   COLEADORES
   ========================================================= */

.page-coleadores {
    background: #ffffff;
}

.page-coleadores .ecf-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 40px 80px;
}

/* Encabezado */

.page-coleadores .ecf-page-header {
    margin-bottom: 55px;
}

.page-coleadores .ecf-page-header h1 {
    margin: 10px 0 8px;
    color: #0b3b70;
    font-size: 42px;
    line-height: 1.15;
    font-weight: 700;
}

.page-coleadores .ecf-page-header p {
    margin: 0;
    color: #65758b;
    font-size: 16px;
}

/* Etiquetas pequeñas */

.page-coleadores .ecf-kicker {
    display: block;
    margin-bottom: 10px;
    color: #ed1c24;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* =========================================================
   BUSCADOR
   ========================================================= */

.page-coleadores .ecf-filter-box {
    margin-bottom: 60px;
    padding: 28px;
    background: #f1f4f8;
    border-left: 4px solid #ed1c24;
}

.page-coleadores .ecf-filter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.page-coleadores .ecf-filter-content h2 {
    margin: 0;
    color: #0b3b70;
    font-size: 23px;
}

.page-coleadores .ecf-filter-content form {
    display: flex;
    gap: 10px;
    min-width: 420px;
}

.page-coleadores .ecf-filter-content input {
    flex: 1;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #ccd5df;
    background: #ffffff;
    color: #163b63;
    font-size: 14px;
    box-sizing: border-box;
}

.page-coleadores .ecf-filter-content button {
    height: 42px;
    padding: 0 25px;
    border: 0;
    background: #0b3b70;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.page-coleadores .ecf-filter-content button:hover {
    background: #082f59;
}

/* =========================================================
   SECCIÓN
   ========================================================= */

.page-coleadores .ecf-section-heading {
    margin-bottom: 30px;
}

.page-coleadores .ecf-section-heading h2 {
    margin: 0 0 8px;
    color: #0b3b70;
    font-size: 30px;
}

.page-coleadores .ecf-section-heading p {
    margin: 0;
    color: #65758b;
    font-size: 15px;
}

/* =========================================================
   GRID DE COLEADORES
   ========================================================= */

.page-coleadores .coleadores-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* =========================================================
   TARJETA
   ========================================================= */

.page-coleadores .coleador-card {
    display: flex;
    min-height: 230px;
    background: #ffffff;
    border: 1px solid #dce3ea;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-coleadores .coleador-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.09);
}

/* Número */

.page-coleadores .coleador-avatar {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100px;
    min-width: 100px;

    background: #0b3b70;
    color: #ffffff;
}

.page-coleadores .coleador-avatar span {
    font-size: 38px;
    font-weight: 700;
}

/* Contenido */

.page-coleadores .coleador-card-content {
    flex: 1;
    padding: 25px;
}

.page-coleadores .coleador-card-content .ecf-kicker {
    margin-bottom: 7px;
}

.page-coleadores .coleador-card-content h3 {
    margin: 0 0 7px;
    color: #0b3b70;
    font-size: 22px;
}

.page-coleadores .coleador-location {
    margin: 0 0 20px;
    color: #65758b;
    font-size: 14px;
}

/* Estadísticas */

.page-coleadores .coleador-stats {
    display: flex;
    gap: 35px;
    margin-bottom: 20px;
}

.page-coleadores .coleador-stats div {
    display: flex;
    flex-direction: column;
}

.page-coleadores .coleador-stats strong {
    color: #0b3b70;
    font-size: 20px;
    line-height: 1;
}

.page-coleadores .coleador-stats span {
    margin-top: 5px;
    color: #65758b;
    font-size: 11px;
}

/* Link */

.page-coleadores .ecf-link {
    color: #0b3b70;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.page-coleadores .ecf-link:hover {
    color: #ed1c24;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 800px) {

    .page-coleadores .ecf-container {
        padding: 40px 25px 60px;
    }

    .page-coleadores .ecf-filter-content {
        flex-direction: column;
        align-items: stretch;
    }

    .page-coleadores .ecf-filter-content form {
        min-width: 0;
        width: 100%;
    }

    .page-coleadores .coleadores-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {

    .page-coleadores .ecf-page-header h1 {
        font-size: 34px;
    }

    .page-coleadores .ecf-filter-box {
        padding: 20px;
    }

    .page-coleadores .ecf-filter-content form {
        flex-direction: column;
    }

    .page-coleadores .ecf-filter-content button {
        width: 100%;
    }

    .page-coleadores .coleador-card {
        flex-direction: column;
    }

    .page-coleadores .coleador-avatar {
        width: 100%;
        height: 90px;
        min-width: 0;
    }
}

/* =========================================
   VIDEOS
   ========================================= */

.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 30px;
}

.video-card {
    background: #ffffff;
    border: 1px solid #dfe5ec;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.video-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0b3768;
    overflow: hidden;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #123f73;
}

.play-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #ffffff;
    color: #0b3768;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    padding-left: 4px;
}

.video-content {
    padding: 24px;
}

.video-content h3 {
    margin: 8px 0 12px;
    color: #0b3768;
    font-size: 21px;
    line-height: 1.2;
}

.video-content p {
    margin: 0 0 18px;
    color: #667085;
    font-size: 14px;
    line-height: 1.6;
}

.card-label {
    color: #ff1f2d;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
}

.card-link {
    color: #0b3768;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.card-link:hover {
    color: #ff1f2d;
}


/* =========================================
   RESPONSIVE VIDEOS
   ========================================= */

@media (max-width: 900px) {

    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 600px) {

    .videos-grid {
        grid-template-columns: 1fr;
    }

}

/* =========================================================
   VIDEO INDIVIDUAL
   ========================================================= */

.video-single {
    max-width: 900px;
    margin: 0 auto;
}


/* ---------------------------------------------------------
   Encabezado
   --------------------------------------------------------- */

.video-single__header {
    margin-bottom: 32px;
}

.video-single__header h1 {
    margin: 8px 0 14px;
}

.video-single__excerpt {
    color: #5f7188;
    font-size: 16px;
    line-height: 1.7;
    max-width: 760px;
}


/* ---------------------------------------------------------
   Reproductor
   --------------------------------------------------------- */

.video-single__player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: 36px;
    background: #082f5f;
    overflow: hidden;
}

.video-single__player iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}


/* ---------------------------------------------------------
   Imagen de respaldo
   --------------------------------------------------------- */

.video-single__image {
    width: 100%;
    margin-bottom: 36px;
}

.video-single__image img {
    display: block;
    width: 100%;
    height: auto;
}


/* ---------------------------------------------------------
   Descripción
   --------------------------------------------------------- */

.video-single__description {
    margin-top: 10px;
    padding-top: 28px;
    border-top: 1px solid #e1e6eb;

    color: #26384d;
    font-size: 16px;
    line-height: 1.8;
}

.video-single__description p {
    margin-bottom: 18px;
}


/* ---------------------------------------------------------
   Fecha
   --------------------------------------------------------- */

.video-single__meta {
    margin-top: 30px;

    color: #718096;
    font-size: 13px;
}


/* ---------------------------------------------------------
   Botón volver
   --------------------------------------------------------- */

.video-single__back {
    margin-top: 28px;
}

.video-single__back .button {
    display: inline-block;
    padding: 12px 22px;

    background: #0d4178;
    color: #ffffff;

    text-decoration: none;
    font-size: 14px;
    font-weight: 600;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.video-single__back .button:hover {
    background: #092f58;
    transform: translateY(-1px);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {

    .video-single {
        max-width: 100%;
    }

    .video-single__header {
        margin-bottom: 24px;
    }

    .video-single__header h1 {
        font-size: 32px;
    }

    .video-single__player {
        margin-bottom: 28px;
    }

    .video-single__description {
        font-size: 15px;
        line-height: 1.7;
    }

}


@media (max-width: 480px) {

    .video-single__header h1 {
        font-size: 28px;
    }

    .video-single__excerpt {
        font-size: 15px;
    }

    .video-single__back .button {
        width: 100%;
        text-align: center;
    }

}

/* =========================================================
   VIDEO INDIVIDUAL
   ========================================================= */

.video-single {
    max-width: 900px;
    margin: 0 auto;
}


/* Encabezado */

.video-single__header {
    margin-bottom: 32px;
}

.video-single__header h1 {
    margin: 8px 0 16px;
}


/* Reproductor */

.video-single__player {
    width: 100%;
    margin-bottom: 32px;
    background: #000;
}

.video-single__player iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
}


/* Imagen de respaldo */

.video-single__image {
    width: 100%;
    margin-bottom: 32px;
}

.video-single__image img {
    display: block;
    width: 100%;
    height: auto;
}


/* Información */

.video-single__information {
    margin: 32px 0;
    padding: 28px;
    background: #f3f6fa;
    border-left: 4px solid #0d4278;
}

.video-single__information-header {
    margin-bottom: 24px;
}

.video-single__information-header h2 {
    margin: 6px 0 0;
    color: #0d4278;
    font-size: 26px;
}

.video-single__information-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.video-single__data {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.video-single__data--full {
    grid-column: 1 / -1;
}

.video-single__data-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6b7a8c;
}

.video-single__data strong {
    color: #0d4278;
    font-size: 17px;
}


/* Descripción */

.video-single__description {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid #dfe4ea;
}

.video-single__description .eyebrow {
    display: block;
    margin-bottom: 12px;
}


/* Fecha */

.video-single__meta {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #dfe4ea;
    color: #718096;
    font-size: 14px;
}


/* Botón volver */

.video-single__back {
    margin-top: 24px;
}


/* Responsive */

@media (max-width: 768px) {

    .video-single {
        width: 100%;
    }

    .video-single__information-grid {
        grid-template-columns: 1fr;
    }

    .video-single__data--full {
        grid-column: auto;
    }

    .video-single__information {
        padding: 20px;
    }

}

/* =========================================
   VIDEO INDIVIDUAL - REPRODUCTOR YOUTUBE
   ========================================= */

.video-single__video {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    background: #000;
    margin: 30px 0;
}

.video-single__video iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

@media (max-width: 768px) {

    .video-single__video {
        margin: 20px 0;
    }

}

/* =========================================================
   RESPONSIVE MOBILE
   El Caballo del Folklor
   ========================================================= */

@media (max-width: 768px) {

    /* -----------------------------------------
       HEADER
       ----------------------------------------- */

    .site-header__container {
        width: 100%;
        min-height: auto;
        padding: 15px 20px 20px;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        gap: 15px;
    }

    /* Logo */

    .site-logo {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .site-logo a {
        justify-content: center;
    }

    .site-logo img {
        width: 150px;
        max-width: 100%;
        height: auto;
    }

    /* Navegación */

    .site-navigation {
        width: 100%;
        display: block;
    }

    .site-navigation ul {
        width: 100%;

        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 8px 10px;

        margin: 0;
        padding: 0;

        list-style: none;
    }

    .site-navigation li {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .site-navigation a {
        width: 100%;
        padding: 8px 4px;

        text-align: center;

        font-size: 10px;
        line-height: 1.2;

        white-space: normal;
    }


    /* -----------------------------------------
       CONTENIDO GENERAL
       ----------------------------------------- */

    main {
        width: calc(100% - 20px);
        max-width: 100%;
        min-height: auto;

        margin: 10px auto;
        padding: 30px 15px;
    }

    main h1 {
        font-size: 32px;
        line-height: 1.15;
    }


    /* -----------------------------------------
       HERO
       ----------------------------------------- */

    .hero {
        min-height: auto;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        padding: 45px 0;
    }

    .hero h1 {
        font-size: clamp(34px, 10vw, 48px);
        line-height: 1.05;
    }

    .hero p {
        font-size: 16px;
        line-height: 1.55;
    }

    .hero-buttons {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }


    /* -----------------------------------------
       SECCIONES
       ----------------------------------------- */

    .container {
        width: 100%;
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }

    .section {
        padding: 45px 0;
    }

    .section-header {
        display: block;
        margin-bottom: 25px;
    }

    .section h2 {
        font-size: 28px;
    }

    .section-link {
        display: inline-block;
        margin-top: 12px;
    }


    /* -----------------------------------------
       COMPETENCIAS
       ----------------------------------------- */

    .competitions-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .competition-card {
        width: 100%;
        min-width: 0;
    }

    .competition-date {
        width: 75px;
        min-width: 75px;
    }

    .competition-date strong {
        font-size: 32px;
    }

    .competition-info {
        min-width: 0;
        padding: 18px;
    }

    .competition-info h3 {
        font-size: 17px;
        line-height: 1.3;
        overflow-wrap: break-word;
    }


    /* -----------------------------------------
       NOTICIAS
       ----------------------------------------- */

    .news-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .news-card {
        width: 100%;
    }

    .news-image {
        height: 180px;
    }


    /* -----------------------------------------
       VIDEOS
       ----------------------------------------- */

    .videos-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .video-card {
        width: 100%;
        min-width: 0;
    }

    .video-thumbnail,
    .video-card__image {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .video-thumbnail img,
    .video-card__image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }


    /* -----------------------------------------
       RANKING
       ----------------------------------------- */

    .ranking {
        width: 100%;
        overflow-x: auto;
    }

    .ranking-header,
    .ranking-row {
        grid-template-columns: 50px minmax(0, 1fr) 60px;
        min-width: 0;
    }

    .ranking-header {
        padding: 12px 10px;
    }

    .ranking-row {
        padding: 14px 10px;
    }


    /* -----------------------------------------
       FOOTER
       ----------------------------------------- */

    .site-footer {
        padding: 40px 20px;
    }

    .site-footer__container {
        width: 100%;
    }

    .site-footer h2 {
        font-size: 30px;
        line-height: 1.15;
    }
}


/* =========================================================
   MOBILE PEQUEÑO
   ========================================================= */

@media (max-width: 400px) {

    .site-logo img {
        width: 135px;
    }

    .site-navigation ul {
        gap: 6px;
    }

    .site-navigation a {
        font-size: 9px;
        padding: 7px 2px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero p {
        font-size: 15px;
    }

    .competition-date {
        width: 68px;
        min-width: 68px;
    }

    .competition-date strong {
        font-size: 28px;
    }

    .competition-info {
        padding: 15px;
    }
}

/* =========================================================
   AJUSTE FINAL RESPONSIVE - HOME MOBILE
   El Caballo del Folklor
   ========================================================= */

@media (max-width: 768px) {

    /* -----------------------------------------
       HEADER
       ----------------------------------------- */

    .site-header__container {
        padding: 10px 15px 14px;
        gap: 8px;
    }

    .site-logo img {
        width: 145px;
    }

    .site-navigation ul {
        gap: 5px 8px;
    }

    .site-navigation a {
        padding: 7px 3px;
        font-size: 9px;
        line-height: 1.15;
    }


    /* -----------------------------------------
       CONTENEDOR PRINCIPAL
       ----------------------------------------- */

    main {
        width: calc(100% - 12px);
        margin: 6px auto;
        padding: 20px 9px;
    }


    /* -----------------------------------------
       HERO
       ----------------------------------------- */

    .hero {
        margin: 0;
    }

    .hero-content {
        padding: 32px 14px;
    }

    .hero h1 {
        margin-bottom: 18px;
        font-size: clamp(32px, 9vw, 42px);
        line-height: 1.02;
    }

    .hero p {
        margin-bottom: 20px;
        font-size: 15px;
        line-height: 1.45;
    }

    .hero-buttons {
        gap: 8px;
    }

    .hero-buttons .btn {
        min-height: 38px;
        padding: 10px 15px;
        font-size: 12px;
    }


    /* -----------------------------------------
       SECCIONES
       ----------------------------------------- */

    .section {
        padding: 32px 0;
    }

    .section-header {
        margin-bottom: 18px;
    }

    .section h2 {
        font-size: 26px;
        line-height: 1.1;
    }


    /* -----------------------------------------
       COMPETENCIAS
       ----------------------------------------- */

    .competitions-grid {
        gap: 12px;
    }

    .competition-card {
        min-height: 0;
    }

    .competition-date {
        width: 62px;
        min-width: 62px;
    }

    .competition-date strong {
        font-size: 28px;
    }

    .competition-info {
        padding: 14px;
    }

    .competition-info h3 {
        margin-top: 5px;
        font-size: 15px;
        line-height: 1.25;
    }

    .competition-info p {
        font-size: 12px;
    }


    /* -----------------------------------------
       NOTICIAS
       ----------------------------------------- */

    .news-grid {
        gap: 14px;
    }

    .news-image {
        height: 150px;
    }

    .news-content {
        padding: 16px;
    }


    /* -----------------------------------------
       VIDEOS
       ----------------------------------------- */

    .videos-grid {
        gap: 14px;
    }

    .video-thumbnail,
    .video-card__image {
        aspect-ratio: 16 / 9;
    }


    /* -----------------------------------------
       RANKING
       ----------------------------------------- */

    .ranking-header,
    .ranking-row {
        grid-template-columns: 42px minmax(0, 1fr) 55px;
    }

    .ranking-header {
        padding: 10px 8px;
        font-size: 10px;
    }

    .ranking-row {
        padding: 11px 8px;
        font-size: 11px;
    }


    /* -----------------------------------------
       FOOTER
       ----------------------------------------- */

    .site-footer {
        padding: 35px 15px;
    }

    .site-footer h2 {
        font-size: 27px;
    }

}


/* =========================================================
   iPHONE / MÓVILES PEQUEÑOS
   ========================================================= */

@media (max-width: 430px) {

    .site-logo img {
        width: 140px;
    }

    .site-navigation ul {
        gap: 4px 6px;
    }

    .site-navigation a {
        font-size: 8.5px;
        padding: 6px 2px;
    }

    .hero-content {
        padding: 28px 10px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero p {
        font-size: 14px;
    }

    .section {
        padding: 28px 0;
    }

}

/* =========================================================
   MENÚ HAMBURGUESA
   ========================================================= */

/* Botón oculto por defecto */
.menu-toggle {
    display: none;
}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 768px) {

    /* Header */
    .site-header__container {
        position: relative;
    }

    /* Mostrar botón hamburguesa */
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;

        width: 42px;
        height: 42px;

        padding: 0;
        border: 0;
        border-radius: 4px;

        background: transparent;
        cursor: pointer;
    }

    /* Las tres líneas */
    .menu-toggle__icon {
        display: flex;
        flex-direction: column;
        justify-content: space-between;

        width: 24px;
        height: 18px;
    }

    .menu-toggle__icon span {
        display: block;

        width: 100%;
        height: 2px;

        background: #ffffff;
        border-radius: 2px;

        transition:
            transform 0.25s ease,
            opacity 0.25s ease;
    }


    /* =====================================================
       MENÚ CERRADO
       ===================================================== */

    .site-navigation {
        display: none;

        width: 100%;
        margin-top: 10px;
    }


    /* =====================================================
       MENÚ ABIERTO
       ===================================================== */

    .site-navigation.is-open {
        display: block;
    }

    .site-navigation ul {
        display: flex;
        flex-direction: column;

        width: 100%;
        margin: 0;
        padding: 0;

        gap: 0;
    }

    .site-navigation li {
        width: 100%;
        margin: 0;
    }

    .site-navigation a {
        display: block;

        width: 100%;
        padding: 13px 10px;

        text-align: center;

        border-top: 1px solid rgba(255, 255, 255, 0.12);

        font-size: 13px;
    }


    /* =====================================================
       ANIMACIÓN ☰ → ✕
       ===================================================== */

    .menu-toggle[aria-expanded="true"]
    .menu-toggle__icon span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"]
    .menu-toggle__icon span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle[aria-expanded="true"]
    .menu-toggle__icon span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

}

/* =========================================================
   COMPETENCIA INDIVIDUAL
   ========================================================= */

.competencia-single {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.competencia-single__image {
    width: 100%;
    overflow: hidden;
}

.competencia-single__image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}


/* Información */

.competencia-single__information {
    margin-top: 30px;
}

.competencia-single__information-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}


/* =========================================================
   RESPONSIVE - COMPETENCIA
   ========================================================= */

@media (max-width: 600px) {

    .competencia-single {
        width: 100%;
    }

    .competencia-single__header h1 {
        font-size: 32px;
        line-height: 1.15;
    }

    .competencia-single__excerpt {
        font-size: 16px;
    }

    .competencia-single__image {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .competencia-single__image img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .competencia-single__information-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .competencia-single__videos {
        margin-top: 35px;
    }

    .competencia-single__videos-header h2 {
        font-size: 25px;
        line-height: 1.2;
    }

    .competencia-single__videos-grid {
        grid-template-columns: 1fr;
    }

    .competencia-single__videos .video-card__image {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .competencia-single__videos .video-card__content {
        padding: 18px;
    }

    .competencia-single__videos .video-card__content h3 {
        font-size: 18px;
    }

    .competencia-single__back {
        margin-top: 30px;
    }

    .competencia-single__back .button {
        display: block;
        width: 100%;
        text-align: center;
    }
}

/* =========================================================
   RESPONSIVE FINAL - SINGLE COMPETENCIA
   ========================================================= */

@media (max-width: 768px) {

    /* Contenedor principal de la página */
    main.site-main {
        width: calc(100% - 12px);
        max-width: 100%;
        margin: 6px auto;
        padding: 20px 9px;
    }

    /* Contenido de la competencia */
    .competencia-single {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    /* Encabezado */
    .competencia-single__header {
        width: 100%;
        margin-bottom: 20px;
    }

    .competencia-single__header h1 {
        margin: 8px 0 12px;
        font-size: clamp(28px, 8vw, 38px);
        line-height: 1.1;
        overflow-wrap: break-word;
    }

    .competencia-single__excerpt {
        font-size: 15px;
        line-height: 1.5;
    }

    /* Imagen principal */
    .competencia-single__image {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        overflow: hidden;
    }

    .competencia-single__image img {
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
        margin: 0;
    }

    /* Información */
    .competencia-single__information {
        width: 100%;
        margin-top: 25px;
        padding: 20px 0;
    }

    .competencia-single__information-header h2 {
        font-size: 24px;
        line-height: 1.2;
        margin: 8px 0 20px;
    }

    /* Fecha y lugar */
    .competencia-single__information-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .competencia-single__data {
        width: 100%;
        min-width: 0;
    }

    .competencia-single__data strong {
        display: block;
        overflow-wrap: anywhere;
        line-height: 1.4;
    }

    /* Descripción */
    .competencia-single__description {
        width: 100%;
        margin-top: 25px;
        font-size: 15px;
        line-height: 1.6;
    }

    .competencia-single__description img {
        max-width: 100%;
        height: auto;
    }

    .competencia-single__description iframe,
    .competencia-single__description video {
        max-width: 100%;
    }

    /* Videos relacionados */
    .competencia-single__videos {
        width: 100%;
        margin-top: 35px;
    }

    .competencia-single__videos-header h2 {
        font-size: 24px;
        line-height: 1.2;
    }

    .competencia-single__videos-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .competencia-single__videos .video-card {
        width: 100%;
        min-width: 0;
    }

    .competencia-single__videos .video-card__image {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .competencia-single__videos .video-card__image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Botón volver */
    .competencia-single__back {
        width: 100%;
        margin-top: 30px;
    }

    .competencia-single__back .button {
        display: block;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        padding: 13px 15px;
    }
}


/* =========================================================
   CELULARES PEQUEÑOS
   ========================================================= */

@media (max-width: 400px) {

    main.site-main {
        width: calc(100% - 8px);
        padding: 16px 7px;
    }

    .competencia-single__header h1 {
        font-size: 28px;
    }

    .competencia-single__information {
        padding: 16px 0;
    }

    .competencia-single__information-header h2 {
        font-size: 22px;
    }

    .competencia-single__description {
        font-size: 14px;
    }
}