:root {
    --alm-green: #51a121;
    --alm-green-dark: #467c18;
    --alm-green-light: #eaf5e0;
    --alm-text: #1f2937;
    --alm-text-muted: #6b7280;
    --alm-border: #eef0ee;
    --alm-page-bg: #f6f8f5;
    --alm-radius: 14px;
    --alm-radius-sm: 12px;
    --alm-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    --alm-shadow-hover: 0 10px 24px rgba(15, 23, 42, 0.10);
    --alm-transition: 0.2s ease;
}

.PWEB_ALM_section {
    background-color: var(--alm-page-bg);
    padding: 1.5rem 0 3rem;
}

.PWEB_ALM_container {
    width: min(1100px, calc(100vw - 3rem));
    margin: 0 auto;
}

.PWEB_ALM_breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--alm-text-muted);
    margin-bottom: 1rem;
}

    .PWEB_ALM_breadcrumb a {
        color: var(--alm-text-muted);
        text-decoration: none;
    }

        .PWEB_ALM_breadcrumb a:hover {
            color: var(--alm-green-dark);
        }

    .PWEB_ALM_breadcrumb span.is-current {
        font-weight: 600;
        color: var(--alm-text);
    }

.PWEB_ALM_title {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--alm-text);
    margin: 0 0 0.5rem;
}

.PWEB_ALM_subtitle {
    font-size: 0.95rem;
    color: var(--alm-text-muted);
    margin: 0 0 1.75rem;
    max-width: 640px;
}

.PWEB_ALM_loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    padding: 3rem 0;
    color: var(--alm-text-muted);
    font-size: 0.85rem;
}

.PWEB_ALM_spinner {
    width: 34px;
    height: 34px;
    border: 3px solid #e5e7eb;
    border-top-color: var(--alm-green);
    border-radius: 50%;
    animation: PWEB_ALM_spin 0.8s linear infinite;
}

@keyframes PWEB_ALM_spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== Tarjetas de tarifas ===== */
.PWEB_ALM_tableCard {
    background-color: #ffffff;
    border: 1px solid var(--alm-border);
    border-radius: var(--alm-radius);
    box-shadow: var(--alm-shadow);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.PWEB_ALM_tableHeader {
    background: linear-gradient(135deg, var(--alm-green), var(--alm-green-dark));
    color: #ffffff;
    padding: 0.85rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 700;
}

.PWEB_ALM_tableWrap {
    overflow-x: auto;
}

/* table-layout:fixed + una columna de descripción con ancho fijo: sin esto, cada tabla
   (Llenos, Bodega, Vacíos, Transbordos) calcula sus columnas por separado según su
   propio contenido, y "1-3" termina en una posición distinta en cada tarjeta. Con un
   ancho fijo para la primera columna, las columnas de tarifa siempre arrancan en el
   mismo punto y crecen parejo de izquierda a derecha en las cuatro tablas. */
.PWEB_ALM_table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.83rem;
    table-layout: fixed;
}

    .PWEB_ALM_table th:first-child,
    .PWEB_ALM_table td:first-child {
        width: 45%;
    }

    .PWEB_ALM_table thead th {
        background: none;
        color: var(--alm-text-muted);
        font-weight: 600;
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        padding: 0.9rem 1.1rem 0.75rem;
        border-bottom: 2px solid var(--alm-green-light);
        white-space: nowrap;
    }

        .PWEB_ALM_table thead th:first-child {
            text-align: left;
        }

        .PWEB_ALM_table thead th:not(:first-child) {
            text-align: center;
        }

    .PWEB_ALM_table tbody tr {
        border-top: 1px solid var(--alm-border);
        transition: background-color var(--alm-transition);
    }

        .PWEB_ALM_table tbody tr:hover {
            background-color: var(--alm-page-bg);
        }

    .PWEB_ALM_table td {
        padding: 0.85rem 1.1rem;
        color: var(--alm-text);
    }

        .PWEB_ALM_table td:first-child {
            font-weight: 600;
        }

        .PWEB_ALM_table td:not(:first-child) {
            text-align: center;
            font-variant-numeric: tabular-nums;
            color: var(--alm-text-muted);
        }

.PWEB_ALM_freeBadge {
    display: inline-block;
    background-color: var(--alm-green-light);
    color: var(--alm-green-dark);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
}

.PWEB_ALM_recargosRow td {
    background-color: var(--alm-green-light);
    padding: 0.9rem 1.1rem;
}

.PWEB_ALM_recargosTitle {
    margin: 0 0 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--alm-green);
}

.PWEB_ALM_recargosList {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

    .PWEB_ALM_recargosList li {
        font-size: 0.78rem;
        color: var(--alm-text-muted);
        padding-left: 1rem;
        position: relative;
    }

        .PWEB_ALM_recargosList li::before {
            content: '•';
            position: absolute;
            left: 0;
            color: var(--alm-green);
        }

/* ===== Nota final ===== */
.PWEB_ALM_note {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    background-color: var(--alm-green-light);
    border-left: 4px solid var(--alm-green);
    border-radius: var(--alm-radius-sm);
    padding: 1rem 1.1rem;
    font-size: 0.83rem;
    color: var(--alm-green-dark);
}

    .PWEB_ALM_note i {
        font-size: 1rem;
        margin-top: 0.1rem;
        flex-shrink: 0;
    }

    .PWEB_ALM_note p {
        margin: 0 0 0.3rem;
        font-weight: 600;
        line-height: 1.5;
    }

        .PWEB_ALM_note p:last-child {
            margin-bottom: 0;
        }

/* ===== Tarjetas para móvil (misma info que la tabla, una fila = una tarjeta) =====
   Ocultas por defecto: en escritorio se ve la tabla. Por debajo de 640px se invierte
   (tabla oculta, tarjetas visibles) para no forzar scroll horizontal en cada fila. */
.PWEB_ALM_mobileCards {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
}

.PWEB_ALM_mobileCard {
    background-color: var(--alm-page-bg);
    border: 1px solid var(--alm-border);
    border-radius: var(--alm-radius-sm);
    padding: 0.85rem 1rem;
}

.PWEB_ALM_mobileCardTitle {
    margin: 0 0 0.6rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--alm-text);
}

.PWEB_ALM_mobileCardGrid {
    display: grid;
    grid-template-columns: 1fr auto;
    row-gap: 0.35rem;
    column-gap: 0.75rem;
    font-size: 0.8rem;
}

.PWEB_ALM_mobileCardLabel {
    color: var(--alm-text-muted);
}

.PWEB_ALM_mobileCardValue {
    text-align: right;
    font-weight: 600;
    color: var(--alm-text);
}

.PWEB_ALM_mobileCardRecargos {
    background-color: var(--alm-green-light);
    border: none;
}

    .PWEB_ALM_mobileCardRecargos .PWEB_ALM_recargosTitle {
        margin: 0 0 0.4rem;
    }

@media (max-width: 640px) {
    .PWEB_ALM_tableHeader {
        padding: 0.75rem 1rem;
        font-size: 0.82rem;
    }

    .PWEB_ALM_tableWrap {
        display: none;
    }

    .PWEB_ALM_mobileCards {
        display: flex;
    }
}
