/* @import MUST be first */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,600;0,9..144,800;1,9..144,300;1,9..144,600&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/* ===== CapitalHumano Portal - Custom Styles ===== */

/* Body */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Vacancy card hover effect */
.vacancy-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vacancy-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.12) !important;
}

/* DataGrid row click pointer */
.dxbs-grid-table tbody tr {
    cursor: pointer;
}

.dxbs-grid-table tbody tr:hover {
    background-color: rgba(25, 135, 84, 0.05) !important;
}

/* Step indicator */
.step-active {
    font-weight: bold;
    color: #080C59;
}

/* Blazor error UI */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* Badge soft colors */
.bg-success-subtle {
    background-color: rgba(25, 135, 84, 0.1) !important;
}

.bg-primary-subtle {
    background-color: rgba(13, 110, 253, 0.1) !important;
}

.bg-info-subtle {
    background-color: rgba(13, 202, 240, 0.1) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .display-5 {
        font-size: 1.75rem;
    }

    .card-body {
        padding: 1rem;
    }
}

/* Form required asterisk */
.dxbl-fl-cpt::after {
    content: '';
}

/* Print-friendly */
@media print {
    .navbar, footer, .btn {
        display: none !important;
    }
}

/* ================================================================
   EL FLORIDO — Design System
   Aesthetic: Warm Editorial / Mercado Fresco
   Fonts: Fraunces (headlines) + DM Sans (body)
   ================================================================ */

:root {
    /* ── Institutional Colors ── */
    --ef-navy:          #080C59;
    --ef-navy-dark:     #05083d;
    --ef-navy-mid:      #0f1580;
    --ef-navy-pale:     #e8e9f8;
    --ef-crimson:       #590202;
    --ef-crimson-mid:   #7a0303;
    --ef-crimson-pale:  #f5e0e0;

    /* ── Aliases used throughout ── */
    --ef-green:         var(--ef-navy);
    --ef-green-dark:    var(--ef-navy-dark);
    --ef-green-mid:     var(--ef-crimson-mid);
    --ef-green-pale:    var(--ef-navy-pale);

    --ef-gold:          #b87408;
    --ef-gold-pale:     #fef4dd;
    --ef-cream:         #f5f4f9;
    --ef-warm-white:    #faf9fd;
    --ef-text:          #18181b;
    --ef-text-mid:      #3f3f46;
    --ef-text-muted:    #71717a;
    --ef-border:        #e4e4e7;
    --ef-card-bg:       #ffffff;
    --ef-radius:        14px;
    --ef-radius-sm:     8px;
    --ef-shadow:        0 2px 12px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
    --ef-shadow-hover:  0 10px 40px rgba(8,12,89,0.13), 0 2px 8px rgba(0,0,0,0.05);
}

/* Font stack override */
body {
    font-family: 'DM Sans', 'Segoe UI', system-ui, sans-serif !important;
    background-color: var(--ef-cream) !important;
    color: var(--ef-text) !important;
}

/* ===== ANIMATIONS ===== */

@keyframes ef-rise {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes ef-pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.45; transform: scale(0.7); }
}

@keyframes ef-slide-left {
    from { opacity: 0; transform: translateX(-18px); }
    to   { opacity: 1; transform: translateX(0); }
}

.ef-anim {
    animation: ef-rise 0.58s cubic-bezier(0.22, 1, 0.36, 1) both;
}


/* ===== NAVBAR ===== */

.ef-navbar {
    background-color: var(--ef-navy-dark) !important;
    border-bottom: 2px solid var(--ef-crimson);
    padding: 0.55rem 0;
}

.ef-navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff !important;
    line-height: 1;
}

.ef-navbar .navbar-brand .brand-logo {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.ef-navbar .navbar-brand .brand-text {
    display: flex;
    flex-direction: column;
}

.ef-navbar .navbar-brand .brand-name {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #ffffff;
    line-height: 1;
}

.ef-navbar .navbar-brand .brand-sub {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.63rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 2px;
}

.ef-navbar .nav-link {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.72) !important;
    padding: 0.45rem 0.8rem !important;
    border-radius: 6px;
    transition: color 0.15s ease, background-color 0.15s ease;
    letter-spacing: 0.01em;
}

.ef-navbar .nav-link:hover,
.ef-navbar .nav-link.active {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.09);
}

.ef-navbar .navbar-toggler {
    border: none;
    padding: 4px 6px;
}

.ef-navbar .navbar-toggler:focus {
    box-shadow: none;
}


