:root {
    --verde: #2ecc71;
    --verde-oscuro: #27ae60;
    --gris-texto: #2b2b2b;
}

/* ESTILO GLOBAL */
body {
    font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
    color: var(--gris-texto);
    margin: 0;
    padding: 0;
    background-color: #fdfdfd;
    line-height: 1.6;
}

/* NAVBAR */
.navbar {
    background-color: #fff;
    border-bottom: 3px solid var(--verde);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
}

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

/* LOGO */
.navbar-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--verde-oscuro);
    text-decoration: none;
    letter-spacing: 0.5px;
}

/* MENÚ */
.navbar-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* ENLACES */
.navbar-menu a {
    color: var(--gris-texto);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s ease;
    padding: 0.25rem 0;
}

/* EFECTO SUBRAYADO VERDE */
.navbar-menu a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    left: 0;
    bottom: -4px;
    background-color: var(--verde);
    transition: width 0.3s ease;
}

.navbar-menu a:hover {
    color: var(--verde-oscuro);
}

.navbar-menu a:hover::after {
    width: 100%;
}

/* ENLACE "VER CONVOCATORIAS" */
.highlight-link {
    color: var(--gris-texto);
    font-weight: 500;
}

/* TEXTO SI NO HAY CONVOCATORIAS */
.no-convocatorias {
    color: #999;
    font-style: italic;
    font-size: 0.9rem;
}

/* BOTÓN MENÚ MÓVIL */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--verde-oscuro);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .navbar-menu {
        flex-direction: column;
        align-items: center;
        width: 100%;
        background-color: #fff;
        position: absolute;
        top: 60px;
        left: 0;
        display: none;
        padding: 1rem 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    }

    .navbar-menu.open {
        display: flex;
    }

    .navbar-toggle {
        display: block;
    }

    .navbar-menu a {
        font-size: 1.1rem;
    }
}
