/* ═══════════════════════════════════════════════════════════
   VARIABLES Y BASE
═══════════════════════════════════════════════════════════ */
.tabla-alta {
    --ta-border-width: var(--border-width-s, 1px);
    --ta-border: var(--Color-Border-General-1, #C8D9D0);
    --ta-radius: var(--border-radius-l, 16px);
    --ta-surface-white: var(--Color-Form-Surface-General, #FFFFFF);
    --ta-surface-gray: var(--Color-Category-General-3, #F0F0F0);
    --ta-surface-dark: var(--Color-Surface-General-Inverse, #00402A);
    --ta-text: var(--Color-Content-General-1, #2C2C2C);
    padding: 40px var(--360-575-page-margin, 16px);
    flex-direction: column;
    gap: 32px;
    display: flex;
}

.tabla-alta__wrapper {
    max-width: none;
    overflow: visible;
    border-radius: 0;

}

.carrusel-tabla__h2 {
    text-align: center;
    padding-bottom: 0;
    margin-bottom: 0;
}

.tabla-alta__table,
.tabla-alta__table tr,
.tabla-alta__cell {
    display: block;
    width: 100%;
}

/* Sin JS: tarjetas apiladas en vertical */
.tabla-alta__table tbody {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

/* La cabecera de columnas se oculta visualmente pero sigue disponible para lectores de pantalla */
.tabla-alta__table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.tabla-alta__table tbody tr {
    box-sizing: border-box;
    overflow: hidden;
}

.tabla-alta__row-head {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    height: auto;
    padding: 16px;
    background: var(--ta-surface-dark);
    color: var(--Color-Content-General-Inverse, #FFF);
    border: 0 solid var(--Color-Border-General-Inverse, #699282);
    border-right-width: var(--ta-border-width);
    border-left-width: var(--ta-border-width);
    border-radius: var(--ta-radius) var(--ta-radius) 0 0;
}

.tabla-alta__cell {
    position: relative;
    min-height: 56px;
    height: auto;
    padding: 16px;
    text-align: left;
    /* justify-content: flex-start; */
    background: var(--ta-surface-white);
    border: var(--ta-border-width) solid var(--ta-border);
    border-top: 0;
    vertical-align: top;
}

.tabla-alta__cell:last-child {
    border-radius: 0 0 var(--ta-radius) var(--ta-radius);
}

/* Título de cada bloque (data-label) */
.tabla-alta__cell::before {
    content: attr(data-label);
    display: block;
    box-sizing: border-box;
    min-height: 56px;
    margin: -16px -16px 16px;
    padding: 16px;
    text-align: center;
    background-color: var(--ta-surface-gray);
    color: var(--ta-text);
    border-bottom: var(--ta-border-width) solid var(--ta-border);
}

.carrusel-tabla__icon-wrapper {
    display: flex;
}

/* La navegación solo se usa en mobile/tablet */
.tabla-alta__navigation {
    display: none;
}

/* ═══════════════════════════════════════════════════════════
   MOBILE — CARRUSEL (clase añadida por JS)
═══════════════════════════════════════════════════════════ */
.tabla-alta--carousel .tabla-alta__wrapper {
    /* padding: 32px 16px 24px; */
    overflow: hidden;
    touch-action: pan-y;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.tabla-alta--carousel.tabla-alta--dragging .tabla-alta__wrapper {
    cursor: grabbing;
}

.tabla-alta--carousel .tabla-alta__table tbody {
    position: relative;
    flex-direction: row;
    align-items: stretch;
    gap: 24px;
    width: max-content;
}

.tabla-alta--carousel .tabla-alta__table tbody tr {
    display: flex;
    flex-direction: column;
    flex: 0 0 328px;
    width: 328px;
}

.tabla-alta--carousel .tabla-alta__cell:last-child {
    flex: 1 1 auto;
}

.tabla-alta--carousel img {
    pointer-events: none;
}

/* ── Navegación del carrusel (creada por JS) ── */
.tabla-alta--carousel .tabla-alta__navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    /* margin-top: 32px; */
}

.tabla-alta__button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--ta-border);
    border-radius: 50%;
    background-color: #FFFFFF;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.tabla-alta__button img {
    width: 14px;
    height: 14px;
    display: block;
    object-fit: contain;
}

.tabla-alta__button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.tabla-alta__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 88px;
    height: 32px;
    gap: 6px;
    margin: 0 8px;
    padding: 0;
    background-color: #FFFFFF;
    border: 1px solid #E5E5E5;
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.tabla-alta__bullet {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    padding: 0;
    margin: 0;
    border: 1.5px solid var(--Color-Control-Border-Active, #2F6852);
    border-radius: 50%;
    background-color: transparent;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.tabla-alta__bullet.active {
    background-color: var(--Color-Semantic-Success-1, #007F33);
}

/* ═══════════════════════════════════════════════════════════
   MOBILE — CARDS GENERADAS POR JS (nuevo carrusel por columna)
═══════════════════════════════════════════════════════════ */

/* Track de slides */
.carrusel-track {
    display: flex;
    flex-direction: row;
    gap: 12px;
    will-change: transform;
    cursor: grab;
    max-height: 608px;
    position: relative;
    flex-wrap: nowrap;
    width: max-content;
}

.tabla-alta--dragging .carrusel-track {
    cursor: grabbing;
}

.carrusel-slide {
    flex: 0 0 328px;
    width: 328px;
    background: #FFF;
    border: 1px solid var(--Color-Border-General-1, #C8D9D0);
    border-radius: var(--border-radius-l, 16px);
    overflow: hidden;
    user-select: none;
        box-sizing: border-box;

}

/* Cabecera de la card (título del plan) */
.carrusel-slide__header {
    background: var(--Color-Surface-General-Inverse, #00402A);
    color: #fff;
    padding: 16px;
    text-align: left;
    min-height: 56px;
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    justify-content: center;
}

/* Cuerpo de la card (filas de datos) */
.carrusel-slide__body {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* la altura fija viene del JS: 608px */
    flex: 1 0 0;

}

/* Cada fila dentro de la card */
.carrusel-slide__row {
    flex: 1;
    flex: 1 0 0;
    flex-direction: column;
    justify-content: center;
    padding: 0;
    border-bottom: 1px solid var(--Color-Border-General-1, #C8D9D0);
}

.carrusel-slide__row:last-child {
    border-bottom: none;
    max-height: 56px;
}

/* Fila de enlace (última fila con "Contratar" / "Ir a...") */
.carrusel-slide__row--link {
    align-items: center;
    justify-content: center;
}

.carrusel-slide__row--link .carrusel-slide__label {
    display: none;
}

.carrusel-slide__row--link .carrusel-slide__value {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Etiqueta de fila (nombre de la característica) */
.carrusel-slide__label {
    background: var(--Color-Category-General-3, #F0F0F0);
    color: var(--Color-Content-General-1, #2C2C2C);
    /* font-size: 0.8rem; */
    /* font-weight: 700; */
    /* padding: 10px 16px; */
    border-bottom: 1px solid var(--Color-Border-General-1, #C8D9D0);
    display: block;
    /* min-height: 56px; */
    display: flex;
    min-height: 56px;
    padding: var(--size-space-16, 16px);
    /* justify-content: center; */
    align-items: center;
    gap: var(--size-space-0, 0);
    align-self: stretch;
    flex: 1 0 0;
}

/* Valor de fila */
.carrusel-slide__value {
    background: #FFF;
    color: var(--Color-Content-General-1, #2C2C2C);
    font-size: 0.875rem;
    line-height: 1.5;
    padding: 12px 16px;
    display: block;
    /* border-top: var(--border-width-none, 0) solid var(--Color-Border-General-1, #C8D9D0); */
    /* border-right: var(--border-width-s, 1px) solid var(--Color-Border-General-1, #C8D9D0); */
    /* border-bottom: var(--border-width-s, 1px) solid var(--Color-Border-General-1, #C8D9D0); */
    /* border-left: var(--border-width-s, 1px) solid var(--Color-Border-General-1, #C8D9D0); */
    background: #FFF;
}

@media (min-width: 576px) {
    .tabla-alta {

        padding: 40px var(--576-767-page-margin, 42px);

    }

    .carrusel-slide {
        flex-basis: 492px; 
        width: 492px;
    }
}

    @media (min-width: 768px) {
        .tabla-alta {


            padding: 40px var(--768-991-page-margin, 48px);
        }

        .carrusel-slide {
           flex-basis: 672px; 
            width: 672px; 
        }
    }

        @media (min-width: 992px) {
            .carrusel-track {
                display: none;
            }

            .tabla-alta__table {
                display: table;
            }
            .grey {
                background: var(--Color-Surface-General-3, #F9F9F9);
            }

            .white {
                background: #FFF;
            }

            .tabla-alta__table tr {
                display: table-row;
            }

            .tabla-alta__table thead {
                position: static;
                /* anula el clip/hide del mobile */
                width: auto;
                height: auto;
                margin: 0;
                overflow: visible;
                clip-path: none;
                white-space: normal;
            }

            .tabla-alta__table tbody {
                display: table-row-group;
                flex-direction: unset;
                gap: 0;
                width: auto;
            }

            .tabla-alta__cell {
                display: table-cell;
                width: auto;
                border-top: var(--border-width-s, 1px) solid var(--Color-Border-General-1, #C8D9D0);
            }

            /* Ocultar el pseudo-elemento data-label en desktop */
            .tabla-alta__cell::before {
                content: none;
            }

            /* Reset del row-head */
            .tabla-alta__row-head {
                display: table-cell;
                border-radius: 0;
            }

            .tabla-alta {
                min-width: var(--992-1199-page-width, 992px);
            }

            .tabla-alta .carrusel-tabla__h2 {
                text-align: center;
                padding: 0 16px;
            }

            .tabla-alta__table thead tr th:first-child,
            .tabla-alta__table tbody tr th:first-child {
                width: 167px;
            }

            .tabla-alta__table tbody tr:nth-child(1) th,
            .tabla-alta__table tbody tr:nth-child(1) td {
                height: 142px;
            }

            .tabla-alta__table tbody tr:nth-child(3) th,
            .tabla-alta__table tbody tr:nth-child(3) td,
            .tabla-alta__table tbody tr:nth-child(4) th,
            .tabla-alta__table tbody tr:nth-child(4) td {
                height: 120px;
                width: 220px;
                
            }

            .tabla-alta__table thead tr th:not(:first-child),
            .tabla-alta__table tbody tr td {
                width: 220px;
                
            }

            .tabla-alta__table tbody tr:last-child th,
            .tabla-alta__table tbody tr:last-child td {
                height: 56px;
                padding: var(--size-space-16, 16px);
                
            }

            td.tabla-alta__cell.body_regular_m {
                color: var(--Color-Content-General-1, #2C2C2C);
                min-height: 56px;
                padding: var(--size-space-16, 16px);
                align-items: flex-start;
                align-self: stretch;
                vertical-align: top;
                text-align: left;
            }

            .tabla-alta__wrapper {
                box-sizing: border-box;
                margin: 0 auto;
                overflow: hidden;
                border-radius: var(--ta-radius);
            }

            .tabla-alta__table {
                width: 100%;
                table-layout: fixed;
                border-collapse: collapse;
                margin: 0;
            }

            .tabla-alta__caption {
                position: absolute;
                width: 1px;
                height: 1px;
                margin: -1px;
                padding: 0;
                overflow: hidden;
                clip-path: inset(50%);
                white-space: nowrap;
                border: 0;
            }

            .texto-precio--especifico {
                display: none;
            }

            .texto-precio--default {
                display: block;
            }

            .tabla-alta__th {
                height: 56px;
                min-height: 56px;
                padding: var(--size-space-16, 16px);
                justify-content: center;
                align-items: center;
                gap: var(--size-space-0, 0);
                align-self: stretch;
                border-top: var(--border-width-none, 0) solid var(--Color-Border-General-Inverse, #699282);
                border-right: var(--border-width-s, 1px) solid var(--Color-Border-General-Inverse, #699282);
                border-bottom: var(--border-width-none, 0) solid var(--Color-Border-General-Inverse, #699282);
                border-left: var(--border-width-s, 1px) solid var(--Color-Border-General-Inverse, #699282);
                background: var(--Color-Surface-General-Inverse, #00402A);
                color: var(--Color-Content-General-Inverse, #FFF);
            }

            .tabla-no-carrusel__icon-wrapper,
            .carrusel-tabla__icon-wrapper {
                position: absolute;
                left: 16px;
                transform: translateY(-50%);
                align-items: center;
                justify-content: center;
            }

            .tabla-no-carrusel__icon-wrapper {
                top: 50%;
                display: inline-flex;
            }

            .carrusel-tabla__icon-wrapper {
                top: 28px;
                z-index: 1;
                display: none;
            }

            .tabla-alta__row-head {
                background: var(--ta-surface-gray);
                height: 142px;
                min-height: 56px;
                padding: var(--size-space-16, 16px);
                align-items: flex-start;
                gap: var(--size-space-0, 0);
                align-self: stretch;
                color: var(--ta-text);
                border: var(--border-width-s, 1px) solid var(--Color-Border-General-1, #C8D9D0);
            }

            .tabla-alta__cell {
                padding: var(--size-space-16, 16px);
                border: var(--border-width-s, 1px) solid var(--Color-Border-General-1, #C8D9D0);
                
            }

            .tabla-alta__navigation {
                display: none;
            }

            .row-table {
                display: flex;
                justify-content: center;
                align-items: center;
                gap: var(--size-space-8, 8px);
                align-self: stretch;
                height: 18px;
            }

            .textlink {
                white-space: nowrap;
            }
        }

        /* ═══════════════════════════════════════════════════════════
   DESKTOP ≥ 1200px — SIN MODIFICAR
═══════════════════════════════════════════════════════════ */
        @media (min-width: 1200px) {
            .tabla-alta {
                min-width: var(--1200-1399-page-width, 1200px);
                padding: var(--size-space-56, 56px) var(--1200-1399-page-margin, 102px);
                flex-direction: column;
                gap: var(--size-space-32, 32px);
            }

            .tabla-alta__table thead tr th:first-child,
            .tabla-alta__table tbody tr th:first-child {
                width: 249px;
            }

            .tabla-alta__table tbody tr:nth-child(1) th,
            .tabla-alta__table tbody tr:nth-child(1) td,
            .tabla-alta__table tbody tr:nth-child(3) th,
            .tabla-alta__table tbody tr:nth-child(3) td,
            .tabla-alta__table tbody tr:nth-child(4) th,
            .tabla-alta__table tbody tr:nth-child(4) td {
                height: 120px;
            }

            .tabla-alta__table thead tr th:not(:first-child),
            .tabla-alta__table tbody tr td {
                width: 249px;
            }
        }

        /* ═══════════════════════════════════════════════════════════
   DESKTOP ≥ 1920px — SIN MODIFICAR
═══════════════════════════════════════════════════════════ */
        @media (min-width: 1920px) {
            .tabla-alta {
                min-width: var(--14001920-page-width, 1920px);
                padding: var(--size-space-64, 64px) var(--14001920-page-margin, 324px);
            }

            .tabla-alta__table thead tr th:first-child,
            .tabla-alta__table tbody tr th:first-child {
                width: 286px;
            }

            .tabla-alta__table tbody tr:nth-child(1) th,
            .tabla-alta__table tbody tr:nth-child(1) td,
            .tabla-alta__table tbody tr:nth-child(3) th,
            .tabla-alta__table tbody tr:nth-child(3) td,
            .tabla-alta__table tbody tr:nth-child(4) th,
            .tabla-alta__table tbody tr:nth-child(4) td {
                width: 286px;
                height: 98px;
            }

            .tabla-alta__table thead tr th:not(:first-child),
            .tabla-alta__table tbody tr td {
                width: 286px;
            }
        }
    