:root {
    --mexican-red: #E63946;
    --mexican-green: #2A9D8F;
    --mexican-yellow: #F4A261;
    --mexican-orange: #E76F51;
    --mexican-blue: #1D3557;
    --mexican-white: #F1FAEE;
    
    /* Colores para culturas del Norte */
    --tarahumara-color: #8B4513;  /* Marrón tierra */
    --yaqui-color: #DAA520;       /* Dorado desértico */
    
    /* Colores para culturas del Centro */
    --azteca-color: #800000;      /* Rojo sangre */
    --otomi-color: #556B2F;       /* Verde olivo */
    --mazahua-color: #4B0082;     /* Índigo */
    --purepecha-color: #8B008B;   /* Magenta oscuro */
    --totonaca-color: #FF4500;    /* Naranja rojizo */
    --huasteca-color: #228B22;    /* Verde bosque */
    
    /* Colores para culturas del Sur */
    --maya-color: #006400;        /* Verde oscuro */
    --zapoteca-color: #8B0000;    /* Rojo oscuro */
    --mixe-color: #483D8B;        /* Azul pizarra oscuro */
    --zoque-color: #B8860B;       /* Dorado oscuro */

    /* Navbar gradient colors */
    --navbar-gold: #DAA520;
    --navbar-blue: #1D3557;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--mexican-blue);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: linear-gradient(to bottom, #1a2942, #1a2943, #1a2944);
}

@keyframes waterGradient {
    0% {
        background-position: 0% 50%;
        background-size: 400% 400%;
    }
    25% {
        background-position: 100% 50%;
        background-size: 300% 300%;
    }
    50% {
        background-position: 50% 100%;
        background-size: 400% 400%;
    }
    75% {
        background-position: 0% 50%;
        background-size: 300% 300%;
    }
    100% {
        background-position: 0% 50%;
        background-size: 400% 400%;
    }
}

/* Navbar Styles */
.navbar {
    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    color: #fff !important;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #fff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.dropdown-menu {
    background-color: rgba(29, 53, 87, 0.95);
    border: 1px solid var(--navbar-gold);
}

.dropdown-item {
    color: #fff;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--navbar-gold);
    color: var(--navbar-blue);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--mexican-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-top: 56px; /* Compensate for fixed navbar */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Region Cards */
.region-card {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    color: var(--mexican-white);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.region-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.3), rgba(0,0,0,0.1));
    z-index: -1;
}

.region-card:hover {
    transform: translateY(-10px);
}

.region-card h3 {
    color: var(--mexican-white);
    margin-bottom: 20px;
}

.region-card p {
    margin-bottom: 20px;
}

.region-card .btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    color: var(--mexican-white);
    padding: 1rem 0;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        height: 50vh;
    }
    
    section {
        padding: 1rem;
    }

    .region-card {
        margin-bottom: 20px;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--mexican-white);
}

::-webkit-scrollbar-thumb {
    background: var(--mexican-blue);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--mexican-green);
}

/* Fondos de culturas */
.tarahumara-bg {
    background: linear-gradient(rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.03)),
                url('images/optimized/tarahumara-bg.jpg') no-repeat center center fixed;
    background-size: cover;
}

.yaqui-bg {
    background: linear-gradient(rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.03)),
                url('images/optimized/yaqui-bg.jpg') no-repeat center center fixed;
    background-size: cover;
}

.azteca-bg {
    background: linear-gradient(rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.03)),
                url('images/optimized/azteca-bg.jpg') no-repeat center center fixed;
    background-size: cover;
}

.otomi-bg {
    background: linear-gradient(rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.03)),
                url('images/optimized/otomi-bg.jpg') no-repeat center center fixed;
    background-size: cover;
}

.mazahua-bg {
    background: linear-gradient(rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.03)),
                url('images/optimized/mazahua-bg.jpg') no-repeat center center fixed;
    background-size: cover;
}

.purepecha-bg {
    background: linear-gradient(rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.03)),
                url('images/optimized/purepecha-bg.jpg') no-repeat center center fixed;
    background-size: cover;
}

.totonaca-bg {
    background: linear-gradient(rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.03)),
                url('images/optimized/totonaca-bg.jpg') no-repeat center center fixed;
    background-size: cover;
}

.huasteca-bg {
    background: linear-gradient(rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.03)),
                url('images/optimized/huasteca-bg.jpg') no-repeat center center fixed;
    background-size: cover;
}

.maya-bg {
    background: linear-gradient(rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.03)),
                url('images/optimized/maya-bg.jpg') no-repeat center center fixed;
    background-size: cover;
}

.zapoteca-bg {
    background: linear-gradient(rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.03)),
                url('images/optimized/zapoteca-bg.jpg') no-repeat center center fixed;
    background-size: cover;
}

.mixe-bg {
    background: linear-gradient(rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.03)),
                url('images/optimized/mixe-bg.jpg') no-repeat center center fixed;
    background-size: cover;
}

.zoque-bg {
    background: linear-gradient(rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.03)),
                url('images/optimized/zoque-bg.jpg') no-repeat center center fixed;
    background-size: cover;
}

/* Ajustes comunes para todas las páginas de culturas */
[class*="-bg"] {
    min-height: 100vh;
    background-attachment: fixed;
    background-size: cover;
    color: #ffffff;
}

[class*="-bg"] .navbar {
    background-color: rgba(0, 0, 0, 0.3) !important;
}

[class*="-bg"] .hero-section {
    padding: 100px 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
}

[class*="-bg"] section {
    background: rgba(0, 0, 0, 0.3);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[class*="-bg"] .footer {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px 0;
    color: var(--mexican-white);
}

[class*="-bg"]::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: -1;
}

/* Estilos para mejorar la legibilidad del contenido sobre los fondos */
.container {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 30px;
    margin-top: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
    color: #ffffff;
}

.hero-section {
    background-color: transparent !important;
    padding: 150px 0;
    text-align: center;
}

.hero-section h1 {
    color: #ffffff;
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
    font-weight: bold;
}

.hero-section p.lead {
    color: #ffffff;
    font-size: 1.8rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}

section h2 {
    color: #FFD700;
    font-size: 2.2rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    font-weight: bold;
}

section p {
    color: #ffffff;
    font-size: 1.2rem;
    line-height: 1.8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
    letter-spacing: 0.02em;
}

/* Ajustes para la navegación */
.navbar-dark .navbar-nav .nav-link {
    color: #ffffff !important;
    font-weight: 500;
}

.dropdown-menu {
    background-color: rgba(0, 0, 0, 0.9);
}

.dropdown-item {
    color: #ffffff;
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #FFD700;
}

/* Footer */
.footer {
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

#starry-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background-color: transparent;
}

/* Ajuste para el contenido principal */
.main-content {
    position: relative;
    z-index: 1;
} 