/* ==========================================================================
   Convocatorias de Trabajo Perú - Estilos Principales
   Inspirado en theme1.html & ver.html
   ========================================================================== */

:root {
    --red: #C4161C;
    --red-dark: #9B1118;
    --red-light: #F9E3E4;
    --blue: #1B3A5C;
    --blue-dark: #122840;
    --blue-light: #E8EDF3;
    --gold: #D4A843;
    --gold-light: #FDF6E3;
    --bg: #FFFFFF;
    --bg-gray: #F5F6F8;
    --surface: #FFFFFF;
    --border: #E2E5EA;
    --border-light: #EEF0F3;
    --text-primary: #1A1D23;
    --text-secondary: #4A5060;
    --text-muted: #525866;
    --success: #1A8754;
    --success-bg: #E8F5EE;
    --info: #1B6CB0;
    --info-bg: #E8F0FA;
    --radius: 8px;
    --radius-sm: 6px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Rubik', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ─── TOP BAR ─── */
.top-bar {
    background: var(--blue);
    color: rgba(255,255,255,0.85);
    font-size: 0.74rem;
    letter-spacing: 0.02em;
    padding: 6px 0;
}

.top-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a {
    color: rgba(255,255,255,0.85);
    transition: color 0.2s;
}

.top-bar a:hover { color: #fff; }

.top-bar-links {
    display: flex;
    gap: 1.2rem;
    list-style: none;
}

/* ─── HEADER ─── */
header.site-header,
.site-header {
    background: var(--bg);
    border-bottom: 3px solid var(--red);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-escudo {
    width: 44px;
    height: 44px;
    background: var(--red);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 2px 8px rgba(196,22,28,0.3);
    flex-shrink: 0;
}

.logo-escudo svg { width: 24px; height: 24px; }

.logo-text-group {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--blue);
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.logo-title span { color: var(--red); }

.logo-subtitle {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ─── NAVIGATION & MEGA DROPDOWN ─── */
nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

nav ul > li { position: relative; }

nav ul > li > a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    font-weight: 600;
    font-size: 0.84rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

nav ul > li > a:hover,
nav ul > li > a.active {
    color: var(--red);
    background: var(--red-light);
}

nav ul > li > a svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s;
}

nav ul > li:hover > a svg { transform: rotate(180deg); }

/* Dropdown normal */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 12px;
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 200;
}

nav ul > li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    display: block;
    padding: 7px 12px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all 0.15s;
}

.dropdown a:hover {
    background: var(--red-light);
    color: var(--red);
    font-weight: 600;
}

/* Mega dropdown amplio (ej: Departamentos 25 regiones) */
.dropdown-wide {
    min-width: 620px;
    left: -200px;
    padding: 16px 20px;
}

.dropdown-head {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.dropdown-head h4,
.dropdown-head .dropdown-title {
    font-size: 0.92rem;
    color: var(--blue);
    font-weight: 700;
}

.dropdown-head p {
    font-size: 0.76rem;
    color: var(--text-muted);
}

.dd-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.dd-grid a {
    padding: 6px 10px;
    font-size: 0.8rem;
}

/* ─── HEADER ACTIONS & USER DROPDOWN ─── */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-login-nav {
    padding: 7px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--blue);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    text-decoration: none;
}

.btn-login-nav:hover {
    color: var(--red);
    background: var(--red-light);
}

.btn-register-nav {
    padding: 7px 15px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    background: var(--red);
    border-radius: 100px;
    box-shadow: 0 2px 6px rgba(196,22,28,0.3);
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-register-nav:hover {
    background: #A31217;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(196,22,28,0.4);
}

.user-nav-dropdown {
    position: relative;
}

.user-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    background: var(--bg-gray);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--blue);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.user-nav-btn:hover {
    background: #fff;
    border-color: var(--blue);
}

.user-nav-avatar {
    width: 24px;
    height: 24px;
    background: var(--blue);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
}

.user-nav-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 210px;
    padding: 8px;
    margin-top: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all 0.2s;
    z-index: 200;
}

.user-nav-dropdown:hover .user-nav-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-nav-menu a, .user-nav-menu button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    text-decoration: none;
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s;
}

.user-nav-menu a:hover, .user-nav-menu button:hover {
    background: var(--red-light);
    color: var(--red);
}

