/* ===== COMPONENTS CSS ===== */
/* Estilos comunes para header, footer y back-to-top */

/* Header/Navigation Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.nav-logo a:hover {
    color: var(--secondary-color);
    transform: translateY(-1px);
}

.nav-logo i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: all 0.3s ease;
}

/* Mobile Navigation - Global Styles */
@media (max-width: 768px) {
    /* Asegurar que el header esté siempre visible */
    .header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 9999 !important;
        background: #ffffff !important;
        width: 100% !important;
    }
    
    /* FORZAR VISIBILIDAD DEL TOGGLE - ESTILOS GLOBALES */
    .nav-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 10001 !important;
        cursor: pointer !important;
        background: transparent !important;
        border: none !important;
        padding: 0.5rem !important;
        width: 30px !important;
        height: 30px !important;
        justify-content: center !important;
        align-items: center !important;
        margin-left: auto !important;
        flex-direction: column !important;
        /* ESTILOS LIMPIOS - SIN RECUADRO */
        background: #ffffff !important;
    }

    /* FORZAR VISIBILIDAD DE LAS BARRAS - ESTILOS GLOBALES */
    .nav-toggle .bar {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 25px !important;
        height: 3px !important;
        background: #3B82F6 !important;
        margin: 3px 0 !important;
        transition: all 0.3s ease !important;
        border-radius: 2px !important;
        /* ESTILOS NECESARIOS PARA VISIBILIDAD */
        border: 1px solid #666666 !important;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    }
    
    /* Ocultar menú en móvil por defecto */
    .nav-menu {
        display: none !important;
        position: fixed !important;
        left: -100% !important;
        top: 70px !important;
        flex-direction: column !important;
        background: #ffffff !important;
        width: 100% !important;
        text-align: center !important;
        transition: 0.3s ease !important;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1) !important;
        padding: 2rem 0 !important;
        gap: 0 !important;
        border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
        z-index: 9998 !important;
        max-height: calc(100vh - 70px) !important;
        overflow-y: auto !important;
    }

    /* Mostrar menú cuando está activo */
    .nav-menu.active {
        display: flex !important;
        left: 0 !important;
        background: #ffffff !important;
    }
    
    /* Estilos para los enlaces del menú móvil */
    .nav-link {
        padding: 1rem 2rem !important;
        font-size: 1.1rem !important;
        background: #ffffff !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
        margin: 0 !important;
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
        color: #333333 !important;
        text-decoration: none !important;
        font-weight: 500 !important;
    }
    
    .nav-link:last-child {
        border-bottom: none !important;
    }
    
    .nav-link:hover {
        background: #f8f9fa !important;
        color: var(--primary-color) !important;
    }
    
    /* Animación del hamburger */
    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px) !important;
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0 !important;
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px) !important;
    }
    
    /* Asegurar que el body no se desplace cuando el menú está abierto */
    body.menu-open {
        overflow: hidden !important;
    }
}

/* Desktop Navigation */
@media (min-width: 769px) {
    .nav-toggle {
        display: none !important;
    }
    
    .nav-menu {
        display: flex !important;
        position: static !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        gap: 2rem !important;
        flex-direction: row !important;
        width: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .nav-link {
        padding: 0.5rem 0 !important;
        border-bottom: none !important;
        font-size: 1rem !important;
    }
}

/* Footer Styles */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 3rem 0 1rem;
    border-top: 3px solid var(--primary-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-logo i {
    font-size: 2rem;
}

.footer-section p {
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: #9ca3af;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.back-to-top:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Ocultar back-to-top en móvil */
@media (max-width: 768px) {
    .back-to-top {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

/* CSS Variables */
:root {
    --primary-color: #3b82f6;
    --primary-dark: #1d4ed8;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-dark: #111827;
    --border-color: #e5e7eb;
    --border-radius: 12px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
} 

 