/* styles.css - Estilos generales para MORUJE */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --verde-oscuro: #0E4420;
    --amarillo-oscuro: #F6A219;
    --verde-claro: #54AF32;
    --amarillo-claro: #FCC10A;
    --blanco: #FFFFFF;
    --negro: #000000;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--negro);
    overflow-x: hidden;
}

/* Barra superior fija */
.top-bar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--verde-oscuro);
    color: var(--blanco);
    padding: 0.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1001;
    font-size: 0.9rem;
}

.top-bar-left {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--blanco);
    text-decoration: none;
    transition: color 0.3s ease;
}

.top-bar-item:hover {
    color: var(--amarillo-claro);
}

.top-bar-item img {
    width: 20px;
    height: 20px;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.language-switcher:hover {
    color: var(--amarillo-claro);
}

.language-switcher img {
    width: 24px;
    height: 16px;
}

/* Navegación flotante */
nav {
    position: fixed;
    top: 40px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

nav.scrolled {
    padding: 0.7rem 5%;
    box-shadow: 0 2px 30px rgba(0,0,0,0.15);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--verde-oscuro);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--verde-claro);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--amarillo-oscuro);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--verde-oscuro);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: var(--verde-oscuro);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 120px;
}

.hero::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><path d="M0,100 Q300,200 600,100 T1200,100 L1200,600 L0,600 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    animation: wave 20s linear infinite;
    opacity: 0.3;
}

@keyframes wave {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-50%) translateY(0); }
}

.hero-content {
    text-align: center;
    color: var(--blanco);
    z-index: 1;
    padding: 2rem;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero .tagline {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: var(--amarillo-claro);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--amarillo-oscuro);
    color: var(--blanco);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    background: var(--amarillo-claro);
    color: var(--verde-oscuro);
}

/* Galería de imágenes */
.image-gallery {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
}

.gallery-slider {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.gallery-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--verde-oscuro);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.gallery-arrow:hover {
    background: var(--verde-claro);
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

.gallery-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-dot.active {
    background: var(--amarillo-oscuro);
    transform: scale(1.2);
}

/* Parallax section */
.parallax-section {
    height: 400px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(14, 68, 32, 0.8);
}

.parallax-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--blanco);
    padding: 2rem;
}

.parallax-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Sección común */
section {
    padding: 0rem 5% 3rem;
    min-height: auto;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--verde-oscuro);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--amarillo-oscuro);
    border-radius: 2px;
}

/* Patrón de fondo */
.pattern-bg {
    background-image: url('ruta/al/patron.png');
    background-repeat: repeat;
    background-size: 468px 575px;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Botón WhatsApp flotante */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    z-index: 999;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.whatsapp-float:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: white;
}

/* Footer */
footer {
    background: var(--negro);
    color: var(--blanco);
    padding: 3rem 5% 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--amarillo);
    margin-bottom: 1rem;
}

.footer-logo img {
    max-width: 150px;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--blanco);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--amarillo);
}

.footer-contact p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact a {
    color: var(--blanco);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--amarillo);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .top-bar {
        font-size: 0.8rem;
        padding: 0.4rem 3%;
    }

    .top-bar-left {
        gap: 0.8rem;
    }

    .top-bar-item span {
        display: none;
    }

    nav {
        top: 35px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        width: 70%;
        padding: 2rem;
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        gap: 1.5rem;
    }

    .nav-links.active {
        right: 0;
    }

    .hero {
        padding-top: 100px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .tagline {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }

    .parallax-section {
        background-attachment: scroll;
        height: 300px;
    }

    .parallax-content h2 {
        font-size: 2rem;
    }
}