:root {
    --primary: #2C3E50;
    --secondary: #3498DB;
    --accent: #E74C3C;
    --bg-light: #FFFFFF;
    --bg-gray: #F8F9FA;
    --text-dark: #2C3E50;
    --text-gray: #6C757D;
    --border: #E9ECEF;
    --sidebar-width: 280px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    margin-left: var(--sidebar-width);
}

/* Navegación Sidebar Vertical */
nav {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-light);
    border-right: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 2rem 0;
}

.nav-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 0 1rem 2.5rem;
    border-bottom: 1px solid var(--border);
}

.logo-icon {
    width: 200px;
    height: 200px;
    transition: transform 0.3s ease;
}

.logo-icon:hover {
    transform: scale(1.05);
}

.logo-text {
    width: 260px;
    height: auto;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
    margin-top: 2rem;
    padding: 0;
}

.nav-links li {
    width: 100%;
}

.nav-links a {
    display: block;
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-links a:hover {
    background: var(--bg-gray);
    color: var(--primary);
    border-left-color: var(--secondary);
}

.nav-links a.active {
    background: var(--bg-gray);
    color: var(--primary);
    border-left-color: var(--secondary);
    font-weight: 600;
}

/* Selector de idioma */
.language-selector {
    margin-top: auto;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border);
}

.language-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-gray);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-gray);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.language-btn:hover {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}


/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-gray);
    padding: 4rem 2rem;
}

.hero-content {
    text-align: center;
    max-width: 800px;
}

.hero-logo {
    width: 100%;
    max-width: 500px;
    margin-bottom: 2rem;
    animation: fadeIn 0.8s ease;
}

.hero h1 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 700;
    animation: fadeIn 0.8s ease 0.2s backwards;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    animation: fadeIn 0.8s ease 0.4s backwards;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeIn 0.8s ease 0.6s backwards;
}

.btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--secondary);
    color: white;
}

.btn-primary:hover {
    background: #2980B9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sections */
section {
    padding: 4rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary);
    font-weight: 700;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--secondary);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.375rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
    font-weight: 600;
}

.card p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* Eventos */
.evento {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--secondary);
    border: 1px solid var(--border);
    border-left: 4px solid var(--secondary);
    transition: all 0.3s ease;
}

.evento:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.evento-fecha {
    display: inline-block;
    background: var(--secondary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.evento h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
    font-weight: 600;
}

.evento-detalles {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.evento-detalle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Formulario de contacto */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: white;
    color: var(--text-dark);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid var(--border);
    color: var(--text-gray);
    font-size: 1.25rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
    transform: translateY(-3px);
}

/* Footer */
footer {
    background: var(--bg-gray);
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    border-top: 1px solid var(--border);
}

footer p {
    color: var(--text-gray);
}

/* Recursos */
.recurso {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.recurso:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.recurso-tag {
    display: inline-block;
    background: var(--bg-gray);
    color: var(--text-gray);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        margin-left: 0;
    }

    nav {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border);
        position: relative;
    }

    .nav-container {
        padding: 1rem;
    }

    .logo-container {
        flex-direction: row;
        padding: 0;
        border-bottom: none;
        margin-bottom: 1rem;
    }

    .logo-text {
        max-width: 150px;
    }

    .nav-links {
        flex-direction: row;
        flex-wrap: wrap;
        margin-top: 1rem;
        gap: 0.5rem;
    }

    .nav-links a {
        padding: 0.75rem 1rem;
        border-left: none;
        border-radius: 6px;
    }

    .nav-links a:hover,
    .nav-links a.active {
        border-left: none;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.125rem;
    }

    .section-title {
        font-size: 2rem;
    }

    section {
        padding: 3rem 1.5rem;
    }
}

/* Hamburger Menu para móviles */
.hamburger {
    display: none;
}

/* Animaciones de scroll */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Ajustes para cards especiales */
.card[style*="background"] {
    color: white;
}

.card[style*="background"] h2,
.card[style*="background"] h3,
.card[style*="background"] p {
    color: white;
}

.card[style*="background"] .btn-secondary {
    border-color: white;
    color: white;
}

.card[style*="background"] .btn-secondary:hover {
    background: white;
    color: var(--secondary);
}