/* ==========================================================
   MODAL EXCLUSIVO: PROCESO DE CHATARRIZACIÓN DE BIENES 2026
   No modifica el tarifario ni el concurso
=========================================================== */

#modalChatarrizacion {
    position: fixed;
    z-index: 100002;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    overflow-y: auto;
    background: rgba(0, 27, 50, 0.88);
    animation: chatarrizacionAparecer 0.4s ease;
}

#modalChatarrizacion .chat-modal {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: auto;
    overflow: hidden;
    border: 1px solid rgba(84, 213, 222, 0.55);
    border-radius: 20px;
    background: #ffffff;
    text-align: center;
    box-shadow: 0 24px 70px rgba(0, 21, 40, 0.55);
}

/* ==========================================================
   ENCABEZADO DEL FLYER
=========================================================== */

#modalChatarrizacion .chat-header {
    position: relative;
    min-height: 158px;
    padding: 23px 60px 58px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 8% 5%,
            rgba(255, 255, 255, 0.10) 0 82px,
            transparent 83px
        ),
        radial-gradient(
            circle at 92% 80%,
            rgba(255, 255, 255, 0.09) 0 105px,
            transparent 106px
        ),
        linear-gradient(
            120deg,
            #064a91 0%,
            #087fb7 48%,
            #22b9b1 100%
        );
}

#modalChatarrizacion .chat-logo {
    position: relative;
    z-index: 4;
    color: #ffffff;
}

#modalChatarrizacion .chat-logo .fa-tint {
    display: block;
    margin-bottom: 3px;
    font-size: 47px;
    line-height: 1;
    text-shadow: 0 3px 10px rgba(0, 55, 90, 0.22);
}

#modalChatarrizacion .chat-logo strong {
    display: block;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: 0.4px;
}

#modalChatarrizacion .chat-logo small {
    display: block;
    margin-top: 3px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

/* Botón para cerrar */
#modalChatarrizacion .chat-close {
    position: absolute;
    top: 15px;
    right: 17px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    outline: none;
    background: rgba(255, 255, 255, 0.92);
    color: #07558f;
    font-family: Arial, sans-serif;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 52, 83, 0.18);
    transition:
        transform 0.25s ease,
        background 0.25s ease;
}

#modalChatarrizacion .chat-close:hover,
#modalChatarrizacion .chat-close:focus {
    background: #ffffff;
    transform: rotate(90deg) scale(1.05);
}

/* Ondas */
#modalChatarrizacion .chat-waves {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    z-index: 3;
    height: 71px;
    overflow: hidden;
    pointer-events: none;
}

#modalChatarrizacion .chat-wave {
    position: absolute;
    left: -4%;
    width: 108%;
    height: 72px;
    transform-origin: center bottom;
}

#modalChatarrizacion .chat-wave-one {
    bottom: -6px;
    background: rgba(115, 220, 234, 0.40);
    clip-path: polygon(
        0 59%,
        13% 31%,
        28% 51%,
        44% 22%,
        61% 47%,
        78% 25%,
        100% 51%,
        100% 100%,
        0 100%
    );
    animation: chatOndaUno 7s ease-in-out infinite alternate;
}

#modalChatarrizacion .chat-wave-two {
    bottom: -13px;
    background: rgba(224, 248, 250, 0.86);
    clip-path: polygon(
        0 38%,
        16% 56%,
        34% 30%,
        51% 55%,
        69% 28%,
        86% 50%,
        100% 34%,
        100% 100%,
        0 100%
    );
    animation: chatOndaDos 8.5s ease-in-out infinite alternate;
}

#modalChatarrizacion .chat-wave-three {
    bottom: -23px;
    background: #ffffff;
    clip-path: polygon(
        0 47%,
        15% 34%,
        32% 55%,
        50% 35%,
        68% 55%,
        85% 38%,
        100% 54%,
        100% 100%,
        0 100%
    );
}

/* ==========================================================
   CUERPO DEL FLYER
=========================================================== */

#modalChatarrizacion .chat-body {
    padding: 0 42px 30px;
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #f5fbfd 100%
    );
}

