/* ==========================================================================
   Variables y Sistema de Diseño Remotio 2026
   ========================================================================== */
:root {
    /* Paleta Principal */
    --color-electric-blue: #0f4cff;
    --color-blue-hover: #072ca3;
    --color-blue-subtle: rgba(15, 76, 255, 0.08);
    --color-blue-border: rgba(15, 76, 255, 0.18);
    
    --color-mint-green: #98ff98;
    --color-mint-subtle: rgba(152, 255, 152, 0.18);
    --color-mint-darker: #0d8364;
    --color-white: #ffffff;
    
    /* Neutros / Escala de Grises */
    --color-bg-light: #f8fafc;
    --color-bg-subtle: #f1f5f9;
    --color-gray-100: #f4f5f7;
    --color-gray-200: #e2e8f0;
    --color-gray-300: #cbd5e1;
    --color-gray-400: #94a3b8;
    --color-gray-500: #64748b;
    --color-gray-700: #334155;
    --color-gray-800: #1e293b;
    --color-gray-900: #0f172a;

    /* Gradientes & Efectos */
    --gradient-hero: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    --gradient-accent: linear-gradient(135deg, #0f4cff 0%, #2563eb 50%, #06b6d4 100%);
    --gradient-badge: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    
    /* Tipografía */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Efectos & Bordes */
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
    --shadow-hover: 0 20px 30px -8px rgba(15, 76, 255, 0.15);
    --shadow-card: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
    
    /* Layout */
    --max-width: 1200px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    color: var(--color-gray-800);
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body.nav-open {
    overflow: hidden !important;
    touch-action: none;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Tipografía */
h1, h2, h3, h4, h5 {
    color: var(--color-gray-900);
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: var(--color-electric-blue);
    transition: all 0.2s ease;
}

/* ==========================================================================
   Componentes Globales (Botones, Badges)
   ========================================================================== */
.btn-primary, .btn-secondary, .btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    font-size: 0.975rem;
    line-height: 1.2;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--color-electric-blue);
    color: var(--color-white);
    box-shadow: 0 4px 14px rgba(15, 76, 255, 0.28);
}

.btn-primary:hover {
    background-color: var(--color-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(15, 76, 255, 0.35);
    color: var(--color-white);
}

.btn-secondary {
    background-color: var(--color-white);
    color: var(--color-gray-800);
    border: 1px solid var(--color-gray-300);
    box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
    border-color: var(--color-electric-blue);
    color: var(--color-electric-blue);
    background-color: rgba(15, 76, 255, 0.03);
    transform: translateY(-2px);
}

.badge-mint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #dcfce7;
    color: #166534;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.825rem;
    font-weight: 600;
    border: 1px solid #bbf7d0;
}

.badge-remote {
    background-color: rgba(15, 76, 255, 0.07);
    color: var(--color-electric-blue);
    padding: 4px 10px;
    border-radius: var(--radius-xs);
    font-size: 0.775rem;
    font-weight: 600;
    border: 1px solid rgba(15, 76, 255, 0.12);
}

/* Punto de pulso animado para estados "En Vivo" */
.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* ==========================================================================
   Header Moderno (Sticky con Glassmorphism)
   ========================================================================== */
.main-header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-right-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    height: 44px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.logo a:hover img {
    transform: scale(1.02);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.mobile-nav-header,
.mobile-nav-schedule-badge {
    display: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-cta {
    display: flex;
    align-items: center;
}

.main-nav a:not(.btn-primary) {
    color: var(--color-gray-700);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 6px 0;
}

.main-nav a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-electric-blue);
    transition: width 0.25s ease;
}

.main-nav a:not(.btn-primary):hover {
    color: var(--color-electric-blue);
}

.main-nav a:not(.btn-primary):hover::after {
    width: 100%;
}

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

/* Selector de País en Header */
.country-selector-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-full);
    background: var(--color-white);
    color: var(--color-gray-700);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-xs);
}

.country-selector-btn:hover {
    border-color: var(--color-electric-blue);
    background-color: var(--color-bg-light);
    color: var(--color-electric-blue);
}

.country-selector-btn .country-flag {
    font-size: 1.1rem;
    line-height: 1;
}

.country-selector-btn .country-arrow {
    font-size: 0.7rem;
    color: var(--color-gray-400);
    transition: transform 0.2s ease;
}

