/* ═══════════════════════════════════════════════════════════════
   EmpleosNicas – Premium Design System
   Colors derived from the EmpleosNicas logo:
   • Primary Blue:  #0D4A8D  (Nicaragua map silhouette)
   • Sky Blue:      #1B9AD4  (Magnifying glass / .com text)
   • Accent Orange: #F29100  (Decorative swoosh / light bulb)
   ═══════════════════════════════════════════════════════════════ */

:root {
    --en-primary: #1565A8;
    --en-primary-rgb: 21, 101, 168;
    --en-primary-light: #2196C8;
    --en-accent: #D9890B;
    --en-accent-hover: #C47B08;
    --en-accent-light: #E8A340;
    --en-dark: #0E2240;
    --en-dark-2: #132D50;
    --en-surface: #F2F5F9;
    --en-surface-alt: #E8ECF2;
    --en-card: #FFFFFF;
    --en-text: #1C2A3A;
    --en-text-muted: #5E7188;
    --en-border: rgba(21, 101, 168, 0.08);
    --en-radius: 16px;
    --en-radius-lg: 28px;
    --en-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --en-shadow-sm: 0 2px 12px rgba(14, 34, 64, 0.06);
    --en-shadow-md: 0 8px 32px rgba(14, 34, 64, 0.08);
    --en-shadow-lg: 0 20px 60px rgba(14, 34, 64, 0.1);
    --en-shadow-glow: 0 8px 32px rgba(217, 137, 11, 0.18);
}

html { scroll-behavior: smooth; }

::selection {
    background: rgba(27, 154, 212, 0.2);
    color: var(--en-text);
}

:focus-visible {
    outline: 2px solid var(--en-primary-light);
    outline-offset: 2px;
}

/* ─── Base ──────────────────────────────────────────────────── */
body {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    background: var(--en-surface);
    color: var(--en-text);
    min-height: 100vh;
    padding-top: 0;
    transition: padding var(--en-transition);
    overflow-x: hidden;
}

body.navbar-active {
    padding-top: 78px;
}

/* ─── Navbar ────────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    background: rgba(14, 34, 64, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(33, 150, 200, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-140%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.navbar.navbar-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.75) !important;
    font-weight: 500;
    transition: color var(--en-transition);
}

.navbar .nav-link:hover {
    color: #fff !important;
}

.navbar .btn-outline-secondary {
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

.navbar .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.navbar .btn-outline-success {
    border-color: rgba(74, 222, 128, 0.35);
    color: rgba(74, 222, 128, 0.9);
}

.navbar .btn-outline-danger {
    border-color: rgba(248, 113, 113, 0.35);
    color: rgba(248, 113, 113, 0.9);
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.2);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991px) {
    .navbar .dropdown-menu,
    .navbar .navbar-nav {
        background: var(--en-dark-2);
        border-radius: var(--en-radius);
        padding: 1rem;
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
    }
}

/* ─── Brand Mark ────────────────────────────────────────────── */
.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 0;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: transform var(--en-transition);
    flex-shrink: 0;
}

