:root {
    --primary: #0056b3;
    --primary-dark: #003d80;
    --secondary: #17a2b8;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --light: #f8f9fa;
    --dark: #212529;
    --vigente: #28a745;
    --proxima: #fd7e14;
    --cerrada: #6c757d;
    --anulada: #dc3545;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #1a1a2e;
}

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

a:hover {
    color: var(--primary-dark);
}

/* Navbar */
.navbar-brand {
    font-size: 1.3rem;
}

.brand-icon {
    font-size: 1.5rem;
}

/* Hero */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.hero-section h1 {
    color: white;
    font-size: 2.5rem;
}

.hero-section .lead {
    color: rgba(255,255,255,0.9);
}

/* Cards */
.card-convocatoria {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

.card-convocatoria:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.card-convocatoria .card-body {
    padding: 1.5rem;
}

.card-convocatoria .card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.card-convocatoria .card-title a {
    color: #1a1a2e;
}

.card-convocatoria .card-title a:hover {
    color: var(--primary);
}

/* Badges de estado */
.badge-vigente {
    background-color: var(--vigente);
    color: white;
}

.badge-proxima {
    background-color: var(--proxima);
    color: white;
}

.badge-cerrada {
    background-color: var(--cerrada);
    color: white;
}

.badge-anulada {
    background-color: var(--anulada);
    color: white;
}

.badge-default {
    background-color: #6c757d;
    color: white;
}

/* Info items */
.info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #555;
}

.info-item .icon {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* Página de convocatoria / puesto */
.page-header {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.page-header h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.detalle-box {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.detalle-box h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
}

.detalle-box table {
    width: 100%;
}

.detalle-box th {
    width: 35%;
    color: #666;
    font-weight: 600;
    padding: 0.5rem 0;
}

.detalle-box td {
    padding: 0.5rem 0;
}

/* Sidebar */
.sidebar-box {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.sidebar-box h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Puestos relacionados */
.puesto-relacionado {
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
    margin-bottom: 1rem;
}

.puesto-relacionado a {
    font-weight: 600;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--primary);
}

/* Pagination */
.pagination .page-link {
    color: var(--primary);
    border-radius: 6px;
    margin: 0 2px;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Institución card */
.institucion-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 1.5rem;
}

.institucion-logo {
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
    margin-bottom: 1rem;
}

/* Hero del perfil de institución */
.institucion-hero {
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    border: 1px solid #dbe9f9;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}
.institucion-hero h1 {
    font-size: 1.9rem;
    font-weight: 700;
}
.institucion-logo-lg {
    max-width: 110px;
    max-height: 110px;
    object-fit: contain;
}
.institucion-logo-placeholder {
    width: 110px;
    height: 110px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: #eef4fb;
    border-radius: 50%;
}

/* Listado de instituciones */
.institucion-logo-sm {
    width: 56px;
    height: 56px;
    object-fit: contain;
    flex-shrink: 0;
}
.institucion-logo-placeholder-sm {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    background: #eef4fb;
    border-radius: 50%;
}
.hover-shadow {
    transition: transform 0.2s, box-shadow 0.2s;
}
.hover-shadow:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.12) !important;
}

/* Filtro alfabético */
.filtro-alfabetico .btn {
    min-width: 38px;
    border-radius: 8px;
}
.filtro-alfabetico .btn.disabled {
    opacity: 0.35;
    pointer-events: none;
}

/* Stats */
.stat-box {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.stat-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.stat-box .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}
.stat-box .stat-label {
    color: #666;
    font-size: 0.9rem;
}

.stat-box-vigente .stat-number { color: var(--vigente); }
.stat-box-vigente:hover { border-bottom: 4px solid var(--vigente); }
.stat-box-proxima .stat-number { color: var(--proxima); }
.stat-box-proxima:hover { border-bottom: 4px solid var(--proxima); }
.stat-box-cerrada .stat-number { color: var(--cerrada); }
.stat-box-cerrada:hover { border-bottom: 4px solid var(--cerrada); }

/* Urgencia - cierran esta semana */
.urgencia-section {
    background: linear-gradient(135deg, #fff5f5 0%, #fff0f0 100%);
    border: 1px solid #ffcdd2;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}
.urgencia-icon { font-size: 1.5rem; }
.urgencia-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #c62828;
}
.urgencia-card {
    display: block;
    background: white;
    border-radius: 12px;
    padding: 1rem 1.15rem;
    border: 1px solid #e9ecef;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    height: 100%;
}
.urgencia-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: var(--danger);
}
.urgencia-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.35;
    margin-bottom: 0.5rem;
}
.urgencia-dias {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--danger);
    background: #ffebee;
    padding: 0.2rem 0.5rem;
    border-radius: 50px;
}
.urgencia-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #666;
}