.country-selector-btn:hover .country-arrow {
    color: var(--color-electric-blue);
}

/* Menú móvil botón hamburguesa */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 200;
    padding: 0;
}

.menu-toggle span {
    width: 100%;
    height: 2.5px;
    background-color: var(--color-gray-800);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
    background-color: var(--color-electric-blue);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
    background-color: var(--color-electric-blue);
}

/* ==========================================================================
   Badges y Avisos de Horario Laboral EE.UU.
   ========================================================================== */
.badge-schedule {
    background-color: #fef3c7;
    color: #92400e;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #fde68a;
    letter-spacing: -0.01em;
}

.badge-training {
    background-color: #ecfdf5;
    color: #065f46;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #a7f3d0;
    letter-spacing: -0.01em;
}

.req-item.req-schedule-highlight {
    background: #fffbeb;
    border: 1px solid #fcd34d;
}

.req-item.req-schedule-highlight .req-label {
    color: #b45309;
}

.req-item.req-schedule-highlight .req-value strong {
    color: #78350f;
}

.schedule-notice-box {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin: 18px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.schedule-notice-box .notice-icon {
    font-size: 1.3rem;
    line-height: 1.2;
    flex-shrink: 0;
}

.schedule-notice-box h5 {
    font-size: 0.92rem;
    color: #92400e;
    font-weight: 700;
    margin-bottom: 4px;
}

.schedule-notice-box p {
    font-size: 0.825rem;
    color: #78350f;
    line-height: 1.45;
    margin: 0;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    background: var(--gradient-hero);
    padding: 70px 0 80px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--color-gray-200);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(15, 76, 255, 0.08) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge-wrapper {
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    color: var(--color-gray-900);
}

.hero-content h1 span {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--color-gray-500);
    margin-bottom: 32px;
    max-width: 95%;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

/* Métricas destacadas en el Hero */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding-top: 25px;
    border-top: 1px solid var(--color-gray-200);
}

.hero-stat-item {
    display: flex;
    flex-direction: column;
}

.hero-stat-num {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-gray-900);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hero-stat-desc {
    font-size: 0.8rem;
    color: var(--color-gray-500);
    font-weight: 500;
    margin-top: 4px;
}

/* Showcase Dinámico del Hero (Columna derecha) */
.hero-showcase {
    position: relative;
}

.hero-card-featured {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
}

.hero-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.hero-card-header .live-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ecfdf5;
    color: #065f46;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid #a7f3d0;
}

.hero-card-header .timestamp {
    font-size: 0.775rem;
    color: var(--color-gray-400);
}

.hero-job-body {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.hero-company-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.hero-job-title-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 4px;
}

.hero-job-company {
    font-size: 0.875rem;
    color: var(--color-gray-500);
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-job-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.hero-job-pill {
    background: var(--color-bg-subtle);
    color: var(--color-gray-700);
    padding: 5px 10px;
    border-radius: var(--radius-xs);
    font-size: 0.775rem;
    font-weight: 500;
}

.hero-job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 18px;
    border-top: 1px solid var(--color-gray-100);
}

.hero-job-pay {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-mint-darker);
}

.hero-job-pay small {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-gray-500);
}

.hero-floating-stat {
    position: absolute;
    bottom: -22px;
    right: 20px;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(8px);
    color: var(--color-white);
    padding: 10px 18px;
    border-radius: var(--radius-full);
    font-size: 0.825rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255,255,255,0.15);
}

/* ==========================================================================
   Barra de Confianza / Ecosistema de Cobro
   ========================================================================== */
.trust-bar {
    background-color: var(--color-white);
    padding: 24px 0;
    border-bottom: 1px solid var(--color-gray-200);
}

.trust-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    flex-wrap: wrap;
}

.trust-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.trust-logos {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.trust-logo-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-gray-700);
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0.8;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.trust-logo-item:hover {
    opacity: 1;
    color: var(--color-electric-blue);
    transform: translateY(-1px);
}

.trust-logo-item svg {
    color: var(--color-electric-blue);
}

/* ==========================================================================
   Buscador & Filtros Avanzados (Sticky)
   ========================================================================== */
.sticky-search-bar {
    position: sticky;
    top: 73px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-gray-200);
    padding: 16px 0 14px;
    z-index: 80;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.search-box-wrapper {
    position: relative;
    margin-bottom: 14px;
}

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