/* ─── POSTULANTE HEADER ─── */
.postulante-header {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.postulante-header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 6px;
}

.mobile-menu-btn svg { width: 26px; height: 26px; }

/* ─── HERO BANNER ─── */
.hero-banner {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    color: white;
    padding: 2.2rem 1.5rem 2.8rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-banner::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--red) 0%, var(--gold) 50%, var(--red) 100%);
}

.hero-banner-inner {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 0.74rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
}

.hero-badge .dot {
    width: 7px;
    height: 7px;
    background: #2ECC71;
    border-radius: 50%;
    box-shadow: 0 0 8px #2ECC71;
}

.hero-banner h1,
.hero-banner .hero-title {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    line-height: 1.25;
}

.hero-banner p {
    font-size: 0.94rem;
    color: rgba(255,255,255,0.85);
    max-width: 650px;
    margin: 0 auto 1.4rem;
}

/* ─── SEARCH BOX ─── */
.search-container {
    max-width: 960px;
    margin: -1.8rem auto 1.5rem;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

.search-box {
    background: var(--bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 12px 14px;
    display: flex;
    gap: 10px;
    align-items: center;
    border: 1px solid var(--border);
}

.search-field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-gray);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: all 0.2s;
}

.search-field:focus-within {
    background: var(--bg);
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(196,22,28,0.1);
}

.search-field svg { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; }

.search-field input,
.search-field select {
    width: 100%;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.88rem;
    color: var(--text-primary);
    outline: none;
}

.search-btn {
    background: var(--red);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 24px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.search-btn:hover {
    background: var(--red-dark);
    box-shadow: 0 4px 12px rgba(196,22,28,0.3);
}

.quick-tags {
    max-width: 960px;
    margin: 0 auto 1.5rem;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.quick-tags a {
    background: var(--bg-gray);
    color: var(--text-secondary);
    padding: 3px 10px;
    border-radius: 100px;
    font-weight: 500;
    border: 1px solid var(--border-light);
    transition: all 0.2s;
}

.quick-tags a:hover {
    border-color: var(--red);
    color: var(--red);
    background: var(--red-light);
}

/* ─── HERO: LEGAL TAG ─── */
.hero-legal-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 0.74rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    margin-top: 4px;
    margin-bottom: 10px;
}

/* ─── TRUST ROW ─── */
.trust-row {
    margin: 14px 0 8px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.trust-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 0.74rem;
    font-weight: 600;
    color: rgba(255,255,255,0.95);
}

.trust-chip svg {
    color: #2ECC71;
    flex-shrink: 0;
}

/* ─── SOCIAL ROW (Hero) ─── */
.social-row {
    margin: 8px 0 4px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.social-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: rgba(255,255,255,0.85);
    transition: all 0.2s;
}

.social-btn:hover {
    background: rgba(255,255,255,0.25);
    color: #fff;
    transform: translateY(-2px);
}

/* ─── INFO CAS SECTION ─── */
.info-cas-section {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    padding: 3rem 1.5rem;
    margin-bottom: 2rem;
}

.info-cas-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: center;
}

.info-cas-illustration {
    display: flex;
    justify-content: center;
}

.info-cas-illustration svg {
    width: 100%;
    max-width: 220px;
    height: auto;
}

.info-cas-text h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 14px;
    line-height: 1.3;
}

.info-cas-text p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
    margin-bottom: 10px;
}

.info-cas-text strong {
    color: #fff;
}

.info-cas-cta {
    margin-top: 18px;
}

.btn-info-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.btn-info-more:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-1px);
}

/* ─── WHATSAPP FLOATING BUTTON ─── */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 900;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 16px rgba(37,211,102,0.4);
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
}

.whatsapp-float:hover {
    background: #1EBE5B;
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37,211,102,0.5);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

/* ─── WHATSAPP MODAL ─── */
.whatsapp-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1100;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(2px);
}

.whatsapp-modal-backdrop.open {
    display: flex;
}

.whatsapp-modal {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 28px;
    max-width: 400px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    position: relative;
    text-align: center;
    animation: modalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.whatsapp-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--text-muted);
    cursor: pointer;
}

.whatsapp-modal-close:hover {
    color: var(--red);
}

