/* =========================================================
   NDX CALCULADORA
   Frontend
   ========================================================= */

.ndx-calc,
.ndx-calc *,
.ndx-calc *::before,
.ndx-calc *::after {
    box-sizing: border-box;
}


/* =========================================================
   CONTENEDOR PRINCIPAL / VARIABLES
   ========================================================= */

.ndx-calc-wrap {
    /* Contenedor de referencia: el bloque puede ir en una columna de
       Elementor mas estrecha que el navegador, y con media queries se
       quedaba en el layout de escritorio dentro de un hueco pequeno. */
    container-type: inline-size;
    container-name: ndxcalc;
}

.ndx-calc {
    --ndx-bg-start: #1a6a60;
    --ndx-bg-end: #0f4a44;

    --ndx-accent: #ffc42b;

    --ndx-button-start: #ffc42b;
    --ndx-button-end: #f2b011;
    --ndx-button-text: #0d3b36;

    --ndx-text: #ffffff;
    --ndx-muted: #cfe4e1;

    --ndx-row: rgba(255, 255, 255, .07);
    --ndx-row-hover: rgba(255, 255, 255, .11);
    --ndx-row-selected: rgba(255, 255, 255, .15);

    --ndx-line: rgba(255, 255, 255, .20);

    --ndx-accent-soft: rgba(255, 196, 43, .12);
    --ndx-accent-selected: rgba(255, 196, 43, .21);

    width: calc(100% - 24px);
    max-width: 1480px;

    margin: 14px auto;

    padding: 18px 26px 14px;

    color: var(--ndx-text);

    background:
        linear-gradient(
            155deg,
            var(--ndx-bg-start) 0%,
            var(--ndx-bg-end) 100%
        );

    border-radius: 14px;

    box-shadow:
        0 12px 32px rgba(9, 45, 41, .18);

    font-family: var(--ndx-font,
        "Manrope",
        system-ui,
        -apple-system,
        "Segoe UI",
        Helvetica,
        Arial,
        sans-serif);

    /*
     * Antes: 14px
     * Ahora: 15px
     *
     * Aumentamos legibilidad sin escalar
     * exageradamente todo el componente.
     */
    font-size: 15px;

    line-height: 1.4;

    -webkit-font-smoothing: antialiased;
}


/* =========================================================
   ACCESIBILIDAD
   ========================================================= */

.ndx-sr-only {
    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip: rect(0 0 0 0);
    clip-path: inset(50%);

    white-space: nowrap;

    border: 0;
}


.ndx-calc :focus-visible {
    outline: 3px solid var(--ndx-accent);
    outline-offset: 2px;
}


/* =========================================================
   CABECERA GENERAL
   ========================================================= */

.ndx-calc__header {
    margin: 0 0 14px;

    padding: 0 0 11px;

    border-bottom:
        1px solid rgba(255, 255, 255, .14);
}


.ndx-calc__title {
    margin: 0;

    color: var(--ndx-text);

    font-size:
        clamp(
            1.35rem,
            1.08rem + .55vw,
            1.75rem
        );

    font-weight: 800;

    line-height: 1.15;

    letter-spacing: -.015em;
}


.ndx-calc__subtitle {
    margin: 5px 0 0;

    max-width: 800px;

    color: var(--ndx-muted);

    font-size: .96rem;

    font-weight: 500;

    line-height: 1.45;

    opacity: .95;
}


/* =========================================================
   GRID PRINCIPAL
   ========================================================= */

.ndx-calc__grid {
    display: grid;

    grid-template-columns: 1fr;

    gap: 20px;

    align-items: start;
}


.ndx-calc__col {
    min-width: 0;
}


/* =========================================================
   CABECERAS INTERIORES
   ========================================================= */

.ndx-block-head {
    margin: 0 0 10px;
}


.ndx-block-head__title {
    margin: 0 0 3px;

    color: var(--ndx-text);

    font-size: 1rem;

    font-weight: 800;

    letter-spacing: .07em;

    text-transform: uppercase;

    line-height: 1.2;
}


.ndx-block-head__sub {
    margin: 0;

    color: var(--ndx-muted);

    font-size: .92rem;

    font-weight: 500;

    line-height: 1.4;

    opacity: .95;
}


/* =========================================================
   SEPARADOR
   ========================================================= */

.ndx-calc__divider {
    display: none;
}


/* =========================================================
   FORMULARIO MEDIDAS
   ========================================================= */

.ndx-measures {
    display: flex !important;

    flex-direction: column;

    width: 100%;

    margin: 0;
}


.ndx-measures__set {
    display: grid;

    width: 100%;

    gap: 9px;

    margin: 0;

    padding: 0;

    border: 0;
}


/* =========================================================
   CAMPOS
   ========================================================= */

.ndx-field {
    display: grid;

    grid-template-columns: 1fr;

    gap: 5px;
}


