/* =========================================================
   FUTBOLIVE - ESTILOS PRINCIPALES
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: #0d0f15;
    color: #f1f3f5;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}


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

.header-main {
    width: 100%;
    background: #11141c;
    border-bottom: 2px solid #22c55e;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 64px;
    padding: 0 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    letter-spacing: -0.5px;
}

.logo:hover {
    color: #22c55e;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.main-nav a {
    padding: 9px 11px;
    border-radius: 6px;
    color: #d8dbe1;
    font-size: 14px;
    transition: all 0.2s ease;
}

.main-nav a:hover {
    background: #1f2937;
    color: #ffffff;
}


/* =========================================================
   CONTENEDOR GENERAL
   ========================================================= */

main {
    width: 100%;
}

main > section {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.partidos-section,
.competiciones-section,
.noticias-seccion {
    margin-top: 35px;
    margin-bottom: 35px;
}


/* =========================================================
   CABECERAS DE SECCIÓN
   ========================================================= */

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 18px;
    padding-bottom: 10px;

    border-bottom: 1px solid #292e3a;
}

.section-header h2 {
    margin: 0;
    font-size: 25px;
    line-height: 1.2;
    color: #ffffff;
}

.section-header a {
    color: #22c55e;
    font-size: 14px;
    font-weight: 600;
}

.section-header a:hover {
    color: #86efac;
}


/* =========================================================
   BANNER MUNDIAL
   ========================================================= */

.mundial-banner {
    max-width: 1160px;
    margin: 32px auto 40px;

    padding: 35px 40px;

    border-radius: 14px;

    background:
        linear-gradient(
            110deg,
            #0b1c38 0%,
            #102a4a 45%,
            #063c27 100%
        );

    border: 1px solid #315b37;

    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.35);
}

.mundial-banner-content {
    max-width: 750px;
}

.mundial-label {
    display: inline-block;

    margin-bottom: 5px;

    color: #86efac;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
}