.whatsapp-modal-icon {
    width: 56px;
    height: 56px;
    background: #E8F5EE;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: #25D366;
}

.whatsapp-modal-icon svg {
    width: 28px;
    height: 28px;
}

.whatsapp-modal h3,
.whatsapp-modal .whatsapp-modal-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--blue);
    margin-bottom: 6px;
}

.whatsapp-modal p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.whatsapp-modal .btn-whatsapp-modal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25D366;
    color: white;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(37,211,102,0.3);
    transition: all 0.2s;
    text-decoration: none;
    width: 100%;
}

.whatsapp-modal .btn-whatsapp-modal:hover {
    background: #1EBE5B;
    transform: translateY(-1px);
}

.whatsapp-modal .dismiss-link {
    display: block;
    margin-top: 12px;
    font-size: 0.78rem;
    color: var(--text-muted);
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

.whatsapp-modal .dismiss-link:hover {
    color: var(--text-secondary);
}

/* ─── MAIN LAYOUT ─── */
.main-layout {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: flex-start;
}

.main-content { min-width: 0; }

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--border-light);
}

.section-head h2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--blue);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-head h2 span {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.filter-bar {
    display: flex;
    gap: 8px;
    align-items: center;
}

.filter-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-gray);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--blue);
    color: white;
    border-color: var(--blue);
}

/* Active filter pills */
.active-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--red-light);
    color: var(--red);
    font-size: 0.76rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
    border: 1px solid rgba(196,22,28,0.2);
}

.filter-pill a {
    color: var(--red);
    font-weight: 800;
    font-size: 0.9rem;
    line-height: 1;
}

/* ─── JOB CARDS ─── */
.job-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.job-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 22px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: all 0.2s ease-in-out;
    position: relative;
}

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

.card-stripe {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: var(--radius) 0 0 var(--radius);
}

.stripe-cas { background: var(--red); }
.stripe-728 { background: var(--blue); }
.stripe-practicas { background: var(--success); }
.stripe-other { background: var(--gold); }

/* ─── JOB DEADLINE FLAG (Prominent) ─── */
.job-deadline-flag {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
    z-index: 2;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.job-deadline-flag.tag-urgent {
    background: var(--red);
    color: #fff;
    animation: pulse-urgent 2s infinite;
}

.job-deadline-flag.tag-warning {
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #FCD34D;
}

@keyframes pulse-urgent {
    0%, 100% { box-shadow: 0 2px 6px rgba(196,22,28,0.3); }
    50% { box-shadow: 0 2px 12px rgba(196,22,28,0.5); }
}

.card-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    flex-shrink: 0;
    background: var(--bg-gray);
    color: var(--blue);
    overflow: hidden;
}

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

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

.card-body .org {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 2px;
}

.card-body .title {
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.35;
}

.card-body .title:hover { color: var(--red); }

.card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.card-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    color: var(--text-secondary);
    background: var(--bg-gray);
    padding: 3px 9px;
    border-radius: 100px;
    border: 1px solid var(--border-light);
}

.card-tag svg { width: 12px; height: 12px; }

.tag-urgent {
    background: var(--red-light);
    color: var(--red);
    font-weight: 700;
    border-color: rgba(196,22,28,0.2);
}

.tag-warning {
    background: #FEF3C7;
    color: #92400E;
    border-color: #FCD34D;
    font-weight: 700;
}

.tag-expired {
    background: #EAEAEA;
    color: #777;
}

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

.card-footer .salary {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--red);
}

.card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-details {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--red);
    color: white;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.btn-details:hover { background: var(--red-dark); }

.btn-share {
    background: var(--bg-gray);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
}

.btn-share:hover {
    border-color: var(--red);
    color: var(--red);
}

.btn-share svg { width: 14px; height: 14px; }

/* ─── SIDEBAR ─── */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.sidebar-card-header {
    background: var(--bg-gray);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-card-body { padding: 12px 16px; }

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

.sidebar-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all 0.15s;
}

.sidebar-list a:hover,
.sidebar-list a.active {
    background: var(--red-light);
    color: var(--red);
    font-weight: 600;
}

