/* =========================================
   VARIABLES Y RESETEO GLOBAL
   ========================================= */
:root {
    --color-principal: #004aad; /* Azul estándar (cámbialo por el del club) */
    --color-secundario: #ffcc00; /* Color de acento/dorado */
    --color-fondo: #f4f7f6;
    --color-texto: #333333;
    --fuente-principal: 'Segoe UI', system-ui, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--fuente-principal);
    background-color: var(--color-fondo);
    color: var(--color-texto);
    line-height: 1.6;
}

/* =========================================
   CABECERA Y MENÚ DE NAVEGACIÓN
   ========================================= */
.main-header {
    background-color: var(--color-principal);
    color: white;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.main-header h1 {
    font-size: 1.5rem;
}

.nav-container ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-container a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.nav-container a:hover {
    color: var(--color-secundario);
}
/* =========================================
   ESTILOS PARA LA VISTA DE PARTIDOS EN TARJETAS
   ========================================= */
.contenedor-tarjetas-partidos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.tarjeta-partido-completo {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    border-top: 5px solid var(--color-principal);
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: transform 0.3s ease;
}

.tarjeta-partido-completo:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.partido-info-superior {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.partido-cuerpo {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.equipo-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 38%;
    text-align: center;
}

.equipo-col img {
    width: 55px;
    height: 55px;
    object-fit: contain;
    margin-bottom: 8px;
}

.equipo-col strong {
    font-size: 0.95rem;
    line-height: 1.2;
}

.marcador-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 24%;
    font-weight: bold;
}

.vs-texto {
    font-size: 0.9rem;
    color: #999;
}

.resultado-final {
    font-size: 1.2rem;
    color: var(--color-principal);
    background-color: var(--color-fondo);
    padding: 4px 10px;
    border-radius: 6px;
}

.estado-pendiente {
    font-size: 0.85rem;
    color: #e67e22;
    background-color: #fdf3e7;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}/* =========================================
   TARJETAS DE FICHAJES (ESTILO POSTER DINÁMICO)
   ========================================= */
.contenedor-fichajes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 350px));
    gap: 30px;
    margin-top: 2rem;
    justify-content: center;
}

.tarjeta-fichaje-pro {
    position: relative;
    width: 100%;
    height: 480px;
    background-color: #f0f0f0; /* Fondo base para cuando no hay foto de acción */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* 1. Imagen de acción (Fondo) */
.fondo-accion {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* 2. Banda Superior (Diagonal) */
.banda-superior {
    position: absolute;
    top: 0; left: 0; right: 0; height: 32%;
    background-color: var(--color-principal);
    /* Crea el corte diagonal: más bajo a la izquierda, más alto a la derecha */
    clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%);
    z-index: 2;
    padding: 25px 20px;
}

.nombre-fichaje {
    color: white;
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0;
    /* Inclinamos el texto para que siga la línea del corte */
    transform: rotate(-6deg);
    transform-origin: left bottom;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* 3. Banda Inferior (Diagonal) */
.banda-inferior {
    position: absolute;
    bottom: 0; left: 0; right: 0; height: 42%;
    background-color: var(--color-principal);
    /* Corte diagonal inverso: más alto a la izquierda, más bajo a la derecha */
    clip-path: polygon(0 0, 100% 25%, 100% 100%, 0 100%);
    z-index: 2;
    padding: 30px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.texto-posicion {
    color: white;
    font-weight: bold;
    font-size: 1rem;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.texto-tipo {
    color: white;
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.dorsal-escudo {
    display: flex;
    align-items: flex-end;
    gap: 15px;
}

.texto-dorsal {
    color: white;
    font-size: 4.5rem;
    font-weight: bold;
    font-style: italic;
    line-height: 0.8;
}

.escudo-fichaje {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

/* 4. Jugador Recortado (Frente) */
.jugador-recorte {
    position: absolute;
    bottom: 0;
    right: -10px; /* Lo desplazamos un poco a la derecha */
    height: 85%; /* Ajusta según el tamaño de la foto */
    z-index: 3;
    /* Crea el borde blanco resplandeciente idéntico al de la foto */
    filter: drop-shadow(0px 0px 4px white) drop-shadow(0px 0px 2px white) drop-shadow(0px 0px 1px white);
}
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--fuente-principal);
    background-color: var(--color-fondo);
    color: var(--color-texto);
    line-height: 1.6;
    display: flex;
    flex-direction: column; /* Organiza los elementos en columna (Header, Main, Footer) */
    min-height: 100vh;     /* Asegura que ocupe toda la altura de la ventana */
}

/* El elemento <main> crecerá para ocupar todo el espacio libre disponible */
main {
    flex: 1;
}