/* Estilos generales */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1c1c31;
    color: rgb(0, 0, 0);
    text-align: center;
}

/* Encabezado fijo */
header {
    background: #51ae32;
    color: white;
    padding: 1rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
}

nav .btn {
    background: white;
    color: #ff4655;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
}


.logo img {
    height: 50px;
    /* Tamaño pequeño del logo */
    width: auto;
    /* Mantiene la proporción original */
}

/* Hero */
.hero {
    margin-top: 30px;
    padding: 350px 350px;

    background-image: url('img/fondoyoutube.webp');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    /* la imagen se encoge para que se vea completa */
    background-color: #fff;
    /* opcional: fondo blanco detrás */
}

.hero h1 {
    font-size: 2.5rem;
}

.hero p {
    color: #ffffff;
}

.btn-main {
    background: #ff4655;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 5px;

}

/* Ranking */
.ranking,
.proximos-partidos {
    padding: 50px 20px;
}

.ranking table {
    margin: 0 auto;
    border-collapse: collapse;
    width: 60%;
}

.ranking th,
.ranking td {
    border: 1px solid white;
    padding: 10px;
}

/* Footer */
footer {
    font-family: Arial, sans-serif;
    background: #111;
    color: #ddd;
    padding: 20px;
}

#noticias h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

#noticias img:hover {
    transform: scale(1.05);
    transition: 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}


.slider-track a {
    flex: 0 0 100%;
    height: 100%;
}

.slider-track img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    background-color: transparent;
}

.info-futbolmatch {
    margin-top: 30px;
    padding: 60px 30px;
    background-image: url('img/sobregolmatch-09.webp');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    color: #f1f1f1;
    text-align: center;

}

.info-futbolmatch h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ffce00;
    text-shadow: 2px 2px 0 #000;
}

.info-futbolmatch .intro {
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.info-boxes {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.info-box {
    background: #264653;
    padding: 20px;
    border-radius: 10px;
    width: 280px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.info-box:hover {
    transform: scale(1.05);
    background: #2a9d8f;
}

.info-box h3 {
    color: #ffce00;
    margin-bottom: 10px;
}

.info-box p {
    font-size: 0.95rem;
    color: #f8f8f8;
}

.info-boxes a {
    text-decoration: none;
    color: inherit;
}

/* Ícono de menú */
.menu-icon {
    display: none;
    font-size: 30px;
    color: rgb(0, 0, 0);
    cursor: pointer;
    text-align: center;
    margin: 10px auto;
}


/* Estado inicial del nav en escritorio */
#nav-links {
    display: flex;
    gap: 15px;
}

/* Responsive para pantallas pequeñas */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        transition: all 0.5s ease;
        padding-bottom: 0;
    }

    .hero {
        padding: 15px 1px;
        /* Reducir padding general */
    }
        .menu-icon {
            display: block;
            margin: 10px 0 1px -5px;
            /* margen izquierdo reducido */
            position: relative;
            /* puedes ajustar si usas position */
            left: 170px;
        }
        #nav-links {
            overflow: hidden;
            max-height: 0;
            flex-direction: column;
            width: 100%;
            align-items: center;
            margin: 10px 0 10px 5px;
            /* margen izquierdo reducido */
            position: relative;
            /* puedes ajustar si usas position */
            left: -30px;
            transition: max-height 0.5s ease-out;
        }

    #nav-links.active {
        max-height: 500px;
        /* suficiente para mostrar los links */
        transition: max-height 0.5s ease-in;
    }

    header.expanded {
        padding-bottom: 20px;
        /* espacio extra cuando el menú está abierto */
    }

    nav a {
        margin: 10px 0;
        color: black;
        font-weight: bold;
        text-align: center;
    }
}

.facebook-float,
.instagram-float,
.whatsapp-float,
.tiktok-float {
    position: fixed;
    right: 20px;
    z-index: 999;
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tamaño del icono */
.facebook-float img,
.instagram-float img,
.whatsapp-float img,
.tiktok-float img {
    width: 32px;
    height: 32px;
    display: block;
    filter: brightness(0) invert(1);
    /* sin invertir para respetar colores originales */
}

/* Colores oficiales y posiciones */
.facebook-float {
    background-color: #1c1c31;
    /* azul Facebook */
    bottom: 115px;
}

.instagram-float {
    background: radial-gradient(circle at 30% 107%, #1c1c31 0%, #1c1c31 5%, #1c1c31 45%, #1c1c31 60%, #1c1c31 90%);
    bottom: 70px;
}

.whatsapp-float {
    background-color: #51ae32;
    /* verde golmatch WhatsApp */
    bottom: 25px;
}

.tiktok-float {
    background-color: #1c1c31;
    /* negro TikTok */
    bottom: 160px;
}

/* Animación hover */
.facebook-float:hover,
.instagram-float:hover,
.whatsapp-float:hover,
.tiktok-float:hover {
    transform: scale(1.1);
}

.hero-acto3 {
    position: relative;
    background-image: url('img/golmatch_16_.gif');
    /* Para PC por defecto */
    background-size: cover;
    background-position: center;
    height: 100vh;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    padding: 0 5%;
    margin-top: 65px;
}

/* Para dispositivos móviles (menos de 768px de ancho) */
@media (max-width: 768px) {
    .hero-acto3 {
        background-image: url('img/golmatchFinal.gif');
    }
}


.hero-acto3 .content {
    max-width: 600px;
}

.hero-acto3 .content h1 {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.hero-acto3 .content p {
    margin-top: 10px;
    font-size: 1.1rem;
    color: #ddd;
}

.hero-acto3 .content .btn-main {
    display: inline-block;
    margin-top: 40px;
    justify-content: center;
    padding: 12px 24px;
    background-color: #e13b49;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.hero-acto3 .content .btn-main:hover {
    background-color: #e13b49;
}

#modal-noticias {
    display: none;
    position: fixed;
    justify-content: center;
    align-items: center;
}

#respuestasInvitaciones {
    background: #9b9b9b;
    padding: 10px;
    border: 1px solid #c5c5c5;
}

#modal,
#modalNotif {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    max-width: 90%;
    display: none;
}

.contador-notificaciones {
    position: absolute;
    top: -6px;
    right: -6px;
    background-color: red;
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
    display: inline-block;
    min-width: 20px;
    text-align: center;
}