@charset "utf-8";

* {
    padding: 0;
    margin: 0;
    text-decoration: none;
    box-sizing: border-box;
}

:root  {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    background-color: #e0e0e0;
}

body {
    width: 80%;
    margin: 0 auto;
}

header {
    background-color: #DC2626;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
}

header img:first-child {
    width: 80px;
    margin-left: 1rem;
}

header img:last-child{
    width: 80px;
    margin-right: 1rem;
}

header ul {
    list-style: none;
}

header ul li {
    display: inline-block;
}

header ul li a {
    display: block;
    margin-right: 0.5rem;
    padding: 1.5rem;
    font-size: 2rem;
    color: white;
}

header ul li a:hover {
    color: black;
    transition: color 0.3s; 
}

main {
    padding-top: 2rem;
}

.calendario_introduccion {
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
}

.calendario_introduccion h1 {
    font-size: 3.5rem;
}

.calendario_introduccion p {
    margin-top: 1rem;
    font-size: 1.5rem;
}

.calendario_filtros {
    padding-top: 1rem;
}

.formulario_calendario {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}

.filtro select{
    width: 260px;
    height: 4rem;
    background-color: gray;
    color: black;
    font-size: 1.4rem;
    text-align: center;
    border: none;
}

.btn-buscar {
    width: 160px;
    height: 4rem;
    background-color: #DC2626;
    color: white;
    font-size: 1.4rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendario_leyenda {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 1rem;
}

.leyenda {
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
    border-radius: 5px;
}

.leyenda.partido {
    background-color: #ffe5e5;
    border-left: 5px solid #DC2626;
}

.leyenda.entrenamiento {
    background-color: #e5f0ff;
    border-left: 5px solid #2563eb;
}


.calendario {
    margin-top: 2rem;
    border: 1px solid #999;
    padding: 2rem;
}

.calendario_dias {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.calendario_dias div {
    background-color: #f2f2f2;
    padding: 0.8rem 0;
    border: 1px solid #ccc;
}

.calendario_grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: 100px;
    border-top: 1px solid #999;
    border-left: 1px solid #999;
}

.dia {
    border-right: 1px solid #999;
    border-bottom: 1px solid #999;
    background-color: #e0e0e0;
    padding: 0.5rem;
    font-size: 1.4rem;
    position: relative;
}

.dia .numero {
    font-weight: bold;
    display: block;
}

.dia.hoy {
    border: 2px solid #DC2626;
    background-color: #fff;
}

.dia.partido {
    background-color: #ffe5e5;
    border-left: 5px solid #DC2626;
}

.dia.partido .texto {
    font-size: 1.2rem;
    margin-top: 0.5rem;
}

.dia.entrenamiento {
    background-color: #e5f0ff;
    border-left: 5px solid #2563eb;
}

.dia.entrenamiento .texto {
    font-size: 1.2rem;
    margin-top: 0.5rem;
}

.dia.evento {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.dia.evento:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

footer {
    background-color: black;
    color: white;
    margin-top: 3rem;
    padding: 2rem 0 0 0;
}

.footer-contenido {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 2rem;
    margin-bottom: 2rem;
}

.footer-columna {
    width: 50%;
    padding: 0 1rem;
}

.footer-columna h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: white;
    border-bottom: 2px solid red;
    padding-bottom: 0.5rem;
    text-transform: uppercase;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links li a {
    color: white;
    font-size: 1.2rem;
    transition: color 0.3s;
    display: block;
    padding: 0.3rem 0;
}

.footer-links li a:hover {
    text-decoration: underline;
}

.redes-sociales {
    display: flex;
    flex-flow: row wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.redes-sociales a {
    display: inline-block;
    transition: transform 0.3s;
}

.redes-sociales a:hover {
    transform: scale(1.1);
}

.redes-sociales img {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    background-color: white;
    padding: 5px;
}

.footer-derechos {
    background-color: #111;
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid #333;
}

.footer-derechos p {
    font-size: 1rem;
    color: #aaa;
    margin: 0;
}

@media (max-width: 768px) {

    body {
        width: 100%;
        margin: 0;
    }

    header {
        flex-direction: column;
        padding: 1rem 0;
    }

    header ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    header ul li a {
        font-size: 1.6rem;
        padding: 1rem;
    }

    header img:first-child,
    header img:last-child {
        width: 60px;
        margin: 0.5rem 0;
    }

    .calendario_introduccion h1 {
        font-size: 2.4rem;
        text-align: center;
    }

    .calendario_introduccion p {
        font-size: 1.3rem;
        text-align: center;
        padding: 0 1rem;
    }

    .formulario_calendario {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }

    .filtro select {
        width: 100%;
    }

    .btn-buscar {
        width: 100%;
    }

    .calendario_leyenda {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .leyenda {
        width: 90%;
        text-align: center;
    }

    .calendario {
        padding: 1rem;
        overflow-x: auto;
    }

    .calendario_dias div {
        font-size: 1.2rem;
        padding: 0.5rem 0;
    }

    .calendario_grid {
        grid-auto-rows: 80px;
    }

    .dia {
        font-size: 1.2rem;
        padding: 0.3rem;
    }

    .dia .texto {
        font-size: 1.1rem;
    }

    .footer-contenido {
        flex-direction: column;
        text-align: center;
    }

    .footer-columna {
        width: 100%;
        margin-bottom: 2rem;
    }

    .redes-sociales {
        justify-content: center;
    }
}