/* ===== HERO ===== */

.ef-hero {
    position: relative;
    background-color: var(--ef-navy-dark);
    background-image:
        radial-gradient(ellipse 85% 65% at 5% 110%, rgba(89,2,2,0.45) 0%, transparent 55%),
        radial-gradient(ellipse 50% 50% at 95% -5%, rgba(15,21,128,0.55) 0%, transparent 50%);
    padding: 4.5rem 0 8rem;
    overflow: hidden;
}

/* Dot grid texture */
.ef-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px);
    background-size: 26px 26px;
    pointer-events: none;
    z-index: 0;
}

/* Diagonal bottom cut into cream background */
.ef-hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 72px;
    background: var(--ef-cream);
    clip-path: polygon(100% 0%, 100% 100%, 0% 100%);
    z-index: 1;
}

/* Crimson top accent bar */
.ef-hero-accent-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ef-crimson) 0%, var(--ef-crimson-mid) 50%, transparent 100%);
    z-index: 3;
}

/* Giant decorative letterform in background */
.ef-hero-deco {
    position: absolute;
    right: -1%;
    top: 50%;
    transform: translateY(-52%);
    font-family: 'Fraunces', Georgia, serif;
    font-size: min(30vw, 380px);
    font-weight: 800;
    font-style: italic;
    line-height: 0.85;
    color: rgba(255, 255, 255, 0.038);
    user-select: none;
    pointer-events: none;
    letter-spacing: -0.04em;
    z-index: 0;
}

.ef-hero-content {
    position: relative;
    z-index: 2;
}

/* Live status eyebrow chip */
.ef-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.88);
    padding: 5px 13px 5px 8px;
    border-radius: 100px;
    font-size: 0.77rem;
    font-weight: 500;
    letter-spacing: 0.045em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.ef-eyebrow .live-dot {
    width: 7px;
    height: 7px;
    background: #4ade80;
    border-radius: 50%;
    flex-shrink: 0;
    animation: ef-pulse-dot 2.2s ease-in-out infinite;
}

/* Hero headline */
.ef-hero-headline {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(2.6rem, 5.5vw, 4.4rem);
    font-weight: 800;
    line-height: 1.03;
    letter-spacing: -0.025em;
    color: #ffffff;
    margin-bottom: 1.1rem;
}

.ef-hero-headline .italic-accent {
    font-weight: 300;
    font-style: italic;
    color: rgba(255, 255, 255, 0.6);
}

/* Hero supporting text */
.ef-hero-sub {
    font-size: 1.02rem;
    line-height: 1.68;
    color: rgba(255, 255, 255, 0.62);
    max-width: 430px;
    margin-bottom: 2.25rem;
    font-weight: 400;
}

/* Floating search card */
.ef-search-card {
    background: var(--ef-card-bg);
    border-radius: var(--ef-radius);
    padding: 1.3rem 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
    position: relative;
    z-index: 3;
}

.ef-search-label {
    font-size: 0.71rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ef-text-muted);
    margin-bottom: 0.35rem;
    display: block;
}

/* Hero stat pills */
.ef-stats-row {
    display: flex;
    gap: 1rem;
    margin-top: 1.75rem;
    flex-wrap: wrap;
}

.ef-stat-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 9px;
    padding: 7px 13px;
}

.ef-stat-pill .snum {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 700;
    display: block;
    line-height: 1.1;
    color: #ffffff;
}

.ef-stat-pill .slabel {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.52);
    display: block;
}


/* ===== SECTION HEADINGS ===== */

.ef-section-eyebrow {
    font-size: 0.71rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ef-crimson);
    margin-bottom: 0.3rem;
    display: block;
}

.ef-section-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ef-text);
    line-height: 1.12;
    margin-bottom: 0;
}


/* ===== HOW IT WORKS SECTION ===== */

.ef-how-section {
    background: var(--ef-warm-white);
    border-top: 1px solid var(--ef-border);
    border-bottom: 1px solid var(--ef-border);
}

.ef-how-item {
    padding: 2.5rem 1.75rem;
    text-align: center;
    position: relative;
}

.ef-how-item + .ef-how-item {
    border-left: 1px solid var(--ef-border);
}

.ef-how-icon-wrap {
    width: 54px;
    height: 54px;
    background: var(--ef-navy-pale);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.35rem;
    color: var(--ef-navy);
    transition: background-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.ef-how-item:hover .ef-how-icon-wrap {
    background-color: var(--ef-navy);
    color: #ffffff;
    transform: scale(1.06);
}

.ef-how-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ef-text);
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
}

