/* home.css - Estructura Final Corregida y Mascarador Ampliado */
:root {
    --oro: #d4af37;
    --azul-profundo: #1a2a6c;
    --crema-suave: #fdfbf7;
    --borde-crema: #f3ebd8;
    --borde-oro-sutil: rgba(212, 175, 55, 0.3);
}

/* Fix de visibilidad para evitar la "parte muerta" */
.reveal {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Carrusel al 65% con recorte controlado */
.hero-carrusel-section {
    height: 60vh;
    display: flex;
    justify-content: center;
    padding: 20px 0 0 0;
}

.hero-carrusel-container {
    width: 65%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    position: relative;
    z-index: 1;
}

.carousel-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    object-position: center center; 
}

/* SOLUCIÓN TOTAL: Ancho idéntico al carrusel, fondo blanco sólido y mayor elevación */
.titulo-sobrepuesto-mascarador {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 65%; /* Mismo ancho exacto que el contenedor del carrusel */
    max-width: 65%;
    margin: -60px auto 40px auto; /* Subimos a -60px para forzar la cobertura completa de la base */
    background: #ffffff; /* Sólido absoluto para actuar como un parche/máscara real */
    padding: 30px 20px; /* Incrementamos espacio vertical */
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border: 1px solid var(--borde-oro-sutil);
    box-sizing: border-box;
}

/* Ajuste de tamaño de fuente para el título principal */
.titulo-principal {
    color: var(--azul-profundo);
    font-size: 2.4rem; /* Un poco más imponente */
    margin: 0;
    font-weight: 700;
}

/* Recuadro Cream - Definición de Obra y Valores */
.fundacion-definicion-section {
    margin: 40px 0;
    display: flex;
    justify-content: center;
}

.fundacion-crema-box {
    background-color: var(--crema-suave);
    border: 1px solid var(--borde-crema);
    border-left: 5px solid var(--oro);
    border-right: 5px solid var(--oro);
    padding: 40px 50px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(26, 42, 108, 0.05);
    text-align: center;
    max-width: 85%;
}

.fundacion-crema-box h2 {
    color: var(--azul-profundo);
    font-size: 1.8rem;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.fundacion-texto-principal {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333;
    margin-top: 25px;
    font-weight: 500;
}

.fundacion-texto-espiritual {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-top: 15px;
    font-style: normal;
}

/* Palabra de Vida (Abajo) */
.biblia-highlight {
    background: linear-gradient(rgba(26, 42, 108, 0.9), rgba(26, 42, 108, 0.9));
    color: white;
    padding: 60px 20px;
    border-radius: 20px;
    text-align: center;
    margin: 40px 0 60px 0;
    border: 1px solid var(--oro);
}

/* Títulos Centrados Generales */
.section-header-centrado {
    text-align: center;
    margin-bottom: 40px;
}

.title-line {
    width: 60px;
    height: 3px;
    background: var(--oro);
    margin: 10px auto;
}

/* Pilares Grid */
.pilares-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 60px;
}

.pilar-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    text-align: center;
    border-bottom: 4px solid var(--oro);
}

/* Nuestra Visión (Texto + Foto) */
.vision-container-flex {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 60px 0;
}

.vision-text { flex: 1; }
.vision-photo { flex: 1; }
.vision-photo img { width: 100%; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

/* Responsive */
@media (max-width: 768px) {
    .hero-carrusel-section { height: 45vh; }
    .hero-carrusel-container { width: 95%; }
    .titulo-sobrepuesto-mascarador { width: 95%; max-width: 95%; margin-top: -45px; padding: 20px 10px; }
    .titulo-principal { font-size: 1.6rem; }
    .fundacion-crema-box { max-width: 95%; padding: 25px 20px; }
    .vision-container-flex { flex-direction: column; }
    .pilares-grid { grid-template-columns: 1fr; }
}