@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette - MAYAR Creative & Digital Style */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-blue-light: #eff6ff;
    
    --accent: #6366f1; /* MAYAR Violet/Indigo */
    --accent-hover: #4f46e5;
    --accent-gradient: linear-gradient(135deg, #6366f1, #06b6d4);
    --accent-bg-hover: rgba(99, 102, 241, 0.06);
    --accent-glow: rgba(99, 102, 241, 0.15);
    
    --text-primary: #0f172a; /* Slate 900 for high readability */
    --text-secondary: #475569; /* Slate 600 */
    --text-muted: #64748b; /* Slate 500 */
    
    --border-color: #e2e8f0; /* Soft modern border */
    --border-color-hover: #cbd5e1;
    
    --success: #10b981; /* Emerald 500 */
    --success-bg: #ecfdf5;
    --success-border: #a7f3d0;
    
    --warning: #f59e0b; /* Amber 500 */
    --warning-bg: #fffbeb;
    --warning-border: #fde68a;
    
    --danger: #ef4444; /* Red 500 */
    --danger-bg: #fef2f2;
    --danger-border: #fca5a5;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Sleek card shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.02);
    --shadow-card: 0 10px 40px -10px rgba(15, 23, 42, 0.05);
    
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f8fafc;
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6, .logo {
    font-family: 'Space Grotesk', -apple-system, sans-serif;
    font-weight: 700;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-hover);
    text-decoration: none;
}

/* Scrollbar customization */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #bdc1c6;
    border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
    background: #9aa0a6;
}

/* Container */
.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========================================
   SITE HEADER — Glassmorphism Sticky Nav
   ======================================== */
/* ========================================
   HEADER PREMIUM — Topbar + Mainbar
   ======================================== */

/* ---- Top announcement bar ---- */
.header-topbar {
    background: linear-gradient(90deg, #4f46e5 0%, #0891b2 100%);
    color: rgba(255,255,255,0.85);
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.scrolled .header-topbar { display: none; }

.header-topbar-inner {
    max-width: 100%;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.header-topbar-inner > span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    opacity: 0.8;
}

.header-topbar-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-topbar-links a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.2s;
}

.header-topbar-links a:hover { color: #fff; }
.header-topbar-sep { opacity: 0.35; }

/* ---- Main navbar ---- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    transition: box-shadow 0.3s ease;
}

.header-main {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.65);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled .header-main {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 4px 28px rgba(15, 23, 42, 0.07);
    border-color: var(--border-color);
}

.header-inner {
    max-width: 100%;
    padding: 0 2rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.header-spacer { height: 100px; }

/* ---- Logo ---- */
.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    flex-shrink: 0;
    transform-style: preserve-3d;
    will-change: transform;
}

.site-logo-img {
    height: 38px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.site-logo:hover .site-logo-img {
    transform: scale(1.03) translateY(-1px);
}

.premium-portfolio-icon {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.site-logo:hover .premium-portfolio-icon {
    transform: scale(1.15) translateZ(10px) rotate(4deg);
}

.logo-bg-rect {
    transition: filter 0.4s ease, rx 0.4s ease, fill 0.4s ease;
}

.site-logo:hover .logo-bg-rect {
    filter: drop-shadow(0 6px 12px rgba(99, 102, 241, 0.45));
    rx: 11px;
}

.portfolio-handle {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.site-logo:hover .portfolio-handle {
    transform: translateY(-2px);
}

.portfolio-body {
    transition: transform 0.4s ease, fill 0.4s ease;
}

.portfolio-flap {
    transition: fill 0.4s ease, opacity 0.4s ease;
}

.site-logo:hover .portfolio-flap {
    fill: rgba(6, 182, 212, 0.25);
}

.portfolio-lock {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), fill 0.4s ease;
}

.site-logo:hover .portfolio-lock {
    transform: scale(1.25) translateZ(5px);
    fill: #06b6d4;
}

.site-logo-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1;
    transform: translateZ(5px);
}

.site-logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.site-logo-text span {
    color: var(--accent);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: background 0.3s ease;
}

.site-logo-sub {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-top: 2px;
    text-transform: uppercase;
}

/* ---- Nav central ---- */
.site-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.site-nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0;
    margin: 0;
}

.site-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
    position: relative;
}

.site-nav-link i { font-size: 0.95rem; }

.site-nav-link:hover,
.site-nav-link.active {
    background: rgba(99, 102, 241, 0.09);
    color: var(--accent);
    text-decoration: none;
}

.site-nav-link.active { font-weight: 600; }

/* Dot pulsante en Destacados */
.nav-badge-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #f59e0b;
    border-radius: 50%;
    margin-left: -2px;
    animation: pulse-dot 2s ease-in-out infinite;
}

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

.site-nav-link--highlight {
    background: rgba(99, 102, 241, 0.09);
    color: var(--accent);
    font-weight: 600;
}

.site-nav-link--highlight:hover { background: rgba(99, 102, 241, 0.16); }

.site-nav-separator {
    color: var(--text-muted);
    opacity: 0.4;
    margin: 0 0.5rem;
    user-select: none;
    font-size: 0.85rem;
}

/* ---- Leaflet Map Premium Styles ---- */
.map-card-wrapper {
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: #ffffff;
}

/* Custom Marker Styling */
.div-icon-wrapper {
    background: transparent;
    border: none;
}

.custom-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15);
    border: 2px solid #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.custom-marker i {
    transform: rotate(45deg);
    font-size: 1.15rem;
    color: #ffffff;
}

.pin-regular {
    background: var(--accent);
}

.pin-destacada {
    background: #f59e0b; /* Amber */
    animation: marker-glow 1.5s infinite alternate;
}

.custom-marker:hover {
    transform: rotate(-45deg) scale(1.15);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.25);
    z-index: 999 !important;
}

@keyframes marker-glow {
    from {
        box-shadow: 0 0 4px rgba(245, 158, 11, 0.4), 0 4px 10px rgba(15, 23, 42, 0.15);
    }
    to {
        box-shadow: 0 0 12px rgba(245, 158, 11, 0.8), 0 4px 10px rgba(15, 23, 42, 0.15);
    }
}

/* Popup style overrides for Leaflet */
.leaflet-popup-content-wrapper {
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-lg) !important;
    padding: 0 !important;
}

.leaflet-popup-content {
    margin: 8px 12px !important;
    padding: 0 !important;
}

.leaflet-popup-tip-container {
    margin-top: -1px;
}

.leaflet-popup-close-button {
    color: var(--text-muted) !important;
    font-size: 1.1rem !important;
    padding: 6px !important;
    top: 4px !important;
    right: 4px !important;
}