.sidebar-badge {
    background: var(--bg-gray);
    color: var(--text-muted);
    font-size: 0.7rem;
    padding: 2px 7px;
    border-radius: 100px;
    font-weight: 600;
}

.sidebar-list a:hover .sidebar-badge {
    background: var(--red);
    color: white;
}

.newsletter-box {
    background: linear-gradient(135deg, var(--red-light) 0%, #FFF5F5 100%);
    border: 1px solid rgba(196,22,28,0.2);
    border-radius: var(--radius);
    padding: 18px;
}

.newsletter-box h3,
.newsletter-box .newsletter-title {
    font-size: 0.94rem;
    color: var(--red-dark);
    font-weight: 800;
    margin-bottom: 6px;
}

.newsletter-box p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.newsletter-box .btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #15803D;
    color: #FFFFFF;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.84rem;
    box-shadow: 0 3px 10px rgba(37,211,102,0.25);
    transition: all 0.2s;
}

.newsletter-box .btn-whatsapp:hover {
    background: #1EBE5B;
    transform: translateY(-1px);
}

.urgent-item {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.urgent-item:last-child { border-bottom: none; }

.urgent-item .ui-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.urgent-item .ui-title:hover { color: var(--red); }

.urgent-item .ui-meta {
    font-size: 0.7rem;
    color: var(--red);
    font-weight: 600;
    display: flex;
    justify-content: space-between;
}

/* ─── CATEGORIES SECTION ─── */
.categories-section {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 1.5rem;
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.cat-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    transition: all 0.2s;
}

.cat-card:hover {
    border-color: var(--red);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.cat-card .cat-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--blue-light);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-card .cat-icon svg { width: 22px; height: 22px; }

.cat-card .cat-name {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-primary);
}

.cat-card .cat-count {
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ─── SEO LINKS MATRIX ─── */
.seo-links-section {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 2rem 1.5rem;
    background: var(--bg-gray);
    border-radius: var(--radius-lg);
}

.seo-links-section h3,
.seo-links-section h2 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--blue);
    margin-bottom: 1.2rem;
}

.seo-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.seo-link-col h4,
.seo-link-col h3 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    border-bottom: 2px solid var(--red);
    padding-bottom: 4px;
    display: inline-block;
}

.seo-link-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.seo-link-col a {
    font-size: 0.78rem;
    color: var(--text-secondary);
    transition: color 0.15s;
}

.seo-link-col a:hover { color: var(--red); }

/* ─── PAGINATION ─── */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 2rem;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.page-link:hover,
.page-link.active {
    background: var(--red);
    color: white;
    border-color: var(--red);
}

.page-link.disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* ─── OFERTA DETALLE (ver.html) ─── */
.offer-detail-container {
    max-width: 1200px;
    margin: 1.5rem auto 3rem;
    padding: 0 1.5rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.breadcrumb a { color: var(--blue); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb svg { width: 12px; height: 12px; }

.offer-header-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.offer-header-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--red);
}

.offer-org-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.entity-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--blue);
    letter-spacing: 0.04em;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--success);
    background: var(--success-bg);
    padding: 2px 8px;
    border-radius: 100px;
}

.verified-badge svg { width: 12px; height: 12px; }

.offer-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.25;
    margin-bottom: 16px;
}

.offer-quick-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-primary-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--red);
    color: white;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.88rem;
    transition: all 0.2s;
}

.btn-primary-action:hover {
    background: var(--red-dark);
    box-shadow: 0 4px 14px rgba(196,22,28,0.3);
}

.btn-secondary-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-gray);
    color: var(--blue);
    border: 1.5px solid var(--border);
    padding: 11px 18px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.88rem;
    transition: all 0.2s;
}

.btn-secondary-action:hover {
    border-color: var(--blue);
    background: var(--blue-light);
}

/* Fact boxes */
.offer-facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 1.5rem;
}

.fact-box {
    background: var(--bg-gray);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 14px 16px;
}

.fact-box .fact-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.fact-box .fact-value {
    font-size: 0.96rem;
    font-weight: 800;
    color: var(--text-primary);
}

.fact-box .fact-value.salary { color: var(--success); }

/* Section cards */
.section-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.6rem 1.8rem;
    margin-bottom: 1.4rem;
}

