/* Variables de colores suavizados */

:root {
    --color-primary: #6D8FD9;
    /* Azul suave */
    --color-secondary: #5DAE5D;
    /* Verde suave */
    --color-accent: #E27D60;
    /* Naranja/rojo suave */
    --color-dark: #4A5568;
    /* Gris oscuro */
    --color-light: #F7FAFC;
    /* Fondo claro */
    --color-text: #2D3748;
    /* Texto oscuro */
    --color-background: #FFFFFF;
    /* Fondo blanco */
    --shadow-soft: 0 5px 15px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.12);
}


/* Reset y estilos base */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans', sans-serif;
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Rowdies', cursive;
    font-weight: 700;
    color: var(--color-dark);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--color-accent);
    border-radius: 3px;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-primary);
    font-size: 1.2rem;
    font-weight: 400;
}


/* Navegación */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-soft);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-logo h2 {
    color: var(--color-primary);
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 2rem;
}

.nav-link {
    color: var(--color-dark);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--color-accent);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--color-dark);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}


/* Hero Section */

.hero {
    height: 100vh;
    display: flex;
    position: relative;
    margin-top: 70px;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5%;
    z-index: 2;
}

.hero-title {
    font-size: 3.2rem;
    margin-bottom: 1rem;
    color: var(--color-dark);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    color: var(--color-primary);
    animation: fadeInUp 1.2s ease;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
    color: var(--color-primary);
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.scroll-indicator i {
    font-size: 1.5rem;
}

.hero-image {
    flex: 1;
    background: url('imagenes/bandera-mapuche.jpg') center/cover no-repeat;
    position: relative;
}

.color-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(109, 143, 217, 0.4), rgba(93, 174, 93, 0.4));
}


/* Sobre Warriache */

.about {
    padding: 100px 0;
    background-color: var(--color-light);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

blockquote {
    border-left: 4px solid var(--color-accent);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: var(--color-primary);
    background-color: rgba(109, 143, 217, 0.05);
    padding: 20px;
    border-radius: 0 8px 8px 0;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.02);
}


/* Galería */

.gallery {
    padding: 100px 0;
    background-color: var(--color-background);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 280px;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}


/* Botón para ver más */

.view-more-btn {
    display: block;
    margin: 30px auto 0;
    padding: 12px 25px;
    background-color: var(--color-accent);
    color: white;
    border: none;
    border-radius: 30px;
    font-family: 'Noto Sans', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-more-btn:hover {
    background-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}


/* Estilos para la galería modal */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 60px 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 1200px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color: white;
}

.modal-title {
    font-family: 'Rowdies', cursive;
    font-size: 1.8rem;
}

.close {
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: var(--color-accent);
}

.gallery-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.gallery-modal-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 200px;
    cursor: pointer;
}

.gallery-modal-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-modal-item:hover img {
    transform: scale(1.05);
}

.modal-nav {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.modal-nav-button {
    background-color: var(--color-primary);
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 0 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.modal-nav-button:hover {
    background-color: var(--color-accent);
}

.modal-nav-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}


/* Lightbox para imagen individual */

.lightbox {
    display: none;
    position: fixed;
    z-index: 2100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
}

.lightbox-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 1000px;
    margin-top: 50px;
}