/* ---- Mobile hamburger ---- */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 2.2rem;
    height: 2.2rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
}

.nav-hamburger span {
    display: block;
    width: 16px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all 0.25s ease;
    transform-origin: center;
}

.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
    .nav-hamburger { display: flex; }
    .header-topbar { display: none; }
    .header-spacer { height: 64px; }
    .site-logo-img { height: 28px; }

    .site-nav {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border-color);
        padding: 1rem 1.5rem 1.5rem;
        transform: translateY(-110%);
        opacity: 0;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
        pointer-events: none;
        z-index: 199;
    }

    .site-nav.nav-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .site-nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        width: 100%;
    }

    .site-nav-list li { width: 100%; }

    .site-nav-separator { display: none; }

    .site-nav-link {
        width: 100%;
        padding: 0.65rem 1rem;
        font-size: 0.9rem;
        border-radius: var(--radius-md);
    }
}

/* ---- Right actions ---- */
.site-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.btn-header-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-secondary);
    font-size: 0.84rem;
    font-weight: 500;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: var(--transition);
    background: transparent;
}

.btn-header-ghost:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.btn-header-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #fff;
    font-size: 0.84rem;
    font-weight: 600;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: var(--accent-gradient);
    text-decoration: none;
    transition: opacity 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.25);
}

.btn-header-primary:hover {
    opacity: 0.92;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.38);
    color: #fff;
}

.btn-header-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
}

.btn-header-logout:hover {
    background: var(--danger-bg);
    color: var(--danger);
    border-color: var(--danger-border);
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 0.3rem 0.75rem 0.3rem 0.35rem;
    font-size: 0.78rem;
    color: var(--text-secondary);
    max-width: 180px;
}

.user-chip-avatar {
    width: 1.5rem;
    height: 1.5rem;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.72rem;
    flex-shrink: 0;
}

.user-chip-email {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

/* ---- Notification Bell ---- */
.notif-wrap { position: relative; }

.notif-bell {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: transparent;
    border: 1px solid var(--border-color);
    cursor: pointer;
    font-size: 1.05rem;
    color: var(--text-muted);
    position: relative;
    transition: var(--transition);
}

.notif-bell:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.notif-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--danger);
    color: white;
    font-size: 0.6rem;
    min-width: 15px;
    height: 15px;
    border-radius: 999px;
}
.main-footer {
    background: linear-gradient(160deg, #0f0f1a 0%, #12122a 50%, #0d1520 100%);
    border-top: 1px solid rgba(99, 102, 241, 0.18);
    color: rgba(255, 255, 255, 0.65);
    padding: 4rem 0 0;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-top: auto;
}

.main-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* 4-column grid */
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* Each column left-aligned */
.footer-col {
    text-align: left;
    align-items: flex-start;
}

/* Column headings */
.footer-col h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 1.2rem;
    margin-top: 0.25rem;
    text-align: left;
}

/* Brand description text */
.footer-col > p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    max-width: 280px;
    margin-bottom: 1.5rem;
    text-align: left;
}

/* Social icon row */
.footer-socials {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.55rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
}

.footer-socials a:hover {
    background: rgba(99, 102, 241, 0.25);
    border-color: rgba(99, 102, 241, 0.5);
    color: #fff;
    transform: translateY(-2px);
}

/* Link list */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease, gap 0.2s ease;
}

.footer-links a i {
    font-size: 0.9rem;
    color: rgba(99, 102, 241, 0.7);
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.footer-links a:hover {
    color: #fff;
    gap: 0.65rem;
}

.footer-links a:hover i {
    color: var(--accent, #6366f1);
}

/* Bottom bar */
.footer-bottom {
    padding: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

.footer-bottom a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom a:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive: tablet */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

/* Responsive: mobile */
@media (max-width: 540px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================
   GENERAL BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}
.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
}
.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    border-radius: var(--radius-lg);
}
.btn-primary {
    background: var(--accent-gradient);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.2);
}
.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
    opacity: 0.95;
    transform: translateY(-1px);
}
.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-color);
}
.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-color-hover);
    color: var(--text-primary);
}

/* ========================================
   ALERTS
   ======================================== */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid transparent;
}
.alert-success {
    background-color: var(--success-bg);
    color: var(--success);
    border-color: var(--success-border);
}
.alert-danger {
    background-color: var(--danger-bg);
    color: var(--danger);
    border-color: var(--danger-border);
}

/* ========================================
   BADGES & LABELS
   ======================================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid transparent;
    white-space: nowrap;
}

/* Neutral/Default Badges */
.badge-neutral {
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    border-color: var(--border-color);
}

/* Specific shift (jornada) badges */
.badge-jornada {
    font-weight: 600;
    font-size: 0.72rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.badge-turno_completo {
    background-color: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.badge-medio_turno {
    background-color: #faf5ff;
    color: #6b21a8;
    border-color: #e9d5ff;
}

/* Specific type (modalidad) badges */
.badge-modalidad {
    font-weight: 600;
    font-size: 0.72rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.badge-presencial {
    background-color: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}

.badge-hibrido {
    background-color: #fffbeb;
    color: #854d0e;
    border-color: #fde68a;
}

/* ==============================
   COMPANY DETAIL PAGE STYLING
   ============================== */

.back-link a {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}
.back-link a:hover {
  opacity: 0.85;
}

/* Header Card */
.company-header-card {
  position: relative;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  margin-bottom: 2.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}
.company-cover {
  height: 180px;
  background: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  position: relative;
}
.company-cover .bg-geom {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  filter: blur(20px);
}
.company-cover .bg-geom.top {
  top: -20px; left: 10%; width: 150px; height: 150px;
}
.company-cover .bg-geom.bottom {
  bottom: -40px; right: 15%; width: 220px; height: 220px; filter: blur(30px);
}
.company-info {
  padding: 0 2rem 2rem;
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  margin-top: -50px;
  flex-wrap: wrap;
  position: relative;
  z-index: 5;
}
.company-logo {
  width: 110px;
  height: 110px;
  border-radius: var(--radius-lg);
  border: 4px solid white;
  background: white;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  flex-shrink: 0;
  transition: var(--transition);
}
.company-logo:hover {
  transform: scale(1.04);
}
.company-name {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.company-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.company-meta span, .company-meta a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.company-website {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
}

/* Modern Card */
.company-card-modern {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

/* Fade‑in animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* Social Icons */
.social-icons a {
  color: var(--text-primary);
  font-size: 1.2rem;
  transition: var(--transition);
}
.social-icons a:hover {
  color: var(--accent);
}

.badge-remoto {
    background-color: #ecfeff;
    color: #155e75;
    border-color: #c5f6fa;
}

.badge-temporal {
    background-color: #fdf2f8;
    color: #9d174d;
    border-color: #fbcfe8;
}

/* Auth application state badges */
.badge-pending {
    background-color: #fffbeb;
    color: #d97706;
    border-color: #fde68a;
}

.badge-review {
    background-color: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.badge-accepted {
    background-color: var(--success-bg);
    color: var(--success);
    border-color: var(--success-border);
}

.badge-rejected {
    background-color: var(--danger-bg);
    color: var(--danger);
    border-color: var(--danger-border);
}

/* ========================================
   ADVERTISING SLIDER
   ======================================== */
.ad-slider-container {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
    margin-top: 0;
    margin-bottom: 0;
    border: none;
    box-shadow: none;
}
@media (max-width: 768px) {
    .ad-slider-container {
        height: 240px;
    }
}
.ad-slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}
.ad-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    z-index: 1;
}
.ad-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}
.ad-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}
.ad-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ad-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
    color: #ffffff;
    z-index: 3;
}
.ad-slide-caption h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}
.ad-slide-content {
    width: 100%;
    height: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
}
.default-slide-1 {
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
}
.default-slide-2 {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
}
.default-slide-3 {
    background: linear-gradient(135deg, #0d9488 0%, #115e59 100%);
}
.ad-slide-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.ad-slide-content p {
    font-size: 0.9rem;
    opacity: 0.9;
    max-width: 600px;
}
.ad-slider-prev,
.ad-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}
.ad-slider-prev:hover,
.ad-slider-next:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
}
.ad-slider-prev {
    left: 1rem;
}
.ad-slider-next {
    right: 1rem;
}
.ad-slider-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}
.ad-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}
.ad-slider-dot.active {
    background: #ffffff;
    width: 20px;
    border-radius: 4px;
}