.section-card h2 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--blue);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-card h2::before {
    content: "";
    width: 4px;
    height: 18px;
    background: var(--red);
    border-radius: 2px;
}

.section-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
}

.section-card ul {
    padding-left: 1.2rem;
    margin-bottom: 0.8rem;
}

.section-card li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.notice-cas {
    background: var(--red-light);
    border-left: 4px solid var(--red);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 1.2rem 0;
}

.notice-cas strong { color: var(--red); }

/* Timeline */
.timeline {
    list-style: none;
    margin: 1.25rem 0;
    padding: 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 10px;
    bottom: 12px;
    width: 2px;
    background: #E2E8F0;
}

.timeline li {
    position: relative;
    padding-left: 28px;
    padding-bottom: 18px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    border-bottom: none;
}

.timeline li:last-child {
    padding-bottom: 4px;
}

.timeline li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 3px solid var(--red);
    box-shadow: 0 0 0 3px rgba(196, 22, 28, 0.12);
    z-index: 2;
    transition: all 0.2s ease;
}

.timeline li:hover::before {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(18, 40, 64, 0.15);
}

.timeline .tl-date {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--red);
    background: var(--red-light);
    border: 1px solid rgba(196, 22, 28, 0.15);
    padding: 3px 10px;
    border-radius: 6px;
    min-width: 140px;
    max-width: 200px;
    flex-shrink: 0;
    line-height: 1.35;
    text-align: center;
}

.timeline .tl-event {
    font-size: 0.88rem;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.45;
    flex: 1;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 6px;
        top: 8px;
        bottom: 10px;
    }

    .timeline li {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding-left: 24px;
        padding-bottom: 16px;
    }

    .timeline li::before {
        left: 2px;
        top: 4px;
        width: 10px;
        height: 10px;
        border-width: 2.5px;
    }

    .timeline .tl-date {
        min-width: auto;
        max-width: 100%;
        display: inline-block;
        font-size: 0.76rem;
        padding: 2.5px 8px;
        text-align: left;
    }

    .timeline .tl-event {
        font-size: 0.84rem;
        line-height: 1.45;
        width: 100%;
    }
}

/* Tarjetas de Otras Convocatorias de la Entidad */
.related-job-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #FFFFFF;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.2s ease;
}

.related-job-card:hover {
    border-color: var(--blue) !important;
    background: #F8FAFC !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(18, 40, 64, 0.08);
}

.related-job-card:hover .related-job-title {
    color: var(--red) !important;
}

.related-job-card:hover .related-job-arrow {
    color: var(--blue) !important;
    transform: translateX(3px);
}

.related-job-arrow {
    transition: transform 0.2s ease, color 0.2s ease;
}

@media (max-width: 700px) {
    .related-job-card {
        padding: 12px 14px;
    }
    .related-job-arrow {
        display: none;
    }
}

/* ─── MODAL DE COMPARTIR ─── */
.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(2px);
}

.modal-backdrop.open { display: flex; }

.share-modal {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 24px;
    max-width: 440px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: modalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.share-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--text-muted);
    cursor: pointer;
}

.share-modal-close:hover { color: var(--red); }

.share-modal-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--blue);
    margin-bottom: 4px;
}

.share-modal-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.share-options-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.share-opt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 6px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-gray);
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 600;
    transition: all 0.2s;
}

.share-opt:hover {
    border-color: var(--red);
    color: var(--red);
    background: var(--red-light);
}

.share-opt svg { width: 22px; height: 22px; }

/* ─── FOOTER ─── */
footer {
    background: var(--blue-dark);
    color: rgba(255,255,255,0.8);
    padding: 3rem 0 1.5rem;
    border-top: 4px solid var(--red);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    margin-bottom: 14px;
    letter-spacing: 0.02em;
}

.footer-col p {
    font-size: 0.8rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.7);
    margin-bottom: 12px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col a {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    transition: color 0.15s;
}

.footer-col a:hover { color: white; }

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.footer-social a,
.footer-social span {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: rgba(255,255,255,0.7);
    transition: all 0.2s;
}

.footer-social a:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
    transform: translateY(-2px);
}

.footer-social .disabled {
    opacity: 0.32;
    cursor: not-allowed;
    pointer-events: none;
    background: rgba(255,255,255,0.05);
}

