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

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

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

.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 Carteles */
.carteles-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 */
.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(400px * 3 + 2rem * 2);
    overflow: hidden;
    margin: 0 auto;
    transition: width 0.3s ease;
}

.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: 400px;
    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: 500px;
    object-fit: contain;
    object-position: center;
    display: block;
    background-color: #f8f8f8;
}

.poster-info {
    padding: 1.5rem;
}

.poster-detail {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.poster-detail strong {
    color: var(--primary);
}

/* Responsive */
@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: 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;
    }
    
    .timeline-wrapper {
        width: 85%;
    }
    
    .timeline-nav {
        width: 7.5%;
    }
    
    .timeline-wave {
        width: 50px;
        height: 6px;
    }
    
    .poster-viewport {
        width: calc(250px * 2 + 1rem);
    }
    
    .poster-card {
        width: 250px;
    }
    
    .poster-group {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    main {
        padding: 1rem;
    }
    
    .carteles-content {
        padding: 40px 15px;
    }
    
    .header-title h1 {
        font-size: 2rem;
    }
    
    .header-content {
        padding: 1.5rem;
    }
    
    .header-description {
        font-size: 1rem;
    }
    
    .poster-viewport {
        width: calc(250px * 2 + 1rem);
    }
    
    .poster-card {
        width: 250px;
    }
}

@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;
    }
    
    .carteles-content {
        padding: 30px 10px;
    }
    
    .header-title h1 {
        font-size: 1.8rem;
    }
    
    .timeline-wave {
        width: 40px;
        height: 5px;
    }
    
    .poster-viewport {
        width: calc(100vw - 2rem);
        max-width: 350px;
    }
    
    .poster-card {
        width: calc(100vw - 2rem);
        max-width: 350px;
    }
    
    .poster-group {
        gap: 0.5rem;
    }
    
    .poster-image {
        height: calc((100vw - 2rem) * 1.4);
        max-height: 490px;
    }
    
    .poster-info {
        padding: 1rem;
    }
}
