/* ==========================================
   MANOS UNIDAS - CSS PRINCIPAL UNIFICADO
   ========================================== */

/* VARIABLES GLOBALES */
:root {
    --primary-glow: #00f0ff;
    --secondary-glow: #ff00ff;
    --accent-glow: #ffaa00;
    --bg-dark: #0a0a0f;
    --bg-card: #1a1a2e;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --transition: 0.3s ease;
}

/* RESET Y BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

/* FONDO CON IMAGEN (para páginas que lo necesiten) */
body.with-background {
    background-image: url('../images/manos unidas.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
}

/* NAVEGACIÓN */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo-svg {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.5));
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--primary-glow), var(--secondary-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all var(--transition);
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-glow);
    transform: translateX(-50%);
    transition: width var(--transition);
}

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

.nav-link:hover::before {
    width: 80%;
}

/* CONTENEDOR PRINCIPAL */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.content-card {
    background: rgba(40, 166, 216, 0.384);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin: 2rem auto;
    max-width: 900px;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* TIPOGRAFÍA */
h1 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 2px solid rgba(0, 240, 255, 0.3);
    padding-bottom: 1rem;
}

h2 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin: 2rem 0 1rem;
}

h3 {
    font-size: 1.3rem;
    color: var(--primary-glow);
    margin: 1.5rem 0 0.5rem;
}

p, li {
    font-size: 1rem;
    color: var(--text-primary);
    margin: 1rem 0;
}

ul {
    padding-left: 2rem;
}

/* BOTONES */
.btn {
    padding: 0.8rem 2rem;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-glow), var(--secondary-glow));
    color: var(--bg-dark);
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary-glow);
}

.btn-secondary:hover {
    background: rgba(0, 240, 255, 0.1);
}

/* GRID DE PROPUESTAS */
.propuestas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.propuesta-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(0, 240, 255, 0.2);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.propuesta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition);
}

.propuesta-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 240, 255, 0.3);
    border-color: var(--primary-glow);
}

.propuesta-card:hover::before {
    opacity: 0.1;
}

/* FOOTER */
.footer {
    background: var(--bg-card);
    border-top: 1px solid rgba(0, 240, 255, 0.2);
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
}

/* MODAL */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    border: 1px solid var(--primary-glow);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    transition: color var(--transition);
}

.modal-close:hover {
    color: var(--primary-glow);
}

/* UTILIDADES */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Implementar menú hamburguesa si necesario */
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    .content-card {
        padding: 1.5rem;
    }
    
    .propuestas-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.2rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
}

/* --- PARTE NUEVA PARA EL MENÚ LATERAL --- */
@media (max-width: 768px) {
    .nav-container {
        justify-content: flex-start !important;
    }
    
    .mobile-menu-btn {
        display: block !important;
    }

    .nav-links {
        display: none !important;
    }

    .logo {
        margin-right: auto;
    }
}

/* Sidebar Styling */
.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(15px);
    border-right: 1px solid var(--primary-glow);
    z-index: 2000;
    padding: 2rem;
    transition: left 0.4s ease;
    display: flex;
    flex-direction: column;
}

.sidebar.active {
    left: 0;
}

.close-sidebar {
    align-self: flex-end;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    margin-bottom: 2rem;
}

.sidebar-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-links .nav-link {
    font-size: 1.2rem;
    text-decoration: none;
    color: var(--text-secondary);
}
