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

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

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

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

    .PWEB_UI_breadcrumb a {
        color: var(--ui-text-muted);
        text-decoration: none;
    }

        .PWEB_UI_breadcrumb a:hover {
            color: var(--ui-green-dark);
        }

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

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

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

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

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

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

.PWEB_UI_error {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background-color: #fef2f2;
    border: 1px solid #fee2e2;
    color: #b91c1c;
    border-radius: var(--ui-radius-sm);
    padding: 1rem 1.25rem;
    font-size: 0.85rem;
}

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

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

.PWEB_UI_tableWrap {
    overflow-x: auto;
}

/* table-layout:fixed + ancho fijo en la columna de descripción: para que la columna
   de tarifa arranque siempre en el mismo punto en las tres tablas, sin importar el
   largo de la descripción más larga de cada una. */
.PWEB_UI_table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.83rem;
    table-layout: fixed;
}

    .PWEB_UI_table td:first-child,
    .PWEB_UI_table th:first-child {
        width: 75%;
    }

    .PWEB_UI_table thead th {
        background: none;
        color: var(--ui-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(--ui-green-light);
    }

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

        .PWEB_UI_table thead th:not(:first-child) {
            text-align: right;
        }

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

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

    .PWEB_UI_table td {
        padding: 0.75rem 1.1rem;
        color: var(--ui-text);
    }

        .PWEB_UI_table td:not(:first-child) {
            text-align: right;
            font-variant-numeric: tabular-nums;
            color: var(--ui-text-muted);
        }

/* ===== Fila de sub-sección (ej. "A la carga:") ===== */
.PWEB_UI_sectionRow td {
    background-color: var(--ui-page-bg);
    padding: 0.6rem 1.1rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ui-text-muted);
}

/* ===== Fila de nota (extra por sección o recargos por tabla) ===== */
.PWEB_UI_noteRow td {
    background-color: var(--ui-green-light);
    padding: 0.85rem 1.1rem;
}

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

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

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

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

/* ===== Nota final de la página ===== */
.PWEB_UI_note {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    background-color: var(--ui-green-light);
    border-left: 4px solid var(--ui-green);
    border-radius: var(--ui-radius-sm);
    padding: 1rem 1.1rem;
    font-size: 0.83rem;
    color: var(--ui-green);
    font-weight: 600;
}

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

    .PWEB_UI_note p {
        margin: 0;
        line-height: 1.5;
    }

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