.ndx-field__label {
    color: var(--ndx-text);

    font-size: .88rem;

    font-weight: 650;
}


.ndx-field__control {
    position: relative;

    display: flex;

    align-items: center;
}


.ndx-field__input {
    width: 100%;

    /*
     * Solo +2px respecto a la versión compacta.
     */
    height: 40px;
    min-height: 40px;

    padding:
        7px
        36px
        7px
        12px;

    color: var(--ndx-text);

    background:
        rgba(255, 255, 255, .10);

    border:
        1px solid rgba(255, 255, 255, .42);

    border-radius: 8px;

    font: inherit;

    font-size: .94rem;

    appearance: textfield;

    -moz-appearance: textfield;

    transition:
        border-color .18s ease,
        background-color .18s ease,
        box-shadow .18s ease;
}


.ndx-field__input::-webkit-outer-spin-button,
.ndx-field__input::-webkit-inner-spin-button {
    -webkit-appearance: none;

    margin: 0;
}


.ndx-field__input::placeholder {
    color: var(--ndx-muted);

    opacity: .65;
}


.ndx-field__input:hover {
    border-color:
        rgba(255, 255, 255, .70);
}


.ndx-field__input:focus {
    outline: none;

    background:
        rgba(255, 255, 255, .15);

    border-color:
        var(--ndx-accent);

    box-shadow:
        0 0 0 2px
        rgba(255, 196, 43, .24);
}


.ndx-field__unit {
    position: absolute;

    right: 12px;

    color: var(--ndx-muted);

    font-size: .82rem;

    font-weight: 600;

    pointer-events: none;
}


/* =========================================================
   AYUDA MEDIDAS
   ========================================================= */

.ndx-measures__hint {
    margin: 0;

    color: var(--ndx-muted);

    opacity: .92;

    font-size: .84rem;

    font-weight: 500;

    line-height: 1.4;
}


/* =========================================================
   TARJETA FORMA PISCINA
   ========================================================= */

.ndx-scheme {
    display: flex !important;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    align-self: center !important;

    flex: 0 0 auto;

    margin: 28px auto 0 !important;

    float: none !important;

    text-align: center;
}


.ndx-scheme__picture {
    display: block;
    width: 100%;
    text-align: center;
}


.ndx-scheme__media {
    display: block !important;

    width: auto;
    max-width: none !important;

    height: auto;

    float: none !important;

    border: 0;

    background: transparent;

    object-fit: contain;
}


.ndx-scheme__caption {
    display: block;

    width: 100%;

    margin: 7px 0 0;

    font-size: .73rem;

    font-weight: 600;

    line-height: 1.25;

    text-align: center;
}


/* =========================================================
   MODELOS
   ========================================================= */

.ndx-models {
    width: 100%;

    min-width: 0;
}


/* =========================================================
   TABLA
   ========================================================= */

.ndx-models__table {
    width: 100%;

    border-collapse: separate;

    border-spacing: 0 7px;

    table-layout: fixed;
}


/* =========================================================
   CABECERA TABLA
   ========================================================= */

.ndx-models__table thead th {
    padding:
        0
        7px
        4px;

    color: var(--ndx-muted);

    opacity: .78;

    /*
     * Antes: .59rem
     * Ahora: .67rem
     */
    font-size: .67rem;

    font-weight: 700;

    letter-spacing: .08em;

    line-height: 1.2;

    text-align: center;

    text-transform: uppercase;

    white-space: nowrap;
}


.ndx-models__table thead th.ndx-c-model {
    text-align: left;
}


.ndx-models__table thead th.ndx-c-price {
    text-align: right;
}


/* =========================================================
   FILAS
   ========================================================= */

.ndx-models__row > th,
.ndx-models__row > td {
    /*
     * Solo incrementamos 1px.
     */
    padding:
        8px
        9px;

    color: var(--ndx-text);

    background:
        var(--ndx-row);

    border-top:
        1px solid var(--ndx-line);

    border-bottom:
        1px solid var(--ndx-line);

    /*
     * Antes: .78rem
     */
    font-size: .86rem;

    font-weight: 500;

    line-height: 1.25;

    text-align: center;

    vertical-align: middle;

    transition:
        background-color .16s ease,
        border-color .16s ease;
}


.ndx-models__row > th:first-child {
    border-left:
        1px solid var(--ndx-line);

    border-radius:
        8px
        0
        0
        8px;

    text-align: left;
}


.ndx-models__row > td:last-child {
    border-right:
        1px solid var(--ndx-line);

    border-radius:
        0
        8px
        8px
        0;
}


.ndx-models__row:hover > th,
.ndx-models__row:hover > td {
    background:
        var(--ndx-row-hover);
}


/* =========================================================
   SELECTOR PRODUCTO
   ========================================================= */