/* Símbolo ambiental */
#modalChatarrizacion .chat-eco-symbol {
    position: relative;
    width: 125px;
    height: 103px;
    margin: -2px auto 1px;
}

#modalChatarrizacion .chat-recycle {
    position: absolute;
    top: 0;
    left: 19px;
    color: rgba(27, 157, 135, 0.14);
    font-size: 91px;
    line-height: 1;
}

#modalChatarrizacion .chat-drop {
    position: absolute;
    top: 17px;
    left: 38px;
    z-index: 2;
    color: #087fca;
    font-size: 68px;
    line-height: 1;
    text-shadow: 0 6px 12px rgba(0, 106, 169, 0.20);
}

#modalChatarrizacion .chat-leaf {
    position: absolute;
    right: 17px;
    bottom: 7px;
    z-index: 3;
    color: #39a94d;
    font-size: 44px;
    line-height: 1;
    transform: rotate(-17deg);
    text-shadow: 0 4px 9px rgba(42, 139, 65, 0.18);
}

/* Título */
#modalChatarrizacion .chat-title {
    max-width: 730px;
    margin: 0 auto 5px;
    color: #083f7f;
    font-size: 31px;
    font-weight: 800;
    line-height: 1.22;
}

#modalChatarrizacion .chat-title span {
    color: #249b56;
}

/* Mes del proceso */
#modalChatarrizacion .chat-invitation {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 530px;
    margin: 7px auto 18px;
    color: #07518a;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 2.4px;
}

#modalChatarrizacion .chat-invitation::before,
#modalChatarrizacion .chat-invitation::after {
    content: "";
    flex: 1;
    height: 2px;
    margin: 0 17px;
    background: #29934d;
}

/* Etapa */
#modalChatarrizacion .chat-stage {
    max-width: 820px;
    margin: 0 auto 13px;
    padding: 12px 18px;
    border-radius: 28px;
    background: linear-gradient(
        90deg,
        #edf7fd 0%,
        #dceff9 50%,
        #edf7fd 100%
    );
    color: #07518a;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
}

#modalChatarrizacion .chat-stage i {
    margin-right: 9px;
    color: #087fca;
}

/* Descripción */
#modalChatarrizacion .chat-description {
    max-width: 700px;
    margin: 0 auto;
    color: #364f60;
    font-size: 15px;
    line-height: 1.55;
}

#modalChatarrizacion .chat-description strong {
    color: #07518a;
}

/* Fechas */
#modalChatarrizacion .chat-data {
    display: flex;
    align-items: stretch;
    justify-content: center;
    margin: 20px -6px 19px;
}

#modalChatarrizacion .chat-data-card {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    min-width: 0;
    min-height: 91px;
    margin: 6px;
    padding: 13px 12px;
    border: 1px solid #c9e2ee;
    border-radius: 13px;
    background: #ffffff;
    color: #304e61;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 82, 128, 0.07);
}

#modalChatarrizacion .chat-data-icon {
    display: flex;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-right: 12px;
    border-radius: 50%;
    background: #e0f3ff;
    color: #087fca;
    font-size: 22px;
}

#modalChatarrizacion .chat-data-card:nth-child(2) .chat-data-icon {
    background: #e1f6ed;
    color: #16885d;
}

#modalChatarrizacion .chat-data-card:nth-child(3) .chat-data-icon {
    background: #fff1dd;
    color: #d47b08;
}

#modalChatarrizacion .chat-data-text strong,
#modalChatarrizacion .chat-data-text span {
    display: block;
}

#modalChatarrizacion .chat-data-text strong {
    margin-bottom: 3px;
    color: #355066;
    font-size: 12px;
}

#modalChatarrizacion .chat-data-text span {
    color: #07518a;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
}

/* Botón principal */
#modalChatarrizacion .chat-main-button {
    display: block;
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    padding: 16px 24px;
    border-radius: 35px;
    background: linear-gradient(
        100deg,
        #075ec5 0%,
        #058fb9 55%,
        #19b29b 100%
    );
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
    text-decoration: none !important;
    box-shadow: 0 10px 24px rgba(0, 105, 163, 0.25);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

