/* Variables */
:root {
    --bg-color: #ffffff;
    --text-color: #242b35;
    --primary-color: #005cb9;
    --highlight-color: #ec3fa8;
    --footer-bg: #1a1a1a;
    --font-main: 'Figtree', sans-serif;
    --header-height: 80px;
}

/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 50px; /* Ajustar según tamaño real */
    width: auto;
}

/* Navegación Desktop */
.nav-list {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-list a {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-color);
}

.nav-list a:hover, 
.nav-list li:hover > a {
    color: var(--primary-color);
}

/* Dropdown Desktop */
.dropdown-item {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-top: 3px solid var(--highlight-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    padding: 10px 0;
}

.dropdown-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    font-weight: 400;
    font-size: 0.95rem;
}

.dropdown-menu li a:hover {
    background-color: #f4f4f4;
    color: var(--highlight-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Contenido Principal */
.main-content {
    padding: 0;
    flex: 1; /* Empuja el footer hacia abajo si hay poco contenido */
    margin: 0 0 50px 0;
}

/* Footer */
.footer {
    background-color: var(--footer-bg);
    color: #fff;
    border-top: 4px solid var(--highlight-color);
    padding: 40px 0;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 20px;
    align-items: center;
}

/* Columna 1 */
.assoc-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
}

/* Columna 2 */
.copyright-col {
    text-align: center;
}

.copyright-col p {
    margin-bottom: 5px;
}

.credit {
    color:#999;
    margin-top: 10px;
    opacity: 0.8;
    font-size: 0.85rem;
}

/* Columna 3 */
.logo-col {
    display: flex;
    justify-content: flex-end;
}

.logo-col img {
    width: 100%;
}

/* Hero */
.hero {
    background: #999;
    background-size: cover;
    background-position: center;
    color:white;
    padding:125px 0 125px 0;
    margin:0 0 50px 0;
}

.hero h1 {
    font-size: 3rem;
}

.hero p {
    color:#999;
}

/* Responsive / Mobile */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: #fff;
        height: calc(100vh - var(--header-height));
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        border-top: 1px solid #eee;
    }

    .nav.active {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 20px;
    }

    .nav-list li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-list > li > a {
        display: block;
        padding: 15px 0;
        font-size: 1.1rem;
    }

    /* Dropdown en Móvil: Siempre visible */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding-left: 20px;
        background: #f9f9f9;
        display: block; /* Forzar display */
    }

    .dropdown-menu li a {
        padding: 12px 0;
        font-size: 1rem;
        color: #555;
    }
    
    .dropdown-item > a > i {
        display: none; /* Ocultar flecha en móvil */
    }

    /* Footer Mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .assoc-col, .logo-col {
        align-items: center;
        justify-content: center;
    }
}