/* ==================================================================
   BASE
   ================================================================== */

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'Biryani', Verdana, sans-serif;
    background-color: #F8F9FA;
    margin: 0;
    display: flex;
    min-height: 100vh;
    color: #435563;
}

/* ==================================================================
   LAYOUT: SIDEBAR + CONTENT + NAVBAR SUPERIOR
   ================================================================== */

.sidebar {
    width: 240px;
    background: linear-gradient(180deg, #FF8200 0%, #E66F00 100%);
    color: #fff;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.sidebar .brand {
    font-size: 1.3rem;
    font-weight: 700;
    padding: 1.2rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.12);
    letter-spacing: 0.5px;
    color: #fff;
}

.sidebar .nav-link {
    color: #fff;
    font-weight: 500;
    padding: 0.9rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 0.5rem;
    margin: 0.2rem 1rem;
    transition: all 0.25s ease;
}

.sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(4px);
}

.sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.35);
    color: #fff;
    font-weight: 600;
}

.sidebar .nav-link i {
    font-size: 1.3rem;
    width: 24px;
    text-align: center;
}

.sidebar hr {
    border-color: rgba(255, 255, 255, 0.4);
}

/* Contenido principal */

.content {
    flex-grow: 1;
    margin-left: 240px;
    padding: 2rem;
    transition: margin-left 0.3s ease;
}

/* Navbar superior */

.navbar-top {
    background-color: #FFFFFF;
    border-bottom: 2px solid #FF8200;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
}

.logo-curridabat {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
}

.navbar-top span {
    color: #435563;
    font-weight: 700;
}

/* Bloque usuario */

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #F3F4F6;
    padding: 0.4rem 0.9rem;
    border-radius: 2rem;
    border: 1px solid #E5E7EB;
}

.user-info i {
    font-size: 1.3rem;
    color: #435563;
}

.user-info span {
    color: #435563;
    font-weight: 600;
    font-size: 0.95rem;
}

.user-info small {
    font-size: 0.8rem;
    color: #6c757d;
    display: block;
    line-height: 1.2;
}

/* Footer */

footer {
    text-align: center;
    padding: 1rem;
    color: #435563;
    font-size: 0.9rem;
    border-top: 1px solid #dee2e6;
}

/* ==================================================================
   RESPONSIVE LAYOUT
   ================================================================== */

@media (max-width: 992px) {
    .sidebar {
        /* Sidebar oculto por defecto en móvil/tablet */
        position: fixed;
        left: -260px;
        /* Ancho del sidebar + borde */
        top: 0;
        bottom: 0;
        width: 250px;
        z-index: 1050;
        box-shadow: 4px 0 15px rgba(0, 0, 0, 0.2);
    }

    .sidebar.show {
        left: 0;
        /* Mostrar sidebar */
    }

    .content {
        margin-left: 0;
        /* Contenido ocupa todo el ancho */
        padding: 1rem;
    }

    .sidebar .nav-link i {
        display: inline-block;
        /* Mostrar iconos en móvil */
    }

    /* Mostrar overlay cuando sidebar está activo */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
    }

    .sidebar-overlay.show {
        display: block;
    }
}

@media (max-width: 576px) {

    /* Ajustes adicionales para pantallas muy pequeñas */
    .navbar-top {
        padding: 0.5rem;
    }

    .brand-text {
        font-size: 1.1rem;
    }
}

/* ==================================================================
   REPORTES
   ================================================================== */

.report-header {
    color: #435563;
    border-left: 6px solid #FF8200;
    padding-left: 0.7rem;
}

.text-orange {
    color: #FF8200;
}

.btn-orange {
    background-color: #FF8200;
    border: none;
    color: white;
}

.btn-orange:hover {
    background-color: #e67600;
    color: white;
}

.card-top-border {
    border-top: 5px solid #FF8200 !important;
}

/* ==================================================================
   PLAZAS – GRID DE TARJETAS
   ================================================================== */

.plaza-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.2rem;
    justify-items: start;
    margin: 1.5rem 0;
}

