/* * MAPA LABORAL MÉXICO - ESTILOS GLOBALES DEFINITIVOS
 * Optimizado para Android (Chrome) y Windows (PC)
 */

 :root {
    --azul-dark: #1A365D;    /* Azul Mapa */
    --azul-main: #3182CE;    /* Azul Laboral */
    --dorado: #D69E2E;       /* Pin del Mapa / Premium */
    --verde-wa: #25D366;     /* WhatsApp */
    --fondo: #F7FAFC;
    --blanco: #FFFFFF;
    --texto: #2D3748;
    --texto-light: #718096;
    --error: #E53E3E;
}

* { 
    box-sizing: border-box; 
    -webkit-tap-highlight-color: transparent; /* Optimización táctil Android */
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--fondo);
    color: var(--texto);
    line-height: 1.6;
}

/* --- NAVEGACIÓN --- */
nav {
    background: var(--blanco);
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
}

.menu a {
    text-decoration: none;
    color: var(--azul-dark);
    font-weight: 600;
    margin-left: 20px;
    font-size: 0.95rem;
    transition: 0.2s;
}

.menu a:hover { color: var(--azul-main); }

.btn-nav-registro {
    background: var(--azul-dark);
    color: white !important;
    padding: 10px 22px;
    border-radius: 10px;
}

/* --- HERO SECTION & BUSCADOR --- */
.hero {
    background: linear-gradient(135deg, var(--azul-dark) 0%, #2A4365 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    border-bottom: 4px solid var(--dorado);
}

.hero h1 { 
    font-size: 2.5rem; 
    margin-bottom: 10px; 
    font-weight: 800; 
    letter-spacing: -1px;
}

.search-container {
    max-width: 650px;
    margin: 25px auto 0;
    display: flex;
    background: white;
    padding: 8px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.search-container input {
    flex: 1;
    border: none;
    padding: 15px;
    font-size: 1rem;
    outline: none;
    color: var(--texto);
}

.search-container button {
    background: var(--dorado);
    color: white;
    border: none;
    padding: 0 30px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.search-container button:hover { background: #B8860B; }

/* --- CONTENEDOR PRINCIPAL --- */
.container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

/* --- TARJETAS DE VACANTES (REDISEÑO HERMOSO) --- */
.vacante-card {
    background: var(--blanco);
    border-radius: 20px;
    margin-bottom: 20px;
    border: 1px solid #E2E8F0;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.vacante-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.08);
}

.vacante-body {
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info h3 { margin: 0; font-size: 1.35rem; color: var(--azul-dark); font-weight: 700; }
.empresa-name { margin: 4px 0; font-weight: 600; color: var(--azul-main); }

.detalles-min {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--texto-light);
    margin-top: 12px;
}

.sueldo-tag {
    color: #2F855A;
    font-weight: 700;
    background: #F0FFF4;
    padding: 3px 10px;
    border-radius: 6px;
}

/* --- ESTILO PREMIUM DESTACADO --- */
.vacante-card.premium {
    border: 2px solid var(--dorado);
    background: linear-gradient(to right, #ffffff, #FFFDF5);
}

/* Brillo animado para Premium */
.vacante-card.premium::after {
    content: "";
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.6), transparent);
    transform: rotate(45deg);
    animation: shine 5s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    15% { left: 100%; }
    100% { left: 100%; }
}

.premium-tag {
    display: inline-block;
    background: var(--dorado);
    color: white;
    font-size: 0.7rem;
    padding: 3px 12px;
    border-radius: 50px;
    font-weight: 800;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(214, 158, 46, 0.3);
}

/* --- BOTONES --- */
.btn-ver {
    background: var(--azul-dark);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: 0.3s;
    z-index: 2;
}

.btn-ver:hover { background: var(--azul-main); box-shadow: 0 5px 15px rgba(49, 130, 206, 0.3); }

/* --- ESTADOS DE CARGA Y VACÍO --- */
.loading-state, .empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--texto-light);
}

.spinner {
    width: 45px;
    height: 45px;
    border: 4px solid #E2E8F0;
    border-top: 4px solid var(--azul-main);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* --- RESPONSIVO PARA ANDROID --- */
@media (max-width: 768px) {
    .nav-container { flex-direction: column; padding: 10px; gap: 10px; }
    .hero { padding: 40px 15px; }
    .hero h1 { font-size: 1.8rem; }
    .search-container { flex-direction: column; padding: 10px; gap: 10px; }
    .search-container button { padding: 15px; }
    .vacante-body { flex-direction: column; align-items: flex-start; gap: 20px; }
    .acciones, .btn-ver { width: 100%; text-align: center; }
    .detalles-min { flex-direction: column; gap: 8px; }
}

/* --- FORMULARIOS (LOGIN/REGISTRO) --- */
.registro-card {
    background: rgba(255, 255, 255, 0.98);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 450px;
}

.form-group { margin-bottom: 20px; text-align: left; }
.form-group label { display: block; font-weight: 700; margin-bottom: 8px; font-size: 0.85rem; }
.form-group input, .form-group select {
    width: 100%;
    padding: 14px;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-size: 1rem;
}