/* ========================================
   HERO + BUSCADOR
   ======================================== */
.hero-section {
    position: relative;
    padding: 6.5rem 0 5.5rem;
    background: linear-gradient(180deg, rgba(13, 21, 39, 0.82) 0%, rgba(7, 10, 19, 0.93) 100%), url('../uploads/corporate_hero_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    margin-top: 0;
    margin-bottom: 3rem;
    text-align: center;
    width: 100%;
}
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    pointer-events: none;
    z-index: 1;
}
.hero-orb-1 {
    top: -10%;
    left: 10%;
    width: 350px;
    height: 350px;
    background: #6366f1;
}
.hero-orb-2 {
    bottom: -10%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: #06b6d4;
}
.hero-orb-3 {
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    height: 250px;
    background: #4f46e5;
}
.hero-content {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
    z-index: 2;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(99, 102, 241, 0.12);
    color: #a5b4fc;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(99, 102, 241, 0.25);
    margin-bottom: 1.75rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.hero-headline {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin-bottom: 1.5rem;
}
.hero-highlight {
    background: linear-gradient(135deg, #818cf8, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}
.hero-sub {
    font-size: 1.15rem;
    color: rgba(226, 232, 240, 0.85);
    max-width: 680px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}
.search-card {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.5);
    padding: 0.5rem;
    margin-bottom: 2rem;
    transition: var(--transition);
}
.search-card:focus-within {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 24px 60px -10px rgba(99, 102, 241, 0.25);
}
.search-card-form {
    display: flex;
    align-items: center;
    width: 100%;
}
.search-main-field {
    flex: 1.2;
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
}
.search-main-icon {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.4);
}
.search-main-input {
    width: 100%;
    border: none;
    background: transparent;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
}
.search-main-input:focus {
    outline: none;
}
.search-main-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}
.search-divider {
    width: 1px;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 0.5rem;
}
.search-filters {
    flex: 2;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.search-filter-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem;
}
.search-filter-item i {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.4);
}
.search-filter-item select {
    width: 100%;
    border: none;
    background: transparent;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    padding-right: 1.25rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16'%3E%3Cpath d='M12 15L18 9H6L12 15Z' fill='%23ffffff' fill-opacity='0.6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
}
.search-filter-item select option {
    background: #0f172a;
    color: #ffffff;
}
.search-filter-sep {
    width: 1px;
    height: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
}
.search-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: var(--accent-gradient);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    border: none;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
    white-space: nowrap;
}
.search-submit-btn:hover {
    opacity: 0.95;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    transform: translateY(-1px);
}
.search-submit-btn i {
    font-size: 1rem;
}
.hero-quick-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
}
.hero-quick-label {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}
.hero-quick-tag {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-weight: 500;
    transition: var(--transition);
}
.hero-quick-tag:hover {
    color: #ffffff;
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(99, 102, 241, 0.15);
}
@media (max-width: 992px) {
    .search-card-form {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding: 0.5rem;
    }
    .search-divider,
    .search-filter-sep {
        display: none;
    }
    .search-main-field {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 0.75rem;
    }
    .search-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    .search-filter-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 0.75rem;
    }
    .search-submit-btn {
        width: 100%;
        padding: 0.9rem;
    }
    .hero-headline {
        font-size: 2.25rem;
    }
}

/* ========================================
   NATIVE DIALOG MODAL
   ======================================== */
dialog {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25),
                0 0 0 1px rgba(15, 23, 42, 0.05);
    max-width: 650px;
    width: 90%;
    padding: 0;
    margin: auto;
    background: #ffffff;
    overflow: hidden;
}
dialog::backdrop {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}
.dialog-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}
.dialog-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.dialog-close:hover {
    background: rgba(15, 23, 42, 0.05);
    color: var(--text-primary);
}
#detalles-modal-body {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

/* ========================================
   TRUSTED COMPANIES CAROUSEL
   ======================================== */
.company-carousel-section {
    margin: 4rem 0 2rem;
    padding: 2.5rem 0;
    border-top: 1px solid var(--border-color);
}
.company-grid-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.company-logo-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 1.75rem;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.company-logo-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-glow);
}
.company-logo-card img {
    max-height: 100%;
    max-width: 150px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}
.company-logo-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ========================================
   SECTION BLOCKS — Consistent layout
   ======================================== */
.section-block {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.section-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.section-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.section-icon--indigo { background: rgba(99,102,241,0.12); color: var(--accent); }
.section-icon--amber  { background: rgba(245,158,11,0.12); color: var(--warning); }

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(99,102,241,0.1);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    letter-spacing: 0;
}

.clear-filters-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    border: 1px solid var(--border-color);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    transition: var(--transition);
}

.clear-filters-link:hover {
    color: var(--danger);
    border-color: var(--danger-border);
    background: var(--danger-bg);
}