.search-form svg {
    position: absolute;
    left: 18px;
    color: var(--color-gray-400);
    transition: color 0.2s ease;
    pointer-events: none;
}

.search-form input {
    width: 100%;
    padding: 14px 20px 14px 50px;
    border: 1.5px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    font-size: 0.975rem;
    font-family: var(--font-main);
    transition: all 0.2s ease;
    background: var(--color-white);
    color: var(--color-gray-900);
}

.search-form input:focus {
    outline: none;
    border-color: var(--color-electric-blue);
    box-shadow: 0 0 0 4px rgba(15, 76, 255, 0.12);
}

.search-form input:focus + svg {
    color: var(--color-electric-blue);
}

/* Chips / Píldoras de Filtro por Categoría */
.category-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none; /* Firefox */
}

.category-filters::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.filter-chip {
    white-space: nowrap;
    padding: 7px 15px;
    background-color: var(--color-bg-subtle);
    color: var(--color-gray-700);
    border-radius: var(--radius-full);
    font-size: 0.825rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--color-gray-200);
    transition: all 0.2s ease;
    user-select: none;
}

.filter-chip:hover {
    background-color: var(--color-gray-200);
    color: var(--color-gray-900);
}

.filter-chip.active {
    background-color: var(--color-electric-blue);
    color: var(--color-white);
    border-color: var(--color-electric-blue);
    box-shadow: 0 2px 8px rgba(15, 76, 255, 0.25);
}

/* Barra de Conteo y Estado */
.jobs-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 0 4px;
}

.jobs-count-text {
    font-size: 0.95rem;
    color: var(--color-gray-500);
    font-weight: 500;
}

.jobs-count-text strong {
    color: var(--color-gray-900);
    font-weight: 700;
}

.reset-filters-btn {
    font-size: 0.85rem;
    color: var(--color-electric-blue);
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    padding: 4px 8px;
    display: none;
}

.reset-filters-btn.visible {
    display: inline-block;
}

/* ==========================================================================
   Sección Empleos (Grid & Cards Rediseñadas)
   ========================================================================== */
.jobs-section {
    padding: 40px 0 80px;
}

.section-header {
    text-align: center;
    margin-bottom: 35px;
}

.section-header h3 {
    font-size: 2.2rem;
    margin-bottom: 8px;
    color: var(--color-gray-900);
}

.section-header p {
    color: var(--color-gray-500);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Pagina 404 */
.not-found-section {
    padding: 120px 0 140px;
}

.not-found-section h1 {
    font-size: 2.2rem;
    margin-bottom: 8px;
    color: var(--color-gray-900);
}

.not-found-actions {
    justify-content: center;
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 22px;
}

/* Job Card Premium */
.job-card {
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    cursor: pointer;
    box-shadow: var(--shadow-card);
}

.job-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(15, 76, 255, 0.25);
}

.job-card-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.job-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-white);
    flex-shrink: 0;
    background: linear-gradient(135deg, #0f4cff 0%, #38bdf8 100%);
    box-shadow: 0 2px 6px rgba(15, 76, 255, 0.2);
}

.job-card-header-info {
    flex: 1;
}

.job-card-header-info h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 4px;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.job-card:hover .job-card-header-info h4 {
    color: var(--color-electric-blue);
}

.job-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--color-gray-500);
    flex-wrap: wrap;
}

.job-meta-row .company-name {
    font-weight: 600;
    color: var(--color-gray-700);
}

.job-badges-list {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.job-snippet {
    font-size: 0.9rem;
    color: var(--color-gray-500);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--color-gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.job-pay-badge {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-mint-darker);
    background: #ecfdf5;
    padding: 4px 10px;
    border-radius: var(--radius-xs);
    border: 1px solid #d1fae5;
}

.job-card-cta {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-electric-blue);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: transform 0.2s ease;
    /* Es un <button> para que la tarjeta se pueda abrir con teclado */
    background: none;
    border: 0;
    padding: 0;
    font-family: inherit;
    cursor: pointer;
}

.job-card-cta:focus-visible {
    outline: 3px solid var(--color-electric-blue);
    outline-offset: 4px;
    border-radius: 4px;
}

.job-card:hover .job-card-cta {
    transform: translateX(3px);
}

/* ==========================================================================
   Nueva Sección: Cómo Funciona (3 Pasos de Alto Impacto)
   ========================================================================== */
