:root {
    --color-fondo-pagina: #F9F8FA;
    --color-fondo-contenedor: #FFFFFF;
    --color-fondo-secundario: #F5F3F7;
    --color-acento: #B0A8B9;
    --color-acento-oscuro: #8D809B;
    --color-texto-oscuro: #695E76;
    --color-texto-claro: #7A7380;
    
    /* AÑADE ESTA LÍNEA (es la versión RGB de #B0A8B9) */
    --color-acento-rgb: 176, 168, 185;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Source Sans 3', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--color-texto-claro);
    background-color: var(--color-fondo-pagina);
    font-size: 1.05rem;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-texto-oscuro);
}

.section-title {
    margin-bottom: 2.5rem;
    color: var(--color-texto-oscuro);
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: var(--color-acento);
    border-radius: 5px;
}

.page-container {
    max-width: 1320px; 
    /* Cambia la línea de margen por esta: */
    margin: 0 auto 2rem auto; 
    background-color: var(--color-fondo-contenedor); 
    border-radius: 8px; 
    overflow: hidden; 
    box-shadow: 0 8px 30px rgba(0,0,0,0.08); /* Restaurado/Ajustado el shadow */
}

@media (max-width: 768px) {
    .page-container {
        margin: 0;
        border-radius: 0;
        box-shadow: none !important;
    }
}

.main-navbar {
    background-color: var(--color-fondo-contenedor) !important;
    border-bottom: 1px solid #eee;
}

.navbar-logo {
    max-height: 55px; 
    width: auto;
}

.main-navbar .nav-link {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    color: var(--color-texto-claro) !important;
    transition: color 0.2s ease;
}
.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    color: var(--color-acento-oscuro) !important;
}

#heroCarousel .carousel-item {
    max-height: 550px;
}
#heroCarousel .carousel-item img {
    object-fit: cover;
    filter: brightness(0.7);
}
#heroCarousel .carousel-caption {
    background: rgba(0, 0, 0, 0.25);
    padding: 20px;
    border-radius: 0.5rem;
}
#heroCarousel .carousel-caption h2 {
    font-family: var(--font-heading);
    color: #FFFFFF;
}
#heroCarousel .carousel-caption p {
    color: #f0f0f0;
}


.welcome-section {
    background-color: var(--color-fondo-contenedor);
}
.welcome-section .lead {
    font-size: 1.15rem;
    color: var(--color-texto-oscuro);
}

#anuncios {
    background-color: var(--color-fondo-secundario);
}

.announcement-block {
    margin-bottom: 3rem;
}

.announcement-block h3 {
    margin-bottom: 1rem;
    color: var(--color-acento-oscuro); 
}

.announcement-block img {
    height: 300px;
    width: 100%;
    object-fit: cover;
    border: none;
}

.announcement-divider {
    border-color: #ddd;
    opacity: 0.8;
    margin: 4rem auto;
    width: 80%;
}

.custom-btn {
    background-color: var(--color-acento);
    border-color: var(--color-acento);
    font-family: var(--font-body);
    font-weight: 600;
    padding: 10px 25px;
    border-radius: 50px;
    transition: all 0.3s ease;
    color: #FFFFFF;
}
.custom-btn:hover {
    background-color: var(--color-acento-oscuro);
    border-color: var(--color-acento-oscuro);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

#gallery {
    background-color: var(--color-fondo-contenedor);
}

.gallery-item {
    display: block;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: transform 0.3s ease-in-out;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.gallery-item:hover img {
    transform: scale(1.08);
}


.main-footer {
    background-color: var(--color-texto-oscuro); 
    color: #f0f0f0;
}
.main-footer h3 {
    color: #FFFFFF;
}
.main-footer .social-icons a {
    font-size: 1.8rem;
    margin: 0 10px;
    color: var(--color-fondo-pagina);
    transition: color 0.3s ease;
}
.main-footer .social-icons a:hover {
    color: #FFFFFF;
}



.schedule-card {
    background-color: var(--color-fondo-contenedor);
    border: 1px solid var(--color-fondo-secundario);
    border-radius: 0.5rem; 
    padding: 2.5rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); 
}

.schedule-card:hover {
    border-color: var(--color-acento);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08); 
    transform: translateY(-5px); 
}