/* Cards con borde lateral por estado */
.card-border-vigente { border-left: 5px solid var(--vigente) !important; }
.card-border-proxima { border-left: 5px solid var(--proxima) !important; }
.card-border-cerrada { border-left: 5px solid var(--cerrada) !important; }
.card-border-default  { border-left: 5px solid #dee2e6 !important; }
.stat-box {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 1rem;
}

.stat-box .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-box .stat-label {
    color: #666;
    font-size: 0.9rem;
}

/* Botones CTA */
.btn-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-cta:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,86,179,0.3);
}

/* Botón descargar bases */
.btn-bases {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
}

.btn-bases:hover {
    color: white;
    background: #138496;
}

/* Ver enlace original */
.btn-original {
    background: white;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
}

.btn-original:hover {
    background: var(--primary);
    color: white;
}

/* Footer badges */
footer .badge {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
}

/* Admin login */
.admin-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.admin-login .card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    max-width: 400px;
    width: 100%;
    margin: 1rem;
}

/* Admin dashboard */
.admin-sidebar {
    min-height: 100vh;
    background: var(--dark);
    color: white;
    padding: 1.5rem 0;
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 0.75rem 1.5rem;
    border-radius: 0;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: white;
    background: rgba(255,255,255,0.1);
}

/* Tablas admin */
.table-admin th {
    background: #f8f9fa;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .page-header h1 {
        font-size: 1.4rem;
    }
    
    .detalle-box table th {
        width: 45%;
    }
    
    .stat-box .stat-number {
        font-size: 1.5rem;
    }
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Animación de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.5s ease-out;
}

/* Print styles */
@media print {
    .navbar, footer, .btn, .sidebar-box {
        display: none !important;
    }
    
    .page-header, .detalle-box {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ============================================================
   BOTONES DE COMPARTIR
   ============================================================ */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 1rem 0;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}
.share-label {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
    margin-right: 4px;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    color: #fff;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}
.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    color: #fff;
}
.share-whatsapp { background: #25d366; }
.share-facebook { background: #1877f2; }
.share-twitter { background: #000000; }
.share-linkedin { background: #0a66c2; }
.share-telegram { background: #0088cc; }
.share-copy { background: #6c757d; }
.share-copied { background: #198754 !important; }


/* ============================================================
   PÁGINA DE CONVOCATORIA — REDISEÑO VISUAL
   ============================================================ */

/* Hero con gradiente */
.conv-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 86, 179, 0.25);
    animation: fadeInUp 0.5s ease-out;
}

.conv-hero h1 {
    color: white;
    font-size: 1.75rem;
    line-height: 1.35;
    margin-bottom: 1.25rem;
}

.conv-badge {
    font-size: 0.85rem;
    padding: 0.5rem 0.9rem;
    border-radius: 50px;
}

.conv-badge-light {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(4px);
}

.conv-hero-institucion {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.conv-hero-logo {
    max-height: 56px;
    max-width: 96px;
    object-fit: contain;
    background: white;
    border-radius: 10px;
    padding: 6px;
}

.conv-hero-inst-nombre {
    font-weight: 700;
    font-size: 1.05rem;
}

.conv-hero-inst-link {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
}

.conv-hero-inst-link:hover {
    color: white;
    text-decoration: underline;
}

/* Datos rápidos del hero */
.conv-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.conv-fact {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    backdrop-filter: blur(4px);
}

.conv-fact-icon {
    font-size: 1.2rem;
}

.conv-fact-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.8);
}

.conv-fact-value {
    font-weight: 700;
    font-size: 0.95rem;
    color: white;
}

.conv-fact-link {
    color: white;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.5);
    transition: opacity 0.2s ease;
}

.conv-fact-link:hover {
    color: white;
    opacity: 0.85;
    border-bottom-style: solid;
}

/* Botones de compartir dentro del hero */
.conv-hero .share-buttons {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    margin-bottom: 0;
}

.conv-hero .share-label {
    color: rgba(255, 255, 255, 0.85);
}

/* Títulos de sección */
.conv-section-title {
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid #eef1f5;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.conv-count-pill {
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50px;
    padding: 0.15rem 0.6rem;
}

/* Grilla de información general */
.conv-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.conv-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: #f8fafc;
    border: 1px solid #eef1f5;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.conv-info-item:hover {
    border-color: #cfe0f5;
    box-shadow: 0 2px 8px rgba(0, 86, 179, 0.08);
}

.conv-info-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.conv-info-item > div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.conv-info-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8a94a6;
    margin-bottom: 0.1rem;
}

.conv-info-value {
    font-size: 0.92rem;
    color: #2d3748;
    font-weight: 500;
    word-break: break-word;
}

/* Links de interés */
.conv-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}

.conv-link-card {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.2s;
}

.conv-link-card:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.25);
}