.brand-mark:hover {
    transform: scale(1.05);
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-logo .brand-mark {
    width: 56px;
    height: 56px;
    border-radius: 0;
    padding: 0;
    background: none;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.navbar-brand span {
    color: #fff;
    font-weight: 700;
}

/* ─── Nav Pills & Glow Button ───────────────────────────────── */
.nav-pill {
    border-radius: 999px !important;
    padding-inline: 1.25rem !important;
}

.nav-glow {
    background: var(--en-accent) !important;
    border-color: var(--en-accent) !important;
    color: #fff !important;
    box-shadow: 0 4px 20px rgba(242, 145, 0, 0.35);
    font-weight: 600;
    transition: all var(--en-transition);
}

.nav-glow:hover {
    background: var(--en-accent-hover) !important;
    border-color: var(--en-accent-hover) !important;
    color: #fff !important;
    box-shadow: 0 6px 25px rgba(242, 145, 0, 0.45);
    transform: translateY(-1px);
}

/* ─── Hero Section ──────────────────────────────────────────── */
.hero-section {
    background-image: 
        linear-gradient(105deg, rgba(14, 34, 64, 0.95) 0%, rgba(21, 101, 168, 0.8) 45%, rgba(14, 34, 64, 0.2) 100%), 
        url('../img/hero.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: #fff;
    position: relative;
    overflow: hidden;
    padding: 3rem 0 6.5rem;
    min-height: 550px;
}

.hero-section::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, var(--en-surface) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-section::after {
    display: none;
}

@keyframes heroDotDrift {
    0% { background-position: 0 0; }
    100% { background-position: 32px 32px; }
}

@keyframes heroGlow {
    0% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    100% { transform: translate(-40px, 30px) scale(1.15); opacity: 1; }
}

.hero-container {
    position: relative;
    z-index: 2;
    padding-top: 1.5rem;
}

.hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
}

.hero-top .btn {
    border-radius: 999px;
}

.hero-content {
    margin-top: 0;
}

.hero-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-logo strong {
    font-size: 1.35rem;
    color: #fff;
}

/* Hero Badge */
.hero-badge-vacantes {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    background: rgba(242, 145, 0, 0.12);
    border: 1px solid rgba(242, 145, 0, 0.25);
    color: var(--en-accent);
    font-weight: 700;
    font-size: 0.9rem;
    animation: badgePulse 2.5s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(242, 145, 0, 0.15); }
    50% { box-shadow: 0 0 0 10px rgba(242, 145, 0, 0); }
}

/* Hero Heading */
.hero-heading {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.hero-heading .gradient-text {
    background: linear-gradient(135deg, var(--en-primary-light), var(--en-accent), var(--en-primary-light));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.65);
    max-width: 540px;
    line-height: 1.65;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2.5rem;
}

.hero-stat-item {
    text-align: center;
}

.hero-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--en-accent);
    display: block;
}

.hero-stat-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

/* Hero Floating Card */
.hero-card-float {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--en-radius-lg);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
    padding: 1.85rem;
    color: #fff;
    position: relative;
    z-index: 2;
    transform: translateY(-8px);
}

.hero-card-float .search-chip {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
}

.hero-card-float .search-chip:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

@media (max-width: 576px) {
    .hero-section {
        padding: 2rem 0 5rem;
        min-height: auto;
    }

    .hero-container {
        padding-top: 0.5rem;
    }

    .hero-top {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1.25rem;
    }

    .hero-content {
        margin-top: 0;
    }

    .hero-stats {
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .hero-stat-number {
        font-size: 1.5rem;
    }

    .hero-logo .brand-mark {
        width: 48px;
        height: 48px;
    }
}

/* ─── Search Bar ────────────────────────────────────────────── */
#desktopSearchWrapper {
    position: relative;
    z-index: 30;
    margin-top: -3rem;
}

@media (min-width: 992px) {
    #desktopSearchWrapper .search-box {
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 999px;
        padding: 0.6rem 0.6rem 0.6rem 1.5rem;
        box-shadow: 0 20px 60px rgba(10, 22, 40, 0.15), 0 0 0 1px rgba(13, 74, 141, 0.06);
    }

    #desktopSearchWrapper {
        max-width: 1080px;
    }
}

.search-box {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    width: 100%;
}

.search-box input,
.search-box select {
    border: none;
    box-shadow: none !important;
    background: transparent;
    font-weight: 500;
}

.search-box select.form-select {
    min-width: 170px;
    padding-left: 0;
    font-weight: 500;
    color: var(--en-text);
    background-image: linear-gradient(45deg, transparent 50%, var(--en-primary) 50%),
        linear-gradient(135deg, var(--en-primary) 50%, transparent 50%);
    background-position: calc(100% - 16px) calc(50% - 2px), calc(100% - 11px) calc(50% - 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.search-box select.form-select:focus {
    border: none;
    box-shadow: none;
    color: var(--en-primary);
}

.search-box .btn-primary {
    background: var(--en-accent) !important;
    border-color: var(--en-accent) !important;
    box-shadow: 0 4px 16px rgba(242, 145, 0, 0.3);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    transition: all var(--en-transition);
}

.search-box .btn-primary:hover {
    background: var(--en-accent-hover) !important;
    border-color: var(--en-accent-hover) !important;
    box-shadow: 0 6px 24px rgba(242, 145, 0, 0.4);
    transform: translateY(-1px);
}

.search-box .btn-outline-light {
    border-color: rgba(13, 74, 141, 0.15);
    color: var(--en-primary);
}

.search-box .btn-outline-light:hover {
    background: rgba(13, 74, 141, 0.05);
    border-color: rgba(13, 74, 141, 0.25);
}

@media (max-width: 991px) {
    #desktopSearchWrapper {
        margin-top: 1.5rem;
        padding: 0;
        background: transparent;
    }

    #desktopSearchWrapper .search-box {
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
    }

    .search-box input,
    .search-box select {
        background: rgba(255, 255, 255, 0.92);
        border-radius: 999px;
        border: 1px solid rgba(13, 74, 141, 0.12);
        padding: 0.6rem 1.1rem;
        text-align: center;
    }

    .search-box select {
        text-align-last: center;
    }

    .search-box input::placeholder {
        text-align: center;
    }
}

