/* === CONFIGURACIÓN DE COLORES VIRA === */
:root {
    --primary-green: #378a2e;
    --primary-hover: #296922;
    --green-light: #eef7ed;
    --bg-dark-hero: linear-gradient(135deg, #0b1528 0%, #050b14 100%);
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.5;
}

/* --- HEADER Y NAVEGACIÓN --- */
header {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    width: 120px;
}
.logo-brand img {
    width: 100%;
    height: auto;
    display: block;
}

.nav-links { display: flex; gap: 28px; }
.nav-links a { color: #435366; text-decoration: none; font-size: 14px; font-weight: 500; transition: 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary-green); }

.nav-actions { display: flex; align-items: center; gap: 30px; }

.user-icons-group {
    display: flex;
    align-items: center;
    gap: 22px;
}

.user-icons-group a, .profile-btn, .search-trigger {
    color: #0f172a;
    font-size: 17px;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    transition: color 0.25s ease;
}

.user-icons-group a:hover, .search-trigger:hover {
    color: var(--primary-green);
}
.profile-btn { color: #0f172a; }
.profile-btn:hover { color: var(--primary-green); }

.search-wrapper { position: relative; display: flex; align-items: center; }

.search-dropdown {
    position: absolute;
    top: 40px;
    right: 0;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 280px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
    display: none;
    z-index: 1100;
    padding: 10px;
}
.search-dropdown.show { display: block; animation: fadeInDropdown 0.2s ease-out; }

.search-form {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 12px;
    background-color: var(--bg-main);
}
.search-form:focus-within { border-color: var(--primary-green); background-color: #ffffff; }
.search-form input { border: none; background: none; outline: none; width: 100%; font-family: 'Inter', sans-serif; font-size: 13px; color: var(--text-dark); }
.search-form input::placeholder { color: var(--text-muted); }
.search-form button { border: none; background: none; color: var(--text-muted); cursor: pointer; font-size: 14px; transition: color 0.2s; }
.search-form button:hover { color: var(--primary-green); }

.dropdown-wrapper { position: relative; display: flex; align-items: center; }

.user-dropdown {
    position: absolute;
    top: 40px;
    right: 0;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    width: 240px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
    display: none;
    z-index: 1100;
    padding: 10px 0;
}
.user-dropdown.show { display: block; animation: fadeInDropdown 0.2s ease-out; }

.dropdown-header { padding: 12px 20px; border-bottom: 1px solid var(--border-color); margin-bottom: 5px; text-align: left; }
.dropdown-header p { font-size: 13px; font-weight: 600; color: var(--text-dark); margin: 0; }
.dropdown-header span { font-size: 11px; color: var(--text-muted); display: block; margin-top: 2px; }

.user-dropdown a { display: flex; align-items: center; gap: 12px; padding: 10px 20px; color: #334155; font-size: 13px; text-decoration: none; transition: background 0.2s, color 0.2s; }
.user-dropdown a i { font-size: 14px; color: var(--text-muted); width: 16px; text-align: center; transition: color 0.2s; }
.user-dropdown a:hover { background-color: var(--green-light); color: var(--primary-green); }
.user-dropdown a:hover i { color: var(--primary-green); }

.dropdown-divider { height: 1px; background-color: var(--border-color); margin: 8px 0; }
.user-dropdown a.logout-item:hover { background-color: #fef2f2; color: #ef4444; }
.user-dropdown a.logout-item:hover i { color: #ef4444; }

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

/* --- FOOTER CORPORATIVO --- */
footer { background: #0f172a; color: #94a3b8; padding: 80px 40px 30px 40px; font-size: 14px; }
.footer-container { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 50px; margin-bottom: 60px; }

.footer-logo-brand { display: inline-block; height: 200px; margin-bottom: 15px; }
.footer-logo-img { height: 100%; width: auto; object-fit: contain; }

.footer-brand p { max-width: 320px; line-height: 1.6; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a { width: 36px; height: 36px; background: rgba(255,255,255,0.05); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: 0.2s; }
.footer-socials a:hover { background: var(--primary-green); }

.footer-col h4 { color: white; font-size: 15px; font-weight: 600; margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: #94a3b8; text-decoration: none; transition: 0.2s; }
.footer-col ul li a:hover { color: white; padding-left: 4px; }

.footer-bottom { max-width: 1400px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; text-align: center; font-size: 13px; color: #64748b; }

.btn-primary { background-color: var(--primary-green); color: white; padding: 14px 28px; border-radius: 6px; text-decoration: none; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; transition: 0.2s; border: none; cursor: pointer; }
.btn-primary:hover { background-color: var(--primary-hover); }
.btn-secondary { background-color: transparent; color: white; padding: 13px 28px; border-radius: 6px; text-decoration: none; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; transition: 0.2s; border: 1px solid rgba(255,255,255,0.3); }
.btn-secondary:hover { background-color: rgba(255,255,255,0.05); border-color: white; }

@media (max-width: 1024px) {
    .footer-container { grid-template-columns: 1fr; }
}