.plaza-card {
    background-color: #fff;
    border-radius: 0.8rem;
    padding: 1.3rem;
    box-shadow: 0 3px 16px rgba(0, 0, 0, 0.08);
    border-top: 5px solid #FF8200;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease-in-out;
    width: 100%;
    max-width: 360px;
    min-height: 380px;
}

.plaza-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

.plaza-card h5 {
    color: #FF8200;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
    text-transform: capitalize;
}

.plaza-card .subtitulo {
    font-size: 0.88rem;
    color: #6c757d;
    margin-bottom: 0.8rem;
}

.plaza-card p {
    font-size: 0.9rem;
    color: #435563;
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

.plaza-card strong {
    color: #435563;
    font-weight: 600;
}

.bloque {
    background-color: #F4F5F7;
    padding: 0.7rem 0.9rem;
    border-radius: 0.5rem;
    margin-top: 0.7rem;
    font-size: 0.88rem;
    border-left: 4px solid #FF8200;
}

.bloque strong {
    display: block;
    color: #435563;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.acciones {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    gap: 0.4rem;
}

.acciones a.btn,
.acciones button.btn {
    flex: 1;
    font-size: 0.82rem;
    padding: 0.4rem 0.6rem;
    font-weight: 600;
}

.btn-outline-primary {
    border-color: #FF8200;
    color: #FF8200;
}

.btn-outline-primary:hover {
    background-color: #FF8200;
    color: #fff;
    border-color: #FF8200;
}

.btn-outline-danger {
    border-color: #C3423F;
    color: #C3423F;
}

.btn-outline-danger:hover {
    background-color: #C3423F;
    color: #fff;
}

.btn-nueva-plaza {
    background: linear-gradient(90deg, #FF8200 0%, #E66F00 100%);
    border: none;
    color: #fff;
    border-radius: 0.5rem;
    padding: 0.7rem 1.4rem;
    font-weight: 700;
    transition: transform 0.2s ease;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.btn-nueva-plaza:hover {
    transform: scale(1.04);
    background: linear-gradient(90deg, #E66F00 0%, #CC5F00 100%);
}

.titulo-pagina {
    color: #435563;
    text-align: left;
    margin-top: 1.5rem;
    font-weight: 700;
    font-size: 1.4rem;
    margin-left: 0.5rem;
}

.no-plazas {
    text-align: center;
    color: #6c757d;
    font-size: 1.05rem;
    margin-top: 2rem;
}

@media (min-width: 1200px) {
    .plaza-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .plaza-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .plaza-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================================================================
   DASHBOARD
   ================================================================== */

.dash-wrap {
    padding: 2.5rem 2rem;
    background: #f8f9fa;
    min-height: 100vh;
    font-family: 'Biryani', Verdana, sans-serif;
    color: #435563;
}

.dash-title {
    color: #435563;
    font-weight: 800;
    font-size: 1.9rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    border-left: 6px solid #FF8200;
    padding-left: 0.6rem;
    letter-spacing: 0.4px;
}

.dash-title i {
    color: #FF8200;
    font-size: 1.9rem;
}

.dash-summary {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.summary-box {
    background: #fff;
    border-left: 6px solid #FF8200;
    border-radius: 1rem;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    padding: 1.3rem 1.5rem;
    flex: 1;
    min-width: 220px;
    text-align: center;
    transition: all 0.3s ease;
}

.summary-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.1);
}

.summary-box h4 {
    margin: 0;
    color: #435563;
    font-weight: 800;
    font-size: 1.7rem;
}

.summary-box p {
    margin: 0.3rem 0 0 0;
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

.dash-controls {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 1.8rem;
}

.dash-search {
    max-width: 350px;
}

.dash-search .input-group-text {
    background: #FF8200;
    border: none;
    color: #fff;
    border-radius: 0.5rem 0 0 0.5rem;
}

.dash-search input {
    border: 1px solid #e1e1e1;
    border-left: none;
    border-radius: 0 0.5rem 0.5rem 0;
    font-size: 0.95rem;
}

.btn-group label {
    border-radius: 0.5rem !important;
    font-weight: 600;
    color: #435563;
}

.btn-group input:checked+label {
    background: #FF8200 !important;
    border-color: #FF8200 !important;
    color: #fff !important;
}

.btn-outline-secondary {
    border-color: #435563;
    color: #435563;
    font-weight: 600;
    border-radius: 0.6rem;
    transition: all 0.25s ease;
}

.btn-outline-secondary:hover {
    background: #FF8200;
    border-color: #FF8200;
    color: #fff;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.3rem;
    align-items: stretch;
}

.card-box {
    background: #fff;
    border-radius: 1rem;
    padding: 1.3rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-top: 6px solid #FF8200;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.card-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.card-h {
    color: #435563;
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0;
}

.card-sub {
    color: #6c757d;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}

.ring {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    border: 7px solid #ffe0b2;
    border-right-color: #FF8200;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    color: #FF8200;
    margin: 0 auto 1rem auto;
}

.card-footer {
    margin-top: 0.6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.badge-soft {
    background: #fff4eb;
    color: #FF8200;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
}

.btn-ghost {
    border: 1px solid #FF8200;
    color: #FF8200;
    background: transparent;
    border-radius: 0.5rem;
    padding: 0.4rem 0.8rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.btn-ghost:hover {
    background: #FF8200;
    color: #fff;
}

@media (max-width: 768px) {
    .dash-summary {
        flex-direction: column;
    }

    .summary-box {
        min-width: 100%;
    }
}

/* ==================================================================
   SEGUIMIENTO INDEX
   ================================================================== */

.container-seguimiento {
    background-color: #f8f9fa;
    padding: 2.5rem 2rem;
    border-radius: 1rem;
    min-height: 100vh;
}

.title-seguimiento {
    color: #435563;
    font-weight: 800;
    border-left: 6px solid #FF8200;
    padding-left: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.title-seguimiento i {
    color: #FF8200;
    font-size: 1.5rem;
}

.alert {
    border-radius: 1rem;
    font-weight: 600;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.alert-success {
    background: #e7f8ee;
    border-left: 6px solid #28a745;
    color: #256c2e;
}

.alert-info {
    background: #fff4eb;
    border-left: 6px solid #FF8200;
    color: #435563;
}

.card-seguimiento {
    background: #fff;
    border: none;
    border-top: 6px solid #FF8200;
    border-radius: 1rem;
    box-shadow: 0 3px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.25s ease-in-out;
    height: 100%;
}

.card-seguimiento:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.card-body-seguimiento {
    padding: 1.5rem;
}

.card-seguimiento h5 {
    color: #435563;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card-seguimiento p {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    color: #555;
}

.card-seguimiento i {
    color: #FF8200;
    margin-right: 0.3rem;
}

.btn-danger {
    background: linear-gradient(90deg, #b00020 0%, #d33a4f 100%);
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 0.6rem;
    transition: all 0.25s ease;
}

.btn-danger:hover {
    transform: scale(1.03);
    background: linear-gradient(90deg, #8e0018 0%, #b00020 100%);
}

@media (max-width: 768px) {
    .title-seguimiento {
        font-size: 1.5rem;
    }

    .card-body-seguimiento {
        padding: 1.2rem;
    }
}

/* ==================================================================
   HOME (INICIO)
   ================================================================== */

.home-page {
    padding: 2.5rem 2rem;
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.home-hero {
    max-width: 900px;
    width: 100%;
    margin-top: 1.5rem;
}

.home-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: #435563;
    margin-bottom: 0.3rem;
}

.home-subtitle {
    font-size: 1.9rem;
    font-weight: 600;
    color: #435563;
    margin-bottom: 1rem;
}

.home-text {
    font-size: 0.98rem;
    color: #6c757d;
}

@media (max-width: 768px) {
    .home-page {
        padding: 1.5rem 1rem;
    }

    .home-title {
        font-size: 1.9rem;
    }

    .home-subtitle {
        font-size: 1.4rem;
    }
}

.escudo-muni {
    width: 180px;
    margin: 1.8rem auto 1.2rem auto;
    display: block;
    filter: drop-shadow(0px 4px 10px rgba(0, 0, 0, 0.12));
    transition: transform .25s ease;
}

.escudo-muni:hover {
    transform: scale(1.05);
}

/* ==================================================================
   MUNI REBRANDING - PUBLIC PORTAL (ADICIONALES)
   ================================================================== */

.bg-orange-soft {
    background-color: #fff4eb;
}

.card-title-muni {
    color: #435563;
    font-weight: 800;
    font-size: 1.15rem;
    margin: 0;
    line-height: 1.25;
}

.subtitulo-muni {
    font-size: 0.9rem;
    color: #718096;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.muni-info-line {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.92rem;
    color: #4a5568;
}

.muni-info-line i {
    font-size: 1.1rem;
}

.text-placeholder {
    color: #a0aec0;
    font-size: 0.85rem;
    font-style: italic;
}

.btn-orange-lg {
    padding: 0.8rem 1rem;
    font-size: 1rem;
    border-radius: 0.75rem;
}

/* Forzar el estilo de tarjeta Muni en todas las vistas */
.plaza-card {
    border-top: 6px solid #FF8200 !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06) !important;
}

.plaza-card:hover {
    box-shadow: 0 10px 30px rgba(255, 130, 0, 0.15) !important;
}

/* Ajustes para el buscador */
#busquedaPlaza, #filtroDepartamento {
    border-radius: 0.75rem;
    padding: 0.6rem 1rem;
    border: 2px solid #e2e8f0;
}

#busquedaPlaza:focus, #filtroDepartamento:focus {
    border-color: #FF8200;
    box-shadow: 0 0 0 3px rgba(255, 130, 0, 0.1);
}

/* TÍTULOS */
h2 {
    color: #435563;
    font-weight: 800;
    border-left: 6px solid #FF8200;
    padding-left: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
}

h2 i {
    color: #FF8200;
    font-size: 1.6rem;
}

/* BADGES */
.badge {
    font-weight: 600;
    border-radius: 999px;
}

.badge.bg-primary-subtle {
    background: #fff4eb !important;
    color: #FF8200 !important;
}

.badge.bg-info {
    background: #e3f2fd;
    color: #0d6efd;
}

.badge.bg-secondary {
    background: #f0f0f0;
    color: #435563;
}

.badge.bg-success {
    background: #e7f8ee;
    color: #28a745;
    border: 1px solid #c3e6cb;
}

.badge.bg-danger {
    background: #ffe6e6;
    color: #b00020;
    border: 1px solid #ffb3b3;
}

.badge.bg-warning {
    background: #fff4eb;
    color: #FF8200;
    border: 1px solid #ffd4a5;
}

/* BOTONES */
.btn-success {
    background: linear-gradient(90deg, #28a745 0%, #4cb64f 100%);
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    transition: all 0.25s ease;
}

.btn-success:hover {
    transform: scale(1.03);
    background: linear-gradient(90deg, #1f8f39 0%, #28a745 100%);
}

.btn-outline-primary {
    border-color: #FF8200;
    color: #FF8200;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.25s ease;
}

.btn-outline-primary:hover {
    background: #FF8200;
    color: #fff;
    border-color: #FF8200;
}

.btn-outline-success {
    border-color: #28a745;
    color: #28a745;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.25s ease;
}

.btn-outline-success:hover {
    background: #28a745;
    color: #fff;
}

/* ALERTA */
.alert-warning {
    background: #fff4eb;
    border-left: 6px solid #FF8200;
    color: #435563;
    font-weight: 600;
}

/* TABLA ESTILIZADA */
.table-styled {
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.table-styled thead {
    background: #FF8200;
    color: #fff;
}

.table-styled th {
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
    padding: 0.8rem;
}

.table-styled td {
    font-size: 0.9rem;
    vertical-align: middle;
    text-align: center;
    padding: 0.75rem;
}

.table-styled tbody tr:hover {
    background: #fff9f3;
}

/* UTILIDADES */
.text-pre-wrap {
    white-space: pre-wrap;
}

/* ==================================================================
   ESTILOS MIGRADOS (LOTE 2)
   ================================================================== */

/* BOTONES GLOBALES MEJORADOS */
.btn-primary {
    background: linear-gradient(90deg, #FF8200 0%, #ff9a3c 100%);
    border: none;
    border-radius: 0.6rem;
    font-weight: 600;
    color: #fff;
    transition: all 0.25s ease;
}

.btn-primary:hover {
    transform: scale(1.03);
    background: linear-gradient(90deg, #e56f00 0%, #ff8200 100%);
    color: #fff;
}

.btn-danger {
    background: linear-gradient(90deg, #b00020 0%, #d33a4f 100%);
    border: none;
    border-radius: 0.6rem;
    font-weight: 600;
    color: #fff;
    transition: all 0.25s ease;
}

.btn-danger:hover {
    transform: scale(1.03);
    background: linear-gradient(90deg, #8e0018 0%, #b00020 100%);
    color: #fff;
}

/* CARDS PERSONALIZADAS */
/* Se usa .card-custom para no romper todas las cards de bootstrap si no se desea */
.card-custom,
.plaza-card,
.formulario-postulacion,
.confirmacion-container {
    background: #fff;
    border: none;
    border-top: 6px solid #FF8200;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.25s ease-in-out;
}

.card-custom:hover,
.plaza-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

/* FORMULARIOS */
.seccion {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.8rem;
    margin-bottom: 2rem;
    border: 1px solid #dee2e6;
}

.declaracion {
    background-color: #fff5eb;
    border: 1px solid #FFD8A8;
    padding: 1.25rem;
    border-radius: 0.75rem;
    color: #435563;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.declaracion input[type="checkbox"] {
    transform: scale(1.2);
    margin-right: 0.5rem;
    cursor: pointer;
}

/* GRIDS */
.plaza-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    justify-items: start;
    margin: 2rem 0;
}

.documentos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
}

/* ANIMACIONES */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.confirmacion-container {
    max-width: 650px;
    margin: 6rem auto;
    padding: 3rem 2.5rem;
    text-align: center;
    animation: fadeIn 0.6s ease-in-out;
}

.confirmacion-container .icono-exito {
    font-size: 4.5rem;
    color: #28a745;
    margin-bottom: 1.2rem;
    animation: pop 0.4s ease-in-out;
}

/* UTILIDADES EXTRAS */
.img-thumbnail-custom {
    max-height: 250px;
    border-radius: 0.8rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.bloque-info {
    background-color: #f8f9fa;
    padding: 0.7rem 1rem;
    border-radius: 0.6rem;
    margin-top: 0.8rem;
    font-size: 0.88rem;
    border: 1px solid #e6e6e6;
}

.bloque-info strong {
    display: block;
    color: #435563;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

@media (min-width: 1200px) {
    .plaza-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .plaza-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}



.table-styled th {
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
    padding: 0.8rem;
}

.table-styled td {
    font-size: 0.9rem;
    vertical-align: middle;
    text-align: center;
    padding: 0.75rem;
}

.table-styled tbody tr:hover {
    background: #fff9f3;
}

/* UTILIDADES */
.text-pre-wrap {
    white-space: pre-wrap;
}

/* ==================================================================
   ESTILOS MIGRADOS (LOTE 2)
   ================================================================== */

/* BOTONES GLOBALES MEJORADOS */
.btn-primary {
    background: linear-gradient(90deg, #FF8200 0%, #ff9a3c 100%);
    border: none;
    border-radius: 0.6rem;
    font-weight: 600;
    color: #fff;
    transition: all 0.25s ease;
}

.btn-primary:hover {
    transform: scale(1.03);
    background: linear-gradient(90deg, #e56f00 0%, #ff8200 100%);
    color: #fff;
}

.btn-danger {
    background: linear-gradient(90deg, #b00020 0%, #d33a4f 100%);
    border: none;
    border-radius: 0.6rem;
    font-weight: 600;
    color: #fff;
    transition: all 0.25s ease;
}

.btn-danger:hover {
    transform: scale(1.03);
    background: linear-gradient(90deg, #8e0018 0%, #b00020 100%);
    color: #fff;
}

/* CARDS PERSONALIZADAS */
/* Se usa .card-custom para no romper todas las cards de bootstrap si no se desea */
.card-custom,
.plaza-card,
.formulario-postulacion,
.formulario-plaza,
.confirmacion-container {
    background: #fff;
    border: none;
    border-top: 6px solid #FF8200;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.25s ease-in-out;
}

.card-custom:hover,
.plaza-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.formulario-postulacion {
    padding: 2.5rem;
    max-width: 900px;
    margin: 2rem auto;
}

/* FORMULARIOS */
.seccion {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.8rem;
    margin-bottom: 2rem;
    border: 1px solid #dee2e6;
}

.declaracion {
    background-color: #fff5eb;
    border: 1px solid #FFD8A8;
    padding: 1.25rem;
    border-radius: 0.75rem;
    color: #435563;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.declaracion input[type="checkbox"] {
    transform: scale(1.2);
    margin-right: 0.5rem;
    cursor: pointer;
}

/* GRIDS */
.plaza-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    justify-items: start;
    margin: 2rem 0;
}

.documentos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
}

/* ANIMACIONES */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.confirmacion-container {
    max-width: 650px;
    margin: 6rem auto;
    padding: 3rem 2.5rem;
    text-align: center;
    animation: fadeIn 0.6s ease-in-out;
}

.confirmacion-container .icono-exito {
    font-size: 4.5rem;
    color: #28a745;
    margin-bottom: 1.2rem;
    animation: pop 0.4s ease-in-out;
}

/* UTILIDADES EXTRAS */
.img-thumbnail-custom {
    max-height: 250px;
    border-radius: 0.8rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.bloque-info {
    background-color: #f8f9fa;
    padding: 0.7rem 1rem;
    border-radius: 0.6rem;
    margin-top: 0.8rem;
    font-size: 0.88rem;
    border: 1px solid #e6e6e6;
}

.bloque-info strong {
    display: block;
    color: #435563;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

@media (min-width: 1200px) {
    .plaza-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .plaza-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .plaza-grid {
        grid-template-columns: 1fr;
    }

    .titulo-pagina {
        text-align: center;
    }
}

/* AJUSTES CONFIRMACIÓN */
.confirmacion-container h2 {
    border-left: none;
    display: block;
    margin-bottom: 1rem;
    padding-left: 0;
}

.confirmacion-container p {
    color: #5a5a5a;
    font-size: 1.05rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* TYPOGRAPHY FORMS */
h4 {
    color: #435563;
    font-weight: 700;
    text-align: center;
    font-size: 1.5rem;
}

label {
    font-weight: 600;
    color: #435563;
    margin-top: 1rem;
    font-size: 0.95rem;
    display: inline-block;
}

/* ==================================================================
   ESTILOS DE GESTIÓN (Plazas/Dashboard/Asignaciones)
   ================================================================== */

.formulario-plaza {
    background-color: #fff;
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.08);
    max-width: 900px;
    margin: 2rem auto;
    border-top: 6px solid #FF8200;
    animation: fadeIn 0.4s ease-in-out;
}

.encabezado-concurso {
    background: #F3F4F6;
    border: 1px solid #d0d7dc;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.encabezado-concurso h5 {
    color: #435563;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

/* BOTONES GESTIÓN */
.botones-formulario {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 15px;
    margin-top: 2rem;
}

.btn-limpiar {
    border: 1px solid #FF8200;
    color: #FF8200;
    border-radius: 0.6rem;
    padding: 0.65rem 1.3rem;
    background: transparent;
    transition: all 0.2s ease;
    font-weight: 600;
}

.btn-limpiar:hover {
    background: #FF8200;
    color: white;
}

.btn-cancelar {
    border: 1px solid #6c757d;
    color: #6c757d;
    border-radius: 0.6rem;
    padding: 0.65rem 1.3rem;
    background: transparent;
    transition: all 0.2s ease;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-cancelar:hover {
    background: #6c757d;
    color: white;
}

/* DASHBOARD */
.wrap {
    padding: 2.5rem 2rem;
    background: #f8f9fa;
    min-height: 100vh;
}

.pill {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
    background: #fff4eb;
    color: #FF8200;
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.badge-closed {
    background: #ffe6e6;
    color: #b00020;
    border: 1px solid #ffb3b3;
}

/* ASIGNACIONES (Detalles específicos) */
.card-header.bg-primary {
    background: linear-gradient(90deg, #FF8200 0%, #E66F00 100%) !important;
    border: none;
    border-radius: 0.8rem 0.8rem 0 0 !important;
}

.card.border-primary {
    border-top: 5px solid #FF8200 !important;
}

.card.border-success {
    border-top: 5px solid #28a745 !important;
}

.card.border-warning {
    border-top: 5px solid #ffc107 !important;
}

.card.border-info {
    border-top: 5px solid #FF8200 !important;
    background-color: #fff4eb;
}

.card-title.text-primary,
.card-title.text-info {
    color: #FF8200 !important;
}

.badge.bg-info {
    background: linear-gradient(90deg, #FF8200 0%, #E66F00 100%) !important;
    color: #fff;
}

/* TABLAS DARK HEADER */
.table thead.table-dark {
    background: linear-gradient(90deg, #435563 0%, #5a6c7d 100%);
    border: none;
    color: #fff;
}

/* PORTAL PUBLICO */
.card-hover {
    transition: all 0.2s ease-in-out;
    border-radius: 12px;
}

    .card-hover:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    }

#busqueda {
    border-radius: 10px;
}

.form-select {
    border-radius: 10px;
}

/* ============================= */
/* 🔥 TIMELINE PRO (HORIZONTAL) */
/* ============================= */

.timeline-horizontal {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100%;
    gap: 0;
}

    /* PASOS */
    .timeline-horizontal .step {
        display: flex;
        flex-direction: column;
        align-items: center;
        flex: 0 0 auto;
        font-size: 12px;
        color: #999;
    }

    /* CÍRCULO */
    .timeline-horizontal .circle {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: #dee2e6;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 5px;
        font-weight: bold;
    }

    /* LÍNEA */
    .timeline-horizontal .line {
        height: 4px;
        background: #dee2e6;
        flex: 1;
        margin: 0 6px;
    }

    /* ACTIVOS */
    .timeline-horizontal .step.active .circle {
        background: #0d6efd;
        color: #fff;
    }

    .timeline-horizontal .line.active {
        background: #0d6efd;
    }

    /* ESTADOS */
    .timeline-horizontal .step.success .circle {
        background: #198754;
    }

    .timeline-horizontal .step.danger .circle {
        background: #dc3545;
    }

    /* ============================= */
    /* 🟢 APROBADO */
    /* ============================= */

    .timeline-horizontal .step.success .circle {
        background: #198754;
        color: white;
    }

    /* ============================= */
    /* 🔴 RECHAZADO */
    /* ============================= */

    .timeline-horizontal .step.danger .circle {
        background: #dc3545;
        color: white;
    }

    /* ============================= */
    /* ✨ HOVER SUAVE */
    /* ============================= */

    .timeline-horizontal .step:hover .circle {
        transform: scale(1.1);
    }

/* ============================= */
/* 📱 RESPONSIVE */
/* ============================= */

@media (max-width: 768px) {
    .timeline-horizontal {
        flex-direction: column;
        align-items: flex-start;
    }

        .timeline-horizontal .line {
            display: none;
        }

        .timeline-horizontal .step {
            display: flex;
            align-items: center;
            gap: 10px;
            opacity: 1;
        }

        .timeline-horizontal .circle {
            margin: 0;
        }
}

.estado-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.estado-mensaje .alert {
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
}

/* 🔥 FIX FORZADO TIMELINE */
.timeline-horizontal {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.timeline-horizontal .step {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-horizontal .line {
    flex: 1;
    height: 4px;
    background: #dee2e6;
}