/* ===========================
   ESTILOS GENERALES
=========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, sans-serif;
}


body{
    background:#f4f4f4;
    color:#333;
}


main{
    max-width:1200px;
    margin:auto;
    padding:40px;
}


h1{
    color:#003366;
    margin-bottom:20px;
}


h2{
    color:#0055aa;
    margin-top:20px;
}



/* ===========================
   ENLACES GENERALES
=========================== */


a{
    text-decoration:none;
}


a:visited{
    color:inherit;
}


a:hover{
    text-decoration:none;
}



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


header{

    background:#003366;
    padding:15px;

}


nav ul{

    list-style:none;
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;

}


nav ul li{

    margin:0 15px;

}


nav ul li a,
nav ul li a:visited{

    color:#ffffff;
    font-weight:bold;

}


nav ul li a:hover{

    color:#ffcc00;

}



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


footer{

    background:#003366;
    color:#ffffff;
    text-align:center;
    padding:20px;
    margin-top:30px;

}


footer a,
footer a:visited{

    color:#ffffff;

}


footer a:hover{

    color:#ffcc00;

}



/* ===========================
   BOTONES
=========================== */


.boton,
.boton:visited{

    display:inline-block;
    background:#003366;
    color:#ffffff !important;
    padding:10px 20px;
    text-decoration:none;
    border-radius:5px;
    margin-top:15px;
    font-weight:bold;

}


.boton:hover{

    background:#0055aa;
    color:#ffffff !important;

}


.boton:active{

    color:#ffffff !important;

}



/* ===========================
   TABLAS
=========================== */


table{

    width:100%;
    border-collapse:collapse;

}


table th,
table td{

    padding:10px;
    border:1px solid #ccc;

}



/* ===========================
   FORMULARIOS
=========================== */


form{

    background:#ffffff;
    padding:25px;
    border-radius:10px;
    box-shadow:0 2px 8px rgba(0,0,0,.1);

}


input,
textarea{

    width:100%;
    padding:10px;
    margin-top:5px;
    border:1px solid #ccc;
    border-radius:5px;

}



/* ===========================
   COOKIES
=========================== */


.cookies-banner{

    position:fixed;
    bottom:20px;
    left:20px;
    right:20px;
    background:#111;
    color:#ffffff;
    padding:15px;
    border-radius:10px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    z-index:1000;

}


.cookies-buttons button{

    margin-left:10px;
    padding:8px 12px;
    border:none;
    cursor:pointer;

}


#cookies-banner button{

    padding:8px 15px;
    cursor:pointer;

}


.hidden{

    opacity:0;
    transform:translateY(30px);
    pointer-events:none;
    transition:all .5s ease;

}

/* ===========================
   TARJETAS GENERALES
=========================== */


.tarjeta{

    background:#ffffff;
    padding:20px;
    margin:20px 0;
    border-radius:10px;
    box-shadow:0 2px 8px rgba(0,0,0,.1);
    transition:.3s;

}


.tarjeta:hover{

    transform:translateY(-5px);

}


.contenedor-tarjetas{

    display:flex;
    gap:20px;
    margin-top:40px;

}


.contenedor-tarjetas .tarjeta{

    flex:1;

}



/* ===========================
   HERO
=========================== */


.hero{

    background:#003366;
    color:#ffffff;
    text-align:center;
    padding:80px 20px;
    border-radius:10px;

}


.hero h1{

    color:#ffffff;
    font-size:3rem;

}


.hero p{

    margin:15px 0;
    font-size:1.2rem;

}



/* ===========================
   PAGINAS GENERALES
=========================== */


.pagina{

    max-width:1100px;
    margin:auto;
    padding:40px 20px;

}


.introduccion{

    text-align:center;
    max-width:900px;
    margin:0 auto 50px;
    font-size:18px;
    line-height:1.8;
    color:#555;

}



/* ===========================
   METODOLOGIA
=========================== */


.metodologia-grid{

    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:25px;
    margin-bottom:50px;

}



/* TARJETAS DE METODOLOGÍA */

.metodo-card{

    background:#ffffff;
    padding:30px;
    border-radius:15px;
    box-shadow:0 10px 25px rgba(0,0,0,.10);
    transition:.3s ease;

}


.metodo-card:hover{

    transform:translateY(-10px);
    box-shadow:0 20px 35px rgba(0,0,0,.15);

}


.metodo-card h2{

    color:#0056b3;
    margin-bottom:15px;

}


.metodo-card p{

    line-height:1.7;

}



/* ===========================
   HORARIO SEMANAL
=========================== */

.tabla-responsive{

    width:100%;
    margin-top:20px;

}