.how-it-works-section {
    background-color: var(--color-white);
    padding: 90px 0;
    border-top: 1px solid var(--color-gray-200);
    border-bottom: 1px solid var(--color-gray-200);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
    position: relative;
}

.step-card {
    background: var(--color-bg-light);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    padding: 35px 28px;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(15, 76, 255, 0.2);
}

.step-number {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--color-gray-200);
    line-height: 1;
}

.step-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-electric-blue);
    margin-bottom: 22px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-gray-200);
}

.step-card h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--color-gray-900);
}

.step-card p {
    font-size: 0.95rem;
    color: var(--color-gray-500);
    line-height: 1.6;
}

/* ==========================================================================
   Nueva Sección: Comunidad y Testimonios
   ========================================================================== */
.testimonials-section {
    background-color: var(--color-bg-light);
    padding: 90px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 50px;
}

.testimonial-card {
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
}

.testimonial-stars {
    color: #eab308;
    margin-bottom: 16px;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.testimonial-quote {
    font-size: 0.95rem;
    color: var(--color-gray-700);
    line-height: 1.6;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--color-gray-100);
    padding-top: 16px;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: var(--color-electric-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.testimonial-info h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-gray-900);
}

.testimonial-info span {
    font-size: 0.8rem;
    color: var(--color-gray-500);
}

/* ==========================================================================
   Guías & Recursos Editoriales
   ========================================================================== */
.guias-section {
    background-color: var(--color-white);
    padding: 90px 0;
    border-top: 1px solid var(--color-gray-200);
    border-bottom: 1px solid var(--color-gray-200);
}

.guias-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 45px;
}

.guia-card {
    background: var(--color-bg-light);
    border-radius: var(--radius-md);
    padding: 35px;
    border: 1px solid var(--color-gray-200);
    border-left: 5px solid var(--color-electric-blue);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.guia-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.guia-badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(15, 76, 255, 0.08);
    color: var(--color-electric-blue);
    border-radius: var(--radius-xs);
    font-size: 0.775rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.guia-card h4 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--color-gray-900);
    line-height: 1.3;
}

.guia-card p {
    color: var(--color-gray-500);
    margin-bottom: 24px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.guia-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.guia-read-time {
    font-size: 0.825rem;
    color: var(--color-gray-400);
}

.read-more {
    font-weight: 600;
    font-size: 0.925rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.read-more:hover {
    gap: 8px;
}

/* ==========================================================================
   Nueva Sección: Preguntas Frecuentes (FAQ Acordeón)
   ========================================================================== */
.faq-section {
    background-color: var(--color-bg-light);
    padding: 90px 0;
}

.faq-container {
    max-width: 820px;
    margin: 45px auto 0;
}

.faq-item {
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
    border-color: rgba(15, 76, 255, 0.3);
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-gray-900);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-main);
}

.faq-icon {
    transition: transform 0.3s ease;
    color: var(--color-electric-blue);
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
    padding: 0 24px;
    color: var(--color-gray-500);
    font-size: 0.95rem;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 400px;
    padding: 0 24px 22px;
}

/* ==========================================================================
   Formulario Conversión Reestructurado (Menos Fricción)
   ========================================================================== */
.conversion-section {
    padding: 100px 0;
    background: var(--color-gray-900);
    color: var(--color-white);
    position: relative;
}

.form-container {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 60px;
    align-items: flex-start;
}

.form-info {
    position: sticky;
    top: 100px;
}

.form-info h2 {
    color: var(--color-white);
    font-size: 2.5rem;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

.form-info p {
    color: var(--color-gray-400);
    font-size: 1.05rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.benefits-list {
    list-style: none;
    margin-bottom: 35px;
}

.benefits-list li {
    margin-bottom: 16px;
    font-weight: 500;
    color: #a7f3d0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.trust-card-mini {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 18px;
    margin-top: 25px;
}

.trust-card-mini h6 {
    color: var(--color-white);
    font-size: 0.875rem;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.trust-card-mini p {
    font-size: 0.8rem;
    color: var(--color-gray-400);
    margin-bottom: 0;
    line-height: 1.4;
}

/* Formulario Moderno */
.modern-form {
    background: var(--color-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    color: var(--color-gray-800);
}

/* Bloques de Pasos dentro del formulario */
.form-step-card {
    background: var(--color-bg-light);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
}

.form-step-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-gray-200);
}

.form-step-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--color-electric-blue);
    color: var(--color-white);
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.form-step-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-gray-900);
}

