/* Estilos específicos para la página de Estatutos */

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

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

/* Header Section */
.header-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1), 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 32px;
    padding: 60px 20px;
}

.header-title {
    background-color: var(--primary);
    color: var(--white);
    padding: 24px 32px;
    border-radius: 8px 8px 0 0;
    text-align: center;
}

.header-title h1 {
    font-weight: 500;
    font-size: 2rem;
    margin-bottom: 8px;
}

.header-content {
    padding: 24px 32px;
    background-color: var(--white);
}

.header-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.quote-container {
    background-color: var(--gray-light);
    border-left: 4px solid var(--tertiary);
    padding: 16px;
    font-style: italic;
    color: #424242;
}

/* Aviso sobre visualización de PDF */
.aviso-pdf {
    background: #fffaf0;
    border-left: 4px solid var(--tertiary);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
    font-size: 14px;
    color: #666;
}

/* PDF Viewer Section */
.pdf-container {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1), 0 4px 8px rgba(0,0,0,0.1);
    padding: 30px;
    margin-bottom: 32px;
    text-align: center;
    position: relative;
}

.pdf-viewer {
    width: 100%;
    height: calc(100vh - 250px);
    min-height: 1200px;
    border: 1px solid var(--gray-medium);
    border-radius: 4px;
    margin-bottom: 20px;
    background-color: white;
}

/* Mensaje de carga para PDF */
.pdf-container::before {
    content: "Cargando documento PDF...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--gray-dark);
    font-size: 16px;
    z-index: 1;
    pointer-events: none;
}

.pdf-container iframe:not([src=""])::before {
    display: none;
}

.download-container {
    display: flex;
    justify-content: center; 
    width: 100%;
    margin-top: 20px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    background-color: var(--primary);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.download-btn:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.download-btn .material-icons {
    margin-right: 8px;
}

/* Variables CSS */
:root {
    --primary: #0F4C81;
    --primary-light: #4a7cb1;
    --secondary: #800020;
    --tertiary: #D4AF37;
    --white: #FFFFFF;
    --gray-light: #f5f5f5;
    --gray-medium: #e0e0e0;
    --gray-dark: #757575;
}

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

@media (max-width: 768px) {
    main {
        padding: 1rem;
    }
    
    .header-card {
        padding: 40px 15px;
    }
    
    .header-title, .header-content {
        padding: 20px;
    }
    
    .pdf-viewer {
        height: calc(100vh - 200px);
        min-height: 400px;
    }
    
    .download-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@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: 0.5rem;
    }
    
    .header-card {
        padding: 30px 10px;
    }
    
    .header-title h1 {
        font-size: 1.5rem;
    }
    
    .pdf-viewer {
        height: calc(100vh - 180px);
        min-height: 300px;
    }
}
