/* =========================
RESET
========================= */

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

body{
font-family: Georgia, serif;
background:#2f2f2f;
color:#e6e6e6;
line-height:1.6;
}

/* =========================
LAYOUT PRINCIPAL
========================= */

.container{
max-width:1090px;
margin:auto;
padding:20px;
}

/* HEADER */
.site-header {
    background:#3a3a3a;
    border-bottom:1px solid #555;
}

.header-inner {
    max-width:1090px; /* ancho del contenido */
    margin:auto;
    display:flex;
    align-items:center;
    gap:20px;
    padding:20px;
}

.logo {
    display:flex;
    align-items:center;
    gap:15px;
}

.logo-box {
    width:100px;
    height:100px;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
}

.logo-box img {
    display:block;
    width:100px;
    height:100px;
    object-fit:cover;
}

.site-name {
    font-family: Georgia, serif;
    font-size:22px;
    color:#eee;
    font-weight:bold;
}
/* =========================
MENU
========================= */

.site-menu{
background:#404040;
border-bottom:1px solid #555;
}

.site-menu ul{
max-width:1090px;
margin:auto;
display:flex;
gap:25px;
list-style:none;
padding:12px 20px;
justify-content:flex-start;
}

.site-menu a{
text-decoration:none;
color:#eee;
font-family: Helvetica, Arial, sans-serif;
font-size:14px;
}

.site-menu a:hover{
color:#fff;
}

/* =========================
HOME / SECCIONES
========================= */

main{
padding-top:30px;
}

/* =========================
WIDGETS
========================= */

.widget{
max-width:700px;
margin:40px auto;
padding:20px;
background:#3a3a3a;
border:1px solid #555;
}

.widget h2{
margin-bottom:20px;
font-family: Helvetica, Arial, sans-serif;
}

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

.card{
border:1px solid #555;
padding:15px;
margin-bottom:15px;
background:#353535;
}

.card h3{
margin-bottom:10px;
font-size:18px;
}

.card p{
font-size:14px;
}

/* =========================
CAROUSEL
========================= */

.carousel{
max-width:1090px;
margin:40px auto;
position:relative;
overflow:hidden;
border:1px solid #555;
background:#333;
}

.slide{
display:none;
padding:40px;
}

.slide.active{
display:block;
}

/* =========================
GRID OPCIONAL
========================= */

.grid-2{
display:grid;
grid-template-columns:1fr 1fr;
gap:20px;
}

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

form{
max-width:700px;
margin:auto;
display:flex;
flex-direction:column;
gap:15px;
}

input, textarea{
padding:10px;
border:1px solid #555;
background:#2f2f2f;
color:#eee;
}

button{
padding:10px;
border:none;
background:#555;
color:white;
cursor:pointer;
}

button:hover{
background:#666;
}

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