.lightbox-img {
    display: block;
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.lightbox-caption {
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 1.1rem;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
}

.lightbox-prev,
.lightbox-next {
    color: white;
    font-size: 40px;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}


/* Estilos para la galería de cartografía */

.cartography-gallery {
    margin-bottom: 50px;
}

.cartography-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.cartography-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 250px;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.cartography-item:hover {
    transform: translateY(-5px);
}

.cartography-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cartography-item:hover img {
    transform: scale(1.05);
}

.cartography-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cartography-item:hover .cartography-overlay {
    opacity: 1;
}

.cartography-download {
    text-align: center;
    margin-top: 30px;
}


/* Estilos específicos para el modal de cartografía */

.cartography-modal-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.cartography-modal-image {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cartography-modal-caption {
    text-align: center;
    color: white;
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: 600;
}


/* Optimización para imágenes grandes */

.cartography-item img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}


/* Responsive para cartografía */

@media (max-width: 992px) {
    .cartography-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    .cartography-item {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .cartography-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .cartography-item {
        height: 180px;
    }
    .cartography-modal-image {
        max-height: 60vh;
    }
}

@media (max-width: 480px) {
    .cartography-item {
        height: 150px;
    }
    .cartography-overlay h3 {
        font-size: 0.9rem;
    }
}


/* Proceso */

.process {
    padding: 100px 0;
    background-color: var(--color-background);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--color-primary);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    padding-left: 80px;
}

.timeline-dot {
    position: absolute;
    left: 22px;
    top: 0;
    width: 20px;
    height: 20px;
    background-color: var(--color-accent);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 3px var(--color-primary);
}

.timeline-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
}

.timeline-content h3 {
    color: var(--color-primary);
    margin-bottom: 10px;
}

.timeline-image {
    margin-top: 15px;
}

.timeline-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}


/* Cortometraje */

.shortfilm {
    padding: 100px 0;
    background-color: var(--color-light);
}

.video-container {
    margin-bottom: 40px;
    position: relative;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-fallback {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background-color: var(--color-light);
    border-radius: 8px;
}

.video-fallback a {
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: none;
}

.video-fallback a:hover {
    text-decoration: underline;
}

.film-info h3 {
    color: var(--color-primary);
    margin-bottom: 15px;
}

.film-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.detail {
    background: var(--color-light);
    padding: 20px;
    border-radius: 10px;
}

.detail h4 {
    color: var(--color-primary);
    margin-bottom: 10px;
}


/* Equipo */

.team {
    padding: 100px 0;
    background-color: var(--color-background);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-member {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member h3 {
    color: var(--color-primary);
    margin-bottom: 10px;
}


/* Diccionario */

.dictionary {
    padding: 100px 0;
    background-color: var(--color-light);
}

.dictionary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.dictionary-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease;
}

.dictionary-item:hover {
    transform: translateY(-5px);
}

.dictionary-item h3 {
    color: var(--color-primary);
    margin-bottom: 10px;
}

.dictionary-link {
    text-align: center;
}


/* Estilos para el botón de descarga del diccionario */

.dictionary-download {
    text-align: center;
    margin-top: 40px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background-color: var(--color-secondary);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Noto Sans', sans-serif;
    font-size: 1.1rem;
    box-shadow: var(--shadow-soft);
}

.download-btn:hover {
    background-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}


/* Responsive para el botón de descarga */

@media (max-width: 768px) {
    .download-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
}


/* Footer */

.footer {
    background-color: var(--color-dark);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-info,
.footer-links {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
}

.footer-info h3 {
    color: white;
    margin-bottom: 15px;
}

.footer-links h4 {
    color: white;
    margin-bottom: 15px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}


/* Animaciones */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}


/* Responsive */

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .about-content {
        flex-direction: column;
    }
    .cartography-content {
        flex-direction: column;
    }
    .map-container {
        height: 300px;
        margin-bottom: 30px;
    }
    .hero {
        flex-direction: column;
        height: auto;
    }
    .hero-content {
        padding: 100px 5% 50px;
    }
    .hero-image {
        height: 400px;
    }
    .section-title {
        font-size: 2rem;
    }
    .gallery-modal-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-item {
        margin: 15px 0;
    }
    .timeline {
        padding-left: 20px;
    }
    .timeline-line {
        left: 10px;
    }
    .timeline-item {
        padding-left: 50px;
    }
    .timeline-dot {
        left: 2px;
    }
    .team-grid {
        grid-template-columns: 1fr;
    }
    .film-details {
        grid-template-columns: 1fr;
    }
    .scroll-indicator span {
        display: none;
    }
    .gallery-modal-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    .gallery-modal-item {
        height: 150px;
    }
    .modal-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .lightbox-nav {
        padding: 0 10px;
    }
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .gallery-modal-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .modal-nav {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
}