/* 
   DIAN - Sistema de Virtualización de Remates
   TITAN Design Engine - High Fidelity & Responsiveness
*/

:root {
    --dian-green: #008A5E;
    --dian-emerald: #00C875;
    --dian-emerald-hover: #00b368;
    --dian-navy: #182333;
    --dian-dark-blue: #0F4C81;
    --dian-light-blue: #D0F0FD;
    --dian-blue-text: #004884;
    --dian-gray-bg: #F8FAFC;
    --dian-card-border: #E2E8F0;
    --dian-text: #1E293B;
    --dian-text-muted: #64748B;
    --whatsapp-green: #25D366;
    --whatsapp-green-hover: #20BA5A;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #FFFFFF;
    color: var(--dian-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* TOP GOV.CO & UTILITY BAR */
.remates-gov-bar {
    background-color: #3366CC;
    color: #FFFFFF;
    height: 30px;
    display: flex;
    align-items: center;
}

.remates-gov-container {
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gov-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.gov-brand img {
    height: 14px;
    width: auto;
}

.gov-links {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
}

.gov-links a {
    color: #FFFFFF;
    opacity: 0.95;
}

.gov-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* MAIN HEADER LOGOS */
.remates-header {
    background-color: #FFFFFF;
    padding: 14px 0;
    border-bottom: 1px solid #E2E8F0;
}

.remates-header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-potencia-vida {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #B8860B;
    line-height: 1.1;
}

.logo-potencia-vida .icon-potencia {
    width: 32px;
    height: 32px;
    background: #EAB308;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF;
}

.logo-potencia-vida .text-wrap {
    display: flex;
    flex-direction: column;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #854D0E;
}

.header-logo-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand-remates-virtuales {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0F4C81;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
}

.brand-remates-virtuales .icon-pin {
    width: 22px;
    height: 22px;
    background-color: #00C875;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF;
}

.header-dian-logo img {
    height: 34px;
    width: auto;
    display: block;
}

/* NAV BAR */
.remates-navbar {
    background-color: var(--dian-navy);
    height: 48px;
    display: flex;
    align-items: center;
}

.remates-nav-container {
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.btn-nav-ingresar {
    background-color: var(--dian-emerald);
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 13px;
    padding: 7px 18px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s, transform 0.2s;
}

.btn-nav-ingresar:hover {
    background-color: var(--dian-emerald-hover);
    transform: translateY(-1px);
}

/* HERO SECTION (SEARCH & FILTERS) */
.remates-hero-section {
    position: relative;
    background: linear-gradient(rgba(24, 35, 51, 0.75), rgba(24, 35, 51, 0.75)),
        url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    padding: 50px 20px 60px 20px;
    color: #FFFFFF;
}

.remates-hero-content {
    max-width: 1050px;
    margin: 0 auto;
    text-align: center;
}

.hero-main-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 700;
    margin-bottom: 25px;
    color: #FFFFFF;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* FILTER CARD */
.filter-card {
    background-color: #FFFFFF;
    border-radius: 8px;
    padding: 24px 28px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    color: var(--dian-text);
    text-align: left;
}

.filter-grid-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-label {
    font-size: 11.5px;
    font-weight: 600;
    color: #475569;
}

.filter-select,
.filter-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #CBD5E1;
    border-radius: 4px;
    font-size: 12.5px;
    font-family: inherit;
    color: #1E293B;
    background-color: #FFFFFF;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.filter-select:focus,
.filter-input:focus {
    border-color: var(--dian-emerald);
    box-shadow: 0 0 0 2px rgba(0, 200, 117, 0.2);
}

.filter-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.link-buscar-palabra {
    font-size: 12px;
    color: #64748B;
    text-decoration: underline;
    cursor: pointer;
}

.link-buscar-palabra:hover {
    color: var(--dian-emerald);
}

.btn-filter-buscar {
    background-color: var(--dian-emerald);
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 38px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 10px rgba(0, 200, 117, 0.3);
}

.btn-filter-buscar:hover {
    background-color: var(--dian-emerald-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 200, 117, 0.4);
}

/* SECTION: PRÓXIMAS AUDIENCIAS */
.audiencias-section {
    max-width: 1300px;
    margin: 0 auto;
    padding: 50px 20px 80px 20px;
}

.section-audiencias-title {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 35px;
}

/* CARDS GRID & ADVERTISEMENT LAYOUT */
.remates-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    width: 100%;
}

.remate-card {
    background-color: #FFFFFF;
    border: 1px solid var(--dian-card-border);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-width: 0; /* Prevents grid blowout */
    width: 100%;
}

.remate-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.09);
}

.remate-card-media {
    position: relative;
    width: 100%;
    height: 190px;
    background-color: #F1F5F9;
    overflow: hidden;
}

.remate-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.remate-card:hover .remate-card-img {
    transform: scale(1.03);
}

.remate-badge-pct {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(24, 35, 51, 0.9);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.remate-banner-strip {
    background-color: var(--dian-light-blue);
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 700;
    color: #0369A1;
    border-bottom: 1px solid #BAE6FD;
    letter-spacing: 0.2px;
}

.remate-card-body {
    padding: 15px 14px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.remate-card-location {
    font-family: 'Montserrat', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    color: #1E293B;
    text-transform: uppercase;
    margin-bottom: 10px;
    line-height: 1.35;
    word-break: break-word;
}

.remate-disponibilidad-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
    color: #475569;
    margin-bottom: 10px;
    padding: 6px 10px;
    background-color: #F0FDF4;
    border: 1px solid #DCFCE7;
    border-radius: 5px;
}

.disp-label {
    font-weight: 600;
    color: #166534;
}

.disp-badge-inmediata {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    color: #008A5E;
    font-size: 12px;
}

.badge-entrega-inmediata-lg {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #008A5E 0%, #00C875 100%);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 13.5px;
    padding: 8px 14px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 200, 117, 0.25);
}

.disponibilidad-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #F1F5F9;
}