.conv-link-icon {
    font-size: 1.1rem;
}

/* Tarjetas de puestos */
.conv-puesto-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    height: 100%;
    background: white;
    border: 1px solid #e9ecef;
    border-left: 4px solid var(--primary);
    border-radius: 12px;
    padding: 1rem 1.15rem;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.conv-puesto-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-left-color: var(--secondary);
    color: inherit;
}

.conv-puesto-titulo {
    font-weight: 700;
    color: #1a1a2e;
    font-size: 0.98rem;
    line-height: 1.35;
}

.conv-puesto-card:hover .conv-puesto-titulo {
    color: var(--primary);
}

.conv-puesto-icon {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 0.25rem;
}

.conv-puesto-badges {
    color: var(--primary);
}

.conv-puesto-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.conv-puesto-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.conv-pill {
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 50px;
    padding: 0.25rem 0.7rem;
}

.conv-pill-sueldo {
    background: #e8f7ee;
    color: #1e7e34;
}

.conv-pill-vacantes {
    background: #eef4fc;
    color: var(--primary);
}

/* Pills de profesiones */
.conv-prof-pill {
    display: inline-block;
    background: #eef4fc;
    color: var(--primary);
    border: 1px solid #d3e2f7;
    border-radius: 50px;
    padding: 0.4rem 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.2s;
}

.conv-prof-pill:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Cajas CTA (bases / enlace oficial) */
.conv-cta-box {
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    animation: fadeInUp 0.5s ease-out;
}

.conv-cta-box h2 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.conv-cta-box p {
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.conv-cta-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.conv-cta-bases {
    background: linear-gradient(135deg, #e6f7f9 0%, #d4eef5 100%);
    border: 1px solid #b6e3ec;
}

.conv-cta-bases h2,
.conv-cta-bases p {
    color: #0c5460;
}

.conv-cta-original {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
}

.conv-cta-original h2 {
    color: #2d3748;
}

.conv-cta-original p {
    color: #64748b;
}

/* Botón Postular */
.btn-postular {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
    display: block;
}
.btn-postular:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* Countdown grande (sidebar) */
.conv-countdown-urgente {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe0e0 100%);
    border: 2px solid #ff6b6b;
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 1rem;
    text-align: center;
    animation: pulseUrgente 2s infinite;
}
@keyframes pulseUrgente {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(255, 107, 107, 0); }
}
.conv-countdown-urgente .conv-countdown-num {
    color: #c62828;
    font-size: 3rem;
}
.conv-countdown-urgente .conv-countdown-label {
    color: #c62828;
    font-weight: 700;
}
.conv-sidebar-sticky {
    position: sticky;
    top: 1rem;
}

.conv-status {
    border-top: 4px solid var(--vigente);
}

.conv-countdown {
    margin: 0.75rem 0 0.25rem;
}

.conv-countdown-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.conv-countdown-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Animación suave de las cajas */
.conv-page .detalle-box,
.conv-page .sidebar-box {
    animation: fadeInUp 0.45s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .conv-hero {
        padding: 1.5rem;
    }

    .conv-hero h1 {
        font-size: 1.35rem;
    }

    .conv-info-grid {
        grid-template-columns: 1fr;
    }

    .conv-sidebar-sticky {
        position: static;
    }

    .conv-countdown-num {
        font-size: 2rem;
    }
}

/* ============================================================
   PÁGINA DE PUESTO — EXTRAS
   ============================================================ */