.schedule-card .card-icon {
    font-size: 3rem;
    color: var(--color-acento-oscuro); 
    margin-bottom: 1rem;
}

.schedule-card h3 {
    font-family: var(--font-heading);
    color: var(--color-texto-oscuro); 
    margin-bottom: 1.5rem;
}

.schedule-card h5 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-acento-oscuro); 
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.schedule-card ul {
    padding-left: 0;
    margin-bottom: 0;
}

.schedule-card li {
    font-size: 1rem;
    color: var(--color-texto-claro);
    line-height: 1.8;
}


.contact-form-block h3,
.contact-info-block h3 {
    color: var(--color-texto-oscuro);
    font-family: var(--font-heading);
    margin-bottom: 2rem !important;
}


.form-control {
    background-color: var(--color-fondo-secundario); 
    border-color: var(--color-fondo-secundario);
    padding: 0.85rem 1rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    background-color: var(--color-fondo-contenedor);
    border-color: var(--color-acento);
    box-shadow: 0 0 0 0.25rem rgba(var(--color-acento-rgb), 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--color-texto-claro);
}


.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-info-item .icon-wrapper {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: var(--color-fondo-secundario);
    color: var(--color-acento-oscuro); 
    border-radius: 50%; 
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1rem;
}

.contact-info-item .info-text {
    color: var(--color-texto-claro);
    line-height: 1.5;
}

.contact-info-item .info-text strong {
    color: var(--color-texto-oscuro); 
    font-weight: 600;
    display: block;
}


.map-container {
    overflow: hidden;
    border-radius: 0.5rem;
    border: 1px solid #eee;
}

.map-container iframe {
    border: 0;
    width: 100%;
    height: 400px;
}

.psalm-quote .blockquote {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-style: italic;
    color: var(--color-texto-oscuro);
    line-height: 1.6;
    border-left: 4px solid var(--color-acento);
    padding-left: 2rem;
}

.psalm-quote .blockquote-footer {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--color-acento-oscuro);
    margin-top: 1rem;
}

.gallery-subtitle {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-acento-oscuro);
    text-align: center;
    border-bottom: 2px solid var(--color-fondo-secundario);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem; /* Espacio antes de que empiecen las fotos */
}

.event-item {
    display: flex;
    align-items: center;
    background-color: var(--color-fondo-secundario); /* Fondo lila sutil */
    border-radius: 0.5rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid var(--color-fondo-secundario);
}

.event-item:hover {
    border-color: var(--color-acento);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.event-date {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background-color: var(--color-acento); /* Color lila */
    color: #FFFFFF;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    line-height: 1;
}

.event-date span {
    font-size: 0.9rem;
    text-transform: uppercase;
    opacity: 0.8;
}

.event-date strong {
    font-size: 2.25rem;
    display: block;
}

.event-details {
    padding-left: 1.5rem;
}

.event-details h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-acento-oscuro);
    margin-bottom: 0.25rem;
}

.event-details p {
    font-size: 0.95rem;
    color: var(--color-texto-claro);
    margin-bottom: 0;
}

.event-details p i {
    margin-right: 0.25rem;
}

/* Descripción extra para la página de eventos */
.event-details .event-description {
    font-size: 0.9rem;
    color: var(--color-texto-claro);
    margin-top: 0.25rem;
    padding-top: 0.25rem;
    border-top: 1px dashed var(--color-acento);
}


#eventos-home .event-details .event-description {
    display: none; 
}


.gallery-item {
    display: block; /* Asegura que el enlace ocupe espacio */
    overflow: hidden; /* Necesario para object-fit */
    border-radius: 0.5rem; /* Mantenemos bordes redondeados */
    height: 250px; /* <-- ALTURA FIJA (Ajusta este valor si quieres) */
    position: relative; /* Para posicionar la imagen si es necesario */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.gallery-item img {
    width: 100%;
    height: 100%; /* <-- HACE QUE LA IMAGEN OCUPE TODA LA ALTURA DEL CONTENEDOR */
    object-fit: cover; /* <-- LA MAGIA: Escala y recorta para llenar sin deformar */
    transition: transform 0.3s ease-in-out; 
}

/* Mantenemos el efecto hover que te gustó */
.gallery-item:hover {
    transform: translateY(-8px); 
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.gallery-item:hover img {
    transform: scale(1.08); 
}