.remate-avaluo-row {
    font-size: 12px;
    color: #334155;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #E2E8F0;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
}

.remate-avaluo-row strong {
    color: #0F172A;
    font-size: 14.5px;
    font-family: 'Montserrat', sans-serif;
}

.remate-base-oferta-wrap {
    margin-bottom: 12px;
}

.remate-base-label {
    font-size: 11px;
    color: #64748B;
    display: block;
}

.remate-base-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #0F172A;
}

.remate-card-actions {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 8px;
    margin-top: auto;
    padding-top: 6px;
}

.btn-card-ver {
    background-color: var(--dian-emerald);
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    text-align: center;
    padding: 8px 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, transform 0.15s;
}

.btn-card-ver:hover {
    background-color: var(--dian-emerald-hover);
    transform: translateY(-1px);
}

.btn-card-whatsapp {
    background-color: #25D366;
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-size: 11.5px;
    font-weight: 600;
    text-align: center;
    padding: 8px 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: background-color 0.2s, transform 0.15s;
    white-space: nowrap;
}

.btn-card-whatsapp:hover {
    background-color: var(--whatsapp-green-hover);
    transform: translateY(-1px);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (BREAKPOINTS)
   ========================================================================== */

/* Laptops & Desktops Medianos (1024px - 1240px) */
@media (max-width: 1240px) {
    .remates-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* Tablets Landscape & Tablets (768px - 1023px) */
@media (max-width: 1023px) {
    .remates-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .filter-grid-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .audiencias-section {
        padding: 40px 18px 70px 18px;
    }

    .section-audiencias-title {
        font-size: 24px;
        margin-bottom: 25px;
    }
}

/* Teléfonos y Dispositivos Móviles (<= 640px) - Anuncios claros y espaciosos */
@media (max-width: 640px) {
    .remates-gov-container {
        padding: 0 12px;
    }

    .gov-brand {
        font-size: 11px;
    }

    .gov-links {
        font-size: 11px;
        gap: 8px;
    }

    .remates-header {
        padding: 10px 0;
    }

    .remates-header-container {
        padding: 0 12px;
        gap: 10px;
    }

    .logo-potencia-vida .icon-potencia {
        width: 26px;
        height: 26px;
    }

    .logo-potencia-vida .text-wrap {
        font-size: 8px;
    }

    .brand-remates-virtuales {
        font-size: 13px;
        gap: 5px;
    }

    .header-dian-logo img {
        height: 26px;
    }

    .remates-hero-section {
        padding: 28px 12px 36px 12px;
    }

    .hero-main-title {
        font-size: 22px;
        margin-bottom: 16px;
    }

    .filter-card {
        padding: 16px 14px;
        border-radius: 8px;
    }

    .filter-grid-row {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 10px;
    }

    .btn-filter-buscar {
        width: 100%;
        padding: 12px 20px;
    }

    .audiencias-section {
        padding: 24px 12px 60px 12px;
    }

    .section-audiencias-title {
        font-size: 20px;
        margin-bottom: 18px;
    }

    /* FORMATO ANUNCIO PARA TELÉFONOS */
    .remates-cards-grid {
        grid-template-columns: 1fr; /* 1 anuncio por fila completo, claro y legible */
        gap: 20px;
    }

    .remate-card {
        border-radius: 10px;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
        border: 1px solid #E2E8F0;
    }

    .remate-card-media {
        height: 225px; /* Foto amplia y atractiva */
    }

    .remate-banner-strip {
        padding: 8px 14px;
        font-size: 12.5px;
    }

    .remate-card-body {
        padding: 16px 14px;
    }

    .remate-card-location {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .remate-disponibilidad-row {
        font-size: 12.5px;
        padding: 7px 12px;
        margin-bottom: 12px;
    }

    .remate-avaluo-row {
        font-size: 13px;
        margin-bottom: 14px;
    }

    .remate-avaluo-row strong {
        font-size: 16.5px;
    }

    .remate-card-actions {
        grid-template-columns: 1fr 1.3fr;
        gap: 10px;
        margin-top: 8px;
    }

    .btn-card-ver,
    .btn-card-whatsapp {
        padding: 10px 12px;
        font-size: 13px;
        border-radius: 6px;
    }
}


/* ==========================================================================
   PAGE: DETALLE DE REMATE
   ========================================================================== */
.detalle-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 25px 20px 80px 20px;
}

.detalle-breadcrumbs {
    font-size: 12px;
    color: #64748B;
    margin-bottom: 20px;
}

.detalle-breadcrumbs a {
    color: #0F4C81;
}

.detalle-breadcrumbs a:hover {
    text-decoration: underline;
}

.detalle-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.detalle-title-wrap h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 4px;
}

.detalle-location-sub {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
}

.detalle-pub-date {
    font-size: 12px;
    color: #64748B;
    font-weight: 500;
}

.detalle-layout-grid {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 30px;
    margin-bottom: 40px;
}

.detalle-photo-card {
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.detalle-main-img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

.detalle-sidebar-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-box-audiencia {
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 22px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.audiencia-top-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #F1F5F9;
}

.audiencia-date-block {
    display: flex;
    flex-direction: column;
}

.audiencia-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748B;
    text-transform: uppercase;
}

.audiencia-val {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #0F172A;
}

.badge-pct-large {
    background-color: #1E293B;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 4px;
}

.audiencia-avaluo-line {
    font-size: 13px;
    color: #334155;
    margin-bottom: 14px;
}

.audiencia-avaluo-line strong {
    color: #0F172A;
}

.audiencia-base-box {
    background-color: #F8FAFC;
    border-radius: 6px;
    padding: 12px 14px;
    border-left: 4px solid var(--dian-emerald);
}

.sidebar-box-oferta {
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 22px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    text-align: center;
}

.oferta-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 16px;
}