/* Caja convocatoria padre (prominente) */
.conv-padre-box {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f0fe 100%);
    border: 2px solid #b6d4fe;
}
.conv-padre-logo {
    max-height: 64px;
    max-width: 96px;
    object-fit: contain;
    background: white;
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.conv-padre-titulo {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
}
.conv-padre-titulo:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Comparación de sueldos */
.sueldo-compare {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}
.sueldo-compare-item {
    text-align: center;
    padding: 1rem;
    border-radius: 12px;
}
.sueldo-compare-tu {
    background: linear-gradient(135deg, #e8f7ee 0%, #d4edda 100%);
    border: 2px solid #28a745;
}
.sueldo-compare-prom {
    background: linear-gradient(135deg, #e8f0fe 0%, #d6e4ff 100%);
    border: 2px solid var(--primary);
}
.sueldo-compare-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    margin-bottom: 0.25rem;
}
.sueldo-compare-val {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1a2e;
}
.sueldo-compare-range {
    font-size: 0.75rem;
    color: #888;
    margin-top: 0.25rem;
}
.sueldo-compare-vs {
    font-size: 1.2rem;
    font-weight: 700;
    color: #999;
}
.sueldo-compare-result {
    text-align: center;
    padding: 0.75rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
}
.sueldo-mayor {
    background: #e8f7ee;
    color: #1e7e34;
    border: 1px solid #c3e6cb;
}
.sueldo-menor {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

@media (max-width: 768px) {
    .sueldo-compare {
        grid-template-columns: 1fr;
    }
@media (max-width: 768px) {
    .sueldo-compare {
        grid-template-columns: 1fr;
    }
    .sueldo-compare-vs {
        text-align: center;
    }
}

/* ============================================================
   TARJETA DE FECHAS DE POSTULACIÓN (DENTRO DEL HERO)
   ============================================================ */

.conv-fechas-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.conv-fecha-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    flex: 1;
    justify-content: center;
}

.conv-fecha-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.conv-fecha-item > div {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.conv-fecha-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    font-weight: 600;
}

.conv-fecha-value {
    font-size: 0.95rem;
    color: #1e293b;
    font-weight: 700;
}

.conv-fecha-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, #cbd5e1, transparent);
    flex-shrink: 0;
}

/* Responsive: tarjeta de fechas */
@media (max-width: 768px) {
    .conv-fechas-card {
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
    }

    .conv-fecha-item {
        width: 100%;
        justify-content: flex-start;
        padding: 0.5rem 0;
    }

    .conv-fecha-divider {
        width: 100%;
        height: 1px;
        background: linear-gradient(to right, transparent, #cbd5e1, transparent);
    }
}

/* ============================================================
   BOTÓN FLOTANTE DE EDICIÓN (solo admin logueado lo ve)
   ============================================================ */
.btn-admin-edit {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1050;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.3rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-admin-edit:hover,
.btn-admin-edit:focus {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(217, 119, 6, 0.55);
    text-decoration: none;
}

@media (max-width: 768px) {
    .btn-admin-edit {
        bottom: 16px;
        right: 16px;
        padding: 0.6rem 1.1rem;
        font-size: 0.88rem;
    }
}


/* ============================================================
   NOTICIAS (listado, detalle, tarjetas)
   ============================================================ */
.noticia-card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.noticia-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.noticia-card-img-link {
    display: block;
    position: relative;
    z-index: 0;
}

.noticia-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.noticia-card-img-placeholder {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.noticia-card-title a {
    color: #1a1a2e;
}

.noticia-card-title a:hover {
    color: var(--primary);
}

/* Detalle de noticia */
.noticia-titulo {
    font-size: 2rem;
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

.noticia-meta {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
}

.noticia-imagen img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
}

.noticia-resumen {
    color: #4b5563;
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
}

.noticia-contenido {
    font-size: 1.05rem;
    line-height: 1.8;
}

.noticia-contenido h2,
.noticia-contenido h3,
.noticia-contenido h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.noticia-contenido img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.noticia-contenido ul,
.noticia-contenido ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.noticia-contenido blockquote {
    border-left: 4px solid var(--secondary);
    background: #f8f9fa;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    border-radius: 0 8px 8px 0;
    color: #4b5563;
}

/* Miniaturas en sidebar */
.noticia-thumb-sm {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.noticia-thumb-placeholder {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

@media (max-width: 768px) {
    .noticia-titulo {
        font-size: 1.5rem;
    }

    .noticia-card-img {
        height: 150px;
    }
}