footer { text-align: center; padding: 2rem; background: rgba(0,0,0,0.5); margin-top: 4rem; }
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); }
.modal-content { background: #2b2b2b; margin: 10% auto; padding: 2rem; border-radius: 8px; width: 90%; max-width: 500px; position: relative; }
.close-modal { color: #fff; float: right; font-size: 28px; font-weight: bold; cursor: pointer; }
.close-modal:hover { color: #ff4444; }
/* =========================
LIGHTBOX
========================= */

.lightbox{
display:none;
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.9);
justify-content:center;
align-items:center;
}

.lightbox img{
max-width:90%;
max-height:90%;
}

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

@media (max-width:900px){

.grid-2{
grid-template-columns:1fr;
}

.site-menu ul{
flex-direction:column;
gap:10px;
}

.logo-box{
width:120px;
height:120px;
overflow: inherit;
}

.logo-box img {
    display:block;
    width:150px;
    height:120px;
    object-fit:cover;
}
}

.site-name {
    font-family: Georgia, serif;
    font-size: 15px;
    color: #eee;
    font-weight: bold;

}

/* WIDGET ACTIVIDADES */

.widget-actividades{

max-width:1090px;
margin:40px auto;

}

.carousel-wrapper{

position:relative;
display:flex;
align-items:center;

}

.carousel-actividades{

display:flex;
overflow:hidden;
scroll-behavior:smooth;
gap:20px;

}

.actividad-card{

min-width:220px;
flex-shrink:0;

}

.actividad-poster{

height:350px;
overflow:hidden;

}

.actividad-poster img{

width:100%;
height:100%;
object-fit:cover;

}

.actividad-info{

padding-top:10px;

}

.actividad-info h3{

font-size:15px;
margin:0;

}

.actividad-fecha{

font-size:13px;
opacity:0.7;

}

.carousel-btn{

position:absolute;
top:40%;
transform:translateY(-50%);
background:#222;
color:#fff;
border:none;
padding:10px 14px;
cursor:pointer;
z-index:5;

}

.carousel-btn.prev{

left:-40px;

}

.carousel-btn.next{

right:-40px;

}

.widget-noticias{

max-width:700px;
margin:40px auto;

}

.noticia-principal img{

width:100%;
height:180px;
object-fit:cover;

}

.noticia-principal h3{

margin:10px 0 5px 0;
font-size:20px;

}

.meta{

font-size:14px;
color:#777;

}

.noticias-secundarias{

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

}

.noticia-mini{

display:flex;
gap:10px;
flex:1;

}

.noticia-mini img{

width:60px;
height:60px;
object-fit:cover;

}

.noticia-mini h4{

font-size:14px;
margin:0;

}

.noticia-mini span{

font-size:12px;
color:#777;

}

.post-noticia{

max-width:700px;
margin:40px auto;

}

.post-titulo{

font-size:28px;
margin-bottom:10px;

}

.post-meta{

color:#777;
font-size:14px;
margin-bottom:20px;

}

.post-imagen img{

width:100%;
height:auto;

}

.post-contenido{

margin-top:20px;
line-height:1.6;

}

.post-nav{

display:flex;
justify-content:space-between;
margin-top:40px;
font-size:14px;

}

.post-nav a{

text-decoration:none;
color:#333;

}

.blog-actividades{

max-width:1090px;
margin:40px auto;

}

.blog-actividades h1{

margin-bottom:30px;

}

.actividades-grid{

display:grid;
grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
gap:30px;

}

.actividad-card{

background:#fff;
border:1px solid #ddd;
padding:15px;
transition:0.2s;

}

.actividad-card:hover{

transform:translateY(-3px);

}

.actividad-imagen img{

width:100%;
height:160px;
object-fit:cover;

}

.actividad-card h2{

font-size:18px;
margin:10px 0;

}

.actividad-meta{

font-size:13px;
color:#777;
margin-bottom:10px;

}

.actividad-extracto{

font-size:14px;
color:#444;

}

.actividad-card a{

text-decoration:none;
color:inherit;

}

/* =========================================
   WIDGET ACTIVIDADES
========================================= */

/* DESKTOP */

.widget-actividades{
max-width:1090px;
margin:40px auto;
}

/* MOBILE */

@media (max-width:900px){

.widget-actividades{
padding:20px;
}

}

.titulo-seccion{
font-size:26px;
margin-bottom:25px;
}

.actividades-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:25px;
}

.actividad-card{
display:block;
background:white;
border-radius:8px;
overflow:hidden;
box-shadow:0 2px 10px rgba(0,0,0,0.1);
text-decoration:none;
color:#333;
transition:0.2s;
}

.actividad-card:hover{
transform:translateY(-5px);
}

.actividad-img img{
width:100%;
height:180px;
object-fit:cover;
display:block;
}

.actividad-info{
padding:15px;
}

.actividad-info h3{
font-size:18px;
margin:0 0 8px 0;
}

.actividad-fecha{
font-size:13px;
color:#777;
margin-bottom:10px;
}

.actividad-info p{
font-size:14px;
line-height:1.4;
}

/* responsive */

@media (max-width:900px){

.actividades-grid{
grid-template-columns:1fr;
}

}

/* =========================
   SECCION ACTIVIDADES BLOG
========================= */

.actividades-blog{
    max-width:1100px;
    margin:auto;
    padding:40px 20px;
}

.actividades-blog h1{
    font-size:32px;
    margin-bottom:30px;
}

/* GRID */

.actividades-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:30px;
}

/* TARJETA */

.actividad-card{
    display:block;
    text-decoration:none;
    color:#eee;
    background:#2b2b2b;
    border-radius:6px;
    overflow:hidden;
    transition:transform .2s ease;
}

.actividad-card:hover{
    transform:translateY(-4px);
}

/* IMAGEN */

.actividad-card img{
    width:100%;
    height:220px;
    object-fit:cover;
}

/* CONTENIDO */

.actividad-card h3{
    font-size:20px;
    padding:15px 15px 5px 15px;
}

.actividad-card .fecha{
    font-size:14px;
    opacity:.7;
    padding:0 15px 10px 15px;
}