/* Grid de 2 columnas para campos compactos */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-gray-800);
}

.form-group .optional {
    color: var(--color-gray-400);
    font-weight: 400;
    font-size: 0.8rem;
}

.modern-form input[type="text"],
.modern-form input[type="url"],
.modern-form input[type="tel"],
.modern-form input[type="email"],
.modern-form select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--color-gray-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 0.95rem;
    background-color: var(--color-white);
    color: var(--color-gray-900);
    transition: all 0.2s ease;
}

.modern-form input:focus,
.modern-form select:focus {
    outline: none;
    border-color: var(--color-electric-blue);
    box-shadow: 0 0 0 3px rgba(15, 76, 255, 0.1);
}

.radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1.5px solid var(--color-gray-200);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
    background: var(--color-white);
    font-weight: 500;
}

.radio-label:hover {
    border-color: var(--color-electric-blue);
    background-color: rgba(15, 76, 255, 0.02);
}

.radio-label input[type="radio"] {
    accent-color: var(--color-electric-blue);
    width: 16px;
    height: 16px;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    font-size: 1.05rem;
    background-color: var(--color-gray-200);
    color: var(--color-gray-500);
    cursor: not-allowed;
    margin-top: 10px;
    border-radius: var(--radius-sm);
}

.btn-submit.active {
    background-color: var(--color-electric-blue);
    color: var(--color-white);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(15, 76, 255, 0.3);
}

.btn-submit.active:hover {
    background-color: var(--color-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(15, 76, 255, 0.35);
}

.form-validation-msg {
    margin-top: 14px;
    font-size: 0.85rem;
    text-align: center;
    color: var(--color-gray-500);
}

.form-validation-msg.success {
    color: var(--color-mint-darker);
    font-weight: 600;
}

.form-validation-msg.error {
    color: #b91c1c;
    font-weight: 600;
}

/* Honeypot */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Consentimiento RGPD */
.consent-group {
    margin: 15px 0 20px;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--color-gray-500);
    cursor: pointer;
    font-weight: 400;
}

.consent-label input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--color-electric-blue);
    cursor: pointer;
}

.consent-label a {
    color: var(--color-electric-blue);
    text-decoration: underline;
}

/* Pantalla de éxito tras el envío */
.form-success {
    text-align: center;
    padding: 50px 20px;
}

.form-success h3 {
    color: var(--color-mint-darker);
    font-size: 2rem;
    margin-bottom: 12px;
}

.form-success-note {
    font-size: 0.875rem;
    color: var(--color-gray-500);
    margin-top: 15px;
}

/* ==========================================================================
   Footer Estructurado y Corporativo
   ========================================================================== */
.main-footer {
    background: var(--color-white);
    color: var(--color-gray-500);
    border-top: 1px solid var(--color-gray-200);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand img {
    height: 42px;
    width: auto;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-gray-500);
    max-width: 300px;
}

.footer-col h5 {
    font-size: 0.95rem;
    color: var(--color-gray-900);
    font-weight: 700;
    margin-bottom: 18px;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-list a {
    color: var(--color-gray-500);
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-links-list a:hover {
    color: var(--color-electric-blue);
}

.footer-bottom-bar {
    border-top: 1px solid var(--color-gray-200);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.825rem;
}

.footer-legal-entity {
    color: var(--color-gray-400);
}

/* ==========================================================================
   Modal y Banner de Puesto Seleccionado
   ========================================================================== */
.job-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.job-modal-overlay.active {
    opacity: 1;
    visibility: visible;
    /* Al abrir, visible al instante (sin esperar a la transicion) para que el
       JS pueda mover el foco dentro del modal. Al cerrar sigue el fundido. */
    transition: opacity 0.3s ease, visibility 0s;
}

.job-modal-content {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 35px;
    position: relative;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--color-gray-200);
}

.job-modal-overlay.active .job-modal-content {
    transform: translateY(0);
    opacity: 1;
}

.job-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--color-gray-400);
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.job-modal-close:hover {
    background-color: var(--color-gray-100);
    color: var(--color-gray-900);
}

.modal-header-info {
    margin-bottom: 20px;
}

.modal-header-info h3 {
    font-size: 1.7rem;
    color: var(--color-gray-900);
    margin-bottom: 6px;
    line-height: 1.3;
}