/* ========================================
   FEATURED CARDS GRID
   ======================================== */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.featured-card {
    background: #fff;
    border: 1.5px solid rgba(245,158,11,0.2);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 2px 12px rgba(245,158,11,0.05);
}

.featured-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(245,158,11,0.12);
    border-color: rgba(245,158,11,0.45);
}

.featured-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--warning);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 8px;
    border-top-right-radius: var(--radius-lg);
    border-bottom-left-radius: var(--radius-sm);
}

.featured-logo {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.featured-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-info { flex: 1; min-width: 0; }

.featured-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.2rem;
}

.featured-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.featured-title a:hover { color: var(--accent); }

.featured-company {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0 0 0.6rem;
}

.featured-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.featured-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.featured-meta i { color: var(--accent); font-size: 0.82rem; }

.featured-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(245,158,11,0.1);
    padding-top: 0.65rem;
    gap: 0.5rem;
}

.featured-badges { display: flex; gap: 0.3rem; flex-wrap: wrap; }

.btn-ver-mas {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--warning);
    background: rgba(245,158,11,0.1);
    border: 1px solid rgba(245,158,11,0.25);
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    font-family: inherit;
}

.btn-ver-mas:hover {
    background: rgba(245,158,11,0.2);
    border-color: rgba(245,158,11,0.5);
}

/* ========================================
   JOB CARD MODERN — List view
   ======================================== */
.job-card-modern {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.75rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    box-shadow: 0 2px 8px rgba(15,23,42,0.04);
}

.job-card-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(99,102,241,0.1);
    border-color: rgba(99,102,241,0.3);
}

.job-card-logo {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(15,23,42,0.06);
}

.job-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Letter fallback avatar */
.logo-letter {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent);
    background: rgba(99,102,241,0.08);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-letter--amber {
    color: var(--warning);
    background: rgba(245,158,11,0.08);
}

.job-card-body { flex: 1; min-width: 0; }

.job-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.job-card-title {
    font-size: 1.08rem;
    font-weight: 700;
    margin: 0 0 0.3rem;
    line-height: 1.3;
}

.job-card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.job-card-title a:hover { color: var(--accent); }

.job-card-company {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.job-card-company i { font-size: 0.85rem; }

.job-card-badges {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.job-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 1.25rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.job-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.job-card-meta i {
    font-size: 0.88rem;
    color: var(--accent);
    opacity: 0.75;
}

.job-card-action {
    flex-shrink: 0;
}

.btn-ver-detalles {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(99,102,241,0.08);
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: 999px;
    padding: 0.6rem 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    font-family: inherit;
}

.btn-ver-detalles:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 5rem 1rem;
    background: #fff;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-lg);
}

.empty-state-icon {
    font-size: 3.5rem;
    color: var(--border-color);
    margin-bottom: 1rem;
    line-height: 1;
}

.empty-state h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Responsive job cards */
@media (max-width: 640px) {
    .job-card-modern {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .job-card-top {
        flex-direction: column;
        gap: 0.4rem;
    }

    .job-card-action {
        width: 100%;
    }

    .btn-ver-detalles {
        width: 100%;
        justify-content: center;
    }

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

/* ========================================
   VACANTES GRID — Tarjetas Verticales 4 cols
   ======================================== */

/* Grid: 3 columnas desktop, 2 tablet, 1 móvil */
.vacantes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    align-items: start;
}

/* ---- Tarjeta vertical ---- */
.vac-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    height: 100%;
}

.vac-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.28);
}

/* Imagen superior */
.vac-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #e8eaf6, #e3f2fd);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vac-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.vac-card:hover .vac-card-img img {
    transform: scale(1.04);
}

/* Logo centrado en la imagen (cuando no hay imagen de portada) */
.vac-card-img--logo {
    object-fit: contain !important;
    padding: 1.5rem;
    background: #f8fafc;
}

/* Letra fallback */
.vac-card-letter {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    opacity: 0.35;
    user-select: none;
}

/* Badge sobre la imagen */
.vac-card-overlay-badge {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    backdrop-filter: blur(6px);
    background: rgba(255,255,255,0.88) !important;
    border: 1px solid rgba(255,255,255,0.4) !important;
    color: #0f172a !important; /* Force dark text color */
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
}

/* Cuerpo */
.vac-card-body {
    padding: 1rem 1.1rem 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.vac-card-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
}

.vac-card-jornada-badge {
    align-self: flex-start;
    background: none !important;
    border: none !important;
    color: var(--text-muted) !important;
    padding: 0 !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.vac-card-empresa {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vac-card-empresa i { font-size: 0.78rem; }

.vac-card-title {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    color: var(--text-primary);
    /* Limitar a 2 líneas */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vac-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.vac-card-title a:hover { color: var(--accent); }

.vac-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.vac-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vac-card-meta i {
    font-size: 0.82rem;
    color: var(--accent);
    opacity: 0.65;
    flex-shrink: 0;
}

/* Footer */
.vac-card-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.8rem 1.25rem 1.25rem;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.vac-card-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.74rem;
    color: var(--text-muted);
}

.vac-card-date i { font-size: 0.82rem; }

.vac-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: #ffffff;
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius-md);
    padding: 0.7rem 1.25rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.16);
    transition: var(--transition);
    white-space: nowrap;
    font-family: inherit;
    width: 100%;
}