.ef-how-text {
    font-size: 0.865rem;
    color: var(--ef-text-muted);
    line-height: 1.6;
    max-width: 220px;
    margin: 0 auto;
}


/* ===== VACANTES SECTION ===== */

.ef-vacantes-section {
    padding: 4.5rem 0 5.5rem;
    background: var(--ef-cream);
}


/* ===== VACANCY CARD ===== */

.ef-vacancy-card {
    background: var(--ef-card-bg);
    border-radius: var(--ef-radius);
    border: 1px solid var(--ef-border);
    overflow: hidden;
    transition:
        transform 0.26s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.26s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.26s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Left accent bar — crimson */
.ef-vacancy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--ef-crimson-mid) 0%, var(--ef-crimson) 100%);
    transition: width 0.22s ease;
    z-index: 1;
}

.ef-vacancy-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--ef-shadow-hover);
    border-color: rgba(11, 92, 53, 0.15);
}

.ef-vacancy-card:hover::before {
    width: 4px;
}

.ef-vacancy-body {
    padding: 1.3rem 1.3rem 1.3rem 1.6rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ef-vacancy-badge {
    display: inline-block;
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ef-crimson);
    background: var(--ef-crimson-pale);
    padding: 3px 9px;
    border-radius: 4px;
    margin-bottom: 0.65rem;
}

.ef-vacancy-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ef-text);
    line-height: 1.28;
    margin-bottom: 0.3rem;
}

.ef-vacancy-dept {
    font-size: 0.82rem;
    color: var(--ef-text-muted);
    margin-bottom: 0;
    flex: 1;
    padding-bottom: 0.9rem;
}

.ef-vacancy-footer {
    padding-top: 0.9rem;
    border-top: 1px solid var(--ef-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ef-vacancy-location {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--ef-text-mid);
    line-height: 1.5;
}

.ef-vacancy-date {
    font-size: 0.74rem;
    color: var(--ef-text-muted);
}

.ef-vacancy-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ef-navy) !important;
    text-decoration: none !important;
    transition: gap 0.18s ease, color 0.15s ease;
    white-space: nowrap;
}

.ef-vacancy-link:hover {
    gap: 8px;
    color: var(--ef-crimson) !important;
}


/* ===== EMPTY STATE ===== */

.ef-empty {
    text-align: center;
    padding: 4.5rem 2rem;
}

.ef-empty-icon {
    font-size: 2.75rem;
    color: var(--ef-border);
    display: block;
    margin-bottom: 1rem;
}

.ef-empty p {
    color: var(--ef-text-muted);
    font-size: 0.9rem;
}


/* ===== VIEW ALL BUTTON ===== */

.ef-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1.5px solid var(--ef-navy);
    color: var(--ef-navy) !important;
    background: transparent;
    padding: 0.55rem 1.3rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none !important;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        gap 0.18s ease;
}

.ef-btn-ghost:hover {
    background-color: var(--ef-navy);
    color: #ffffff !important;
    gap: 10px;
}


/* ===== FOOTER ===== */

.ef-footer {
    background-color: var(--ef-navy-dark) !important;
    border-top: 3px solid var(--ef-crimson);
}

.ef-footer-brand {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
}

.ef-footer-desc {
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.65;
    max-width: 280px;
}

.ef-footer-label {
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.38);
    margin-bottom: 0.75rem;
    display: block;
}

.ef-footer-link {
    color: rgba(255, 255, 255, 0.58) !important;
    text-decoration: none !important;
    font-size: 0.875rem;
    transition: color 0.15s ease;
    display: block;
    margin-bottom: 0.45rem;
}

.ef-footer-link:hover {
    color: #ffffff !important;
}

.ef-footer-contact {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.52);
    line-height: 1.9;
}

.ef-footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.775rem;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
}


/* ===== RESPONSIVE ===== */

@media (max-width: 767.98px) {
    .ef-hero {
        padding: 3rem 0 6.5rem;
    }

    .ef-hero-deco {
        font-size: 50vw;
        opacity: 0.5;
    }

    .ef-how-item + .ef-how-item {
        border-left: none;
        border-top: 1px solid var(--ef-border);
    }

    .ef-stats-row {
        gap: 0.65rem;
    }
}

@media (max-width: 575.98px) {
    .ef-search-card {
        padding: 1rem;
    }

    .ef-vacancy-body {
        padding: 1.1rem 1.1rem 1.1rem 1.4rem;
    }
}