.modal-header-info .company-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-electric-blue);
    margin-bottom: 4px;
}

.modal-header-info .location-info {
    font-size: 0.9rem;
    color: var(--color-gray-500);
    display: flex;
    align-items: center;
    gap: 6px;
}

.modal-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.modal-divider {
    border: 0;
    height: 1px;
    background: var(--color-gray-200);
    margin: 20px 0;
}

.modal-description-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 10px;
}

.modal-description {
    font-size: 0.95rem;
    color: var(--color-gray-700);
    line-height: 1.6;
}

.modal-requirements-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 14px;
}

.modal-requirements-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
}

.req-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--color-bg-light);
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-gray-200);
}

.req-icon {
    font-size: 1.2rem;
    line-height: 1;
    margin-top: 2px;
}

.req-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.req-label {
    font-size: 0.725rem;
    color: var(--color-gray-500);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.req-value {
    font-size: 0.9rem;
    color: var(--color-gray-800);
    font-weight: 500;
}

.modal-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 25px;
}

.modal-meta-item {
    background: var(--color-bg-light);
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-gray-200);
}

.modal-meta-label {
    font-size: 0.75rem;
    color: var(--color-gray-500);
    text-transform: uppercase;
    font-weight: 600;
}

.modal-meta-val {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-top: 4px;
}

.modal-meta-val.pay {
    color: var(--color-mint-darker);
    font-size: 1.15rem;
}

.btn-modal-apply {
    width: 100%;
    padding: 15px;
    background-color: var(--color-electric-blue);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(15, 76, 255, 0.3);
}

.btn-modal-apply:hover {
    background-color: var(--color-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 76, 255, 0.4);
}

/* Banner de puesto seleccionado */
.selected-job-banner {
    background: linear-gradient(135deg, rgba(15, 76, 255, 0.08) 0%, rgba(15, 76, 255, 0.03) 100%);
    border: 1.5px solid var(--color-electric-blue);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    margin-bottom: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.banner-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.banner-label {
    font-size: 0.775rem;
    color: var(--color-electric-blue);
    font-weight: 600;
    text-transform: uppercase;
}

.banner-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.banner-title {
    font-size: 1.05rem;
    color: var(--color-gray-900);
}

.banner-pay {
    font-weight: 700;
    color: var(--color-mint-darker);
    font-size: 0.95rem;
}

.banner-remove {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--color-gray-400);
    padding: 4px;
    line-height: 1;
}

.banner-remove:hover {
    color: #ef4444;
}

/* File Upload */
.file-upload-wrapper {
    position: relative;
    width: 100%;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    border: 2px dashed var(--color-gray-300);
    border-radius: var(--radius-sm);
    background-color: var(--color-white);
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--color-gray-600);
}

.file-upload-label:hover {
    border-color: var(--color-electric-blue);
    background-color: rgba(15, 76, 255, 0.02);
    color: var(--color-electric-blue);
}

.file-upload-wrapper.has-file .file-upload-label {
    border-color: var(--color-mint-darker);
    background-color: rgba(13, 131, 100, 0.05);
    color: var(--color-mint-darker);
    border-style: solid;
}

/* El input real esta oculto: el foco de teclado se pinta en su label */
.file-upload-wrapper input[type="file"]:focus-visible + .file-upload-label {
    outline: 3px solid var(--color-electric-blue);
    outline-offset: 2px;
}

.file-upload-wrapper.dragging .file-upload-label {
    border-color: var(--color-electric-blue);
    background-color: rgba(15, 76, 255, 0.06);
    color: var(--color-electric-blue);
}

/* Oculto a la vista pero accesible para teclado y lectores de pantalla */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Turnstile */
.turnstile-container {
    display: flex;
    justify-content: center;
    margin: 15px 0;
    min-height: 65px;
}

/* ==========================================================================
   Modal Selector de País / Región (España, Francia, Alemania, Italia, Portugal)
   ========================================================================== */
body.country-modal-open {
    overflow: hidden !important;
    touch-action: none;
}

.country-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.country-modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.country-modal-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    max-width: 520px;
    width: 100%;
    padding: 34px 28px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35);
    border: 1px solid var(--color-gray-200);
    transform: translateY(20px) scale(0.98);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.country-modal-overlay.active .country-modal-card {
    transform: translateY(0) scale(1);
}

.country-modal-header {
    text-align: center;
    margin-bottom: 22px;
}