.tabla-horario{

    width:100%;
    border-collapse:separate;
    border-spacing:0 12px;

}


/* CABECERA */

.tabla-horario th{

    background:#0056b3;
    color:#ffffff;
    padding:15px;
    text-align:center;
    font-size:17px;

}


/* CELDAS */

.tabla-horario td{

    background:#ffffff;
    padding:18px;
    text-align:center;
    border:none;
    transition:all .3s ease;

}


/* EXTREMOS */

.tabla-horario tbody tr td:first-child{

    border-radius:10px 0 0 10px;

}


.tabla-horario tbody tr td:last-child{

    border-radius:0 10px 10px 0;

}


/* ===========================
   EFECTO HOVER TABLA
=========================== */

.tabla-horario tbody tr{

    transition:all .3s ease;

}


.tabla-horario tbody tr:hover{

    transform:translateY(-8px);

}


.tabla-horario tbody tr:hover td{

    background:#e8f1ff;
    box-shadow:0 10px 25px rgba(0,0,0,.15);

}


/* FILAS ALTERNAS */

.tabla-horario tbody tr:nth-child(even) td{

    background:#f8fbff;

}


.tabla-horario tbody tr:nth-child(even):hover td{

    background:#e8f1ff;

}


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

.horario-movil{

    display:none;

}


.horario-movil-bloque{

    background:#ffffff;
    border-radius:15px;
    padding:20px;
    margin-top:20px;
    box-shadow:0 10px 25px rgba(0,0,0,.10);
    transition:all .3s ease;

}


/* EFECTO SOBRE CADA BLOQUE */

.horario-movil-bloque:hover{

    transform:translateY(-8px);
    box-shadow:0 20px 35px rgba(0,0,0,.15);

}


/* HORA */

.horario-movil-bloque h3{

    background:#0056b3;
    color:#ffffff;
    text-align:center;
    padding:12px;
    border-radius:10px;
    margin-bottom:15px;
    font-size:20px;
    transition:all .3s ease;

}


/* EFECTO SOBRE LA HORA */

.horario-movil-bloque:hover h3{

    background:#0056b3;

}


/* ===========================
   DÍAS DEL HORARIO
=========================== */

.horario-dia{

    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:15px;
    padding:14px 10px;
    border-bottom:1px solid #e5e5e5;
    border-radius:8px;
    transition:all .3s ease;

}


/* ÚLTIMO DÍA */

.horario-dia:last-child{

    border-bottom:none;

}


/* EFECTO AL PASAR EL RATÓN */

.horario-dia:hover{

    background:#e8f1ff;
    transform:translateY(-3px);
    box-shadow:0 5px 12px rgba(0,0,0,.10);

}


/* EFECTO AL HACER CLIC O TOCAR */

.horario-dia:active{

    transform:scale(.98);
    background:#e8f1ff;

}


/* NOMBRE DEL DÍA */

.horario-dia span{

    font-weight:bold;
    color:#555;
    transition:color .3s ease;

}


/* NOMBRE DEL CURSO */

.horario-dia strong{

    color:#0056b3;
    text-align:right;
    transition:color .3s ease;

}


/* CAMBIO DE COLOR AL PASAR EL RATÓN */

.horario-dia:hover span{

    color:#0056b3;

}


.horario-dia:hover strong{

    color:#ff9800;

}


/* CAMBIO DE COLOR AL TOCAR EN MÓVIL */

.horario-dia:active span{

    color:#0056b3;

}


.horario-dia:active strong{

    color:#ff9800;

}

/* ===========================
   CURSOS
=========================== */


.contenedor-cursos{

    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:35px;
    margin-top:40px;

}


.curso-card{

    background:#ffffff;
    border-radius:20px;
    padding:35px;
    box-shadow:0 15px 35px rgba(0,0,0,.12);
    transition:.4s;

}


.curso-card:hover{

    transform:translateY(-12px);

}


.curso-card h2{

    text-align:center;
    color:#0056b3;
    margin-bottom:20px;

}


.curso-card p{

    text-align:center;
    line-height:1.7;

}


.curso-card ul{

    list-style:none;
    margin:25px 0;

}


.curso-card ul li{

    background:#f5f9ff;
    margin:10px 0;
    padding:12px;
    border-left:5px solid #0056b3;
    border-radius:8px;

}


.curso-card .boton{

    width:100%;
    text-align:center;

}



/* ===========================
   OPOSICIONES
=========================== */


.oposiciones-grid{

    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:30px;
    margin-top:40px;

}


.oposicion-box{

    flex:1 1 300px;
    max-width:320px;
    background:#ffffff;
    padding:35px;
    border-radius:20px;
    text-align:center;
    box-shadow:0 10px 25px rgba(0,0,0,.12);
    transition:.35s;

}