#modalChatarrizacion .chat-main-button i:first-child {
    margin-right: 9px;
}

#modalChatarrizacion .chat-main-button i:last-child {
    margin-left: 11px;
}

#modalChatarrizacion .chat-main-button:hover,
#modalChatarrizacion .chat-main-button:focus {
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-2px);
    box-shadow: 0 13px 28px rgba(0, 84, 136, 0.31);
}

/* Pie */
#modalChatarrizacion .chat-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 38px;
    border-top: 1px solid #deebf0;
    background: #eef6f8;
    color: #637a87;
    font-size: 12px;
    font-weight: 600;
}

#modalChatarrizacion .chat-footer::before,
#modalChatarrizacion .chat-footer::after {
    content: "";
    width: 90px;
    height: 1px;
    margin: 0 20px;
    background: #b6d3dd;
}

/* ==========================================================
   ANIMACIONES
=========================================================== */

@keyframes chatarrizacionAparecer {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes chatOndaUno {
    from {
        transform: translateX(-1.5%) scaleY(0.95);
    }

    to {
        transform: translateX(1.5%) scaleY(1.06);
    }
}

@keyframes chatOndaDos {
    from {
        transform: translateX(1.2%) scaleY(1.04);
    }

    to {
        transform: translateX(-1.2%) scaleY(0.94);
    }
}

/* ==========================================================
   IDENTIFICACIÓN DE LOS PROCESOS EN NOTICIAS
=========================================================== */

.proceso-identificador {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 13px 20px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.proceso-identificador i {
    margin-right: 7px;
}

.proceso-identificador small {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-transform: none;
}

.proceso-identificador .proceso-estado {
    padding: 6px 13px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.18);
    white-space: nowrap;
}

/* Proceso vigente de octubre */
.proceso-actual {
    background: linear-gradient(
        135deg,
        #006f8d 0%,
        #009a8b 55%,
        #25a968 100%
    );
}

/* Proceso anterior de septiembre */
.proceso-anterior {
    background: linear-gradient(
        135deg,
        #536c78 0%,
        #6d7f87 55%,
        #87979e 100%
    );
}

.proceso-anterior .proceso-estado {
    background: rgba(0, 0, 0, 0.13);
}

/* Bordes identificativos */
.proceso-chatarrizacion-octubre .chatarrizacion-card,
.proceso-chatarrizacion-octubre .chatarrizacion-card-side {
    border-top: 5px solid #159d78;
}

.proceso-chatarrizacion-septiembre .chatarrizacion-card,
.proceso-chatarrizacion-septiembre .chatarrizacion-card-side {
    border-top: 5px solid #71858e;
}

/* Separación del proceso anterior */
.proceso-chatarrizacion-septiembre {
    margin-top: 45px;
    padding-top: 35px;
    border-top: 2px dashed #cbd6da;
}

/* ==========================================================
   BANNERS DE OCTUBRE Y SEPTIEMBRE
=========================================================== */

#noticia-chatarrizacion-octubre-2026 .chatarrizacion-banner,
#noticia-chatarrizacion-2026 .chatarrizacion-banner {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #087fba !important;
}

#noticia-chatarrizacion-octubre-2026 .chatarrizacion-banner img,
#noticia-chatarrizacion-2026 .chatarrizacion-banner img {
    position: static !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform: none !important;
}

/* ==========================================================
   FECHAS CLAVE DEL PROCESO DE OCTUBRE
=========================================================== */

.fechas-clave-chatarrizacion {
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin: 23px 0;
}

.fecha-clave-chatarrizacion {
    flex: 1 1 0;
    padding: 15px 10px;
    border: 1px solid #cfe9e3;
    border-radius: 12px;
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #f0fbf7 100%
    );
    color: #40545e;
    text-align: center;
    box-shadow: 0 5px 14px rgba(0, 123, 131, 0.08);
}

.fecha-clave-chatarrizacion i {
    display: block;
    margin-bottom: 7px;
    color: #159d78;
    font-size: 23px;
}

