/* Estilos específicos para la página de la procesión */

/* 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: 400px;
    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: 360px;
    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: 1600px;
    margin: 0 auto;
    padding: 2rem;
}

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

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

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

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

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

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

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

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

.info-horario {
    background-color: #f8f8f8;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #0F4C81;
    height: 60px;
}

.itinerario {
    margin: 25px 0;
    padding: 0;
}

.itinerario p {
    margin-bottom: 12px;
    line-height: 1.6;
}

.momento-destacado {
    display: block;
    background-color: #fff4f4;
    padding: 12px 15px;
    margin: 15px 0;
    border-radius: 6px;
    border-left: 4px solid #A52A2A;
    font-weight: bold;
    color: #A52A2A;
}

.regreso-encierro {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px dashed #ccc;
}

/* 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;
    }
    
    .recorrido-container {
        flex-direction: column;
        text-align: center;
    }

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

    .recorrido-imagen img {
        max-width: 80%;
        margin: 0 auto 20px;
    }
    
    .itinerario {
        text-align: left;
    }
}

@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;
    }
}

/* Estilos para las normas de procesión */
.normas-procesion {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.normas-header {
    text-align: center;
    margin-bottom: 30px;
    color: #0F4C81;
    border-bottom: 3px solid #D4AF37;
    padding-bottom: 15px;
}

.normas-header h2 {
    font-size: 32px;
    margin: 0;
    font-weight: 300;
}

.botones-normas {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.boton-norma {
    background: #0F4C81;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.boton-norma:hover {
    background: #1a6fb0;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.boton-norma.activo {
    background: #D4AF37;
    color: #0F4C81;
}

.contenido-normas {
    min-height: 400px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    background: #f9f9f9;
}

.norma {
    display: none;
    animation: fadeIn 0.5s ease;
}

.norma.activa {
    display: block;
}

.norma h3 {
    color: #0F4C81;
    border-bottom: 2px solid #D4AF37;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 300;
}

.norma-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.icon {
    min-width: 28px;
    height: 28px;
    background: #0F4C81;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-weight: bold;
    font-size: 14px;
}

.norma-text {
    line-height: 1.5;
    flex: 1;
}

.vestimenta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.importante {
    background: #fff0f0;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #b21f1f;
    margin: 20px 0;
}

.prohibido {
    background: #ffe6e6;
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    border: 1px solid #ffcccc;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive para normas */
@media (max-width: 768px) {
    .botones-normas {
        flex-direction: column;
    }
    
    .vestimenta-grid {
        grid-template-columns: 1fr;
    }
}

/* Estilos para el orden de procesión */
.orden-procesion {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 60px;
}

.orden-header {
    text-align: center;
    margin-bottom: 30px;
    color: #0F4C81;
    border-bottom: 3px solid #D4AF37;
    padding-bottom: 15px;
}

.orden-header h2 {
    font-size: 32px;
    margin: 0;
    font-weight: 300;
}

.orden-header p {
    color: #666;
    margin: 10px 0 0;
}

.pdf-container {
    width: 100%;
    height: 800px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    background-color: #f8f9fa;
}

.pdf-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    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: #666;
    font-size: 16px;
    z-index: 1;
    pointer-events: none;
}

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

.descarga-container {
    text-align: center;
    margin: 20px 0;
}

.boton-descarga {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0F4C81;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.boton-descarga:hover {
    background: #1a6fb0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.aviso {
    background: #fffaf0;
    border-left: 4px solid #D4AF37;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
    font-size: 14px;
}

/* Responsive para orden de procesión */
@media (max-width: 768px) {
    .pdf-container {
        height: 500px;
    }
    
    .orden-header h2 {
        font-size: 24px;
    }
}

/* Estilos para el histórico de acompañamientos musicales */
.musicales-container {
    --primary: #0F4C81;
    --secondary: #800020;
    --tertiary: #D4AF37;
    --white: #FFFFFF;
    --gray-light: #f5f5f5;
    
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
    margin-top: 60px;
}

/* Header */
.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;
    text-align: center;
}

.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;
}

/* Timeline simplificado solo con línea y onda */
.timeline-container {
    position: relative;
    margin: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-wrapper {
    display: flex;
    align-items: center;
    width: 90%;
    position: relative;
}

.timeline-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5%;
}

.nav-arrow {
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.nav-arrow:hover {
    background: var(--secondary);
    transform: scale(1.1);
}

.nav-arrow:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.timeline {
    display: flex;
    width: 100%;
    position: relative;
    padding: 30px 0;
    justify-content: center;
    align-items: center;
}

/* Línea base completamente dorada */
.timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--tertiary);
    z-index: 1;
    transform: translateY(-50%);
    border-radius: 2px;
}

/* Rectángulo sólido que se mueve */
.timeline-wave {
    position: absolute;
    top: 50%;
    left: 0;
    width: 60px;
    height: 8px;
    background: var(--primary);
    border-radius: 4px;
    z-index: 2;
    transform: translateY(-50%);
    transition: left 0.5s ease;
    box-shadow: 0 2px 8px rgba(15, 76, 129, 0.4);
}

/* Posters */
.posters-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    width: 100%;
    overflow: hidden;
}

.poster-viewport {
    width: calc(450px * 3 + 2rem * 2);
    overflow: hidden;
    margin: 0 auto;
}

.poster-group {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease;
    width: max-content;
}

.poster-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    width: 450px;
    flex-shrink: 0;
}

.poster-header {
    background-color: var(--primary);
    color: var(--white);
    padding: 1rem;
    text-align: center;
    font-weight: 500;
    font-size: 1.2rem;
}

.poster-image {
    width: 100%;
    height: 360px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.poster-info {
    padding: 1.5rem;
    text-align: center;
}

.band-name {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.band-separator {
    height: 2px;
    background-color: var(--tertiary);
    margin: 0.8rem 0;
}

.band-description {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.instagram-link {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    margin-top: 0.5rem;
}

.instagram-link:hover {
    text-decoration: underline;
    color: var(--secondary);
}

/* Responsive para musicales */
@media (max-width: 1600px) {
    .poster-viewport {
        width: calc(400px * 3 + 2rem * 2);
    }
    
    .poster-card {
        width: 400px;
    }
}

@media (max-width: 1400px) {
    .poster-viewport {
        width: calc(350px * 3 + 2rem * 2);
    }
    
    .poster-card {
        width: 350px;
    }
}

@media (max-width: 1200px) {
    .poster-viewport {
        width: calc(300px * 3 + 2rem * 2);
    }
    
    .poster-card {
        width: 300px;
    }
}

@media (max-width: 768px) {
    .timeline-wrapper {
        width: 85%;
    }
    
    .timeline-nav {
        width: 7.5%;
    }
    
    .poster-viewport {
        width: calc(300px * 1 + 1rem * 0);
    }
    
    .poster-card {
        width: 300px;
    }
    
    .poster-group {
        gap: 0;
    }
    
    /* Ajustar onda en móvil */
    .timeline-wave {
        width: 50px;
        height: 6px;
    }
    
    .timeline-line {
        height: 3px;
    }
    
    /* Ajustar título en móvil */
    .header-title h1 {
        font-size: 1.8rem;
        line-height: 1.2;
        padding: 0 10px;
    }
    
    .header-title {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .header-title h1 {
        font-size: 1.5rem;
        line-height: 1.3;
        padding: 0 5px;
    }
    
    .header-title {
        padding: 1rem 0.5rem;
    }
}