.vac-card-btn:hover {
    background: var(--accent-gradient);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

.vac-card-btn:active {
    transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .vacantes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .vacantes-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* ========================================
   MODERN LOGIN & AUTH STYLES
   ======================================== */
/* Segmented control tabs for registration */
.auth-tabs {
    display: flex;
    background: var(--bg-secondary);
    padding: 0.35rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: calc(var(--radius-md) - 2px);
    transition: var(--transition);
    user-select: none;
}

.auth-tab:hover {
    color: var(--text-primary);
}

.auth-tab.active {
    background: #ffffff;
    color: var(--accent);
    box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 
                0 0 0 1px rgba(15, 23, 42, 0.04);
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

.login-card {
    display: flex;
    background: #ffffff;
    border-radius: var(--radius-xl, 24px);
    overflow: hidden;
    width: 100%;
    max-width: 960px;
    min-height: 560px;
    box-shadow: 0 20px 50px -12px rgba(15, 23, 42, 0.08), 
                0 0 0 1px rgba(15, 23, 42, 0.04);
    transition: var(--transition);
}

.login-visual {
    flex: 1;
    position: relative;
    background-image: url('../uploads/auth-bg-jalisco.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 3rem;
    color: #ffffff;
}

.visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.85) 100%);
    z-index: 1;
}

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

.visual-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.visual-title {
    font-size: 2rem;
    line-height: 1.25;
    margin-bottom: 1rem;
    color: #ffffff;
    font-weight: 800;
}

.visual-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.visual-stats {
    display: flex;
    gap: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 1.5rem;
}

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

.stat-num {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
    color: #ffffff;
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
}

.login-form-area {
    width: 460px;
    padding: 3.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
}

.login-form-header {
    margin-bottom: 2.25rem;
}

.form-title {
    font-size: 1.6rem;
    color: var(--text-primary);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.modern-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-floating-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

.form-label-modern {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.form-label-modern i {
    color: var(--accent);
    font-size: 1rem;
}

.form-input-modern {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.form-input-modern:focus {
    outline: none;
    border-color: var(--accent);
    background: #ffffff;
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.password-input-wrapper {
    position: relative;
    width: 100%;
}

.password-input-wrapper .form-input-modern {
    padding-right: 3rem;
}

.password-toggle-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.15rem;
    cursor: pointer;
    padding: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.password-toggle-btn:hover {
    color: var(--text-primary);
    background: rgba(15, 23, 42, 0.04);
}

.form-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.remember-me-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}

.remember-me-checkbox input[type="checkbox"] {
    accent-color: var(--accent);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.forgot-pass-link {
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
}

.forgot-pass-link:hover {
    color: var(--accent-hover);
}

.btn-submit-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--accent-gradient);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.9rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
    font-family: inherit;
    margin-top: 0.5rem;
}

.btn-submit-modern:hover {
    box-shadow: 0 6px 22px rgba(99, 102, 241, 0.35);
    transform: translateY(-1px);
}

.btn-submit-modern i {
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.btn-submit-modern:hover i {
    transform: translateX(3px);
}

.form-footer-modern {
    margin-top: 2.25rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.register-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.btn-register-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
}

.btn-register-link.candidato {
    background: rgba(99, 102, 241, 0.08);
    color: var(--accent);
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.btn-register-link.candidato:hover {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.btn-register-link.empresa {
    background: rgba(6, 182, 212, 0.08);
    color: #0891b2;
    border: 1px solid rgba(6, 182, 212, 0.15);
}

.btn-register-link.empresa:hover {
    background: #0891b2;
    color: #ffffff;
    border-color: #0891b2;
}

/* Responsive auth card */
@media (max-width: 992px) {
    .login-card {
        max-width: 500px;
        flex-direction: column;
    }
    .login-visual {
        display: none;
    }
    .login-form-area {
        width: 100%;
        padding: 3rem 2rem;
    }
    .login-container {
        padding: 2rem 0;
    }
}

/* ========================================
   MODAL & SINGLE VACANCY REDESIGN
   ======================================== */
.modern-dialog {
    max-width: 780px !important;
    width: 92% !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    border-radius: var(--radius-xl) !important;
    background: #ffffff;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.2) !important;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), display 0.3s allow-discrete, overlay 0.3s allow-discrete !important;
    transform: translateY(20px) scale(0.97);
    opacity: 0;
    padding: 0 !important;
}

.modern-dialog[open] {
    transform: translateY(0) scale(1) !important;
    opacity: 1 !important;
}

@starting-style {
    .modern-dialog[open] {
        transform: translateY(20px) scale(0.97) !important;
        opacity: 0 !important;
    }
}

.modern-dialog::backdrop {
    background: rgba(15, 23, 42, 0) !important;
    backdrop-filter: blur(0px) !important;
    -webkit-backdrop-filter: blur(0px) !important;
    transition: background 0.3s ease, backdrop-filter 0.3s ease, display 0.3s allow-discrete, overlay 0.3s allow-discrete !important;
}

.modern-dialog[open]::backdrop {
    background: rgba(15, 23, 42, 0.5) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

@starting-style {
    .modern-dialog[open]::backdrop {
        background: rgba(15, 23, 42, 0) !important;
        backdrop-filter: blur(0px) !important;
        -webkit-backdrop-filter: blur(0px) !important;
    }
}

/* Close button inside modal */
.dialog-header-modern {
    position: sticky;
    top: 0;
    width: 100%;
    height: 0;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 1.2rem;
    z-index: 100;
    pointer-events: none;
}

.dialog-close-floating {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(15, 23, 42, 0.1);
    font-size: 1.25rem;
    color: var(--text-primary);
    cursor: pointer;
    width: 2.2rem;
    height: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.dialog-close-floating:hover {
    background: #ffffff;
    transform: scale(1.08);
    box-shadow: var(--shadow-md);
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.25);
}

/* Detail cover/banner section */
.detail-cover-wrapper {
    position: relative;
    width: 100%;
    background: #ffffff;
}

.detail-cover-bg {
    height: 140px;
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    position: relative;
    overflow: hidden;
}

.detail-cover-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
}

.detail-header-content {
    display: flex;
    align-items: flex-end;
    gap: 1.5rem;
    padding: 0 2rem;
    margin-top: -55px;
    position: relative;
    z-index: 2;
}

.detail-logo-wrapper {
    width: 100px;
    height: 100px;
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 4px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.1);
    flex-shrink: 0;
}

.detail-logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.5rem;
}

.detail-logo-letter {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    background: rgba(99, 102, 241, 0.08);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-header-info {
    flex: 1;
    padding-bottom: 0.25rem;
}

.detail-title-main {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
    font-family: 'Space Grotesk', sans-serif;
}

.detail-company-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.detail-company-name {
    color: var(--text-secondary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.detail-company-name i {
    color: var(--accent);
    font-size: 1.05rem;
}

.detail-company-link {
    color: var(--accent);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    border-bottom: 1px dashed rgba(99, 102, 241, 0.4);
    padding-bottom: 1px;
}

.detail-company-link:hover {
    color: var(--accent-hover);
    border-color: var(--accent-hover);
}

/* Detail meta grid (cards with icons) */
.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    margin: 2.5rem 2rem 1.5rem;
}

.detail-meta-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
}

.detail-meta-item:hover {
    border-color: rgba(99, 102, 241, 0.25);
    transform: translateY(-2px);
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.detail-meta-icon-wrapper {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: var(--radius-sm);
    background: rgba(99, 102, 241, 0.08);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.detail-meta-content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.detail-meta-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.detail-meta-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Special styling for salary item */
.detail-meta-item--salary {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0.02) 100%);
    border-color: rgba(16, 185, 129, 0.2);
}

.detail-meta-item--salary:hover {
    border-color: rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(16, 185, 129, 0.04) 100%);
}

.detail-meta-item--salary .detail-meta-icon-wrapper {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.detail-meta-value--salary {
    color: var(--success) !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
}

/* Content details section layout */
.detail-content-area {
    padding: 0 2rem;
    margin-bottom: 2rem;
}

.detail-section-modern {
    margin-bottom: 2rem;
}

.detail-section-modern h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    border-left: 4px solid var(--accent);
    padding-left: 0.75rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.detail-section-modern .formatted-text-box {
    font-size: 0.94rem;
    color: var(--text-secondary);
    line-height: 1.7;
    white-space: pre-line;
}

.detail-section-modern .formatted-text-box ul {
    margin-left: 1.25rem;
    margin-bottom: 1rem;
}

.detail-section-modern .formatted-text-box li {
    margin-bottom: 0.5rem;
}

/* Company brief row */
.company-about-box {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    margin-top: 2.5rem;
}

.company-about-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.company-about-desc {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Apply card section inside details content */
.apply-section-card {
    margin: 2.5rem 2rem 2rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(99, 102, 241, 0.02) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.apply-section-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-gradient);
}

.apply-card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.apply-card-title i {
    color: var(--accent);
}

.apply-card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.apply-form-group {
    margin-bottom: 1.25rem;
}

.apply-form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: block;
}

.apply-form-control {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: var(--transition);
}

.apply-form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.apply-submit-btn {
    width: 100%;
    background: var(--accent-gradient);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.85rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
}

.apply-submit-btn:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
}

.apply-submit-btn i {
    font-size: 1.05rem;
    transition: transform 0.25s ease;
}

.apply-submit-btn:hover i {
    transform: translateX(3px);
}

/* Flyer style inside details */
.detail-flyer-box {
    margin: 1.5rem 2rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    background: var(--bg-secondary);
    display: flex;
    justify-content: center;
}

.detail-flyer-img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    transition: var(--transition);
}

.detail-flyer-img:hover {
    transform: scale(1.02);
}

/* Modern Spinner Loader */
.loader {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(15, 23, 42, 0.1);
    border-radius: 50%;
    border-top-color: var(--accent);
    animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .detail-meta-item--salary {
        grid-column: span 1;
    }
}

@media (max-width: 640px) {
    .detail-cover-bg {
        height: 100px;
    }
    .detail-header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: -50px;
        padding: 0 1.25rem;
    }
    .detail-logo-wrapper {
        width: 88px;
        height: 88px;
    }
    .detail-title-main {
        font-size: 1.35rem;
    }
    .detail-company-row {
        justify-content: center;
    }
    .detail-meta-grid {
        grid-template-columns: 1fr;
        margin: 1.5rem 1.25rem 1rem;
    }
    .detail-meta-item--salary {
        grid-column: span 1;
    }
    .detail-content-area {
        padding: 0 1.25rem;
    }
    .apply-section-card {
        margin: 2rem 1.25rem;
        padding: 1.5rem;
    }
    .detail-flyer-box {
        margin: 1.5rem 1.25rem;
    }
}

/* ========================================
   VACANCY MODAL SPLIT LAYOUT (FLYER 1:1)
   ======================================== */
.vacante-modal-split-layout {
    display: grid;
    grid-template-columns: 42% 58%;
    min-height: 100%;
}

.vacante-modal-image-col {
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 2rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.vacante-modal-image-sticky {
    position: sticky;
    top: 2rem;
    width: 100%;
}

.vacante-modal-flyer-square {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.vacante-modal-flyer-square:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -10px rgba(99, 102, 241, 0.25);
    border-color: var(--accent-glow);
}

.vacante-modal-text-col {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* Responsividad para pantallas pequeñas */
@media (max-width: 768px) {
    .vacante-modal-split-layout {
        grid-template-columns: 1fr;
    }
    
    .vacante-modal-image-col {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 1.5rem;
    }
    
    .vacante-modal-image-sticky {
        position: static;
    }
    
    .vacante-modal-flyer-square {
        max-width: 340px;
        margin: 0 auto;
        display: block;
    }
    
    .vacante-modal-text-col {
        padding: 1.5rem;
    }
}

/* ========================================
   MODIFICADOR HERO MINI
   ======================================== */
.hero-section--mini {
    padding: 4.5rem 0 3.5rem !important;
    margin-bottom: 2.5rem !important;
}

/* ========================================
   DIRECTORIO DE EMPRESAS (CARDS REDESIGN)
   ======================================== */
.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.company-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px -2px rgba(17, 24, 39, 0.04);
}

.company-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.15), 0 10px 10px -5px rgba(99, 102, 241, 0.05);
}