.actividad-card p{
    font-size:15px;
    padding:0 15px 20px 15px;
    line-height:1.4;
}

/* WIDGET BIBLIOTECA - catálogo */
.widget-biblioteca {
    max-width:700px;
    margin:40px auto;
    padding:20px;
    background:#3a3a3a;
    border:1px solid #555;
}

.widget-biblioteca h2 {
    font-family: Helvetica, Arial, sans-serif;
    margin-bottom:20px;
}

/* Tabla catálogo */
.biblioteca-catalogo {
    width:100%;
    border-collapse:collapse;
}

.biblioteca-catalogo th,
.biblioteca-catalogo td {
    border:1px solid #555;
    padding:10px;
    text-align:left;
    font-size:14px;
    color:#eee;
}

.biblioteca-catalogo th {
    background:#404040;
    font-weight:bold;
}

.biblioteca-catalogo td img {
    width:60px;
    height:60px;
    object-fit:cover;
    display:block;
}

/* Pie de widget */
.biblioteca-footer {
    margin-top:15px;
    text-align:right;
}

.biblioteca-footer a {
    color:#eee;
    text-decoration:none;
    font-weight:bold;
}

.biblioteca-footer a:hover {
    color:#fff;
}

/* Responsive */
@media (max-width:600px){
    .biblioteca-catalogo th, .biblioteca-catalogo td {
        font-size:12px;
        padding:8px;
    }

    .biblioteca-catalogo td img {
        width:40px;
        height:40px;
    }
}

/* SECCION BIBLIOTECA */
.biblioteca-section {
    max-width:1090px;
    margin:auto;
    padding:40px 20px;
}

.biblioteca-filtros {
    display:flex;
    gap:20px;
    margin-bottom:30px;
}

.biblioteca-filtros input,
.biblioteca-filtros select {
    padding:10px;
    border:1px solid #555;
    background:#2f2f2f;
    color:#eee;
    font-size:14px;
}

.biblioteca-listado {
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(280px,1fr));
    gap:25px;
}

.biblioteca-card {
    background:#3a3a3a;
    padding:15px;
    border:1px solid #555;
    border-radius:6px;
    color:#eee;
    transition:0.2s;
}

.biblioteca-card:hover {
    transform:translateY(-3px);
}

.biblioteca-card img {
    width:100%;
    height:180px;
    object-fit:cover;
    margin-bottom:10px;
}

.biblioteca-info h3 {
    font-size:18px;
    margin-bottom:5px;
}

.biblioteca-info .tipo,
.biblioteca-info .disponibilidad {
    font-size:13px;
    opacity:0.8;
    margin-bottom:5px;
}

.biblioteca-info p.descripcion {
    font-size:14px;
    line-height:1.4;
}

.btn-agendar {
    margin-top:10px;
    padding:8px 12px;
    background:#555;
    color:#eee;
    border:none;
    cursor:pointer;
}

.btn-agendar:hover {
    background:#666;
}

/* Lightbox específico para biblioteca */
.lightbox .lightbox-content {
    background:#2f2f2f;
    padding:25px;
    border-radius:8px;
    width:400px;
    max-width:90%;
}

/* FILTROS BIBLIOTECA */
.biblioteca-filtros select {
    padding:10px;
    border:1px solid #555;
    background:#2f2f2f;
    color:#eee;
    font-size:14px;
}
.biblioteca-info .categoria {
    font-size:13px;
    opacity:0.8;
    margin-bottom:5px;
}

.widget-biblioteca table{
width:100%;
max-width:100%;
border-collapse:collapse;
margin-bottom:10px;
table-layout:auto;
}

.widget-biblioteca th, .widget-biblioteca td {
    padding: 10px;
    border: 1px solid #555;
    text-align: left;
    font-size: 14px;
}

.widget-biblioteca th {
    background: #444;
    color: #fff;
}

.widget-biblioteca tr:nth-child(even) {
    background: #3a3a3a;
}

.btn-ir-biblioteca {
    display: inline-block;
    padding: 10px 20px;
    background:#555;
    color:#fff;
    text-decoration:none;
    border-radius:4px;
    transition:0.2s;
}

.btn-ir-biblioteca:hover {
    background:#666;
}



.widget-biblioteca th, .widget-biblioteca td {
    padding: 10px;
    border: 1px solid #555;
    text-align: left;
    font-size: 14px;
}

.widget-biblioteca th {
    background: #444;
    color: #fff;
}

