/* Estilos para la página de Humildad Marbella */

/* Banner */
.hermandad-banner {
    width: 100%;
    height: 420px;
    position: relative;
    overflow: hidden;
}

.hermandad-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60% 40%;
}

.white-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 120px;
    background: rgba(255,255,255,0.6);
    border-radius: 12px;
    z-index: 1;
}

.text-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    width: 760px;
    padding: 10px 20px;
}

.text-container h1 {
    color: #0F4C81;
    font-family: 'Great Vibes', cursive;
    font-size: 4.5rem;
    font-weight: 400;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    letter-spacing: 1px;
    line-height: 1.2;
}

/* Contenido de la página (mismas clases que usa el editor de "varios tipos de bloque", igual
   que en Historia de la Hermandad: historia-container/-imagen/-texto, centrado,
   video-container, separador...) */
.humildad-hermandad {
    padding: 60px 20px;
    background-color: #ffffff;
    font-family: 'Georgia', serif;
    color: #222;
}

.contenido-amplio {
    max-width: 1400px;
    margin: 0 auto;
}

.historia-container {
    display: flex;
    gap: 40px;
    margin: 0 auto 30px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.centrado {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px auto;
    flex-wrap: wrap;
}

.historia-imagen {
    flex: 0 0 360px;
}

.historia-imagen img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.historia-imagen img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
}

.historia-texto {
    flex: 1;
    min-width: 300px;
}

.subtitulo-parrafo {
    font-size: 1.5rem;
    color: #0F4C81;
    margin-bottom: 15px;
    border-left: 4px solid #D4AF37;
    padding-left: 10px;
    font-weight: normal;
}

.historia-texto p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 18px;
}

.historia-texto strong {
    color: #0F4C81;
    font-weight: bold;
}

.historia-texto em {
    color: #0F4C81;
    font-style: italic;
}

.historia-texto a {
    color: #0F4C81;
    font-weight: bold;
    text-decoration: none;
}

.historia-texto a:hover {
    text-decoration: underline;
}

.video-container {
    flex: 0 0 600px;
    text-align: center;
}

.video-container video {
    width: 600px;
    height: 600px;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.video-container-grande {
    width: 100%;
    margin: 30px 0;
    text-align: center;
}

.video-container-grande video {
    width: 1000px;
    height: 600px;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.subtitulo-video {
    font-style: italic;
    color: #777;
    margin-top: 10px;
    font-size: 0.95rem;
}

.subtitulo-video a {
    color: #0F4C81;
    text-decoration: none;
}

.subtitulo-video a:hover {
    text-decoration: underline;
}

.separador {
    height: 1px;
    background: linear-gradient(to right, transparent, #D4AF37, transparent);
    margin: 40px 0;
    width: 100%;
}

.sin-elementos {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 20px 0;
}

/* Responsive */
@media (max-width: 900px) {
    .hermandad-banner {
        height: 300px !important;
    }
    .white-box, .text-container {
        width: 90% !important;
        max-width: 600px;
    }
    .white-box {
        height: 100px !important;
    }
    .text-container {
        width: calc(90% - 40px) !important;
    }
    .hermandad-banner h1,
    .text-container h1 {
        font-size: 2.8rem !important;
    }

    .historia-container {
        flex-direction: column;
        text-align: center;
    }

    .historia-imagen {
        flex: 0 0 auto;
        margin: 0 auto;
        max-width: 360px;
    }

    .historia-texto {
        text-align: left;
    }

    .centrado {
        flex-direction: column;
        align-items: center;
    }

    .video-container {
        flex: 0 0 100%;
    }

    .video-container video {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .white-box {
        height: 150px !important;
    }
    .text-container {
        width: calc(90% - 30px) !important;
        padding: 5px 15px !important;
    }
    .text-container h1 {
        font-size: 2.2rem !important;
        line-height: 1.1 !important;
    }

    .subtitulo-parrafo {
        font-size: 1.3rem;
    }
}