.mundial-banner h1 {
    margin: 0 0 8px;

    color: #ffffff;

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

.mundial-banner p {
    margin: 0 0 20px;

    color: #d9e1e8;
    font-size: 17px;
}

.btn-mundial {
    display: inline-block;

    padding: 11px 20px;

    border-radius: 7px;

    background: #22c55e;
    color: #06130a;

    font-weight: 700;

    transition: all 0.2s ease;
}

.btn-mundial:hover {
    background: #4ade80;
    transform: translateY(-1px);
}


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

.empty-state {
    padding: 25px;

    border-radius: 10px;

    background: #151923;
    border: 1px solid #252b38;

    color: #9ca3af;

    text-align: center;
}

.empty-state p {
    margin: 0;
}


/* =========================================================
   GRID DE PARTIDOS
   ========================================================= */

.partidos-grid {
    display: grid;

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

    gap: 16px;
}


/* =========================================================
   TARJETA DE PARTIDO
   ========================================================= */

.partido-card {
    display: block;

    padding: 18px;

    background: #151923;

    border: 1px solid #272d3a;

    border-radius: 12px;

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

    overflow: hidden;
}

.partido-card:hover {
    transform: translateY(-3px);

    border-color: #22c55e;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.3);
}

.partido-directo {
    border-color: #ef4444;
    background:
        linear-gradient(
            135deg,
            #24151a,
            #151923
        );
}


/* =========================================================
   COMPETICIÓN DEL PARTIDO
   ========================================================= */

.partido-competicion {
    margin-bottom: 8px;

    color: #9ca3af;

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

    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.partido-fecha {
    margin-bottom: 15px;

    color: #d1d5db;

    font-size: 14px;
}

.partido-estado {
    margin-bottom: 12px;

    color: #ef4444;

    font-size: 13px;
    font-weight: 700;
}


/* =========================================================
   EQUIPOS
   ========================================================= */

.partido-equipos {
    display: grid;

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

    align-items: center;

    gap: 12px;
}

.partido-equipo {
    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    min-width: 0;

    gap: 8px;

    text-align: center;
}

.partido-equipo img {
    width: 42px;
    height: 42px;

    object-fit: contain;
}

.partido-equipo span {
    width: 100%;

    color: #f3f4f6;

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

    overflow: hidden;
    text-overflow: ellipsis;
}

.partido-vs {
    color: #6b7280;

    font-size: 12px;
    font-weight: 700;
}

.partido-marcador {
    min-width: 50px;

    color: #ffffff;

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

    text-align: center;
}


/* =========================================================
   COMPETICIONES
   ========================================================= */

.competiciones-grid {
    display: grid;

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

    gap: 15px;
}

.competicion-card {
    display: flex;

    align-items: center;

    gap: 14px;

    min-height: 85px;

    padding: 15px;

    background: #151923;

    border: 1px solid #272d3a;

    border-radius: 10px;

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

.competicion-card:hover {
    transform: translateY(-3px);

    border-color: #22c55e;

    background: #191e29;
}

.competicion-card img,
.competicion-logo-placeholder {
    width: 48px;
    height: 48px;

    flex-shrink: 0;

    object-fit: contain;
}

.competicion-logo-placeholder {
    display: flex;

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

    border-radius: 8px;

    background: #202632;

    font-size: 25px;
}

.competicion-card h3 {
    margin: 0 0 3px;

    color: #ffffff;

    font-size: 15px;
    line-height: 1.3;
}

.competicion-card span {
    color: #9ca3af;

    font-size: 12px;
}


/* =========================================================
   NOTICIAS
   ========================================================= */

.noticias-grid {
    display: grid;

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

    gap: 20px;
}

.noticia-card {
    overflow: hidden;

    background: #151923;

    border: 1px solid #272d3a;

    border-radius: 12px;

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

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

    border-color: #22c55e;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.3);
}

.noticia-card > a {
    display: block;
}

.noticia-card img {
    width: 100%;
    height: 190px;

    object-fit: cover;
}

.noticia-contenido {
    padding: 18px;
}

.noticia-categoria {
    display: inline-block;

    margin-bottom: 8px;

    color: #22c55e;

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

    text-transform: uppercase;
}

.noticia-card h3 {
    margin: 0 0 10px;

    font-size: 19px;
    line-height: 1.3;
}

.noticia-card h3 a {
    color: #ffffff;
}

.noticia-card h3 a:hover {
    color: #86efac;
}

.noticia-card p {
    margin: 0 0 12px;

    color: #aeb4bf;

    font-size: 14px;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

.noticia-card time {
    color: #6b7280;

    font-size: 12px;
}


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

.site-footer {
    margin-top: 60px;

    padding: 30px 20px;

    background: #151827;

    border-top: 1px solid #242938;
}

.footer-inner {
    max-width: 1200px;

    margin: 0 auto;

    text-align: center;
}

.footer-inner p {
    margin: 0;

    color: #9ca3af;

    font-size: 13px;
}


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

@media (max-width: 1000px) {

    .nav-inner {
        flex-direction: column;

        align-items: stretch;

        gap: 10px;

        padding-top: 12px;
        padding-bottom: 12px;
    }

    .logo {
        text-align: center;
    }

    .main-nav {
        justify-content: center;
    }

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

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

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

}


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

@media (max-width: 650px) {

    .header-main {
        position: relative;
    }

    .nav-inner {
        padding-left: 12px;
        padding-right: 12px;
    }

    .logo {
        font-size: 24px;
    }

    .main-nav {
        display: flex;

        flex-wrap: nowrap;

        justify-content: flex-start;

        overflow-x: auto;

        padding-bottom: 4px;

        scrollbar-width: thin;
    }

    .main-nav a {
        flex-shrink: 0;

        padding: 8px 10px;

        font-size: 13px;
    }

    main > section {
        padding-left: 14px;
        padding-right: 14px;
    }

    .mundial-banner {
        margin:
            20px 14px 30px;

        padding:
            25px 20px;

        border-radius: 12px;
    }

    .mundial-banner h1 {
        font-size: 30px;
    }

    .mundial-banner p {
        font-size: 15px;
    }

    .section-header {
        align-items: flex-start;

        flex-direction: column;

        gap: 6px;
    }

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

    .partidos-grid {
        grid-template-columns:
            1fr;
    }

    .competiciones-grid {
        grid-template-columns:
            1fr;
    }

    .noticias-grid {
        grid-template-columns:
            1fr;
    }

    .noticia-card img {
        height: 210px;
    }

    .partidos-section,
    .competiciones-section,
    .noticias-seccion {
        margin-top: 28px;
        margin-bottom: 28px;
    }

}


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

@media (max-width: 400px) {

    .mundial-banner h1 {
        font-size: 26px;
    }

    .partido-card {
        padding: 14px;
    }

    .partido-equipo img {
        width: 35px;
        height: 35px;
    }

    .partido-equipo span {
        font-size: 12px;
    }

    .partido-marcador {
        font-size: 21px;
    }

}
/* =========================================================
   MENÚ HAMBURGUESA
   ========================================================= */

.menu-toggle {
    display: none;

    width: 44px;
    height: 44px;

    padding: 8px;

    border: 1px solid #303746;
    border-radius: 8px;

    background: #151923;

    cursor: pointer;
}

.menu-toggle span {
    display: block;

    width: 100%;
    height: 3px;

    margin: 5px 0;

    background: #ffffff;

    border-radius: 3px;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}


/* ANIMACIÓN X */

.menu-toggle.active span:nth-child(1) {
    transform:
        translateY(8px)
        rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform:
        translateY(-8px)
        rotate(-45deg);
}


/* =========================================================
   MENÚ MÓVIL
   ========================================================= */

@media (max-width: 650px) {

    .nav-inner {
        position: relative;

        flex-direction: row;

        justify-content: space-between;

        align-items: center;

        min-height: 60px;
    }

    .logo {
        text-align: left;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {

        display: none;

        position: absolute;

        top: 100%;
        left: 0;
        right: 0;

        z-index: 1000;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        padding: 10px;

        background: #11141c;

        border-top: 1px solid #252b38;

        border-bottom:
            2px solid #22c55e;

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

    .main-nav.menu-open {
        display: flex;
    }

    .main-nav a {

        display: block;

        padding: 13px 15px;

        border-radius: 6px;

        font-size: 15px;
    }

    .main-nav a:hover {
        background: #1f2937;
    }

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

.contacto-page {
    min-height: 70vh;

    padding-top: 40px;
    padding-bottom: 60px;
}

.contacto-container {
    max-width: 800px;

    margin: 0 auto;

    padding:
        0 20px;
}

.contacto-intro {
    margin-bottom: 25px;

    color: #aeb4bf;

    font-size: 16px;
}

.contacto-form {
    padding: 25px;

    background: #151923;

    border:
        1px solid #272d3a;

    border-radius: 12px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;

    margin-bottom: 7px;

    color: #ffffff;

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

.form-group input,
.form-group textarea {
    width: 100%;

    padding: 12px 14px;

    border:
        1px solid #343b49;

    border-radius: 7px;

    background: #0d0f15;

    color: #ffffff;

    font-family: inherit;
    font-size: 15px;

    outline: none;

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

.form-group input:focus,
.form-group textarea:focus {
    border-color: #22c55e;

    box-shadow:
        0 0 0 3px
        rgba(34, 197, 94, 0.12);
}

.form-group textarea {
    resize: vertical;
}

.btn-contacto {
    padding: 12px 24px;

    border: none;

    border-radius: 7px;

    background: #22c55e;

    color: #06130a;

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

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.btn-contacto:hover {
    background: #4ade80;

    transform:
        translateY(-1px);
}

.contacto-exito,
.contacto-error {
    margin-bottom: 20px;

    padding: 15px;

    border-radius: 8px;

    font-weight: 600;
}

.contacto-exito {
    background: #12351f;

    border:
        1px solid #227a43;

    color: #86efac;
}

.contacto-error {
    background: #35151a;

    border:
        1px solid #7f2631;

    color: #fca5a5;
}

@media (max-width: 650px) {

    .contacto-page {
        padding-top: 25px;
    }

    .contacto-container {
        padding:
            0 14px;
    }

    .contacto-form {
        padding: 18px;
    }

}