.search-chip {
    border-radius: 999px;
    border: 1px solid rgba(13, 74, 141, 0.12);
    background: rgba(13, 74, 141, 0.05);
    color: var(--en-primary);
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--en-transition);
    font-weight: 500;
}

.search-chip:hover {
    background: rgba(13, 74, 141, 0.1);
    border-color: rgba(13, 74, 141, 0.25);
    transform: translateY(-1px);
}

.recent-searches-empty {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* ─── State Select ──────────────────────────────────────────── */
#stateSelectColumn select:disabled {
    background-color: #f8fafc;
    opacity: 0.75;
    cursor: not-allowed;
}

#stateSelectColumn {
    flex: 0 0 210px;
    max-width: 210px;
}

@media (max-width: 767px) {
    #stateSelectColumn {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* ─── Region Pill ───────────────────────────────────────────── */
.job-region-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.15rem 0.8rem;
    border-radius: 999px;
    background: rgba(27, 154, 212, 0.1);
    color: var(--en-primary-light);
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.job-region-pill i {
    font-size: 0.9rem;
}

/* ─── Job Board ─────────────────────────────────────────────── */
.job-board {
    margin-top: 3rem;
}

.job-board-empty {
    border-radius: var(--en-radius);
    border: 1px dashed rgba(13, 74, 141, 0.15);
    background: #f8fafc;
}

.job-list-scroll {
    max-height: 640px;
    overflow-y: auto;
    padding-right: 0.5rem;
    margin-right: -0.5rem;
}

#jobDetailColumn {
    transition: opacity 0.2s ease;
}

.job-list-scroll::-webkit-scrollbar {
    width: 5px;
}

.job-list-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.job-list-scroll::-webkit-scrollbar-thumb {
    background: rgba(13, 74, 141, 0.15);
    border-radius: 999px;
}

/* ─── Job Cards ─────────────────────────────────────────────── */
.job-card {
    border: 1px solid var(--en-border);
    border-radius: var(--en-radius);
    padding: 1.15rem;
    background: var(--en-card);
    transition: all var(--en-transition);
    cursor: pointer;
    position: relative;
    border-left: 3px solid transparent;
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}

.job-card:nth-child(1) { animation-delay: 0.05s; }
.job-card:nth-child(2) { animation-delay: 0.1s; }
.job-card:nth-child(3) { animation-delay: 0.15s; }
.job-card:nth-child(4) { animation-delay: 0.2s; }
.job-card:nth-child(5) { animation-delay: 0.25s; }
.job-card:nth-child(6) { animation-delay: 0.3s; }
.job-card:nth-child(7) { animation-delay: 0.35s; }
.job-card:nth-child(8) { animation-delay: 0.4s; }

.job-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity var(--en-transition);
    box-shadow: 0 12px 40px rgba(13, 74, 141, 0.1);
    pointer-events: none;
}

.job-card:hover::after,
.job-card.active::after {
    opacity: 1;
}

.job-card.active,
.job-card:hover {
    border-left-color: var(--en-accent);
    transform: translateX(4px);
}

.job-card.active {
    background: linear-gradient(135deg, rgba(13, 74, 141, 0.02), rgba(27, 154, 212, 0.02));
}

/* ─── Job Detail Card ───────────────────────────────────────── */
.job-detail-card {
    border-radius: var(--en-radius-lg);
    background: var(--en-card);
    box-shadow: var(--en-shadow-lg);
    border: 1px solid var(--en-border);
    position: relative;
    overflow: hidden;
}