.ndx-pick {
    display: flex;

    align-items: center;

    gap: 8px;

    width: 100%;

    cursor: pointer;
}


.ndx-pick__input {
    flex: 0 0 auto;

    /*
     * Antes 15x15
     */
    width: 17px;
    height: 17px;

    margin: 0;

    accent-color:
        var(--ndx-accent);

    cursor: pointer;
}


.ndx-pick__thumb {
    flex: 0 0 auto;

    display: block;

    /*
     * Antes: 46x31
     */
    width: 52px;
    height: 35px;

    object-fit: cover;

    background:
        rgba(255, 255, 255, .06);

    border:
        1px solid
        rgba(255, 255, 255, .14);

    border-radius: 5px;
}


.ndx-pick__name {
    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 2px;

    color:
        var(--ndx-text);

    font-size: .88rem;

    font-weight: 700;

    line-height: 1.18;

    text-align: left;
}


/* =========================================================
   BADGE RECOMENDADO
   ========================================================= */

.ndx-badge {
    display: inline-block;

    padding:
        2px
        7px;

    color: #0d3b36;

    background:
        var(--ndx-accent);

    border-radius: 999px;

    font-size: .55rem;

    font-weight: 850;

    letter-spacing: .07em;

    line-height: 1.35;

    text-transform: uppercase;
}


/* =========================================================
   PRECIO
   ========================================================= */

.ndx-c-price {
    text-align: right !important;

    white-space: nowrap;
}


.ndx-c-price strong {
    color:
        var(--ndx-text);

    /*
     * El precio gana algo más de protagonismo.
     */
    font-size: 1rem;

    font-weight: 800;
}


.ndx-c-price .ndx-unit {
    margin-left: 2px;

    color:
        var(--ndx-muted);

    font-size: .72rem;
}


/* =========================================================
   PRODUCTO RECOMENDADO
   ========================================================= */

.ndx-models__row--featured > th,
.ndx-models__row--featured > td {
    background:
        var(--ndx-accent-soft);

    border-top-color:
        var(--ndx-accent);

    border-bottom-color:
        var(--ndx-accent);
}


.ndx-models__row--featured > th:first-child {
    border-left:
        3px solid
        var(--ndx-accent);
}


.ndx-models__row--featured > td:last-child {
    border-right-color:
        var(--ndx-accent);
}


.ndx-models__row--featured
.ndx-c-price strong {
    color:
        var(--ndx-accent);
}


/* =========================================================
   PRODUCTO SELECCIONADO
   ========================================================= */

.ndx-models__row:has(.ndx-pick__input:checked) > th,
.ndx-models__row:has(.ndx-pick__input:checked) > td {
    background:
        var(--ndx-row-selected);

    border-top-color:
        var(--ndx-text);

    border-bottom-color:
        var(--ndx-text);
}


.ndx-models__row:has(.ndx-pick__input:checked) > th:first-child {
    border-left:
        3px solid
        var(--ndx-text);
}


.ndx-models__row--featured:has(.ndx-pick__input:checked) > th,
.ndx-models__row--featured:has(.ndx-pick__input:checked) > td {
    background:
        var(--ndx-accent-selected);

    border-top-color:
        var(--ndx-accent);

    border-bottom-color:
        var(--ndx-accent);
}


.ndx-models__row--featured:has(.ndx-pick__input:checked) > th:first-child {
    border-left-color:
        var(--ndx-accent);
}


/* =========================================================
   MÁS MODELOS
   ========================================================= */

.ndx-models__more {
    margin:
        8px
        0
        0;

    text-align: center;
}


.ndx-calc .ndx-link-more {
    display: inline-block;

    padding-bottom: 2px;

    color:
        var(--ndx-text) !important;

    border-bottom:
        1px solid var(--ndx-muted);

    font-size: .80rem;

    font-weight: 600;

    line-height: 1.3;

    text-decoration: none;
}


.ndx-calc .ndx-link-more:hover {
    color:
        var(--ndx-accent) !important;

    border-bottom-color:
        var(--ndx-accent);
}


/* =========================================================
   CTA
   ========================================================= */

.ndx-calc__cta {
    display: flex;

    justify-content: center;

    width: 100%;
    max-width: 440px;

    margin:
        14px
        auto
        0;
}


.ndx-btn {
    font: inherit;

    border: 0;

    cursor: pointer;
}


.ndx-btn--primary {
    width: 100%;

    /*
     * Antes: 42px
     */
    min-height: 44px;

    padding:
        10px
        22px;

    color:
        var(--ndx-button-text);

    background:
        linear-gradient(
            180deg,
            var(--ndx-button-start) 0%,
            var(--ndx-button-end) 100%
        );

    border-radius: 8px;

    box-shadow:
        0 6px 16px
        rgba(0, 0, 0, .16);

    font-size: .95rem;

    font-weight: 850;

    letter-spacing: .04em;

    line-height: 1.2;

    text-transform: uppercase;

    transition:
        transform .15s ease,
        box-shadow .15s ease,
        filter .15s ease;
}