.fecha-clave-chatarrizacion strong {
    display: block;
    margin-bottom: 4px;
    color: #006f8d;
    font-size: 12px;
    line-height: 1.25;
}

.fecha-clave-chatarrizacion span {
    color: #435960;
    font-size: 13px;
    font-weight: 700;
}

.aviso-ofertas-chatarrizacion {
    margin: 20px 0 !important;
    padding: 15px 17px;
    border-left: 4px solid #159d78;
    border-radius: 4px 10px 10px 4px;
    background: #edf9f5;
    color: #3f555d !important;
}

.aviso-ofertas-chatarrizacion i {
    margin-right: 6px;
    color: #159d78;
}

/* ==========================================================
   ADAPTACIÓN PARA CELULARES
=========================================================== */

@media (max-width: 767px) {
    #modalChatarrizacion {
        align-items: flex-start;
        padding: 10px;
    }

    #modalChatarrizacion .chat-modal {
        margin: 8px auto;
        border-radius: 16px;
    }

    #modalChatarrizacion .chat-header {
        min-height: 135px;
        padding: 18px 45px 48px;
    }

    #modalChatarrizacion .chat-logo .fa-tint {
        font-size: 38px;
    }

    #modalChatarrizacion .chat-logo strong {
        font-size: 17px;
    }

    #modalChatarrizacion .chat-logo small {
        font-size: 8px;
    }

    #modalChatarrizacion .chat-close {
        top: 10px;
        right: 11px;
        width: 37px;
        height: 37px;
        font-size: 25px;
    }

    #modalChatarrizacion .chat-body {
        padding: 0 17px 24px;
    }

    #modalChatarrizacion .chat-eco-symbol {
        margin-top: -8px;
        margin-bottom: -7px;
        transform: scale(0.82);
    }

    #modalChatarrizacion .chat-title {
        font-size: 22px;
    }

    #modalChatarrizacion .chat-invitation {
        margin-bottom: 14px;
        font-size: 11px;
        letter-spacing: 1.4px;
    }

    #modalChatarrizacion .chat-invitation::before,
    #modalChatarrizacion .chat-invitation::after {
        margin: 0 8px;
    }

    #modalChatarrizacion .chat-stage {
        padding: 10px 12px;
        font-size: 14px;
    }

    #modalChatarrizacion .chat-description {
        font-size: 14px;
    }

    #modalChatarrizacion .chat-data {
        display: block;
        margin: 15px 0 17px;
    }

    #modalChatarrizacion .chat-data-card {
        width: 100%;
        min-height: 62px;
        margin: 7px 0;
        padding: 9px 12px;
    }

    #modalChatarrizacion .chat-data-icon {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    #modalChatarrizacion .chat-main-button {
        padding: 14px 12px;
        font-size: 13px;
    }

    #modalChatarrizacion .chat-footer {
        padding: 13px 12px;
        font-size: 11px;
    }

    #modalChatarrizacion .chat-footer::before,
    #modalChatarrizacion .chat-footer::after {
        width: 24px;
        margin: 0 8px;
    }

    .proceso-identificador {
        align-items: flex-start;
        flex-direction: column;
        padding: 12px 15px;
    }

    .proceso-identificador .proceso-estado {
        align-self: flex-start;
    }

    .fechas-clave-chatarrizacion {
        display: block;
    }

    .fecha-clave-chatarrizacion {
        margin-bottom: 10px;
    }

    .proceso-chatarrizacion-septiembre {
        margin-top: 30px;
        padding-top: 25px;
    }
}

/* Personas que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
    #modalChatarrizacion,
    #modalChatarrizacion .chat-wave {
        animation: none !important;
    }
}

/* ==========================================================
   CORRECCIÓN DEL ENCABEZADO EN LA COLUMNA DE DOCUMENTOS
=========================================================== */

.chatarrizacion-card-side .proceso-identificador {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 9px;
}

.chatarrizacion-card-side .proceso-identificador .proceso-estado {
    align-self: flex-start;
    max-width: 100%;
    white-space: normal;
}