/* Variables de color */
:root {
    --primary: #5E3023;   /* Marrón oscuro */
    --secondary: #8B5A2B; /* Marrón medio */
    --accent: #ffba3a;    /* Amarillo/dorado */
    --light: #F5F5DC;     /* Beige claro */
    --dark: #2A2A2A;      /* Negro suave */
    --text-light: #FFFFFF; /* Texto claro */
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ====================== */
/* BARRA DE NAVEGACIÓN (del primer CSS) */
header {
    background-color: var(--primary);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    animation: fadeIn 1s ease-in-out;
}

.logo span {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--secondary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--secondary);
    bottom: -5px;
    left: 0;
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* ====================== */
/* CONTENIDO PRINCIPAL - MISIÓN Y VISIÓN */
.mision-vision-container {
    padding-top: 80px; /* Compensa la barra fija */
}

/* Secciones comunes */
.mision-section, .vision-section {
    padding: 60px 0;
}

.mision-content, .vision-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.text-content {
    flex: 1;
    padding: 30px;
    z-index: 2;
}

.image-content {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    min-height: 400px;
}

.parallax-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100%;
    transition: transform 0.5s ease;
}

.image-content:hover .parallax-image {
    transform: scale(1.03);
}

/* Sección Misión */
.mision-section {
    background-color: var(--light);
}

.mision-section .text-content {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    border-left: 5px solid var(--accent);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Sección Visión */
.vision-section {
    background-color: var(--primary);
    color: var(--text-light);
}

.vision-section .text-content {
    background-color: rgba(94, 48, 35, 0.95);
    border-radius: 10px;
    border-right: 5px solid var(--accent);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Tipografía */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    text-transform: uppercase;
}

.section-title span {
    color: var(--secondary);
}

.vision-section .section-title {
    color: var(--accent);
}

.divider {
    width: 80px;
    height: 4px;
    background: var(--accent);
    margin: 1.5rem 0 2rem;
    border: none;
}

.vision-section .divider {
    background: var(--secondary);
}

.text-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* ====================== */
/* FOOTER (del primer CSS) */
footer {
    background-color: var(--primary);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 2px;
    background: var(--secondary);
    bottom: -5px;
    left: 0;
}

.footer-column p, .footer-column a {
    margin-bottom: 1rem;
    display: block;
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--secondary);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ====================== */
/* BOTÓN WHATSAPP */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 100;
    animation: pulse 2s infinite;
    text-decoration: none;
    transition: all 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* ====================== */
/* ANIMACIONES */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* ====================== */
/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .mision-content, .vision-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .mision-section .text-content,
    .vision-section .text-content {
        width: 100%;
        border-left: none;
        border-right: none;
        border-top: 5px solid var(--accent);
    }
    
    .image-content {
        width: 100%;
        min-height: 300px;
    }
    
    .vision-content {
        flex-direction: column-reverse;
    }
}

@media (max-width: 768px) {
    /* Barra de navegación */
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--primary);
        flex-direction: column;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 1rem 0;
    }
    
    /* Contenido */
    .section-title {
        font-size: 2rem;
    }
    
    .text-content p {
        font-size: 1rem;
    }
    
    .mision-section, .vision-section {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .text-content {
        padding: 25px;
    }
    
    .divider {
        width: 60px;
        margin: 1rem 0 1.5rem;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
        bottom: 20px;
        right: 20px;
    }
}