.company-card-banner {
    height: 90px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(6, 182, 212, 0.12) 100%);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.company-card:hover .company-card-banner {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
}

.company-card-banner::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
}

.company-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
    margin-top: -45px;
}

.company-card-logo-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.25rem;
}

.company-card-logo {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    border: 3px solid #ffffff;
    background: #ffffff;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.company-card:hover .company-card-logo {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.2);
}

.company-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2px;
}

.company-card-logo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent) 0%, #4f46e5 100%);
    color: #ffffff;
    font-size: 2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

.company-card-vacancy-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.company-card-vacancy-badge.active {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.company-card-vacancy-badge.none {
    background: rgba(107, 114, 128, 0.08);
    color: #6b7280;
    border: 1px solid rgba(107, 114, 128, 0.15);
}

.company-card-vacancy-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
    display: inline-block;
}

.company-card-vacancy-badge.active .company-card-vacancy-dot {
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

.company-card-title {
    font-size: 1.25rem;
    font-weight: 750;
    color: var(--text-primary);
    margin: 0 0 0.4rem;
    line-height: 1.3;
    font-family: 'Space Grotesk', sans-serif;
}

.company-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.company-card-title a:hover {
    color: var(--accent);
}

.company-card-location {
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 0.85rem;
    font-weight: 550;
}

.company-card-location i {
    color: var(--accent);
    font-size: 0.95rem;
}

.company-card-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 4.5em;
}

.company-card-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem 1.5rem;
}

.company-card-link-web {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
    justify-content: center;
}

.company-card-link-web:hover {
    color: var(--accent);
}

.company-card-btn-view {
    background: var(--accent-gradient);
    color: #ffffff;
    border: none;
    padding: 0.7rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.84rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.16);
    width: 100%;
}

.company-card:hover .company-card-btn-view {
    background: var(--accent-gradient);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

/* Contact details protection styles */
.contact-protected-container {
    position: relative;
    overflow: hidden;
}
.contact-blurred {
    filter: blur(5px);
    user-select: none;
    pointer-events: none;
    opacity: 0.6;
    display: inline-block;
}
.contact-login-overlay {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}
.contact-login-overlay a {
    text-decoration: underline;
    color: var(--accent);
    font-weight: 600;
}
.contact-login-overlay a:hover {
    color: var(--accent-hover);
}

/* ========================================
   ALLIANCES SECTION (STRATEGIC PARTNERS)
   ======================================== */
.alliances-section {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 5rem 0;
    text-align: center;
}

.alliances-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
}

