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

/* 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: 600px;
    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: 0 2rem;
}

/* Contenido de la página de Marchas */
.marchas-content {
    padding: 30px 20px;
    background-color: #ffffff;
    font-family: 'Georgia', serif;
    color: #444;
    width: 100%;
}

/* Variables CSS */
:root {
    --primary: #0F4C81;
    --secondary: #800020;
    --tertiary: #D4AF37;
    --white: #FFFFFF;
    --gray-light: #f5f5f5;
}

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

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

.header-title h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 500;
}

.header-content {
    padding: 2rem;
}

.header-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.quote-container {
    background-color: var(--gray-light);
    border-left: 4px solid var(--tertiary);
    padding: 1.5rem;
    font-style: italic;
    color: #555;
    margin-bottom: 1.5rem;
}

.quote-text {
    font-style: italic;
    margin-bottom: 0.5rem;
}

.quote-reference {
    font-style: normal;
    font-weight: 500;
}

.normal-text {
    font-style: normal;
    line-height: 1.6;
}

.italic-centered {
    font-style: italic;
    text-align: center;
    margin: 1.5rem 0;
}

/* Sections */
.section {
    margin-bottom: 2rem;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.section-header {
    background-color: rgba(128, 0, 32, 0.9);
    color: var(--white);
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.section-header:hover {
    background-color: var(--secondary);
}

.section-header h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.section-header h2 .material-icons {
    margin-right: 10px;
    font-size: 1.6rem;
}

.section-content {
    display: none;
    padding: 1.5rem;
}

.section.active .section-content {
    display: block;
}

/* Marcha Info */
.marcha-info {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.marcha-info:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.marcha-detail {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.marcha-detail:last-child {
    margin-bottom: 0;
}

.marcha-detail-icon {
    margin-right: 0.8rem;
    font-size: 1.2rem;
    min-width: 24px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marcha-detail-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.download-link {
    display: inline-flex;
    align-items: center;
    background-color: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 0.5rem;
    transition: background-color 0.3s;
    width: fit-content;
}

.download-link:hover {
    background-color: #0a3a66;
}

.download-link .material-icons {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.audio-player {
    width: 100%;
    margin-top: 1rem;
    background-color: var(--gray-light);
    border-radius: 8px;
    padding: 1rem;
}

.audio-player audio {
    width: 100%;
}

.license-info {
    background-color: var(--gray-light);
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
}

.license-icon {
    margin-right: 0.5rem;
    font-size: 1.2rem;
    line-height: 1.4;
}

.license-text {
    flex: 1;
}

.material-icons {
    transition: transform 0.3s;
}

.section.active .section-header .material-icons:last-child {
    transform: none;
}

.error-message {
    color: red;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* 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;
    }
    
    .header-title h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    main {
        padding: 1rem;
    }
    
    .marchas-content {
        padding: 40px 15px;
    }
    
    .marchas-content h2 {
        border-left: none;
        padding-left: 0;
        text-align: center;
    }
    
    .header-content {
        padding: 1.5rem;
    }
    
    .section-content {
        padding: 1rem;
    }
    
    .marcha-detail {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .marcha-detail-icon {
        margin-bottom: 0.5rem;
        margin-right: 0;
    }
}

@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;
    }
    
    .marchas-content {
        padding: 30px 10px;
    }
    
    .marchas-content h2 {
        font-size: 1.5rem;
    }
    
    .header-title h1 {
        font-size: 1.5rem;
    }
    
    .header-content {
        padding: 1rem;
    }
    
    .section-header {
        padding: 1rem;
    }
    
    .section-content {
        padding: 0.8rem;
    }
}
