/* CSS Variables - Paleta de colores */
:root {
    --color-bg-light: #F5F1E8;
    --color-accent-light: #D8C9A3;
    --color-green-light: #667761;
    --color-green-dark: #32413A;
    --color-dark: #1D1D1D;
    --font-title: 'Playfair Display', serif;
    --font-text: 'Inter', sans-serif;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-text);
    color: var(--color-bg-light);
    background-color: var(--color-dark);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4 {
    font-family: var(--font-title);
    font-weight: 600;
}

.section-text-center {
    font-size: 1.1rem;
    color: #ddd;
    text-align: center;
    max-width: 750px;
    margin: 0 auto 20px;
}

/* Reading Progress Bar */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background-color: var(--color-accent-light);
    z-index: 1000;
    transition: width 0.1s ease;
}

/* Floating Navigation */
.floating-nav {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(245, 241, 232, 0.4);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.nav-dot:hover, .nav-dot.active {
    background-color: var(--color-accent-light);
    transform: scale(1.2);
}

.nav-dot::after {
    content: attr(data-label);
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-dark);
    color: var(--color-bg-light);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.nav-dot:hover::after {
    opacity: 1;
}

/* Sections and Parallax */
.section-screen {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -2;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(29, 29, 29, 0.6), rgba(29, 29, 29, 0.9));
    z-index: -1;
}

/* Container & Typography */
.container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    z-index: 1;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 6rem);
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    text-align: center;
    color: var(--color-accent-light);
    font-weight: 300;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: var(--color-accent-light);
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 400;
    margin-bottom: 30px;
    color: var(--color-bg-light);
    border-left: 4px solid var(--color-green-light);
    padding-left: 15px;
}

.section-text {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #ddd;
}

.highlight-question {
    font-family: var(--font-title);
    font-size: 1.8rem;
    font-style: italic;
    color: var(--color-accent-light);
    margin: 40px 0;
    text-align: center;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.7;
}

.scroll-indicator span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.scroll-indicator svg {
    width: 24px;
    height: 24px;
    fill: var(--color-bg-light);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-20px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}

/* CSS Variables - Paleta de colores */
:root {
    --color-bg-light: #F5F1E8;
    --color-accent-light: #D8C9A3;
    --color-green-light: #667761;
    --color-green-dark: #32413A;
    --color-dark: #1D1D1D;
    --font-title: 'Playfair Display', serif;
    --font-text: 'Inter', sans-serif;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-text);
    color: var(--color-bg-light);
    background-color: var(--color-dark);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4 {
    font-family: var(--font-title);
    font-weight: 600;
}

/* Reading Progress Bar */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background-color: var(--color-accent-light);
    z-index: 1000;
    transition: width 0.1s ease;
}

/* Floating Navigation */
.floating-nav {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(245, 241, 232, 0.4);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.nav-dot:hover, .nav-dot.active {
    background-color: var(--color-accent-light);
    transform: scale(1.2);
}

.nav-dot::after {
    content: attr(data-label);
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-dark);
    color: var(--color-bg-light);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.nav-dot:hover::after {
    opacity: 1;
}

/* Sections and Parallax */
.section-screen {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -2;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(29, 29, 29, 0.6), rgba(29, 29, 29, 0.9));
    z-index: -1;
}

/* Container & Typography */
.container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    z-index: 1;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 6rem);
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    text-align: center;
    color: var(--color-accent-light);
    font-weight: 300;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: var(--color-accent-light);
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 400;
    margin-bottom: 30px;
    color: var(--color-bg-light);
    border-left: 4px solid var(--color-green-light);
    padding-left: 15px;
}

.section-text {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #ddd;
}

.highlight-question {
    font-family: var(--font-title);
    font-size: 1.8rem;
    font-style: italic;
    color: var(--color-accent-light);
    margin: 40px 0;
    text-align: center;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.7;
}

.scroll-indicator span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.scroll-indicator svg {
    width: 24px;
    height: 24px;
    fill: var(--color-bg-light);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-20px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}

/* Media Containers */
.media-container {
    margin-top: 50px;
    width: 100%;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.video-wrapper video, .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-caption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-green-light);
    margin-top: -25px;
    margin-bottom: 40px;
}

/* --- NUEVO ESTILO: CARRUSEL DE IMÁGENES --- */
.carousel-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 20px;
    padding: 10px 0;
    /* Ocultar barra de scroll para estética */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-slide {
    flex: 0 0 calc(100% - 20px); /* 1 foto en móviles */
    scroll-snap-align: center;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: var(--color-green-dark);
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

@media (min-width: 600px) {
    .carousel-slide { flex: 0 0 calc(50% - 10px); } /* 2 fotos en tablets */
}

@media (min-width: 900px) {
    .carousel-slide { flex: 0 0 calc(33.333% - 14px); } /* 3 fotos en PC */
}

.carousel-slide img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.carousel-slide:hover img {
    transform: scale(1.05);
}

/* Pie de foto / Sumario */
.carousel-caption {
    padding: 15px;
    text-align: center;
    font-size: 0.95rem;
    color: var(--color-bg-light);
    background-color: var(--color-green-dark);
    border-top: 2px solid var(--color-accent-light);
    flex-grow: 1; /* Empuja el texto para que todos los cuadros midan igual */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 300;
}

/* Botones del carrusel */
.carousel-btn {
    background: var(--color-accent-light);
    color: var(--color-dark);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    z-index: 10;
    top: 40%;
    transform: translateY(-50%);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.carousel-btn:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: -20px; }
.next-btn { right: -20px; }

/* --- SECCIÓN DOCUMENTAL Y LOGOS --- */
.documentary-cta {
    text-align: center;
    margin: 80px 0 30px;
}

.documentary-cta .highlight-question {
    font-size: 2.2rem;
    margin-bottom: 30px;
}

.btn-youtube {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: var(--color-accent-light);
    color: var(--color-dark);
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-family: var(--font-text);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(216, 201, 163, 0.2);
}

.btn-youtube:hover {
    background-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(216, 201, 163, 0.4);
}

.btn-youtube i {
    color: #FF0000; /* Color original de YouTube */
    font-size: 1.5rem;
}

.logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid rgba(216, 201, 163, 0.2);
    flex-wrap: wrap;
}

.partner-logo {
    max-height: 70px;
    width: auto;
    object-fit: contain;
    /* Filtro opcional para que los logos combinen con la web. Al pasar el mouse se ven a color */
    filter: grayscale(100%) brightness(150%); 
    transition: all 0.3s ease;
}

.partner-logo:hover {
    filter: grayscale(0%) brightness(100%);
    transform: scale(1.05);
}


/* Animations (Scroll Reveal) */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Lightbox */
#lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(29,29,29,0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#lightbox.active {
    display: flex;
    opacity: 1;
}

#lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: var(--color-bg-light);
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
}

/* Footer Styles */
.site-footer {
    background-color: #0f172a;
    color: #ffffff;
    padding: 2rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: #f8fafc;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.social-icon {
    color: #cbd5e1;
    font-size: 1.35rem;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.social-icon:hover {
    color: #ffffff;
    transform: translateY(-3px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .floating-nav { display: none; }
    .section-screen { padding: 60px 15px; }
    .site-footer .footer-container {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
    .prev-btn { left: 0px; }
    .next-btn { right: 0px; }
}