.footer-social svg { width: 16px; height: 16px; }

.footer-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.78rem;
}

.footer-contact svg { color: rgba(255,255,255,0.5); flex-shrink: 0; }

.footer-contact a {
    color: rgba(255,255,255,0.8) !important;
    font-weight: 500;
}

.footer-contact a:hover {
    color: #fff !important;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.74rem;
    color: rgba(255,255,255,0.5);
    flex-wrap: wrap;
    gap: 10px;
}

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

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
    .main-layout { grid-template-columns: 1fr; }
    .offer-facts { grid-template-columns: repeat(2, 1fr); }
    .seo-links-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    nav ul {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: min(340px, 85vw);
        height: 100vh;
        background: var(--bg);
        flex-direction: column;
        padding: 20px 0;
        z-index: 1000;
        box-shadow: -4px 0 30px rgba(0,0,0,0.15);
        overflow-y: auto;
    }

    nav ul.mobile-open { display: flex; }
    .mobile-menu-btn { display: flex; }

    nav ul li { width: 100%; border-bottom: 1px solid var(--border-light); }
    nav ul li a { padding: 14px 20px; font-size: 0.9rem; width: 100%; }

    .dropdown, .dropdown-wide {
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        transform: none;
        padding: 0 20px 10px;
        min-width: 100%;
    }

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

    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
    .top-bar { display: none; }
    .header-inner { height: 60px; }
    .hero-banner { padding: 1.5rem 1rem 2rem; }
    .hero-banner h1, .hero-banner .hero-title { font-size: 1.35rem; }
    .hero-banner p { font-size: 0.84rem; }
    .search-container { margin-top: -1rem; padding: 0 1rem; }
    .search-box { flex-direction: column; padding: 12px; }
    .search-field { width: 100%; }
    .search-btn { width: 100%; justify-content: center; }
    .main-layout { padding: 0 1rem; }
    .job-card { padding: 14px; }
    .footer-inner { grid-template-columns: 1fr; }
    .seo-links-grid { grid-template-columns: 1fr; }
    .offer-facts { grid-template-columns: 1fr 1fr; }
    .offer-title { font-size: 1.2rem; }
    .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
    .section-head h2 { font-size: 1rem; }
    .filter-bar { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
    .user-nav-btn { padding: 5px 10px; font-size: 0.75rem; }
    .user-nav-avatar { width: 22px; height: 22px; font-size: 0.68rem; }
    .user-nav-menu { min-width: 180px; right: -10px; }
    .user-nav-btn span:not(.user-nav-avatar) { display: none; }
    .whatsapp-modal { padding: 20px; margin: 0.5rem; max-width: calc(100% - 1rem); }
    .whatsapp-modal-icon { width: 48px; height: 48px; }
    .whatsapp-modal-icon svg { width: 24px; height: 24px; }
    .whatsapp-modal h3 { font-size: 1rem; }
    .whatsapp-modal p { font-size: 0.82rem; }
    .info-cas-section { padding: 2rem 1rem; }
    .info-cas-inner { grid-template-columns: 1fr; gap: 1.5rem; text-align: center; }
    .info-cas-illustration svg { max-width: 160px; }
    .info-cas-text h2 { font-size: 1.15rem; }
    .info-cas-text p { font-size: 0.84rem; }
    .btn-info-more { width: 100%; justify-content: center; }
    .user-nav-dropdown.mobile-open .user-nav-menu { opacity: 1; visibility: visible; transform: translateY(0); }
    .postulante-header { flex-direction: column; text-align: center; }
    .postulante-header > div:first-child { flex-direction: column; }
    .postulante-header-actions { width: 100%; justify-content: center; flex-wrap: wrap; }
    .logo-subtitle { font-size: 0.58rem; letter-spacing: 0.03em; }
    .offer-header-card { padding: 16px; }
    .offer-title { font-size: 1.1rem; margin-bottom: 12px; }
    .offer-quick-actions { flex-direction: column; }
    .offer-quick-actions .btn-primary-action,
    .offer-quick-actions .btn-secondary-action { width: 100%; justify-content: center; }
    .offer-facts { grid-template-columns: 1fr 1fr; gap: 8px; }
    .fact-box { padding: 10px 12px; }
    .fact-box .fact-label { font-size: 0.62rem; }
    .fact-box .fact-value { font-size: 0.82rem; }
    .section-card { padding: 1rem 1.2rem; margin-bottom: 1rem; }
    .section-card h2 { font-size: 1rem; margin-bottom: 0.6rem; }
    .section-card p, .section-card li { font-size: 0.84rem; }
}