.country-badge-top {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--color-blue-subtle);
    color: var(--color-electric-blue);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.country-modal-header h3 {
    font-size: 1.55rem;
    color: var(--color-gray-900);
    margin-bottom: 6px;
    font-weight: 800;
    line-height: 1.25;
}

.country-modal-header p {
    font-size: 0.9rem;
    color: var(--color-gray-500);
    line-height: 1.45;
}

.country-options-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.country-option-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    border: 1.5px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--color-white);
    user-select: none;
}

.country-option-card:hover {
    border-color: var(--color-gray-300);
    background-color: var(--color-bg-light);
}

.country-option-card.selected {
    border-color: var(--color-electric-blue);
    background-color: rgba(15, 76, 255, 0.04);
    box-shadow: 0 0 0 2px rgba(15, 76, 255, 0.12);
}

.country-option-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.country-option-flag {
    font-size: 1.7rem;
    line-height: 1;
}

.country-option-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.country-option-name {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--color-gray-900);
}

.country-option-status {
    font-size: 0.75rem;
    font-weight: 600;
}

.country-option-status.active {
    color: var(--color-mint-darker);
}

.country-option-status.inactive {
    color: var(--color-gray-400);
}

.country-option-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.country-custom-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--color-gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.country-option-card.selected .country-custom-radio {
    border-color: var(--color-electric-blue);
    background-color: var(--color-electric-blue);
}

.country-option-card.selected .country-custom-radio::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-white);
}

/* Caja de advertencia de no concordancia de ubicación */
.country-geo-warning {
    display: none;
    align-items: flex-start;
    gap: 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius-sm);
    padding: 13px 15px;
    margin-bottom: 18px;
    color: #991b1b;
    font-size: 0.835rem;
    line-height: 1.45;
}

.country-geo-warning .warning-icon {
    font-size: 1.25rem;
    line-height: 1.1;
    flex-shrink: 0;
}

@keyframes warning-shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.country-geo-warning.warning-shake {
    animation: warning-shake 0.4s ease-in-out;
}

.country-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-country-submit {
    width: 100%;
    padding: 14px 20px;
    font-size: 1.025rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    background-color: var(--color-electric-blue);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(15, 76, 255, 0.3);
    text-align: center;
}

.btn-country-submit:hover {
    background-color: var(--color-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 76, 255, 0.35);
}

.country-modal-footer-note {
    font-size: 0.775rem;
    color: var(--color-gray-400);
    text-align: center;
}

/* ==========================================================================
   Página Legales y Sobre Nosotros
   ========================================================================== */
.legal-section {
    padding: 70px 0;
    background-color: var(--color-bg-light);
}

.legal-container {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.legal-sidebar {
    flex: 0 0 250px;
}

.sticky-sidebar {
    position: sticky;
    top: 100px;
    background: var(--color-white);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-gray-200);
}

.sticky-sidebar h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--color-gray-900);
}

.sticky-sidebar ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sticky-sidebar a {
    color: var(--color-gray-500);
    font-size: 0.9rem;
    font-weight: 500;
}

.sticky-sidebar a:hover {
    color: var(--color-electric-blue);
}

.legal-content {
    flex: 1;
    background: var(--color-white);
    padding: 45px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-gray-200);
}

.legal-block h1 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.legal-block h2 {
    font-size: 1.6rem;
    margin: 30px 0 15px;
}

.legal-block h3 {
    font-size: 1.2rem;
    margin: 20px 0 10px;
}

.legal-block p {
    color: var(--color-gray-700);
    margin-bottom: 16px;
    line-height: 1.7;
}

.legal-block ul {
    margin: 15px 0 20px 20px;
    color: var(--color-gray-700);
    line-height: 1.7;
}