.job-detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--en-primary), var(--en-primary-light), var(--en-accent));
}

.job-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    background: rgba(13, 74, 141, 0.08);
    color: var(--en-primary);
}

.job-badge-muted {
    background: rgba(90, 107, 128, 0.08);
    color: var(--en-text-muted);
}

.employer-logo {
    width: 64px;
    height: 64px;
    border-radius: var(--en-radius);
    background: linear-gradient(135deg, rgba(13, 74, 141, 0.05), rgba(27, 154, 212, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--en-border);
}

.employer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.employer-logo span {
    font-weight: 700;
    color: var(--en-primary);
    font-size: 1.1rem;
}

.tag {
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    background: rgba(27, 154, 212, 0.08);
    color: var(--en-primary);
    font-size: 0.8rem;
    font-weight: 500;
}

.job-meta-block {
    border-radius: var(--en-radius);
    background: var(--en-surface);
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    border: 1px solid var(--en-border);
    transition: all var(--en-transition);
}

.job-meta-block:hover {
    border-color: rgba(13, 74, 141, 0.15);
    transform: translateY(-2px);
    box-shadow: var(--en-shadow-sm);
}

.job-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--en-text-muted);
    font-size: 0.9rem;
}

.job-meta-item i {
    color: var(--en-primary-light);
}

.apply-pill {
    min-width: 180px;
    border-radius: 999px;
    background: var(--en-accent) !important;
    border-color: var(--en-accent) !important;
    box-shadow: var(--en-shadow-glow);
    font-weight: 600;
    transition: all var(--en-transition);
}

.apply-pill:hover {
    background: var(--en-accent-hover) !important;
    border-color: var(--en-accent-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(242, 145, 0, 0.3);
}

.apply-pill .bi {
    font-size: 1.25rem;
}

@media (max-width: 991px) {
    #jobDetailColumn {
        display: none;
    }

    .job-card {
        border-radius: 14px;
    }

    .job-card.active,
    .job-card:hover {
        transform: none;
    }

    .apply-pill {
        width: 100%;
    }

    .job-board {
        margin-top: 1.5rem;
    }

    .job-list-scroll {
        max-height: none;
        overflow: visible;
        padding-right: 0;
        margin-right: 0;
    }
}

/* ─── Application Modal ─────────────────────────────────────── */
.modal-apply .modal-dialog {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 1rem;
}

.modal-apply .modal-content {
    border: none;
    border-radius: var(--en-radius-lg);
    box-shadow: 0 40px 80px rgba(10, 22, 40, 0.25);
    padding: 0.75rem 1.25rem 1.5rem;
    position: relative;
    overflow-x: hidden;
    touch-action: pan-y;
}

.modal-apply .modal-header {
    border: none;
    padding-bottom: 0;
}

.modal-apply .modal-body {
    padding-top: 0;
}

.modal-apply .job-sheet-handle {
    width: 64px;
    height: 5px;
    border-radius: 999px;
    background: rgba(13, 74, 141, 0.12);
    margin: 0 auto 0.75rem;
}

.apply-back-btn {
    display: none;
    font-weight: 600;
}

@media (max-width: 991px) {
    .apply-back-btn {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        padding: 0;
    }
}

.apply-sheet-body {
    padding-top: 0;
    max-height: calc(100vh - 260px);
    overflow-y: auto;
    padding-right: 0.25rem;
    overflow-x: hidden;
    touch-action: pan-y;
}

@media (max-width: 575px) {
    .modal-apply .modal-dialog {
        margin: 0;
        min-height: 100vh;
        display: flex;
        align-items: flex-end;
        padding: 0.5rem;
    }

    .modal-apply .modal-content {
        width: 100%;
        border-radius: var(--en-radius-lg) var(--en-radius-lg) 0 0;
        max-height: calc(100vh - 1rem);
        padding: 1rem 1.25rem 1.5rem;
    }

    .apply-sheet-body {
        max-height: calc(100vh - 240px);
    }
}

.required-badge {
    color: var(--en-accent);
    font-weight: 600;
    margin-left: 0.15rem;
}

.cv-hint {
    font-size: 0.85rem;
    color: var(--en-text-muted);
}

.phone-meta {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    color: var(--en-text-muted);
}

.phone-meta .phone-flag {
    font-size: 1.1rem;
}