.ndx-btn--primary:hover {
    filter: brightness(1.05);

    box-shadow:
        0 8px 20px
        rgba(0, 0, 0, .20);
}


.ndx-btn--primary:active {
    transform:
        translateY(1px);
}


/* =========================================================
   VENTAJAS
   ========================================================= */

.ndx-perks {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 12px;

    margin:
        13px
        0
        0;

    padding:
        11px
        0
        0;

    list-style: none;

    border-top:
        1px solid
        rgba(255, 255, 255, .14);
}


.ndx-perks__item {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    min-width: 0;

    color:
        var(--ndx-muted);

    font-size: .78rem;

    font-weight: 500;

    line-height: 1.3;
}


.ndx-perks__icon {
    flex: 0 0 auto;

    color:
        var(--ndx-accent);

    font-size: 1rem;

    font-weight: 800;
}

.fix-header-more-models{
    display:flex; 
    align-items: flex-end; 
    justify-content: space-between;
}


/* =========================================================
   TABLET + DESKTOP
   ANCHOS TABLA
   ========================================================= */




/* =========================================================
   DESKTOP
   ========================================================= */




/* =========================================================
   TABLET
   ========================================================= */




/* =========================================================
   MÓVIL
   ========================================================= */




/* =========================================================
   MÓVILES MUY PEQUEÑOS
   ========================================================= */




/* =========================================================
   REDUCIR ANIMACIONES
   ========================================================= */


/* =========================================================
   Responsive por contenedor
   ========================================================= */

@container ndxcalc (min-width: 640px) {

    .ndx-models__table .ndx-c-model {
        width: 38%;
    }


    .ndx-models__table th:nth-child(2),
    .ndx-models__table td:nth-child(2),
    .ndx-models__table th:nth-child(3),
    .ndx-models__table td:nth-child(3),
    .ndx-models__table th:nth-child(4),
    .ndx-models__table td:nth-child(4) {
        width: 15%;
    }


    .ndx-models__table th:nth-child(5),
    .ndx-models__table td:nth-child(5) {
        width: 17%;
    }

}

@container ndxcalc (min-width: 980px) {

    .ndx-calc__grid {
        grid-template-columns:
            minmax(290px, 325px)
            58px
            minmax(620px, 760px);

        gap: 0;

        justify-content: center;

        align-items: start;
    }


    .ndx-calc__col--form {
        padding-right: 6px;
    }


    .ndx-calc__col--table {
        padding-left: 6px;
    }


    /* Separador */

    .ndx-calc__divider {
        display: flex;

        flex-direction: column;

        align-items: center;

        gap: 10px;

        height: 100%;

        padding-top: 52px;
    }


    .ndx-calc__arrow {
        display: block;

        width: 24px;
        height: 10px;

        background:
            var(--ndx-text);

        clip-path:
            polygon(
                0 42%,
                72% 42%,
                72% 0,
                100% 50%,
                72% 100%,
                72% 58%,
                0 58%
            );
    }


    .ndx-calc__rule {
        display: block;

        width: 1px;
        height: 132px;

        background:
            linear-gradient(
                180deg,
                rgba(255, 255, 255, .45),
                rgba(255, 255, 255, .04)
            );

        border-radius: 2px;
    }


    /* Medidas */

    .ndx-field {
        grid-template-columns:
            82px
            1fr;

        align-items: center;

        gap: 9px;
    }


    .ndx-measures__hint {
        padding-left: 91px;
    }

}

