/* css/style.css 
// --- Ejemplo: css/style.css (Mejorado) ---
*/
body {
    font-family: 'Roboto', 'Arial', sans-serif; /* Fuente más moderna */
    margin: 0;
    padding: 0;
    line-height: 1.7; /* Ligeramente más espaciado */
    background-color: #f8f9fa; /* Un gris más claro */
    color: #343a40; /* Gris oscuro para texto */
}

.container {
    width: 90%;
    max-width: 1200px; /* Un poco más ancho */
    margin: 30px auto; /* Más margen superior/inferior */
    background: #fff;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Sombra más suave */
    border-radius: 10px; /* Bordes más redondeados */
}

header {
    background: green/*#0056b3*/;
    color: #fff;
    padding: 20px 0; /* Más padding */
    border-bottom: #003d82 4px solid;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    box-shadow: none;
    padding: 0 30px;
    width: 100%;
    max-width: none;
    margin: 0;
}

header h1 {
    margin: 0;
    font-size: 2em; /* Ligeramente más grande */
    font-weight: 700;
}
header h1 a {
    color: #fff;
    text-decoration: none;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: #e9ecef; /* Un blanco menos brillante */
    text-decoration: none;
    font-weight: 500; /* Peso medio */
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

nav ul li a:hover, nav ul li a.active {
    background-color: #003d82;
    color: #fff;
}

main {
    padding: 20px 0;
}

footer {
    background: #343a40; /* Consistente con el color de texto */
    color: #f8f9fa;
    text-align: center;
    padding: 25px;
    margin-top: 30px;
    font-size: 0.9em;
}
footer p {
    margin: 5px 0;
}

/* Estilos para Tarjetas (Noticias y Álbumes) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px; /* Espacio entre tarjetas */
}

.card {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden; /* Para que la imagen no se salga */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px); /* Efecto de elevación */
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.card-image-top {
    width: 100%;
    height: 200px; /* Altura fija para la imagen */
    object-fit: cover; /* Asegura que la imagen cubra sin distorsionarse */
}

.card-body {
    padding: 20px;
    flex-grow: 1; /* Para que el cuerpo de la tarjeta ocupe el espacio restante */
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.4em;
    margin-top: 0;
    margin-bottom: 10px;
}
.card-title a {
    color: green/*#0056b3*/;
    text-decoration: none;
    transition: color 0.2s ease;
}
.card-title a:hover {
    color: #003d82;
}

.card-text {
    font-size: 0.95em;
    color: #495057; /* Un gris más oscuro para el texto */
    margin-bottom: 15px;
    flex-grow: 1; /* Empuja el botón hacia abajo */
}

.card-meta {
    font-size: 0.85em;
    color: #6c757d; /* Gris más claro para metadatos */
    margin-bottom: 15px;
}

.btn-read-more {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 10px 18px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    align-self: flex-start; /* Alinea el botón al inicio si el card-text no lo empuja */
}
.btn-read-more:hover {
    background-color: green/*#0056b3*/;
}

/* Estilos para Post Individual */
.post-full article {
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.post-full h1 {
    color: green/*#0056b3*/;
    font-size: 2.2em;
    margin-bottom: 15px;
}
.post-meta-full { /* Metadatos para post individual */
    font-size: 0.9em;
    color: #6c757d;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
.post-image-featured-full { /* Imagen destacada en post individual */
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.post-content-full { /* Contenido del post */
    font-size: 1.1em;
    line-height: 1.8;
}
.post-content-full p {
    margin-bottom: 1.2em;
}
.post-content-full img { /* Estilos para imágenes dentro del contenido */
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 15px 0;
}


/* Estilos para Galería de Fotos (álbumes y fotos) */
.photo-grid { /* Para fotos dentro de un álbum */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.photo-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.photo-item:hover {
    transform: translateY(-5px) scale(1.03); /* Efecto de zoom y elevación */
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}
.photo-item a {
    text-decoration: none;
    color: #343a40;
    display: block;
}
.photo-thumbnail img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}
.photo-caption { /* Para la descripción de la foto */
    padding: 12px;
    font-size: 0.9em;
    color: #495057;
    min-height: 40px; /* Para alinear verticalmente si no hay caption */
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Lightbox Básico (CSS Only) - Opcional */
.lightbox-target {
    position: fixed;
    top: -100%; /* Oculto por defecto */
    width: 100%;
    background: rgba(0,0,0,.7);
    opacity: 0;
    transition: opacity .5s ease-in-out;
    overflow: hidden;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    left:0; /* Asegurar que cubra toda la pantalla */
    height: 100vh; /* Cubrir toda la altura */
}
.lightbox-target:target { /* Cuando el ancla es el target */
    opacity: 1;
    top: 0;
}
.lightbox-target img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 25px rgba(0,0,0,.5);
    border-radius: 5px;
}
.lightbox-close {
    display: block;
    width:50px;
    height:50px;
    box-sizing: border-box;
    background:white;
    color:black;
    text-decoration:none;
    position:absolute;
    top:20px;
    right:20px;
    font-size:2em;
    text-align:center;
    line-height:50px;
    border-radius:50%;
}


/* Estilos para Contacto */
.contact-info p {
    margin-bottom: 12px;
    font-size: 1.05em;
}
.contact-info strong {
    margin-right: 8px;
    color: green/*#0056b3*/;
}

/* Responsive */
@media (max-width: 992px) {
    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: center; /* Centrar en móvil */
        text-align: center;
    }
    nav ul {
        margin-top: 15px;
        flex-direction: column;
        width: 100%;
    }
    nav ul li {
        margin-left: 0;
        margin-bottom: 8px;
        width: 100%;
    }
    nav ul li a {
        display: block; /* Para que ocupen todo el ancho */
        text-align: center;
    }
    .card-grid {
        grid-template-columns: 1fr; /* Una columna en móviles pequeños */
    }
    .photo-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}