/* ─── Job Sheet Modal ───────────────────────────────────────── */
.job-sheet-modal .modal-dialog {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    padding: 1rem;
}

.job-sheet-modal .modal-content {
    border-radius: var(--en-radius-lg);
    border: none;
    padding: 1.25rem 1.25rem 1.5rem;
    box-shadow: 0 40px 80px rgba(10, 22, 40, 0.3);
    position: relative;
}

.job-sheet-header {
    text-align: center;
    margin-bottom: 1rem;
}

.job-sheet-handle {
    width: 64px;
    height: 5px;
    border-radius: 999px;
    background: rgba(13, 74, 141, 0.12);
    margin: 0 auto 0.75rem;
}

.job-sheet-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
}

.job-sheet-highlight {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.job-sheet-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.job-sheet-company {
    font-weight: 500;
    margin-bottom: 0;
}

.job-sheet-location {
    font-size: 0.9rem;
    color: var(--en-text-muted);
}

.job-sheet-logo {
    width: 58px;
    height: 58px;
    border-radius: var(--en-radius);
    background: var(--en-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--en-border);
}

.job-sheet-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.job-sheet-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.9rem;
    margin: 1rem 0 1.25rem;
}

.job-sheet-meta-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem;
    border-radius: var(--en-radius);
    background: var(--en-surface);
    font-weight: 500;
    color: var(--en-text);
    border: 1px solid var(--en-border);
}

.job-sheet-meta-item small {
    display: block;
    font-weight: 400;
    color: var(--en-text-muted);
    font-size: 0.75rem;
}

.job-sheet-body {
    max-height: calc(100vh - 250px);
    overflow-y: auto;
    padding: 0 0.25rem 1.5rem;
}

.job-sheet-actions {
    padding: 0.75rem 1.25rem;
    display: flex;
    gap: 0.75rem;
}

.job-sheet-actions .btn-primary {
    border-radius: 999px;
    background: var(--en-accent) !important;
    border-color: var(--en-accent) !important;
    font-weight: 600;
    box-shadow: var(--en-shadow-glow);
}

@media (max-width: 575px) {
    .job-sheet-modal .modal-dialog {
        margin: 0;
        min-height: 100vh;
        display: flex;
        align-items: flex-end;
        padding: 0.5rem;
    }

    .job-sheet-modal .modal-content {
        border-radius: var(--en-radius-lg) var(--en-radius-lg) 0 0;
        width: 100%;
        max-height: calc(100vh - 1rem);
        margin: 0 auto;
    }

    .job-sheet-body {
        max-height: calc(100vh - 260px);
        padding-bottom: 1.25rem;
    }

    .job-sheet-close {
        top: 0.65rem;
        right: 0.65rem;
    }
}

/* ─── Featured Companies ────────────────────────────────────── */
.featured-companies .featured-company-card {
    border-radius: var(--en-radius);
    border: 1px solid var(--en-border);
    padding: 0.85rem;
    height: 96px;
    background: var(--en-card);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--en-transition);
    position: relative;
    overflow: hidden;
}

.featured-companies .featured-company-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 74, 141, 0.03), rgba(242, 145, 0, 0.03));
    opacity: 0;
    transition: opacity var(--en-transition);
}

.featured-companies .featured-company-card:hover::before {
    opacity: 1;
}

.featured-companies .featured-company-card img {
    max-height: 48px;
    width: auto;
    filter: grayscale(1);
    opacity: 0.6;
    transition: all var(--en-transition);
}

.featured-companies .featured-company-card:hover img {
    filter: grayscale(0);
    opacity: 1;
}

.featured-companies .featured-company-card span {
    font-weight: 700;
    color: var(--en-primary);
    font-size: 1.25rem;
}

.featured-companies .featured-company-card:hover {
    border-color: rgba(13, 74, 141, 0.2);
    box-shadow: var(--en-shadow-md);
    transform: translateY(-4px);
}

/* ─── Footer ────────────────────────────────────────────────── */
footer {
    background: var(--en-dark);
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--en-primary), var(--en-primary-light), var(--en-accent), var(--en-primary-light), var(--en-primary));
    background-size: 200% 100%;
    animation: footerGradient 6s linear infinite;
}