/* ─── ACCESSIBILITY UTILITIES ─── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.footer-col h4,
.footer-col .footer-heading {
    font-size: 0.88rem;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

/* ─── SEO EDITORIAL CARD ─── */
.seo-editorial-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    box-shadow: var(--shadow-sm);
    margin-top: 2rem;
}
.seo-editorial-card h2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--blue);
    margin-top: 0;
    margin-bottom: 12px;
}
.seo-editorial-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 12px;
}
.seo-editorial-card p:last-child {
    margin-bottom: 0;
}
.seo-editorial-card ul {
    margin: 8px 0 16px 20px;
    padding: 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}



/* ─── BANNER CONSENTIMIENTO DE COOKIES ─── */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: #0E1A29;
    color: #E2E8F0;
    padding: 16px 24px;
    box-shadow: 0 -4px 25px rgba(0,0,0,0.45);
    z-index: 2147483647;
    font-size: 0.88rem;
    line-height: 1.55;
    border-top: 1px solid rgba(255,255,255,0.18);
}
.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.cookie-banner-text {
    flex: 1;
    min-width: 280px;
}
.cookie-banner-text a {
    color: #60A5FA;
    text-decoration: underline;
    font-weight: 600;
}
.cookie-banner-btn {
    background: var(--red);
    color: #ffffff;
    border: none;
    padding: 10px 26px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: opacity 0.2s;
    flex-shrink: 0;
}
.cookie-banner-btn:hover {
    opacity: 0.9;
}

/* ─── SECCION RECURSOS Y GUIAS (PORTADA) ─── */
.home-guias-section {
    margin: 2.5rem 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
}
.home-guias-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 12px;
}
.home-guias-badge {
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--red);
    display: block;
    margin-bottom: 4px;
}
.home-guias-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--blue);
    margin: 0;
}
.home-guias-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 4px 0 0;
}
.home-guias-all-link {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--blue);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.home-guias-all-link svg {
    width: 14px;
    height: 14px;
}
.home-guias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}
.home-guia-card {
    background: var(--bg-gray);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.home-guia-tag {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}
.home-guia-tag-cas { background: var(--blue-light); color: var(--blue); }
.home-guia-tag-leg { background: #E0E7FF; color: #3730A3; }
.home-guia-tag-cv  { background: #FEF3C7; color: #92400E; }
.home-guia-card h3 {
    font-size: 1rem;
    font-weight: 800;
    margin: 8px 0 6px;
    line-height: 1.35;
}
.home-guia-card h3 a {
    color: var(--blue);
    text-decoration: none;
}
.home-guia-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}
.home-guia-card-footer {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
}
.home-guia-card-footer a {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--red);
    text-decoration: none;
}

/* ─── CAJA DE GUIAS RECOMENDADAS (DETALLE DE OFERTA) ─── */
.oferta-guias-callout {
    border-left: 4px solid var(--blue);
    background: #FAFBFD;
}
.oferta-guias-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.oferta-guias-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--blue-light);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.oferta-guias-icon svg { width: 18px; height: 18px; }
.oferta-guias-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--blue);
    margin: 0;
}
.oferta-guias-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.oferta-guias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 14px;
}
.oferta-guia-item {
    display: block;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    text-decoration: none;
    transition: border-color 0.2s;
}
.oferta-guia-item:hover {
    border-color: var(--blue);
}
.oferta-guia-item strong {
    display: block;
    font-size: 0.86rem;
    color: var(--blue);
    margin-bottom: 4px;
}
.oferta-guia-item span {
    font-size: 0.76rem;
    color: var(--text-muted);
    line-height: 1.4;
    display: block;
}