.legal-block blockquote {
    background: var(--color-bg-light);
    border-left: 4px solid var(--color-electric-blue);
    padding: 16px 20px;
    margin: 25px 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ==========================================================================
   Responsive Breakpoints Profesionales (Tablets & Móviles)
   ========================================================================== */

/* Laptops Medianas y Tablets Horizontales (<= 1024px) */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .steps-grid, .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Tablets Verticales y Móviles Grandes (<= 992px) */
@media (max-width: 992px) {
    /* Header sólido sin backdrop-filter para evitar que actúe como containing block del drawer */
    .main-header {
        background-color: var(--color-white);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: var(--shadow-xs);
    }

    .menu-toggle {
        display: flex;
    }
    
    /* Drawer a pantalla completa sólido, accesible y con animación limpia */
    .main-nav {
        position: fixed;
        inset: 0;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: var(--color-white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 20px 24px 32px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        z-index: 99999;
        gap: 0;
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.3s;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .main-nav.active {
        opacity: 1;
        pointer-events: auto;
        visibility: visible;
        transform: translateX(0);
    }
    
    .mobile-nav-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 16px;
        border-bottom: 1px solid var(--color-gray-200);
        margin-bottom: 16px;
        width: 100%;
    }
    
    .mobile-nav-logo {
        height: 38px;
        width: auto;
        object-fit: contain;
    }
    
    .mobile-nav-close {
        background: none;
        border: none;
        font-size: 1.6rem;
        color: var(--color-gray-500);
        cursor: pointer;
        padding: 6px 12px;
        line-height: 1;
        border-radius: var(--radius-xs);
        transition: background-color 0.2s, color 0.2s;
    }
    
    .mobile-nav-close:hover {
        color: var(--color-gray-900);
        background-color: var(--color-gray-100);
    }
    
    .mobile-nav-schedule-badge {
        display: flex;
        align-items: center;
        gap: 8px;
        background: #fffbeb;
        color: #92400e;
        padding: 10px 14px;
        border-radius: var(--radius-sm);
        font-size: 0.85rem;
        font-weight: 600;
        margin-bottom: 20px;
        border: 1px solid #fde68a;
        width: 100%;
        box-sizing: border-box;
    }
    
    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 4px;
        width: 100%;
        margin-bottom: 24px;
    }
    
    .nav-links a {
        display: block;
        font-size: 1.15rem;
        font-weight: 600;
        color: var(--color-gray-800);
        padding: 14px 4px;
        border-bottom: 1px solid var(--color-gray-100);
        text-decoration: none;
        transition: color 0.2s, padding-left 0.2s;
    }
    
    .nav-links a:hover {
        color: var(--color-electric-blue);
        padding-left: 6px;
    }
    
    .nav-cta {
        display: block;
        margin-top: auto;
        padding-top: 20px;
        width: 100%;
    }
    
    .nav-cta .btn-primary {
        display: flex;
        width: 100%;
        justify-content: center;
        padding: 15px;
        font-size: 1.05rem;
    }

    .form-container {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    
    .form-info {
        position: static;
    }
    
    .jobs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .guias-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .legal-container {
        flex-direction: column;
    }
    
    .legal-sidebar {
        flex: 1;
        width: 100%;
    }
    
    .sticky-sidebar {
        position: static;
        top: 0;
    }
}

/* Móviles Estándar (<= 768px) */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.25rem;
        line-height: 1.22;
    }
    
    .hero-content p {
        font-size: 1rem;
    }

    .hero-section {
        padding: 45px 0 55px;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-item {
        padding: 16px 12px;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .jobs-grid {
        grid-template-columns: 1fr;
    }

    .guias-grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid-2 {
        grid-template-columns: 1fr;
    }
    
    .radio-group {
        grid-template-columns: 1fr;
    }
    
    .modern-form {
        padding: 24px 18px;
    }

    /* Prevención del auto-zoom en iOS Safari */
    .input-group input,
    .input-group select,
    .input-group textarea {
        font-size: 16px !important;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom-bar {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .sticky-search-bar {
        top: 68px;
        padding: 12px 0;
    }

    /* Modal adaptado a móvil como Bottom Sheet moderno */
    .job-modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .job-modal-content {
        max-width: 100%;
        width: 100%;
        max-height: 88vh;
        max-height: 88dvh;
        border-radius: 20px 20px 0 0;
        padding: 24px 20px 30px;
        margin: 0;
        transform: translateY(100%);
    }

    .job-modal-overlay.active .job-modal-content {
        transform: translateY(0);
    }

    .modal-meta-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .legal-content {
        padding: 28px 20px;
    }
}

/* Móviles Compactos (<= 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-content h1 {
        font-size: 1.85rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .hero-cta .btn-primary,
    .hero-cta .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .job-card {
        padding: 20px 16px;
    }

    .card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .card-footer .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .filters-group {
        width: 100%;
    }

    .filter-btn {
        flex: 1 1 auto;
        text-align: center;
    }
}
