/* ========================== */
/* 1. Importaciones y Fuentes */
/* ========================== */

/* Importar la fuente Roboto de Google Fonts */
@import url('https://fonts.googleapis.com/css?family=Roboto&display=swap');

/* ========================== */
/* 2. Estilos Generales */
/* ========================== */

body {
    background: linear-gradient(120deg, #981871, #663366); /* Degradado violeta fuerte */
    font-family: 'Roboto', sans-serif; /* Fuente Roboto */
    color: #ffffff; /* Mantén el texto blanco para contraste */
    margin: 0; /* Evita desbordes horizontales por el margen por defecto */
}

/* ========================== */
/* 3. Navbar y Menú */
/* ========================== */

.navbar {
    width: 100%;
    background-color: #560D47; /* Violeta oscuro */
    padding: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: #560D47;
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 1000;
    text-align: center;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 15px;
    white-space: nowrap;
}

.dropdown:hover .dropdown-menu {
    display: block;
    animation: dropdown-fade 0.25s ease-out forwards;
}

.dropdown-menu.show {
    display: block;
    animation: dropdown-fade 0.25s ease-out forwards;
}

@keyframes dropdown-fade {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.nav-link {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-size: 18px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #CDB4DB; /* Color más claro en hover */
}

/* Estilos destacados para el enlace de login */
.login-link {
    color: #FFB703; /* Color de llamado de atención */
}

.login-link:hover {
    color: #ffd338; /* Ligero cambio al pasar el cursor */
}

/* Mensajes flash */
.flashes {
    list-style: none;
    padding: 10px;
    margin: 20px auto;
    max-width: 400px;
    background-color: #ffdddd;
    color: #c00;
    border-radius: 4px;
    text-align: center;
}

.flashes li {
    margin: 0;
}

/* Botón del menú hamburguesa */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* ========================== */
/* 4. Header */
/* ========================== */

.header-container {
    display: block;
    text-align: center;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 10px;
}

.header-image {
    background-color: white;
    height: 110px;
    width: auto;
}

.career-banner {
    background-color: #560D47;
    color: white;
    text-align: center;
    padding: 5px 0;
    font-weight: bold;
}

/* Banner informativo */
.info-banner {
    background-color: #FFF3CD;
    color: #8A6D3B;
    text-align: center;
    padding: 10px;
    margin: 15px 0;
    border: 1px solid #F0C36D;
    border-radius: 4px;
}

/* ========================== */
/* 5. Home Container */
/* ========================== */

.home-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    background-color: #f4f4f4;
    margin: 30px auto;
    max-width: 900px;
}

/* ========================== */
/* 6. Títulos y Textos */
/* ========================== */

.title {
    font-size: 2rem;
    color: #7a4f9e;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
}

/* ========================== */
/* 7. Botones de Navegación */
/* ========================== */

.navigation-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}

.navigation-buttons a {
    display: inline-block;
    background-color: #7a4f9e;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    width: 100%;
    max-width: 300px;
}

.navigation-buttons a:hover {
    background-color: #5e3a75;
    transform: scale(1.05);
}

/* Botón activo */
.navigation-buttons a.active {
    background-color: #e0e0e0;
}

/* Botón de sugerencias */
.navigation-buttons a.suggestion-link {
    background-color: #ffe57f;
    color: #444;
}

.navigation-buttons a.suggestion-link:hover {
    background-color: #ffd740;
    transform: scale(1.05);
}

/* Botón de Twitter */
.navigation-buttons a.twitter-link {
    background-color: rgb(21, 32, 43);
    color: white;
}

.navigation-buttons a.twitter-link:hover {
    background-color: #1DA1F2;
}

/* Botón deshabilitado */
.navigation-buttons button.disabled {
    background-color: #b0b0b0;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    width: 100%;
    max-width: 300px;
    opacity: 0.7;
    cursor: not-allowed;
}

/* ========================== */
/* 8. Footer */
/* ========================== */

.footer {
    background-color: #7a4f9e;
    color: white;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-links,
.footer-contact,
.footer-social {
    flex: 1 1 200px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin: 5px 0;
}

.footer-links a,
.footer-contact a,
.footer-social a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover,
.footer-contact a:hover,
.footer-social a:hover {
    color: #cdb4db;
}

.footer-social .social-link {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-social .social-icon {
    width: 24px;
    height: 24px;
}

.footer-bottom {
    margin-top: 20px;
    border-top: 1px solid #cdb4db;
    padding-top: 10px;
    font-size: 12px;
}

/* ========================== */
/* 9. Responsividad */
/* ========================== */

/* Pantallas pequeñas */
@media (max-width: 768px) {
    /* Navbar */
    .navbar-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #560D47;
        z-index: 1000;
    }

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

    .navbar-menu a {
        padding: 10px 20px;
        border-bottom: 1px solid #CDB4DB;
    }

    .dropdown-menu {
        position: static;
        left: auto;
        transform: none;
        text-align: left;
    }

    .navbar-menu a:last-child {
        border-bottom: none;
    }

    .navbar-toggle {
        display: block;
    }

    /* Títulos */
    .title {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    /* Botones */
    .navigation-buttons {
        flex-direction: column;
    }

    .navigation-buttons a {
        width: 90%;
        max-width: none;
    }

    /* Ajuste de logo en pantallas pequeñas */
    .header-image {
        height: 80px;
    }

    /* Footer */
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}