@container ndxcalc (min-width: 640px) and (max-width: 979px) {

    .ndx-calc {
        width:
            calc(100% - 20px);

        padding:
            17px
            20px
            14px;
    }


    .ndx-calc__grid {
        gap: 24px;
    }


    .ndx-scheme {
        width: 205px;

        max-width: 100%;

        margin: 0px auto 0 !important;
    }

    .ndx-models {
        overflow-x: auto;

        overflow-y: hidden;
    }


    .ndx-models__table {
        min-width: 620px;
    }


    .ndx-perks {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .ndx-perks__item {
        justify-content:
            flex-start;
    }

}

@container ndxcalc (max-width: 639px) {

    .ndx-calc {
        width: calc(100% - 14px);
        margin: 7px auto;
        padding: 18px 15px 16px;
        border-radius: 10px;
        font-size: 16px;
    }


    /* =====================================================
       CABECERA PRINCIPAL
       ===================================================== */

    .ndx-calc__header {
        margin-bottom: 18px;
        padding-bottom: 14px;
    }


    .ndx-calc__title {
        font-size: 1.50rem;
        line-height: 1.20;
        letter-spacing: -.01em;
    }


    .ndx-calc__subtitle {
        margin-top: 8px;
        font-size: 1.06rem;
        font-weight: 500;
        line-height: 1.48;
        opacity: .98;
    }


    .ndx-calc__grid {
        gap: 28px;
    }


    /* =====================================================
       CABECERAS DE SECCIÓN
       ===================================================== */

    .ndx-block-head {
        margin-bottom: 14px;
    }


    .ndx-block-head__title {
        margin-bottom: 5px;
        font-size: 1.16rem;
        line-height: 1.28;
    }


    .ndx-block-head__sub {
        font-size: 1.02rem;
        font-weight: 500;
        line-height: 1.46;
        opacity: .98;
    }


    /* =====================================================
       MEDIDAS
       ===================================================== */

    .ndx-measures {
        width: 100%;
    }


    .ndx-measures__set {
        gap: 13px;
    }


    .ndx-field {
        gap: 7px;
    }


    .ndx-field__label {
        font-size: .96rem;
        font-weight: 650;
    }


    .ndx-field__input {
        height: 48px;
        min-height: 48px;
        padding: 10px 40px 10px 13px;
        font-size: 1rem;
    }


    .ndx-field__unit {
        right: 13px;
        font-size: .90rem;
    }


    .ndx-measures__hint {
        margin-top: 3px;
        font-size: .96rem;
        font-weight: 500;
        line-height: 1.46;
        opacity: .97;
    }


    /* =====================================================
       IMAGEN / ESQUEMA MÓVIL
       ===================================================== */

    .ndx-scheme {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin: 18px auto 0 !important;
        text-align: center;
    }


    .ndx-scheme__picture {
        display: block;
        width: 100%;
        text-align: center;
    }


    .ndx-scheme__media {
        display: block !important;
        width: 260px;
        max-width: 100% !important;
        height: auto;
        margin: 0 auto !important;
        object-fit: contain;
    }


    .ndx-scheme__caption {
        margin-top: 8px;
        font-size: .92rem;
        font-weight: 600;
        line-height: 1.35;
    }


    /* =====================================================
       CABECERA COMPARADOR / MÁS MODELOS
       ===================================================== */

    .fix-header-more-models {
        display: block;
    }


    .ndx-models__more {
        margin: 10px 0 0;
        text-align: left;
    }


    .ndx-calc .ndx-link-more {
        font-size: .96rem;
    }


    /* =====================================================
       TABLA / TARJETAS
       ===================================================== */

    .ndx-models {
        width: 100%;
        overflow: visible;
    }


    .ndx-models__table {
        display: block;
        width: 100%;
        min-width: 0;
        border-spacing: 0;
    }


    .ndx-models__table thead {
        display: none;
    }


    .ndx-models__table tbody {
        display: block;
        width: 100%;
    }


    /* Ocultamos información secundaria solo en móvil. */
    .ndx-models__row > .ndx-c-delivery,
    .ndx-models__row > .ndx-c-quality,
    .ndx-models__row > .ndx-c-warranty {
        display: none !important;
    }


    .ndx-models__row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        width: 100% !important;
        min-height: 72px;
        margin: 0 0 11px;
        overflow: hidden;
        background: var(--ndx-row);
        border: 1px solid var(--ndx-line);
        border-radius: 9px;
    }


    .ndx-models__table .ndx-models__row > th,
    .ndx-models__table .ndx-models__row > td,
    .ndx-models__table .ndx-models__row > .ndx-c-model,
    .ndx-models__table .ndx-models__row > .ndx-c-price {
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
    }


    .ndx-models__row > th.ndx-c-model {
        display: flex;
        align-items: center;
        width: auto !important;
        min-width: 0 !important;
        height: 100%;
        padding: 10px 8px 10px 11px;
        background: transparent;
        border: 0;
        border-radius: 0;
        text-align: left;
    }


    .ndx-pick {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        min-width: 0;
    }


    .ndx-pick__input {
        flex: 0 0 auto;
        width: 19px;
        height: 19px;
    }


    .ndx-pick__thumb {
        flex: 0 0 auto;
        width: 65px;
        height: 44px;
        border-radius: 6px;
    }


    .ndx-pick__name {
        min-width: 0;
        font-size: .96rem;
        font-weight: 700;
        line-height: 1.22;
    }


    .ndx-badge {
        padding: 3px 7px;
        font-size: .61rem;
        line-height: 1.3;
    }


    .ndx-models__row > td.ndx-c-price {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
        width: auto !important;
        min-width: 95px !important;
        height: 100%;
        padding: 10px 12px 10px 7px;
        background: transparent;
        border: 0;
        border-radius: 0;
        text-align: right !important;
        white-space: nowrap;
    }


    .ndx-models__row > td.ndx-c-price::before {
        display: none;
        content: none;
    }


    .ndx-models__row > td.ndx-c-price strong {
        font-size: 1.08rem;
        font-weight: 800;
        line-height: 1.15;
    }


    .ndx-c-price .ndx-unit {
        margin: 3px 0 0;
        font-size: .76rem;
        line-height: 1.15;
    }


    .ndx-models__row--featured {
        background: var(--ndx-accent-soft);
        border-color: var(--ndx-accent);
    }


    .ndx-models__row--featured > th.ndx-c-model {
        border-left: 3px solid var(--ndx-accent);
    }


    .ndx-models__row:has(.ndx-pick__input:checked) {
        background: var(--ndx-row-selected);
        border-color: var(--ndx-text);
    }


    .ndx-models__row:has(.ndx-pick__input:checked) > th,
    .ndx-models__row:has(.ndx-pick__input:checked) > td {
        background: transparent;
        border-top: 0;
        border-bottom: 0;
    }


    .ndx-models__row:has(.ndx-pick__input:checked) > th.ndx-c-model {
        border-left: 3px solid var(--ndx-text);
    }


    .ndx-models__row--featured:has(.ndx-pick__input:checked) {
        background: var(--ndx-accent-selected);
        border-color: var(--ndx-accent);
    }


    .ndx-models__row--featured:has(.ndx-pick__input:checked) > th.ndx-c-model {
        border-left-color: var(--ndx-accent);
    }


    /* =====================================================
       CTA
       ===================================================== */

    .ndx-calc__cta {
        width: 100%;
        max-width: none;
        margin-top: 18px;
    }


    .ndx-btn--primary {
        min-height: 50px;
        padding: 12px 16px;
        font-size: .98rem;
        line-height: 1.25;
    }


    /* =====================================================
       VENTAJAS
       ===================================================== */

    .ndx-perks {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 14px;
        margin-top: 17px;
        padding-top: 14px;
    }


    .ndx-perks__item {
        justify-content: flex-start;
        gap: 8px;
        font-size: .82rem;
        line-height: 1.35;
    }


    .ndx-perks__icon {
        font-size: 1.08rem;
    }
}

