/* =========================================================
   FEBIMBO · Consignaciones pendientes por identificar
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --febimbo-verde: #0f9e5b;
    --febimbo-verde-oscuro: #0b5e37;
    --febimbo-verde-hover: #094d2d;
    --febimbo-amarillo: #ebbe32;
    --febimbo-gris-oscuro: #313130;
    --febimbo-gris: #666;
    --febimbo-gris-claro: #f5f5f5;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--febimbo-gris-oscuro);
    overflow-x: hidden;
    background-color: white;
}

/* ---------- Encabezado de la página ---------- */
.pendientes-hero {
    position: relative;
    overflow: hidden;
    padding: 70px 5% 60px;
    background-color: var(--febimbo-gris-claro);
}

/* Círculos decorativos, como en Comunicaciones */
.pendientes-hero::before,
.pendientes-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.pendientes-hero::before {
    top: -60px;
    right: 8%;
    width: 220px;
    height: 220px;
    background-color: var(--febimbo-verde);
    opacity: 0.06;
}

.pendientes-hero::after {
    bottom: -40px;
    left: 4%;
    width: 120px;
    height: 120px;
    border: 4px solid var(--febimbo-amarillo);
    opacity: 0.35;
}

.pendientes-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.pendientes-volver {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin-bottom: 10px;
    color: var(--febimbo-verde-oscuro);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
}

.pendientes-volver:hover {
    text-decoration: underline;
}

.pendientes-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(15, 158, 91, 0.1);
    color: var(--febimbo-verde-oscuro);
    border-radius: 50px;
    padding: 8px 16px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 22px;
}

.pendientes-title {
    font-family: "Titillium Web", sans-serif;
    font-weight: 700;
    font-size: 3.4rem;
    line-height: 1.1;
    color: var(--febimbo-gris-oscuro);
    margin-bottom: 24px;
}

.pendientes-title span {
    display: block;
    color: var(--febimbo-verde-oscuro);
}

.title-decoration {
    width: 80px;
    height: 5px;
    background-color: var(--febimbo-amarillo);
    border-radius: 3px;
    margin-bottom: 24px;
}

.pendientes-intro {
    max-width: 720px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--febimbo-gris);
}

/* ---------- Listado ---------- */
.pendientes-section {
    padding: 60px 5% 90px;
    background-color: white;
}

.pendientes-layout {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
}

.pendientes-card {
    flex: 999 1 600px;
    min-width: 0;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.pendientes-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 20px 28px;
    border-bottom: 1px solid #e8eeea;
}

.pendientes-card-head h2,
.pendientes-ayuda h2 {
    font-family: "Titillium Web", sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--febimbo-gris-oscuro);
}

.pendientes-fecha {
    font-size: 0.9rem;
    color: var(--febimbo-gris);
}

.pendientes-fecha i {
    margin-right: 6px;
    color: var(--febimbo-verde-oscuro);
}

.pendientes-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
}

.pendientes-table thead th {
    background-color: var(--febimbo-verde-oscuro);
    color: white;
    text-align: left;
    padding: 14px 28px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pendientes-table td {
    padding: 16px 28px;
    border-bottom: 1px solid #eef2ef;
    color: var(--febimbo-gris-oscuro);
}

.pendientes-table tbody tr:nth-child(even) {
    background-color: #f8fbf9;
}

.pendientes-table tbody tr:last-child td {
    border-bottom: none;
}

.pendientes-table .col-fecha {
    white-space: nowrap;
}

.pendientes-table .col-valor {
    text-align: right;
    white-space: nowrap;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.pendientes-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 22px 28px;
    background-color: var(--febimbo-amarillo);
    color: #2b2205;
}

.pendientes-total span {
    font-weight: 600;
}

.pendientes-total strong {
    font-family: "Titillium Web", sans-serif;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

/* ---------- Tarjeta de ayuda ---------- */
.pendientes-ayuda {
    flex: 1 1 300px;
    min-width: 0;
    background-color: var(--febimbo-gris-claro);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.pendientes-pasos {
    list-style: none;
    counter-reset: paso;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pendientes-pasos li {
    counter-increment: paso;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #3d4a43;
}

.pendientes-pasos li::before {
    content: counter(paso);
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(15, 158, 91, 0.12);
    color: var(--febimbo-verde-oscuro);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pendientes-btn-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 50px;
    background-color: var(--febimbo-verde-oscuro);
    color: white;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(15, 158, 91, 0.3);
    transition: all 0.3s ease;
}

.pendientes-btn-wa i {
    font-size: 1.3rem;
}

.pendientes-btn-wa:hover {
    background-color: var(--febimbo-verde-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(15, 158, 91, 0.4);
}

.pendientes-correo {
    text-align: center;
    font-size: 0.9rem;
    color: var(--febimbo-verde-oscuro);
    text-decoration: none;
    word-break: break-word;
}

.pendientes-correo:hover {
    text-decoration: underline;
}

.pendientes-nota {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--febimbo-gris);
    border-top: 1px dashed #c9d6ce;
    padding-top: 14px;
}

.pendientes-nota i {
    color: var(--febimbo-verde-oscuro);
    margin-right: 4px;
}

/* ---------- Animaciones ---------- */
.fadeIn {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fadeIn.animated {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
    .fadeIn {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---------- Botón volver arriba ---------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--febimbo-verde);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(15, 158, 91, 0.3);
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(20px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: #10d794;
    transform: translateY(-5px);
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .pendientes-title {
        font-size: 2.8rem;
    }
}

/* En celular la tabla se vuelve tarjetas */
@media (max-width: 640px) {
    .pendientes-hero {
        padding: 40px 5% 44px;
    }

    .pendientes-title {
        font-size: 2.2rem;
    }

    .pendientes-intro {
        font-size: 1rem;
    }

    .pendientes-section {
        padding: 40px 5% 70px;
    }

    .pendientes-card-head,
    .pendientes-total {
        padding: 18px 20px;
    }

    .pendientes-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .pendientes-table tbody tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: 12px;
        row-gap: 2px;
        padding: 16px 20px;
        border-bottom: 1px solid #eef2ef;
    }

    .pendientes-table tbody tr:last-child {
        border-bottom: none;
    }

    .pendientes-table td {
        display: block;
        padding: 0;
        border: none;
    }

    .pendientes-table .col-fecha {
        font-weight: 600;
    }

    .pendientes-table .col-medio {
        grid-column: 1;
        font-size: 0.9rem;
        color: var(--febimbo-gris);
    }

    .pendientes-table .col-valor {
        grid-column: 2;
        grid-row: 1 / 3;
        align-self: center;
        color: var(--febimbo-verde-oscuro);
        font-size: 1.05rem;
    }

    .pendientes-total strong {
        font-size: 1.6rem;
    }

    .pendientes-ayuda {
        padding: 24px 20px;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
        font-size: 1rem;
    }
}
