/**
 * Estilos para páginas de ciclos (1ciclo.php y 2ciclo.php)
 * Extraído del CSS inline para mejor mantenimiento
 */

label, .form-label {
    margin-bottom: 0.5rem !important;
}

.form-group {
    margin-bottom: 0rem !important;
}

body {
    font-family: 'Quicksand', 'Source Sans Pro', sans-serif !important;
    background: #e0e0e0;
    overflow-y: auto !important;
    height: auto !important;
}

/* Fondos específicos por ciclo */
body.primer-ciclo {
    background: #d1f1e7 !important;
}

body.segundo-ciclo {
    background: #faddba !important;
}

.portfolio {
    display: flex;
    height: 200px;
    flex-flow: row wrap;
    justify-content: center;
    align-content: center;
    align-items: center;
    background-position: center;
    background-size: cover;
}

.portfolio.primer-ciclo {
    background-image: url(../img/fondo-primer-ciclo.jpg);
}

.portfolio.segundo-ciclo {
    background-image: url(../img/fondo-segundo-ciclo.jpg);
}

.cont1 {
    justify-content: center;
    align-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    background-color: #faddba;
    text-decoration: none;
    font-weight: 700;
    padding: 15px;
    font-size: 1.5em;
    transition: all 0.3s ease;
}

.cont1 a {
    color: white;
}

.active {
    background: linear-gradient(135deg, #faddba 0%, #f8d4a8 100%) !important;
}

.cont1:hover {
    background: linear-gradient(135deg, #faddba 0%, #f8d4a8 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(250, 221, 186, 0.4);
}

.texto-azul {
    text-align: center;
    font-family: Quicksand;
    font-weight: bolder;
    color: #faddba;
    font-size: 2.5em;
    line-height: 1.1em;
    text-transform: uppercase;
    padding-top: 1em;
    text-shadow: 2px 2px 4px rgba(250, 221, 186, 0.3);
}

.texto-azul span {
    color: #1b4e86 !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.texto-azul a {
    color: #faddba !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.texto-azul a:hover {
    color: #f8d4a8 !important;
    text-decoration: none;
    transform: scale(1.05);
}

.contenedor4 {
    display: flex;
    height: auto;
    flex-flow: row wrap;
    justify-content: center;
    align-content: center;
    align-items: center;
}

.libros {
    width: 300px;
    padding: 10px;
    font-size: 30px;
    font-weight: bold;
    text-align: center;
    transition: transform 0.3s ease;
}

.libros:hover {
    transform: scale(1.05);
}

.libros img {
    width: 100%;
    height: auto;
    max-width: 265px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.libros img:hover {
    box-shadow: 0 8px 25px rgba(250, 221, 186, 0.3);
}

.libros h5 {
    font-size: 0.83em;
    font-weight: bold;
    background-color: #faddba;
    border-radius: 15px 15px 0 0;
    padding: 10px 0;
    margin: 1.67em 0;
}

.libros .novedad {
    width: 100%;
    padding: 8px 0;
    font-family: Quicksand;
    font-size: 1em;
    font-weight: bolder;
    color: #1b4e86;
    text-transform: uppercase;
    background: #faddba;
    border-radius: 15px 15px 0 0;
    box-shadow: 0 6px 15px rgba(250, 221, 186, 0.4);
    user-select: none;
    z-index: 1;
}

.fondo-colorado,
a.fondo-rojo {
    text-align: center;
    font-family: Quicksand;
    background: linear-gradient(135deg, #faddba 0%, #f8d4a8 100%);
    color: #1b4e86;
    font-size: 1.5vw;
    font-weight: bolder;
    text-transform: uppercase;
    border-radius: 40px;
    padding: 10px 25px;
    box-shadow: 0 4px 15px rgba(250, 221, 186, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.fondo-colorado:hover,
a.fondo-rojo:hover {
    background: linear-gradient(135deg, #f8d4a8 0%, #f6ca96 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(250, 221, 186, 0.4);
    color: #1b4e86;
    text-decoration: none;
}

/* Estilos específicos para segundo ciclo */
body.segundo-ciclo .libros h5,
body.segundo-ciclo .libros .novedad {
    background-color: #d1f1e7;
}

body.segundo-ciclo .fondo-colorado,
body.segundo-ciclo a.fondo-rojo {
    background: linear-gradient(135deg, #d1f1e7 0%, #c5e8db 100%);
}

body.segundo-ciclo .fondo-colorado:hover,
body.segundo-ciclo a.fondo-rojo:hover {
    background: linear-gradient(135deg, #c5e8db 0%, #b9e0cf 100%);
    box-shadow: 0 6px 20px rgba(209, 241, 231, 0.4);
}

.hero2 {
    width: 100%;
    height: 100%;
}

.hero2 section {
    height: 50px;
    background-image: url(../img/footer.jpg);
    background-position: center;
    background-size: cover;
    color: #fff;
    padding: 13% 0 0 0;
    text-align: center;
}

/* Estilos responsive */
@media (max-width: 768px) {
    .portfolio {
        height: 150px;
    }

    .cont1 {
        font-size: 1.2em;
        padding: 10px;
    }

    .texto-azul {
        font-size: 1.5em;
    }

    .libros {
        width: 200px;
    }

    .fondo-colorado,
    a.fondo-rojo {
        font-size: 3vw;
        padding: 8px 15px;
    }
}