.oposicion-box:hover{

    transform:translateY(-12px);

}


.icono-opo{

    font-size:55px;
    margin-bottom:20px;

}


.oposicion-box h2{

    color:#0056b3;

}


.oposicion-box p{

    line-height:1.7;
    margin-bottom:25px;

}



/* ===========================
   FORMULARIO USUARIO
=========================== */


.formulario{

    max-width:500px;
    margin:40px auto;
    background:#ffffff;
    padding:30px;
    border-radius:10px;
    box-shadow:0 0 10px rgba(0,0,0,.2);

}


.formulario h1{

    text-align:center;

}


.formulario label{

    display:block;
    margin-top:15px;
    font-weight:bold;

}


.formulario button{

    width:100%;
    margin-top:20px;

}



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


.contacto-grid{

    display:grid;
    grid-template-columns:1fr 1fr;
    gap:40px;
    margin-top:40px;

}


.contacto-info,
.contacto-formulario{

    background:#ffffff;
    padding:30px;
    border-radius:15px;
    box-shadow:0 10px 25px rgba(0,0,0,.10);

}


.contacto-info p{

    line-height:1.8;

}


.mapa{

    margin-top:30px;
    border-radius:15px;
    overflow:hidden;

}



/* ===========================
   PAGINAS LEGALES
=========================== */


.legal{

    max-width:950px;
    margin:0 auto;
    background:#ffffff;
    padding:45px;
    border-radius:20px;
    box-shadow:0 10px 25px rgba(0,0,0,.10);

}

.legal h2{

    color:#0056b3;
    margin:35px 0 15px;

}

.legal p{

    line-height:1.9;
    text-align:justify;
    margin-bottom:20px;

}

.legal ul{

    margin:20px 0 25px 30px;
    line-height:1.9;

}

.legal li{

    margin-bottom:12px;

}

.legal ul{

    margin:25px 0;
    padding-left:30px;

}

.legal li{

    margin-bottom:12px;
    line-height:1.8;
    color:#333;

}

.legal li::marker{

    color:#0056b3;

}

/* ===========================
   RESPONSIVE
=========================== */

@media(max-width:768px){

    main{

        padding:20px;

    }


    nav ul{

        flex-direction:column;

    }


    nav ul li{

        margin:10px 0;

    }


    .contenedor-tarjetas{

        flex-direction:column;

    }


    .contacto-grid{

        grid-template-columns:1fr;

    }


    .oposiciones-grid{

        flex-direction:column;
        align-items:center;

    }


    .oposicion-box{

        max-width:500px;
        width:100%;

    }


    .cookies{

        flex-direction:column;
        gap:15px;

    }


    /* ===========================
       HORARIO EN MÓVIL
    =========================== */

    .tabla-responsive{

        display:none !important;

    }


    .horario-movil{

        display:block !important;
        width:100%;

    }


    .horario-movil-bloque{

        width:100%;
        box-sizing:border-box;
        margin-top:20px;

    }


    .horario-dia{

        display:flex;
        flex-direction:column;
        align-items:flex-start;
        gap:5px;
        padding:15px 10px;
        box-sizing:border-box;

    }


    .horario-dia strong{

        text-align:left;

    }

}

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

.tabla-responsive{

    width:100%;
    margin-top:20px;

}


.horario-movil{

    display:none;

}


.horario-movil-bloque{

    background:#ffffff;
    border-radius:15px;
    padding:20px;
    margin-top:20px;
    box-shadow:0 10px 25px rgba(0,0,0,.10);
    transition:all .3s ease;

}


.horario-movil-bloque:hover{

    transform:translateY(-8px);
    box-shadow:0 20px 35px rgba(0,0,0,.15);

}


.horario-movil-bloque h3{

    background:#0056b3;
    color:#ffffff;
    text-align:center;
    padding:12px;
    border-radius:10px;
    margin-bottom:15px;
    font-size:20px;

}


.horario-dia{

    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:15px;
    padding:14px 10px;
    border-bottom:1px solid #e5e5e5;
    border-radius:8px;
    transition:all .3s ease;

}


.horario-dia:last-child{

    border-bottom:none;

}


.horario-dia:hover{

    background:#e8f1ff;
    transform:translateY(-3px);
    box-shadow:0 5px 12px rgba(0,0,0,.10);

}


.horario-dia span{

    font-weight:bold;
    color:#555;
    transition:color .3s ease;

}


.horario-dia strong{

    color:#0056b3;
    text-align:right;
    transition:color .3s ease;

}


.horario-dia:hover span{

    color:#0056b3;

}


.horario-dia:hover strong{

    color:#ff9800;

}