.btn-whatsapp-oferta {
    background-color: #25D366;
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    padding: 13px 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
    transition: all 0.25s ease;
}

.btn-whatsapp-oferta:hover {
    background-color: var(--whatsapp-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

/* DESCRIPCIÓN SECTION */
.detalle-desc-section {
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 28px;
}

.detalle-desc-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 16px;
}

.detalle-desc-text {
    font-size: 14.5px;
    line-height: 1.7;
    color: #334155;
    margin-bottom: 20px;
}

.detalle-tags-wrap {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.remate-tag {
    background-color: #E2E8F0;
    color: #334155;
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

/* ==========================================================================
   FORMULARIO TRÁMITES Y SERVICIOS DIAN (POSTULACIÓN)
   ========================================================================== */
.sidebar-dian-form-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.dian-form-header {
    background-color: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
    padding: 18px 22px;
    position: relative;
}

.dian-form-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background-color: #00A99D;
}

.dian-form-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #1A2B49;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dian-form-subtitle {
    font-size: 12.5px;
    color: #64748B;
}

.dian-form-body {
    padding: 22px;
}

.dian-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

@media (max-width: 540px) {
    .dian-form-grid {
        grid-template-columns: 1fr;
    }
}

.dian-field-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 14px;
}

.dian-field-group:last-child {
    margin-bottom: 0;
}