@container ndxcalc (max-width: 400px) {

    .ndx-calc {
        width: calc(100% - 10px);
        padding: 16px 12px 14px;
    }


    .ndx-calc__title {
        font-size: 1.42rem;
    }


    .ndx-calc__subtitle {
        font-size: 1.02rem;
    }


    .ndx-block-head__title {
        font-size: 1.12rem;
    }


    .ndx-block-head__sub {
        font-size: 1rem;
    }


    .ndx-measures__hint {
        font-size: .94rem;
    }


    .ndx-pick {
        gap: 8px;
    }


    .ndx-pick__thumb {
        width: 58px;
        height: 40px;
    }


    .ndx-pick__name {
        font-size: .91rem;
    }


    .ndx-models__row > td.ndx-c-price {
        min-width: 87px !important;
        padding-right: 9px;
    }


    .ndx-models__row > td.ndx-c-price strong {
        font-size: 1rem;
    }


    .ndx-scheme__media {
        width: 240px;
        max-width: 100% !important;
    }


    .ndx-perks {
        grid-template-columns: 1fr;
    }
}

/* Fallback para navegadores sin container queries */
@supports not (container-type: inline-size) {

@media (min-width: 720px) {

    .ndx-models__table .ndx-c-model {
        width: 38%;
    }


    .ndx-models__table th:nth-child(2),
    .ndx-models__table td:nth-child(2),
    .ndx-models__table th:nth-child(3),
    .ndx-models__table td:nth-child(3),
    .ndx-models__table th:nth-child(4),
    .ndx-models__table td:nth-child(4) {
        width: 15%;
    }


    .ndx-models__table th:nth-child(5),
    .ndx-models__table td:nth-child(5) {
        width: 17%;
    }

}

@media (min-width: 1100px) {

    .ndx-calc__grid {
        grid-template-columns:
            minmax(290px, 325px)
            58px
            minmax(620px, 760px);

        gap: 0;

        justify-content: center;

        align-items: start;
    }


    .ndx-calc__col--form {
        padding-right: 6px;
    }


    .ndx-calc__col--table {
        padding-left: 6px;
    }


    /* Separador */

    .ndx-calc__divider {
        display: flex;

        flex-direction: column;

        align-items: center;

        gap: 10px;

        height: 100%;

        padding-top: 52px;
    }


    .ndx-calc__arrow {
        display: block;

        width: 24px;
        height: 10px;

        background:
            var(--ndx-text);

        clip-path:
            polygon(
                0 42%,
                72% 42%,
                72% 0,
                100% 50%,
                72% 100%,
                72% 58%,
                0 58%
            );
    }


    .ndx-calc__rule {
        display: block;

        width: 1px;
        height: 132px;

        background:
            linear-gradient(
                180deg,
                rgba(255, 255, 255, .45),
                rgba(255, 255, 255, .04)
            );

        border-radius: 2px;
    }


    /* Medidas */

    .ndx-field {
        grid-template-columns:
            82px
            1fr;

        align-items: center;

        gap: 9px;
    }


    .ndx-measures__hint {
        padding-left: 91px;
    }

}

@media (min-width: 720px) and (max-width: 1099px) {

    .ndx-calc {
        width:
            calc(100% - 20px);

        padding:
            17px
            20px
            14px;
    }


    .ndx-calc__grid {
        gap: 24px;
    }


    .ndx-scheme {
        width: 205px;

        max-width: 100%;

        margin: 0px auto 0 !important;
    }

    .ndx-models {
        overflow-x: auto;

        overflow-y: hidden;
    }


    .ndx-models__table {
        min-width: 620px;
    }


    .ndx-perks {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .ndx-perks__item {
        justify-content:
            flex-start;
    }

}

@media (max-width: 719px) {

    .ndx-calc {
        width: calc(100% - 14px);
        margin: 7px auto;
        padding: 18px 15px 16px;
        border-radius: 10px;
        font-size: 16px;
    }


    /* =====================================================
       CABECERA PRINCIPAL
       ===================================================== */

    .ndx-calc__header {
        margin-bottom: 18px;
        padding-bottom: 14px;
    }


    .ndx-calc__title {
        font-size: 1.50rem;
        line-height: 1.20;
        letter-spacing: -.01em;
    }


    .ndx-calc__subtitle {
        margin-top: 8px;
        font-size: 1.06rem;
        font-weight: 500;
        line-height: 1.48;
        opacity: .98;
    }


    .ndx-calc__grid {
        gap: 28px;
    }


    /* =====================================================
       CABECERAS DE SECCIÓN
       ===================================================== */

    .ndx-block-head {
        margin-bottom: 14px;
    }


    .ndx-block-head__title {
        margin-bottom: 5px;
        font-size: 1.16rem;
        line-height: 1.28;
    }


    .ndx-block-head__sub {
        font-size: 1.02rem;
        font-weight: 500;
        line-height: 1.46;
        opacity: .98;
    }


    /* =====================================================
       MEDIDAS
       ===================================================== */

    .ndx-measures {
        width: 100%;
    }


    .ndx-measures__set {
        gap: 13px;
    }


    .ndx-field {
        gap: 7px;
    }


    .ndx-field__label {
        font-size: .96rem;
        font-weight: 650;
    }


    .ndx-field__input {
        height: 48px;
        min-height: 48px;
        padding: 10px 40px 10px 13px;
        font-size: 1rem;
    }


    .ndx-field__unit {
        right: 13px;
        font-size: .90rem;
    }


    .ndx-measures__hint {
        margin-top: 3px;
        font-size: .96rem;
        font-weight: 500;
        line-height: 1.46;
        opacity: .97;
    }


    /* =====================================================
       IMAGEN / ESQUEMA MÓVIL
       ===================================================== */

    .ndx-scheme {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin: 18px auto 0 !important;
        text-align: center;
    }


    .ndx-scheme__picture {
        display: block;
        width: 100%;
        text-align: center;
    }


    .ndx-scheme__media {
        display: block !important;
        width: 260px;
        max-width: 100% !important;
        height: auto;
        margin: 0 auto !important;
        object-fit: contain;
    }


    .ndx-scheme__caption {
        margin-top: 8px;
        font-size: .92rem;
        font-weight: 600;
        line-height: 1.35;
    }


    /* =====================================================
       CABECERA COMPARADOR / MÁS MODELOS
       ===================================================== */

    .fix-header-more-models {
        display: block;
    }


    .ndx-models__more {
        margin: 10px 0 0;
        text-align: left;
    }


    .ndx-calc .ndx-link-more {
        font-size: .96rem;
    }


    /* =====================================================
       TABLA / TARJETAS
       ===================================================== */

    .ndx-models {
        width: 100%;
        overflow: visible;
    }


    .ndx-models__table {
        display: block;
        width: 100%;
        min-width: 0;
        border-spacing: 0;
    }


    .ndx-models__table thead {
        display: none;
    }


    .ndx-models__table tbody {
        display: block;
        width: 100%;
    }


    /* Ocultamos información secundaria solo en móvil. */
    .ndx-models__row > .ndx-c-delivery,
    .ndx-models__row > .ndx-c-quality,
    .ndx-models__row > .ndx-c-warranty {
        display: none !important;
    }


    .ndx-models__row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        width: 100% !important;
        min-height: 72px;
        margin: 0 0 11px;
        overflow: hidden;
        background: var(--ndx-row);
        border: 1px solid var(--ndx-line);
        border-radius: 9px;
    }


    .ndx-models__table .ndx-models__row > th,
    .ndx-models__table .ndx-models__row > td,
    .ndx-models__table .ndx-models__row > .ndx-c-model,
    .ndx-models__table .ndx-models__row > .ndx-c-price {
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
    }


    .ndx-models__row > th.ndx-c-model {
        display: flex;
        align-items: center;
        width: auto !important;
        min-width: 0 !important;
        height: 100%;
        padding: 10px 8px 10px 11px;
        background: transparent;
        border: 0;
        border-radius: 0;
        text-align: left;
    }


    .ndx-pick {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        min-width: 0;
    }


    .ndx-pick__input {
        flex: 0 0 auto;
        width: 19px;
        height: 19px;
    }


    .ndx-pick__thumb {
        flex: 0 0 auto;
        width: 65px;
        height: 44px;
        border-radius: 6px;
    }


    .ndx-pick__name {
        min-width: 0;
        font-size: .96rem;
        font-weight: 700;
        line-height: 1.22;
    }


    .ndx-badge {
        padding: 3px 7px;
        font-size: .61rem;
        line-height: 1.3;
    }


    .ndx-models__row > td.ndx-c-price {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
        width: auto !important;
        min-width: 95px !important;
        height: 100%;
        padding: 10px 12px 10px 7px;
        background: transparent;
        border: 0;
        border-radius: 0;
        text-align: right !important;
        white-space: nowrap;
    }


    .ndx-models__row > td.ndx-c-price::before {
        display: none;
        content: none;
    }


    .ndx-models__row > td.ndx-c-price strong {
        font-size: 1.08rem;
        font-weight: 800;
        line-height: 1.15;
    }


    .ndx-c-price .ndx-unit {
        margin: 3px 0 0;
        font-size: .76rem;
        line-height: 1.15;
    }


    .ndx-models__row--featured {
        background: var(--ndx-accent-soft);
        border-color: var(--ndx-accent);
    }


    .ndx-models__row--featured > th.ndx-c-model {
        border-left: 3px solid var(--ndx-accent);
    }


    .ndx-models__row:has(.ndx-pick__input:checked) {
        background: var(--ndx-row-selected);
        border-color: var(--ndx-text);
    }


    .ndx-models__row:has(.ndx-pick__input:checked) > th,
    .ndx-models__row:has(.ndx-pick__input:checked) > td {
        background: transparent;
        border-top: 0;
        border-bottom: 0;
    }


    .ndx-models__row:has(.ndx-pick__input:checked) > th.ndx-c-model {
        border-left: 3px solid var(--ndx-text);
    }


    .ndx-models__row--featured:has(.ndx-pick__input:checked) {
        background: var(--ndx-accent-selected);
        border-color: var(--ndx-accent);
    }


    .ndx-models__row--featured:has(.ndx-pick__input:checked) > th.ndx-c-model {
        border-left-color: var(--ndx-accent);
    }


    /* =====================================================
       CTA
       ===================================================== */

    .ndx-calc__cta {
        width: 100%;
        max-width: none;
        margin-top: 18px;
    }


    .ndx-btn--primary {
        min-height: 50px;
        padding: 12px 16px;
        font-size: .98rem;
        line-height: 1.25;
    }


    /* =====================================================
       VENTAJAS
       ===================================================== */

    .ndx-perks {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 14px;
        margin-top: 17px;
        padding-top: 14px;
    }


    .ndx-perks__item {
        justify-content: flex-start;
        gap: 8px;
        font-size: .82rem;
        line-height: 1.35;
    }


    .ndx-perks__icon {
        font-size: 1.08rem;
    }
}

@media (max-width: 420px) {

    .ndx-calc {
        width: calc(100% - 10px);
        padding: 16px 12px 14px;
    }


    .ndx-calc__title {
        font-size: 1.42rem;
    }


    .ndx-calc__subtitle {
        font-size: 1.02rem;
    }


    .ndx-block-head__title {
        font-size: 1.12rem;
    }


    .ndx-block-head__sub {
        font-size: 1rem;
    }


    .ndx-measures__hint {
        font-size: .94rem;
    }


    .ndx-pick {
        gap: 8px;
    }


    .ndx-pick__thumb {
        width: 58px;
        height: 40px;
    }


    .ndx-pick__name {
        font-size: .91rem;
    }


    .ndx-models__row > td.ndx-c-price {
        min-width: 87px !important;
        padding-right: 9px;
    }


    .ndx-models__row > td.ndx-c-price strong {
        font-size: 1rem;
    }


    .ndx-scheme__media {
        width: 240px;
        max-width: 100% !important;
    }


    .ndx-perks {
        grid-template-columns: 1fr;
    }
}
}

@media (prefers-reduced-motion: reduce) {

    .ndx-calc *,
    .ndx-calc *::before,
    .ndx-calc *::after {
        transition: none !important;
    }

}