.widget-biblioteca tr:nth-child(even) {
    background: #3a3a3a;
}

.btn-ir-biblioteca {
    display: inline-block;
    padding: 10px 20px;
    background:#555;
    color:#fff;
    text-decoration:none;
    border-radius:4px;
    transition:0.2s;
}

.btn-ir-biblioteca:hover {
    background:#666;
}

/* =========================
SECCIÓN NOTICIAS BLOG
========================= */
.noticias-blog{
    max-width:1090px;
    margin:auto;
    padding:40px 20px;
}

.noticias-blog h1{
    font-size:32px;
    margin-bottom:30px;
}

/* GRID DE NOTICIAS */
.noticias-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:30px;
}

/* TARJETA DE NOTICIA */
.noticia-card{
    display:block;
    text-decoration:none;
    color:#eee;
    background:#2b2b2b;
    border-radius:6px;
    overflow:hidden;
    transition:transform .2s ease;
}

.noticia-card:hover{
    transform:translateY(-4px);
}

.noticia-card img{
    width:100%;
    height:180px;
    object-fit:cover;
}

.noticia-info{
    padding:15px;
}

.noticia-info h3{
    font-size:20px;
    margin:0 0 8px 0;
}

.noticia-info .fecha{
    font-size:14px;
    opacity:.7;
    margin-bottom:10px;
}

.noticia-info p{
    font-size:15px;
    line-height:1.4;
}

/* Contenedor del widget */
.widget-biblioteca {
    max-width: 1090px;
    margin: 30px auto;
    background-color: #fff;
    padding: 20px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

/* Contenedor widget oscuro */
.widget-biblioteca {
    max-width: 1090px;
    margin: 30px auto;
    background-color: #1f1f1f;
    padding: 20px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    color: #eee;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Título del widget */
.widget-biblioteca h2 {
    font-size: 22px;
    margin-bottom: 20px;
    text-align: center;
    color: #f5f5f5;
}

/* Lista de tarjetas */
.widget-biblioteca .biblioteca-listado {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* Tarjeta individual */
.widget-biblioteca .biblioteca-card {
    background-color: #2c2c2c;
    border: 1px solid #444;
    border-radius: 10px;
    width: 220px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.widget-biblioteca .biblioteca-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.6);
}

/* Imagen portada */
.widget-biblioteca .biblioteca-card img {
    max-width: 100%;
    border-radius: 6px;
    margin-bottom: 10px;
}

/* Información de la tarjeta */
.widget-biblioteca .biblioteca-info h3 {
    font-size: 16px;
    color: #f5f5f5;
    margin: 0 0 5px;
}

.widget-biblioteca .tipo,
.widget-biblioteca .categoria,
.widget-biblioteca .descripcion {
    font-size: 13px;
    color: #ccc;
    margin: 2px 0;
}

/* Estado: disponible o prestado */
.widget-biblioteca .disponibilidad {
    font-weight: 600;
    margin-top: 5px;
}

.widget-biblioteca .disponibilidad:contains("Disponible") {
    color: #16a085; /* verde */
}

.widget-biblioteca .disponibilidad:contains("Prestado") {
    color: #e74c3c; /* rojo */
}

/* Botón agendar */
.widget-biblioteca .btn-agendar {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 14px;
    background-color: #444;
    color: #eee;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: background-color 0.3s, transform 0.2s;
}

.widget-biblioteca .btn-agendar:hover {
    background-color: #16a085;
    transform: translateY(-2px);
}

/* Footer del widget */
.widget-biblioteca .widget-footer {
    margin-top: 15px;
    text-align: center;
}

.widget-biblioteca .widget-footer .btn-ir-biblioteca {
    padding: 8px 18px;
    background-color: #16a085;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s;
}

.widget-biblioteca .widget-footer .btn-ir-biblioteca:hover {
    background-color: #13856e;
}

/* Responsive */
@media(max-width:800px){
    .widget-biblioteca .biblioteca-card { width: 100%; }
}

/* Contenedor widget */
.widget-noticias {
    max-width: 1090px;
    margin: 30px auto;
    background-color: #1f1f1f;
    padding: 20px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    color: #eee;
}

/* Título */
.widget-noticias .widget-title {
    font-size: 22px;
    margin-bottom: 20px;
    text-align: center;
}

/* Principal */
.noticia-principal {
    display: block;
    background-color: #2c2c2c;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    text-decoration: none;
    color: #eee;
    transition: transform 0.2s, box-shadow 0.2s;
}

.noticia-principal img {
    width: 100%;
    display: block;
}

.noticia-principal h3 {
    margin: 10px;
}

.noticia-principal .meta {
    margin: 0 10px 10px;
    font-size: 14px;
    color: #ccc;
}

.noticia-principal:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.6);
}

