.toggle-container {
    display: inline-block;
    cursor: pointer;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 50%;
}

.toggle-input:checked + .toggle-slider {
    background-color: #2196F3;
}

.toggle-input:checked + .toggle-slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

.flag {
    width: 24px;
    height: 24px;
    margin-right: 5px;
}

/* Idiom float container */
.lang-float-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    font-family: Arial, sans-serif;
}

/* botÃ³n flotante */
.lang-button {
    width: 50px;
    height: 50px;
    background: #0d6efd;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* menÃº desplegable */
.lang-menu {
    display: none;
    margin-top: 10px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    overflow: hidden;
    width: 150px;
}

.lang-menu.active {
    display: block;
}

/* items */
.lang-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.lang-item:hover {
    background: #f2f2f2;
}

.lang-item img {
    width: 24px;
    height: 24px;
}

.download-description {
    color: whitesmoke;
}

:root {
    --qpl-navy:   #0a1628;
    --qpl-blue:   #1a3a6b;
    --qpl-accent: #e8a020;
    --qpl-light:  #f4f7fc;
    --qpl-border: #dce4ef;
    --qpl-text:   #1e2d45;
    --qpl-muted:  #6b7c99;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--qpl-light);
    color: var(--qpl-text);
}

/* ©¤©¤ Hero de secci¨®n ©¤©¤ */
.tariff-hero {
    background: linear-gradient(135deg, var(--qpl-navy) 0%, var(--qpl-blue) 100%);
    padding: 60px 0 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.tariff-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.tariff-hero h1 {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
}
.tariff-hero p {
    color: rgba(255,255,255,0.65);
    margin-top: 8px;
    font-size: 1rem;
    position: relative;
}
.tariff-hero .accent-line {
    width: 60px; height: 3px;
    background: var(--qpl-accent);
    margin: 16px auto 0;
    border-radius: 2px;
    position: relative;
}

/* ©¤©¤ Tabs selector ©¤©¤ */
.tab-wrapper {
    background: #fff;
    border-bottom: 2px solid var(--qpl-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.tab-wrapper .container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}
.tab-nav {
    display: flex;
    gap: 0;
    list-style: none;
}
.tab-nav li button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 30px;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--qpl-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    white-space: nowrap;
}
.tab-nav li button .tab-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    background: var(--qpl-light);
    transition: all 0.2s;
}
.tab-nav li button:hover { color: var(--qpl-blue); }
.tab-nav li button.active {
    color: var(--qpl-blue);
    border-bottom-color: var(--qpl-accent);
}
.tab-nav li button.active .tab-icon {
    background: var(--qpl-accent);
    color: #fff;
}

/* ©¤©¤ Contenido principal ©¤©¤ */
.main-content {
    max-width: 1300px;
    margin: 0 auto;
    padding: 32px 24px 60px;
}

/* ©¤©¤ Panel de cada tarifario ©¤©¤ */
.tariff-panel { display: none; }
.tariff-panel.active { display: block; }

/* ©¤©¤ Barra de herramientas ©¤©¤ */
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.toolbar-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--qpl-navy);
    flex: 1;
}
.search-container {
    display: flex;
    display
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid var(--qpl-border);
    border-radius: 8px;
    padding: 0 14px;
    gap: 8px;
    transition: border-color 0.2s;
}
.search-box:focus-within { border-color: var(--qpl-blue); }
.search-box i { color: var(--qpl-muted); font-size: 0.9rem; }
.search-box input {
    border: none;
    outline: none;
    padding: 10px 0;
    font-size: 0.9rem;
    color: var(--qpl-text);
    width: 220px;
    background: transparent;
}
.btn-download {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--qpl-accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}
.btn-download:hover { background: #d4901a; transform: translateY(-1px); color: #fff; }

/* ©¤©¤ Loading state ©¤©¤ */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: var(--qpl-muted);
    gap: 16px;
}
.spinner {
    width: 40px; height: 40px;
    border: 3px solid var(--qpl-border);
    border-top-color: var(--qpl-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ©¤©¤ Error state ©¤©¤ */
.error-state {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    color: #856404;
}

/* ©¤©¤ Tabla ©¤©¤ */
.table-wrapper {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e6ebf2;
    overflow: hidden;
}

.table-scroll {
    max-height: 60vh;
    overflow-x: auto;
    overflow-y: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

/* HEADER */
thead {
    position: sticky;
    top: 0;
    z-index: 5;
}

thead tr {
    background: #f4f7fb; /* gris claro corporativo */
}

thead th {
    padding: 13px 14px;
    text-align: left;
    color: #5b6b82;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-bottom: 1px solid #e6ebf2;
}

/* BODY */
tbody tr {
    border-bottom: 1px solid #eef2f7;
}

tbody tr:hover {
    background: #f9fbfd; /* hover MUY sutil */
}

tbody td {
    padding: 10px 14px;
    color: #2f3e55;
    white-space: nowrap;
}

thead th,
tbody td {
    white-space: nowrap;
}

/* quitar zebra fuerte */
tbody tr:nth-child(even) {
    background: #fff;
}

/* precios */
.cell-price {
    font-weight: 600;
    color: #1a3a6b; /* azul corporativo suave */
}

/* badges m¨¢s neutros */
.cell-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    background: #eef2f7;
    color: #5b6b82;
}

/* elimina colores fuertes */
.badge-export,
.badge-import,
.badge-local {
    background: #eef2f7;
    color: #5b6b82;
}

/* ©¤©¤ Stats bar ©¤©¤ */
.stats-bar {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.stat-chip {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--qpl-border);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.82rem;
    color: var(--qpl-muted);
    white-space: nowrap;
}
.stat-chip strong {
    color: var(--qpl-navy);
    font-size: 1rem;
}

/* ©¤©¤ Empty filtered ©¤©¤ */
.no-results {
    text-align: center;
    padding: 40px;
    color: var(--qpl-muted);
    font-size: 0.9rem;
}

/* Icons */
.tab-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f7fc;
    transition: all 0.2s;
}

.tab-icon svg {
    width: 18px;
    height: 18px;
}

/* Activo */
.tab-nav li button.active .tab-icon {
    background: #e8a020;
    color: #fff;
}

.section-padding-tarifario {
    padding: 0px 0px 120px 0px;
}

/* ©¤©¤ Responsive ©¤©¤ */
@media (max-width: 600px) {
    .tariff-hero h1 { font-size: 1.5rem; }
    .tab-nav li button { padding: 14px 16px; font-size: 0.85rem; }
    .search-box input { width: 140px; }
    .toolbar-title { width: 100%; }
}

/* Paginaci¨®n */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
}

.pagination button {
    border: 1px solid #dce4ef;
    background: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
}

.pagination button:hover {
    background: #f4f7fc;
}

.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination span {
    font-size: 0.85rem;
    color: #5b6b82;
}
        