.alliances-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 650px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.alliances-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.alliance-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

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

.alliance-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.25rem;
    transition: var(--transition);
}

.alliance-icon--udg {
    background-color: rgba(99, 102, 241, 0.08);
    color: #6366f1;
}

.alliance-icon--tec {
    background-color: rgba(6, 182, 212, 0.08);
    color: #06b6d4;
}

.alliance-icon--univa {
    background-color: rgba(239, 68, 68, 0.08);
    color: #ef4444;
}

.alliance-icon--chamber {
    background-color: rgba(245, 158, 11, 0.08);
    color: #f59e0b;
}

.alliance-card:hover .alliance-icon {
    transform: scale(1.1);
}

.alliance-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    min-height: 2.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alliance-badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
}

.badge-edu {
    background-color: rgba(99, 102, 241, 0.08);
    color: #6366f1;
}

.badge-corp {
    background-color: rgba(71, 85, 105, 0.08);
    color: #475569;
}

.alliances-action {
    background-color: var(--bg-primary);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    max-width: 100%;
    flex-wrap: wrap;
}

.alliances-action p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

@media (max-width: 640px) {
    .alliances-action {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* ========================================
   DYNAMIC ALLIANCES CAROUSEL & GALLERY
   ======================================== */
.alliances-carousel {
    overflow: hidden;
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
    padding: 0.5rem 0;
}

.alliances-track {
    display: flex;
    gap: 1.5rem;
    will-change: transform;
}

/* Base card layout inside carousel */
.alliances-track .alliance-card {
    flex: 0 0 calc((100% - (1.5rem * 4)) / 5); /* 5 columns on desktop */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.alliances-track .alliance-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.alliances-track .alliance-card .alliance-logo-wrap {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 8px;
    margin-bottom: 1rem;
    transition: var(--transition);
    overflow: hidden;
}

.alliances-track .alliance-card:hover .alliance-logo-wrap {
    background-color: #ffffff;
    border-color: var(--accent-glow);
}

.alliances-track .alliance-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.alliances-track .alliance-card:hover img {
    transform: scale(1.05);
}

.alliances-track .alliance-card .alliance-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Responsiveness for carousel columns */
@media (max-width: 1024px) {
    .alliances-track .alliance-card {
        flex: 0 0 calc((100% - (1.5rem * 2)) / 3); /* 3 columns on tablet */
    }
}

@media (max-width: 640px) {
    .alliances-track .alliance-card {
        flex: 0 0 calc((100% - 1.5rem) / 2); /* 2 columns on mobile */
    }
}

/* Public allies directory page styling */
.public-ally-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent) !important;
}

.public-ally-card:hover .public-ally-logo-wrap {
    background-color: #ffffff !important;
    border-color: var(--accent-glow) !important;
}

.public-ally-card:hover .public-ally-logo-wrap img {
    transform: scale(1.05);
}

.public-ally-card:hover .visit-link {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.badge-inst {
    background-color: rgba(6, 182, 212, 0.08);
    color: #06b6d4;
}

.badge-other {
    background-color: rgba(245, 158, 11, 0.08);
    color: #f59e0b;
}

/* ==========================================================================
   GEOLOCATED MAP PAGE (mapas.php)
   ========================================================================== */
.map-page-layout {
    display: flex;
    height: calc(100vh - 100px); /* Adjust based on header height */
    min-height: 500px;
    background-color: var(--bg-primary);
    overflow: hidden;
    position: relative;
    border-top: 1px solid var(--border-color);
}

.map-sidebar {
    width: 420px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-right: 1px solid var(--border-color);
    z-index: 20;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.03);
}

.map-sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(180deg, #ffffff 0%, var(--bg-secondary) 100%);
}

.map-sidebar-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-sidebar-title i {
    color: var(--accent);
}

.map-sidebar-subtitle {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 1rem;
}

.map-mini-search .mini-search-group {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.25rem 0.5rem 0.25rem 0.75rem;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.map-mini-search .mini-search-group:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.map-mini-search .mini-search-group i {
    color: var(--text-muted);
    font-size: 1rem;
    margin-right: 0.5rem;
}

.map-mini-search .mini-search-group input {
    border: none;
    outline: none;
    font-size: 0.85rem;
    flex: 1;
    color: var(--text-primary);
    background: transparent;
    padding: 0.35rem 0;
}

.map-mini-search .mini-search-group button {
    background: var(--accent);
    color: #ffffff;
    border: none;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.map-mini-search .mini-search-group button:hover {
    background: var(--accent-hover);
}

.map-jobs-list {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background-color: var(--bg-secondary);
}

/* Custom Scrollbar for Sidebar */
.map-jobs-list::-webkit-scrollbar {
    width: 6px;
}
.map-jobs-list::-webkit-scrollbar-track {
    background: transparent;
}
.map-jobs-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}
.map-jobs-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

.map-job-card {
    display: flex;
    gap: 0.85rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow-sm);
}

.map-job-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.map-job-card.is-active {
    border-color: var(--accent);
    border-width: 2px;
    background-color: var(--accent-glow);
    box-shadow: var(--shadow-md);
}

.map-job-card-logo {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-job-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2px;
}

.map-job-card-letter {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-secondary);
}

.map-job-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.map-job-card-company {
    font-size: 0.68rem;
    font-weight: 750;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.map-job-card-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.map-job-card-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 0.76rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.map-job-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.map-job-card-meta i {
    color: var(--accent);
}

.map-job-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 0.6rem;
}

.map-job-card-actions .badge {
    font-size: 0.68rem;
    padding: 0.2rem 0.5rem;
}

.map-job-card-actions .btn-ver-mas {
    font-size: 0.72rem;
    padding: 0.3rem 0.6rem;
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.map-job-card-actions .btn-ver-mas:hover {
    background: var(--accent);
    color: #ffffff;
}

.map-main-container {
    flex: 1;
    position: relative;
    background-color: #e5e9f0;
}

.map-empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-secondary);
}

.map-empty-state i {
    font-size: 2.5rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: block;
}