.dian-label {
    font-size: 12.5px;
    font-weight: 600;
    color: #1E293B;
}

.dian-label-req {
    color: #DC2626;
    font-weight: 700;
}

.dian-input, .dian-select {
    width: 100%;
    padding: 10px 12px;
    background-color: #F8FAFC;
    border: 1px solid #CBD5E1;
    border-radius: 5px;
    color: #0F172A;
    font-size: 13.5px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
}

.dian-input::placeholder {
    color: #94A3B8;
    font-size: 13px;
}

.dian-input:focus, .dian-select:focus {
    background-color: #FFFFFF;
    border-color: #00A99D;
    box-shadow: 0 0 0 3px rgba(0, 169, 157, 0.15);
}

.dian-upload-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #1A2B49;
    margin-top: 4px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dian-upload-box {
    border: 1px dashed #94A3B8;
    background-color: #F8FAFC;
    border-radius: 6px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.dian-upload-box:hover {
    border-color: #00A99D;
    background-color: #F0FDFA;
}

.dian-upload-box input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 5;
}

.dian-upload-btn-text {
    font-size: 12.5px;
    font-weight: 600;
    color: #00796B;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.dian-upload-help {
    font-size: 11px;
    color: #64748B;
    margin-top: 2px;
}

.dian-upload-selected {
    font-size: 11.5px;
    color: #059669;
    font-weight: 600;
    margin-top: 4px;
    display: none;
    word-break: break-all;
}

.dian-terms-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 14px;
    margin-bottom: 18px;
    font-size: 12px;
    color: #475569;
}

.dian-terms-row input[type="checkbox"] {
    margin-top: 2px;
    cursor: pointer;
    accent-color: #00A99D;
}

.btn-dian-postularme {
    width: 100%;
    padding: 13px 20px;
    background: #00A99D;
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 169, 157, 0.25);
}

.btn-dian-postularme:hover {
    background: #008E84;
    box-shadow: 0 4px 10px rgba(0, 169, 157, 0.35);
}

.btn-dian-postularme:disabled {
    background-color: #94A3B8;
    cursor: not-allowed;
    box-shadow: none;
}

.dian-trust-footer {
    background-color: #F8FAFC;
    border-top: 1px solid #E2E8F0;
    padding: 12px 20px;
    font-size: 11.5px;
    color: #64748B;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* SUCCESS MODAL POPUP */
.postulacion-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(10, 17, 32, 0.85);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.postulacion-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.postulacion-success-card {
    background: #FFFFFF;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    padding: 36px 30px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    border: 2px solid #C5A059;
}

.postulacion-modal-overlay.active .postulacion-success-card {
    transform: translateY(0) scale(1);
}

.success-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.35);
    animation: success-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes success-pop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    70% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-modal-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 10px;
}

.success-modal-message {
    font-size: 16px;
    font-weight: 600;
    color: #008A5E;
    background-color: #E6F6F1;
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #A7F3D0;
}

.success-details-box {
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 16px;
    text-align: left;
    margin-bottom: 24px;
    font-size: 13px;
}

.success-detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.success-detail-row:last-child {
    margin-bottom: 0;
}

.btn-modal-entendido {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 28px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
}

.btn-modal-entendido:hover {
    background: #008A5E;
    box-shadow: 0 4px 12px rgba(0, 138, 94, 0.3);
}

/* DETALLE DE REMATE RESPONSIVE */
@media (max-width: 991px) {
    .detalle-layout-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .detalle-container {
        padding: 16px 14px 60px 14px;
    }

    .detalle-header-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .detalle-title-wrap h1 {
        font-size: 22px;
    }

    .detalle-main-img {
        max-height: 380px;
    }
}

@media (max-width: 640px) {
    .detalle-title-wrap h1 {
        font-size: 19px;
    }

    .detalle-location-sub {
        font-size: 12.5px;
    }

    .detalle-main-img {
        max-height: 280px;
    }

    .audiencia-top-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}