/* Estilos específicos para la página del escudo */

/* 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: 800px;
    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;
}

/* Main content */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Contenedor principal del escudo */
.escudo-hermandad {
    padding: 60px 20px;
    background-color: #ffffff;
    font-family: 'Georgia', serif;
    color: #222;
    width: 100%;
}

/* Flex para alinear imagen y texto */
.escudo-container {
    display: flex;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
}

/* Imagen */
.escudo-imagen img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Texto */
.escudo-texto {
    flex: 1;
    min-width: 300px;
}

.escudo-texto h2 {
    font-size: 2rem;
    color: #0F4C81;
    margin-bottom: 20px;
    border-left: 6px solid #D4AF37;
    padding-left: 12px;
    font-weight: 300;
}

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

.escudo-texto strong {
    color: #0F4C81;
}

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

/* Responsive */
@media (max-width: 900px) {
    .hermandad-banner {
        height: 300px;
    }
    
    .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 {
        font-size: 2.8rem !important;
    }
    
    .escudo-container {
        flex-direction: column;
        text-align: center;
    }

    .escudo-texto h2 {
        border-left: none;
        padding-left: 0;
    }

    .escudo-imagen img {
        max-width: 80%;
        margin: 0 auto 20px;
    }
}

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