@keyframes footerGradient {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

footer .brand-mark-inverse {
    background: none;
    border: none;
    width: 68px;
    height: 68px;
}

footer .footer-note {
    color: rgba(255, 255, 255, 0.5);
}

.link-aircan {
    color: var(--en-accent);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(242, 145, 0, 0.3);
    padding-bottom: 2px;
    transition: all var(--en-transition);
}

.link-aircan:hover {
    color: var(--en-accent-light);
    border-color: rgba(242, 145, 0, 0.6);
}

/* ─── Animations ────────────────────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

/* ─── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(13, 74, 141, 0.12);
    border-radius: 999px;
}

/* ─── Bootstrap Overrides ───────────────────────────────────── */
.btn-primary {
    background-color: var(--en-primary) !important;
    border-color: var(--en-primary) !important;
}

.btn-primary:hover {
    background-color: #0B3F78 !important;
    border-color: #0B3F78 !important;
}

.text-primary {
    color: var(--en-primary) !important;
}

.bg-warning {
    background-color: var(--en-accent) !important;
}

.text-warning {
    color: var(--en-accent) !important;
}

.modal .form-control:focus,
.modal .form-select:focus {
    border-color: var(--en-primary-light);
    box-shadow: 0 0 0 0.2rem rgba(27, 154, 212, 0.15);
}

/* ─── Section Dividers ──────────────────────────────────────── */
#empresas {
    position: relative;
}

#empresas::before {
    content: '';
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--en-primary-light), var(--en-accent));
}

/* ─── Auth & Login Redesign (Editorial Light) ──────────────── */
.en-auth-screen {
    background-image: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(243, 244, 246, 0.88) 100%), 
        url('../img/hero.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--en-text-main);
}

.en-auth-container {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 10;
}

.light-panel {
    background: #ffffff;
    border-radius: 2rem;
    box-shadow: 
        0 10px 15px -3px rgba(0, 0, 0, 0.04), 
        0 4px 6px -2px rgba(0, 0, 0, 0.02),
        0 40px 60px -20px rgba(15, 22, 36, 0.08);
    border: 1px solid rgba(15, 22, 36, 0.05);
}

.en-auth-card {
    padding: 3.5rem 2.75rem;
    position: relative;
}

.en-auth-logo {
    width: 80px;
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.05));
    transition: transform 0.3s ease;
}

.en-auth-logo:hover {
    transform: scale(1.05);
}

.en-input-group-light {
    position: relative;
    display: flex;
    align-items: center;
}

.en-input-icon-light {
    position: absolute;
    left: 1.1rem;
    color: #94A3B8;
    font-size: 1.1rem;
}

.en-input-light {
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    padding: 0.85rem 1rem 0.85rem 3rem !important;
    border-radius: 0.85rem !important;
    color: var(--en-text-main) !important;
    font-size: 0.95rem !important;
    transition: all 0.25s ease !important;
}

.en-input-light::placeholder {
    color: #94A3B8;
}

.en-input-light:focus {
    background: #ffffff !important;
    border-color: var(--en-primary-light) !important;
    box-shadow: 0 0 0 4px rgba(33, 150, 200, 0.08) !important;
    color: var(--en-primary-dark) !important;
}

.en-password-toggle-light {
    position: absolute;
    right: 1.1rem;
    background: none;
    border: none;
    color: #94A3B8;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s;
    font-size: 1.1rem;
}

.en-password-toggle-light:hover {
    color: var(--en-primary);
}

.btn-en-accent-solid {
    background: var(--en-accent);
    border: none;
    border-radius: 0.85rem;
    color: #fff;
    padding: 0.85rem !important;
    font-size: 1rem;
    letter-spacing: 0.01em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(217, 137, 11, 0.2);
}

.btn-en-accent-solid:hover {
    background: #B87208;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(217, 137, 11, 0.3);
    color: #fff;
}

.hover-primary:hover {
    color: var(--en-primary) !important;
}

.en-alert-light {
    background: #FEF2F2;
    border: 1px solid #FEE2E2;
    color: #991B1B;
    border-radius: 0.85rem;
    font-size: 0.9rem;
}

@media (max-width: 576px) {
    .en-auth-screen {
        padding: 1.5rem;
    }
    .en-auth-card {
        padding: 2.5rem 1.5rem;
    }
    .en-auth-logo {
        width: 70px;
    }
}