/* Miniaturas */
.noticias-miniaturas {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.noticia-mini {
    background-color: #2c2c2c;
    border-radius: 10px;
    width: 240px;
    text-decoration: none;
    color: #eee;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.noticia-mini img {
    width: 100%;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.noticia-mini div {
    padding: 10px;
}

.noticia-mini h4 {
    margin: 0 0 5px;
    font-size: 15px;
}

.noticia-mini span {
    font-size: 13px;
    color: #ccc;
}

.noticia-mini:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

/* Responsive */
@media(max-width: 900px){
    .noticia-mini {
        width: 100%;
    }
}

/* ===============================
   Contenedor widget oscuro
   =============================== */
.widget-actividades {
    max-width: 1090px;
    margin: 30px auto;
    background-color: #1f1f1f;
    padding: 20px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    color: #eee;
}

/* Título */
.widget-actividades .widget-title {
    text-align: center;
    font-size: 22px;
    margin-bottom: 20px;
}

/* Carousel */
.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Botones */
.carousel-btn {
    background-color: #444;
    color: #eee;
    border: none;
    font-size: 24px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.3s;
}

.carousel-btn:hover {
    background-color: #16a085;
}

/* Contenedor de tarjetas */
.carousel-actividades {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    scroll-behavior: smooth;
    padding: 10px 0;
}

/* Tarjeta individual */
.actividad-card {
    background-color: #2c2c2c;
    border-radius: 10px;
    flex: 0 0 250px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #eee;
    transition: transform 0.2s, box-shadow 0.2s;
}

.actividad-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

.actividad-poster img {
    width: 100%;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.actividad-info {
    padding: 10px;
}

.actividad-info h3 {
    font-size: 16px;
    margin: 0 0 5px;
    color: #f5f5f5;
}

.actividad-info .actividad-fecha {
    font-size: 13px;
    color: #ccc;
}

/* Scrollbar oculto para elegante visual */
.carousel-actividades::-webkit-scrollbar {
    display: none;
}

/* Responsive */
@media(max-width:900px){
    .actividad-card {
        flex: 0 0 90%;
    }
}

/* ============================= */
/* NOTICIA INDIVIDUAL */
/* ============================= */

.noticia-container{
max-width:1090px;
margin:auto;
padding:40px 20px;
}

.noticia-articulo{
background:#1a1a1a;
padding:40px;
border:1px solid #333;
}

.noticia-header h1{
font-size:32px;
margin-bottom:10px;
color:#fff;
}

.noticia-meta{
color:#aaa;
font-size:14px;
margin-bottom:30px;
}

.noticia-imagen{
margin-bottom:30px;
}

.noticia-imagen img{
width:100%;
height:auto;
display:block;
}

.noticia-contenido{
font-size:17px;
line-height:1.7;
color:#ddd;
}

.noticia-contenido p{
margin-bottom:18px;
}

.noticia-nav{
margin-top:40px;
display:flex;
justify-content:space-between;
border-top:1px solid #333;
padding-top:20px;
}

.noticia-nav a{
color:#ccc;
text-decoration:none;
max-width:45%;
}

.noticia-nav a:hover{
color:#fff;
}

.nav-prev{
text-align:left;
}

.nav-next{
text-align:right;
}

/* =====================================
NOTICIA INDIVIDUAL
===================================== */

.noticia-container{
max-width:1090px;
margin:60px auto;
padding:0 20px;
}

.noticia-articulo{
background:#141414;
border:1px solid #2a2a2a;
padding:60px;
line-height:1.7;
}

/* TITULO */

.noticia-header{
margin-bottom:35px;
border-bottom:1px solid #333;
padding-bottom:20px;
}

.noticia-header h1{
font-size:34px;
font-weight:600;
color:#fff;
margin-bottom:10px;
letter-spacing:0.5px;
}

.noticia-meta{
font-size:14px;
color:#9a9a9a;
text-transform:uppercase;
letter-spacing:1px;
}

/* IMAGEN */

.noticia-imagen{
margin:40px 0;
}

.noticia-imagen img{
width:100%;
height:auto;
display:block;
border:1px solid #333;
}

/* CONTENIDO */

.noticia-contenido{
max-width:760px;
margin:auto;
font-size:18px;
color:#d5d5d5;
}

.noticia-contenido p{
margin-bottom:22px;
}

.noticia-contenido strong{
color:#fff;
}

.noticia-contenido a{
color:#e63946;
text-decoration:none;
}

.noticia-contenido a:hover{
text-decoration:underline;
}

/* NAVEGACION */

.noticia-nav{
margin-top:60px;
padding-top:25px;
border-top:1px solid #333;
display:flex;
justify-content:space-between;
gap:30px;
}

.noticia-nav a{
flex:1;
text-decoration:none;
color:#bbb;
font-size:15px;
transition:all .2s;
}

.noticia-nav a:hover{
color:#fff;
}

.nav-prev{
text-align:left;
}

.nav-next{
text-align:right;
}

/* RESPONSIVE */

@media (max-width:900px){

.noticia-articulo{
padding:35px;
}

.noticia-header h1{
font-size:26px;
}

.noticia-contenido{
font-size:16px;
}

.noticia-nav{
flex-direction:column;
gap:15px;
}

.nav-next{
text-align:left;
}

/* contenedor widgets */

.widget-container{
max-width:1090px;
margin:0 auto;
padding:0 20px;
box-sizing:border-box;
}

.carousel-wrapper{
position:relative;
overflow:hidden;
}

.carousel-actividades{
display:flex;
gap:20px;
}

.carousel-wrapper{
position:relative;
overflow:hidden;
}

.carousel-actividades{
display:flex;
gap:20px;
}

/* =========================
WIDGET ACTIVIDADES
========================= */

.widget-actividades{
max-width:1090px;
margin:40px auto;
padding:20px 25px;
background:#1f1f1f;
border:1px solid #333;
border-radius:10px;
}

/* wrapper del carrusel */

.carousel-wrapper{
position:relative;
width:100%;
max-width:100%;
overflow:hidden;
}

/* contenedor scrollable */

.carousel-actividades{

display:flex;
gap:20px;

overflow-x:auto;
overflow-y:hidden;

scroll-behavior:smooth;

width:100%;
max-width:100%;

padding:10px 0;

scrollbar-width:none;
}

.carousel-actividades::-webkit-scrollbar{
display:none;
}

/* tarjeta actividad */

.actividad-card{

flex:0 0 260px;
max-width:260px;

background:#2c2c2c;
border-radius:8px;
overflow:hidden;

text-decoration:none;
color:#eee;

transition:transform .2s ease;

}

.actividad-card:hover{
transform:translateY(-4px);
}

/* poster */

.actividad-poster{
width:100%;
height:260px;
overflow:hidden;
}

.actividad-poster img{
width:100%;
height:100%;
object-fit:cover;
display:block;
}

/* info */

.actividad-info{
padding:12px;
}

.actividad-info h3{
font-size:15px;
margin-bottom:6px;
}

.actividad-fecha{
font-size:13px;
color:#bbb;
}

/* botones */

.carousel-btn{

position:absolute;
top:45%;
transform:translateY(-50%);

width:36px;
height:36px;

background:#111;
border:1px solid #333;

color:#fff;
font-size:22px;

cursor:pointer;
z-index:2;

display:flex;
align-items:center;
justify-content:center;

}

.carousel-btn.prev{
left:5px;
}

.carousel-btn.next{
right:5px;
}

.carousel-btn:hover{
background:#16a085;
}


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

@media (max-width:900px){

.actividad-card{
flex:0 0 220px;
max-width:220px;
}

}

@media (max-width:600px){

.actividad-card{
flex:0 0 85%;
max-width:100%;
}

.carousel-btn{
display:none;
}

}
/* =========================
FIX RESPONSIVE ACTIVIDADES
========================= */

@media (max-width:900px){

    .widget-biblioteca{
overflow-x:auto;
}

.widget-actividades{

max-width:100%;
width:100%;

margin:30px 0;

padding:20px 15px;

}

}

@media (max-width:700px){

.widget-biblioteca th:nth-child(1),
.widget-biblioteca td:nth-child(1){
display:none; /* codigo */
}

.widget-biblioteca th:nth-child(4),
.widget-biblioteca td:nth-child(4){
display:none; /* año */
}

}



@media (max-width:700px){

.biblioteca-filtros {
    display: block;
    gap: 20px;
    margin-bottom: 30px;
}





}





