:root {
    --itso-yellow: #FFE300;
    --itso-black: #000000;
    --itso-gray: #606060;
    --itso-white: #FFFFFF;
    --bg-app: #f9f9f9;
    --font-primary: 'League Spartan', sans-serif;
}

/* Landing Page */

body {
    margin: 0;
    font-family: var(--font-primary);
    background-color: var(--bg-app);
    color: var(--itso-black);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: var(--itso-white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.logo {
    font-weight: 700;
    font-size: 20px;
}

.nav-buttons button {
    margin-left: 10px;
    padding: 10px 18px;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 600;
}

.btn-login {
    background: transparent;
    border: 2px solid var(--itso-black);
}

.btn-register {
    background: var(--itso-yellow);
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 40px;
    background: linear-gradient(90deg, var(--itso-yellow) 40%, var(--bg-app) 40%);
}

.hero-text {
    max-width: 500px;
}

.hero h1 {
    font-size: 40px;
    margin-bottom: 15px;
}

.hero p {
    margin-bottom: 20px;
    color: #444;
}

.search-box {
    display: flex;
}

.search-box input {
    padding: 12px;
    border: none;
    width: 250px;
    border-radius: 6px 0 0 6px;
    outline: none;
}

.search-box button {
    padding: 12px 20px;
    border: none;
    background: var(--itso-black);
    color: var(--itso-white);
    border-radius: 0 6px 6px 0;
    cursor: pointer;
}

.hero-img {
    width: 300px;
    height: 200px;
    background: #ddd;
    border-radius: 10px;
}

.companies {
    padding: 40px;
    text-align: center;
}

.companies h2 {
    margin-bottom: 20px;
}

.company-logos {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.company {
    width: 100px;
    height: 60px;
    background: #e0e0e0;
    border-radius: 8px;
}

footer {
    background: var(--itso-black);
    color: var(--itso-white);
    padding: 30px;
    text-align: center;
    margin-top: auto;
}

footer a {
    color: var(--itso-yellow);
    margin: 0 10px;
    text-decoration: none;
}

/*Login */

.auth-body {
    background: linear-gradient(120deg, var(--itso-yellow) 50%, var(--itso-white) 50%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.auth-container {
    background: var(--itso-white);
    width: 100%;
    max-width: 420px;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

.auth-tabs {
    display: flex;
    margin-bottom: 20px;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    font-weight: 600;
    border-bottom: 3px solid transparent;
}

.auth-tab.active {
    border-bottom: 3px solid var(--itso-yellow);
}

.auth-roles {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.auth-roles label {
    cursor: pointer;
}

.auth-container input[type="text"],
.auth-container input[type="email"],
.auth-container input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    box-sizing: border-box;
    font-family: var(--font-primary);
}

.auth-container button {
    width: 100%;
    padding: 12px;
    border: none;
    background: var(--itso-black);
    color: var(--itso-white);
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    font-family: var(--font-primary);
}

.auth-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 3px solid var(--itso-white);
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
    right: 15px;
    top: 10px;
}

.auth-extra {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 15px;
}

.auth-extra a {
    color: var(--itso-black);
    text-decoration: none;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.hidden {
    display: none;
}

.companies {
    padding: 60px 40px;
    text-align: center;
    overflow: hidden;
}

.carousel-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.company-logos {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 40px;
    padding: 20px 0;
    align-items: center;
}

.company-card {
    min-width: 150px;
    height: 100px;
    background: var(--itso-white);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    flex-shrink: 0;
}

.company-card img {
    max-width: 80%;
    max-height: 60%;
    object-fit: contain;
    margin-bottom: 8px;
}

.company-card span {
    font-size: 12px;
    font-weight: 600;
    color: var(--itso-gray);
}

.auth-container input[type="file"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px dashed var(--itso-gray);
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-primary);
    background: #fafafa;
}

/* Navegación del Dashboard */
.dash-nav {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 15px 40px;
    background-color: var(--itso-black);
    color: var(--itso-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Nuevas clases para el nombre del usuario en el menú */
.user-menu {
    display: flex;
    align-items: center;
    gap: 15px; /* Espacio entre el nombre y el botón */
}

.nav-user-name {
    color: var(--itso-white, #fff); /* Ajusta según el color de tu menú */
    font-weight: 600;
    font-size: 15px;
}

.dash-nav .logo {
    color: var(--itso-yellow);
    font-size: 20px;
}

.dash-links a {
    color: var(--itso-white);
    text-decoration: none;
    margin: 0 15px;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s;
}

.dash-links a:hover, 
.dash-links a.active {
    color: var(--itso-yellow);
}

.btn-logout {
    background: transparent;
    border: 1px solid var(--itso-white);
    color: var(--itso-white);
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-primary);
    font-weight: 600;
    transition: 0.2s;
}

.btn-logout:hover {
    background: var(--itso-white);
    color: var(--itso-black);
}
/*Dashboard Students*/
/* Buscador del Dashboard */
.dash-search-container {
    background: var(--itso-yellow);
    padding: 25px 40px;
    display: flex;
    justify-content: center;
}

.dash-search-box {
    display: flex;
    width: 100%;
    max-width: 800px;
    box-shadow: var(--shadow-md);
    border-radius: 8px;
}

.dash-search-box input {
    flex: 2;
    padding: 14px;
    border: none;
    border-radius: 8px 0 0 8px;
    outline: none;
    font-family: var(--font-primary);
}

.dash-search-box select {
    flex: 1;
    padding: 14px;
    border: none;
    border-left: 1px solid #eee;
    outline: none;
    font-family: var(--font-primary);
    cursor: pointer;
}

.dash-search-box button {
    background: var(--itso-black);
    color: var(--itso-white);
    border: none;
    padding: 14px 25px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-primary);
    transition: background 0.2s;
}

.dash-search-box button:hover {
    background: #333;
}

/* Grilla de Ofertas y Tarjetas */
.dash-grid {
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.dash-card {
    background: var(--itso-white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s, border-color 0.2s;
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
}

.dash-card:hover {
    transform: translateY(-5px);
    border-color: var(--itso-yellow);
}

.dash-card .title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--itso-black);
}

.dash-card .company {
    color: var(--itso-gray);
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
}

.dash-card .salary {
    font-weight: 700;
    margin-bottom: 15px;
    color: #10B981; /* Verde para destacar el salario */
}

.dash-card .date {
    font-size: 12px;
    color: #888;
    border-top: 1px solid var(--border-light);
    padding-top: 10px;
    margin-top: auto; /* Empuja la fecha al fondo */
}

.dash-card button {
    width: 100%;
    margin-top: 15px;
    padding: 10px;
    background: var(--itso-white);
    border: 2px solid var(--itso-black);
    color: var(--itso-black);
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
    font-family: var(--font-primary);
}

.dash-card button:hover {
    background: var(--itso-black);
    color: var(--itso-white);
}

/* Paginación */
.dash-pagination {
    display: flex;
    justify-content: center;
    padding: 0 20px 40px 20px;
}

.dash-page-btn {
    margin: 0 5px;
    padding: 10px 15px;
    border: none;
    background: #e0e0e0;
    cursor: pointer;
    border-radius: 5px;
    font-family: var(--font-primary);
    font-weight: 600;
    transition: 0.2s;
}

.dash-page-btn.active {
    background: var(--itso-yellow);
    color: var(--itso-black);
}

.dash-page-btn:hover:not(.active) {
    background: #ccc;
}

/*Perfil estudiantes*/
/* =========================================
   ESTILOS DEL PERFIL DEL ESTUDIANTE
   ========================================= */

.profile-container {
    max-width: 900px;
    margin: 40px auto;
    background: var(--itso-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

.profile-container h2 {
    margin-top: 30px;
    margin-bottom: 20px;
    color: var(--itso-black);
    font-size: 22px;
}

.profile-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.profile-row input, 
.profile-row select,
.profile-container > input[type="text"] {
    flex: 1;
    width: 100%;
    padding: 14px;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    font-family: var(--font-primary);
    box-sizing: border-box;
    outline: none;
}

.profile-row input:focus, 
.profile-row select:focus {
    border-color: var(--itso-yellow);
}

/* Etiquetas (Tags) */
.profile-tags-container {
    border: 1px solid var(--border-light);
    padding: 12px;
    border-radius: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 50px;
}

.profile-tag {
    background: var(--itso-yellow);
    color: var(--itso-black);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-tag span {
    cursor: pointer;
    font-weight: bold;
    color: #d32f2f; /* Color de alerta para eliminar */
}

/* Zona de Subida (Drag & Drop) */
.profile-upload-area {
    border: 2px dashed var(--border-light);
    padding: 40px;
    text-align: center;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
    background: #fafafa;
    color: var(--itso-gray);
    font-weight: 600;
}

.profile-upload-area:hover, .profile-upload-area.dragover {
    border-color: var(--itso-yellow);
    background: #fffdf0;
}

/* Barra de Progreso */
.profile-progress-container {
    margin-bottom: 30px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.profile-progress-bar {
    height: 12px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
}

.profile-progress {
    height: 100%;
    width: 0%; /* Se llenará con JS */
    background: var(--itso-black);
    transition: width 0.5s ease-in-out;
}

.btn-guardar-perfil {
    background: var(--itso-black);
    color: var(--itso-white);
    border: none;
    padding: 16px;
    width: 100%;
    border-radius: 6px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    margin-top: 30px;
    font-family: var(--font-primary);
    transition: 0.2s;
}

.btn-guardar-perfil:hover {
    background: var(--itso-yellow);
    color: var(--itso-black);
}

/* =========================================
   ESTILOS DE MIS POSTULACIONES
   ========================================= */
.post-container {
    padding: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.post-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--itso-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.post-table th {
    background: var(--itso-yellow);
    padding: 15px;
    text-align: left;
    color: var(--itso-black);
}

.post-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.post-table tr:hover {
    background: #fafafa;
}

/* ESTADOS */
.post-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
    text-transform: capitalize;
}

.status-pendiente { background: #fff3cd; color: #856404; }
.status-revisada { background: #d1ecf1; color: #0c5460; }
.status-rechazada { background: #f8d7da; color: #721c24; }
.status-aceptada { background: #d4edda; color: #155724; }

/* BOTÓN ELIMINAR */
.btn-delete-post {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-primary);
    transition: 0.2s;
}

.btn-delete-post:hover {
    background: #c82333;
}

/* ESTADO VACÍO */
.post-empty {
    text-align: center;
    padding: 40px;
    color: #666;
}