.map-empty-state p {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

/* body mapas page layout rules */
body.mapas-page .main-footer {
    display: none;
}

body.mapas-page {
    overflow: hidden;
}

/* Mobile responsive split layout */
@media (max-width: 768px) {
    .map-page-layout {
        flex-direction: column-reverse;
        height: calc(100vh - 64px);
    }
    
    .map-sidebar {
        width: 100%;
        height: 50%;
        border-right: none;
        border-top: 1px solid var(--border-color);
    }
    
    .map-main-container {
        height: 50%;
        width: 100%;
    }
}

/* ==========================================================================
   SISTEMA DE CHAT (AJAX POLLING) Y SECCIÓN DE MEMBRESÍAS PREMIUM
   ========================================================================== */

/* --- Estilos de Bloqueo de Campos Premium (Freemium) --- */
.locked-premium-wrapper {
    position: relative;
    border: 1px solid rgba(217, 119, 6, 0.2);
    border-radius: var(--radius-lg);
    background: rgba(245, 158, 11, 0.01);
    transition: all 0.3s ease;
}

.locked-premium-wrapper:hover {
    border-color: rgba(217, 119, 6, 0.4);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.05);
}

.locked-premium-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    border-radius: var(--radius-lg);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.locked-premium-overlay h5 {
    color: #b45309;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.locked-premium-overlay p {
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin: 0;
    max-width: 250px;
    line-height: 1.35;
}

.premium-badge-tag {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* --- Panel de Precios Premium --- */
.premium-promo-card {
    background: linear-gradient(135deg, #1e1b4b 0%, #311042 100%);
    color: white;
    border-radius: var(--radius-xl);
    padding: 2.25rem;
    box-shadow: 0 10px 30px rgba(49, 16, 66, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.25);
    position: relative;
    overflow: hidden;
}

.premium-promo-card::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, rgba(0,0,0,0) 70%);
    filter: blur(10px);
}

.pricing-benefits {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.pricing-benefits li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.pricing-benefits li i {
    color: #f59e0b;
    font-size: 1.1rem;
}

/* --- Estilos Interfaz de Chat --- */
.chat-container-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    height: 580px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .chat-container-layout {
        grid-template-columns: 1fr;
        height: 520px;
    }
    
    .chat-sidebar-conversations {
        display: block;
    }
    
    .chat-sidebar-conversations.hidden-mobile {
        display: none;
    }
    
    .chat-window-messages {
        display: none;
    }
    
    .chat-window-messages.active-mobile {
        display: flex;
    }
}

.chat-sidebar-conversations {
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
}

.chat-sidebar-header {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-sidebar-header h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.chat-conversations-scroll {
    overflow-y: auto;
    flex: 1;
}

.conversation-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.02);
    cursor: pointer;
    transition: var(--transition);
}

.conversation-item:hover {
    background: var(--bg-secondary);
}

.conversation-item.active {
    background: rgba(99, 102, 241, 0.06);
    border-left: 3.5px solid var(--accent);
}

.conversation-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.conversation-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.conversation-info {
    flex: 1;
    min-width: 0;
}

.conversation-name-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.15rem;
}

.conversation-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.conversation-time {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.conversation-msg-preview {
    font-size: 0.78rem;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.conversation-badge-unread {
    background-color: var(--accent);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.1rem 0.35rem;
    border-radius: 99px;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    color: var(--text-secondary);
    padding: 2rem;
    text-align: center;
    background: rgba(0,0,0,0.01);
}

.chat-empty-icon {
    font-size: 3.5rem;
    opacity: 0.25;
    margin-bottom: 1rem;
    color: var(--accent);
}

.chat-active-window {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--bg-secondary);
}

.chat-active-header {
    background: var(--bg-primary);
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-header-info h5 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.1rem 0;
}

.chat-header-info p {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin: 0;
}

.chat-messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-message-bubble {
    max-width: 70%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.85rem;
    line-height: 1.45;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: relative;
    word-break: break-word;
}

.chat-message-bubble.incoming {
    align-self: flex-start;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border-color);
}

.chat-message-bubble.outgoing {
    align-self: flex-end;
    background: var(--accent-gradient);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-message-meta {
    display: block;
    text-align: right;
    font-size: 0.65rem;
    margin-top: 0.35rem;
    opacity: 0.7;
}

.chat-active-footer {
    background: var(--bg-primary);
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.chat-input-form {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.chat-input-field {
    flex: 1;
    border: 1px solid var(--border-color);
    padding: 0.65rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.85rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: var(--transition);
}

.chat-input-field:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-primary);
}

.chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-gradient);
    border: none;
    color: white;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
    transition: var(--transition);
}

.chat-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.back-to-list-btn {
    display: none;
    font-size: 1.25rem;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 0.5rem 0 0;
}

@media (max-width: 768px) {
    .back-to-list-btn {
        display: block;
    }
}

/* Estilo Premium para Vacantes Exclusivas */
.vac-card--exclusive {
    border-color: rgba(245, 158, 11, 0.35) !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.05) !important;
    background: linear-gradient(to bottom, #ffffff, #fffdfa) !important;
}
.vac-card--exclusive:hover {
    border-color: #f59e0b !important;
    box-shadow: 0 6px 18px rgba(217, 119, 6, 0.12) !important;
}

/* Pricing & Subscription Cards for Companies */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    align-items: stretch;
}

.pricing-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.pricing-card.premium-tier {
    border-color: rgba(168, 85, 247, 0.4);
    background: linear-gradient(180deg, #ffffff 0%, rgba(168, 85, 247, 0.02) 100%);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.05);
}

.pricing-card.premium-tier:hover {
    border-color: #a855f7;
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.15);
}

.pricing-badge-popular {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 1rem 0;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.pricing-period {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.pricing-features-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    flex: 1;
}

.pricing-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.pricing-feature-item i {
    color: var(--success);
    font-size: 1.1rem;
    margin-top: 2px;
}

.pricing-feature-item.locked {
    color: var(--text-muted);
}

.pricing-feature-item.locked i {
    color: var(--text-muted);
    opacity: 0.5;
}

.pricing-btn {
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.85rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.pricing-btn.current {
    background: var(--bg-secondary);
    color: var(--text-muted) !important;
    border: 1.5px solid var(--border-color);
    cursor: default;
}

.pricing-btn.action-upgrade {
    background: linear-gradient(135deg, var(--accent) 0%, #a855f7 100%);
    color: white !important;
    border: none;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
}

.pricing-btn.action-upgrade:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

/* Hover effects for custom planes menu button */
.site-nav-planes-btn {
    transition: all 0.2s ease !important;
}
.site-nav-planes-btn:hover {
    background: rgba(245, 158, 11, 0.15) !important;
    border-color: #f59e0b !important;
    color: #b45309 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(245, 158, 11, 0.1);
}
.site-nav-planes-btn:active {
    transform: translateY(0);
}