/* ─── CENTRO DE GUIAS (SECCION /guias) ─── */
.guias-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem 4rem;
}
.guias-hero {
    background: linear-gradient(135deg, #102A43 0%, #1E3A8A 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-md);
}
.guias-hero-content {
    max-width: 780px;
}
.guias-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}
.guias-hero-badge svg { width: 14px; height: 14px; }
.guias-hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1rem;
    color: #fff;
}
.guias-hero p {
    font-size: 1.02rem;
    line-height: 1.65;
    color: #E0E7FF;
    margin-bottom: 1.5rem;
}
.guias-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.guias-hero-btn-primary {
    background: var(--red);
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    display: inline-block;
}
.guias-hero-btn-secondary {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    display: inline-block;
}
.guias-section-head {
    margin-bottom: 1.4rem;
}
.guias-section-head h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--blue);
    margin: 0;
}
.guias-section-head p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 4px 0 0;
}
.guias-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.guia-card {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.guia-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--blue);
}
.guia-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.guia-card-tag {
    background: var(--blue-light);
    color: var(--blue);
    font-size: 0.74rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
}
.guia-card-time {
    font-size: 0.74rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.guia-card-time svg { width: 13px; height: 13px; }
.guia-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 10px;
}
.guia-card h3 a {
    color: var(--blue);
    text-decoration: none;
}
.guia-card p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
}
.guia-card-footer {
    border-top: 1px solid var(--border-light);
    padding-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.guia-card-date {
    font-size: 0.76rem;
    color: var(--text-muted);
}
.guia-card-link {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--red);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.guias-eeat-card {
    margin-top: 3.5rem;
    background: #FAFBFD;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}
.guias-eeat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--blue-light);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.guias-eeat-icon svg { width: 24px; height: 24px; }
.guias-eeat-text {
    flex: 1;
    min-width: 280px;
}
.guias-eeat-text h4 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--blue);
    margin-bottom: 4px;
}
.guias-eeat-text p {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ─── DETALLE DE ARTICULO DE GUIA (/guias/{slug}) ─── */
.guia-detail-container {
    max-width: 960px;
    margin: 2rem auto;
    padding: 0 1.5rem 4rem;
}
.guia-article-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    box-shadow: var(--shadow-sm);
}
.guia-article-header {
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 1.8rem;
}
.guia-article-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.guia-article-meta-tag {
    background: var(--blue-light);
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 999px;
}
.guia-article-meta-item {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.guia-article-meta-item svg { width: 14px; height: 14px; }
.guia-article-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--blue);
    line-height: 1.25;
    margin-bottom: 14px;
}
.guia-article-author-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 1.2rem;
}
.guia-article-author-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.guia-article-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #0F2742;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
}
.guia-article-author-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--blue);
}
.guia-article-author-role {
    font-size: 0.76rem;
    color: var(--text-muted);
}
.guia-article-summary {
    margin-top: 1.5rem;
    background: #F8FAFC;
    border-left: 4px solid var(--red);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.94rem;
    line-height: 1.7;
    color: var(--text-secondary);
}
.guia-article-content {
    font-size: 0.96rem;
    line-height: 1.8;
    color: var(--text-primary);
}
.guia-article-footer {
    margin-top: 3.5rem;
    border-top: 2px solid var(--border-light);
    padding-top: 2rem;
}
.guia-author-box {
    background: #F8FAFC;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}
.guia-author-box-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.guia-author-box-body {
    flex: 1;
    min-width: 260px;
}
.guia-author-box-name {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--blue);
    margin-bottom: 4px;
}
.guia-author-box-bio {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}
.guia-disclaimer-box {
    margin-top: 1.2rem;
    background: #FFFDF5;
    border: 1px solid #FCD34D;
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    font-size: 0.82rem;
    color: #92400E;
    line-height: 1.6;
}
.guia-related-section {
    margin-top: 3rem;
}
.guia-related-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--blue);
    margin-bottom: 1.2rem;
}
.guia-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}
.guia-related-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.guia-related-card h4 {
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 8px 0;
}
.guia-related-card h4 a {
    color: var(--blue);
    text-decoration: none;
}
.guia-related-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
}
.guia-related-link {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--red);
    text-decoration: none;
}
.guia-cta-box {
    margin-top: 3rem;
    text-align: center;
    background: var(--bg-gray);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 1.5rem;
}
.guia-cta-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--blue);
    margin-bottom: 8px;
}
.guia-cta-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 1.5rem;
}
