html {
    font-size: 12px;
    /* Valor por defecto en la mayoría de navegadores */
}


/* Estilos generales */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}


/* Header con imagen de fondo tenue */

header {
    background: linear-gradient( to bottom, rgba(26, 47, 95, 0.85), rgba(34, 59, 120, 0.9)), url('../img/equipo_logo.jpg') no-repeat center top;
    background-size: cover;
    background-attachment: fixed;
    color: white;
    padding: 3rem 0 2rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Capa para mejorar legibilidad */

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.logo-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 204, 0, 0.3);
}

.logo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    border: 5px solid #ffcc00;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    overflow: hidden;
}

.logo:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.logo img {
    width: 85%;
    height: 85%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.1);
}

h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    color: #ffcc00;
}

.slogan {
    font-style: italic;
    font-size: 1.3rem;
    opacity: 0.9;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    margin: 0 auto;
}


/* Contenido principal */

.container {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

section {
    background-color: white;
    border-radius: 10px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #2a5298;
    margin-bottom: 1.5rem;
    padding-bottom: 0.7rem;
    border-bottom: 3px solid #ffcc00;
    font-size: 2.2rem;
}


/* Estilo para la imagen del periódico en contenido */

.img-full-width {
    width: 100%;
    height: auto;
    display: block;
    margin: 2rem 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #eee;
}


/* Equipo */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.player-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid #eee;
}

.player-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.player-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 4px solid #2a5298;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}


/* Calendario */

.match {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem;
    border-bottom: 1px solid #eee;
}

.match:last-child {
    border-bottom: none;
}

.match-date {
    font-weight: bold;
    color: #2a5298;
    min-width: 120px;
}

.match-teams {
    flex-grow: 1;
    text-align: center;
    padding: 0 1rem;
}

.match-result {
    font-weight: bold;
    background-color: #ffcc00;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    min-width: 80px;
}


/* Galería */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid #eee;
}

.gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}


/* Contacto */

.contact-form {
    display: grid;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.7rem;
    font-weight: bold;
    color: #2a5298;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #2a5298;
    outline: none;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

.form-group textarea {
    min-height: 180px;
    resize: vertical;
}

button {
    background-color: #2a5298;
    color: white;
    border: none;
    padding: 1.2rem;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
    margin-top: 1rem;
}

button:hover {
    background-color: #1e3c72;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}


/* Footer */

footer {
    background-color: #222;
    color: white;
    text-align: center;
    padding: 3rem 0;
    margin-top: 4rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem 0;
}

.social-links a {
    color: white;
    font-size: 1.8rem;
    transition: all 0.3s;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    color: #ffcc00;
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

footer p {
    margin: 0.5rem 0;
}


/* Estilos responsive */

@media (max-width: 1200px) {
    .container {
        max-width: 1000px;
    }
}

@media (max-width: 992px) {
    header {
        min-height: 350px;
        padding: 2rem 0;
    }
    .logo {
        width: 150px;
        height: 150px;
    }
    h1 {
        font-size: 2.5rem;
    }
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    header {
        min-height: 300px;
        background-attachment: scroll;
    }
    .logo-container {
        padding: 1.5rem;
    }
    .logo {
        width: 130px;
        height: 130px;
    }
    h1 {
        font-size: 2.2rem;
    }
    .slogan {
        font-size: 1.1rem;
    }
    section {
        padding: 2rem;
    }
    .match {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    .match-date {
        margin-bottom: 0.5rem;
    }
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 576px) {
    header {
        min-height: 250px;
    }
    .logo {
        width: 110px;
        height: 110px;
    }
    h1 {
        font-size: 1.8rem;
    }
    .team-grid {
        grid-template-columns: 1fr;
    }
    .gallery {
        grid-template-columns: 1fr 1fr;
    }
    section {
        padding: 1.5rem;
    }
    h2 {
        font-size: 1.8rem;
    }
}


/* XXXXXXXXXXXXXXXXXXXXXXXXXXX IMAGENES RESPONSIVES XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */


/* Estilo base para imágenes responsivas */

.img-responsive {
    max-width: 100%;
    /* Nunca excede el ancho de su contenedor */
    height: auto;
    /* Mantiene la proporción */
    display: block;
    /* Elimina espacio extra debajo de la imagen */
}


/* Ejemplo con tamaño en porcentaje */

.img-percent {
    width: 50%;
    /* 50% del ancho del contenedor padre */
}


/* Ejemplo con tamaño fijo pero adaptable en móviles */

.img-publicidad {
    width: 200px;
    /* Tamaño por defecto */
    max-width: 98%;
    /* En pantallas pequeñas, ocupa máximo 80% */
}


/* XXXXXXXXXXXXXXXXXXXXXXXXXXX IMAGENES RESPONSIVES XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */


/* xxxxxxxxxxxxxx    CONTADOR    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx */

.contador-visitas {
    background-color: #f5f5f5;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    margin: 20px auto;
    max-width: 300px;
    border: 1px solid #ddd;
}

.contador-visitas p {
    margin: 0;
    color: #333;
    font-size: 14px;
}

.contador-visitas strong {
    color: #2a5298;
    font-size: 18px;
}


/* xxxxxxxxxxxxxx    CONTADOR    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx */