body .cel-calc-wrap {
    --cel-naranja: #f07d1a;
    --cel-oscuro: #1e2a35;
    --cel-gris: #f4f5f7;
    --cel-linea: #e2e5ea;
    --cel-texto: #4a5561;
    container-type: inline-size;
    width: 100%;
}

body .cel-calc {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    grid-template-areas: "config resumen" "form resumen" "ok resumen";
    gap: 32px;
    align-items: start;
    color: var(--cel-oscuro);
    font-size: 16px;
    line-height: 1.5;
}

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

body .cel-calc h3,
body .cel-calc h4 {
    margin: 0;
    color: var(--cel-oscuro);
}

body .cel-calc__config {
    grid-area: config;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

body .cel-calc__resumen {
    grid-area: resumen;
    position: sticky;
    top: 110px;
}

body .cel-paso {
    background: #fff;
    border: 1px solid var(--cel-linea);
    padding: 28px;
}

body .cel-paso__cab {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

body .cel-paso__cab h3 {
    font-size: 21px;
}

body .cel-paso__num {
    flex: 0 0 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cel-naranja);
    color: #fff;
    font-weight: 700;
}

body .cel-ayuda {
    margin: 12px 0 0;
    font-size: 14px;
    color: var(--cel-texto);
}

body .cel-m2 {
    display: flex;
    align-items: center;
    gap: 24px;
}

body .cel-m2__rango {
    --p: 20%;
    flex: 1;
    height: 8px;
    appearance: none;
    -webkit-appearance: none;
    background: linear-gradient(to right, var(--cel-naranja) var(--p), var(--cel-linea) var(--p));
    border-radius: 8px;
    outline: none;
    margin: 0;
    padding: 0;
    border: 0;
}

body .cel-m2__rango::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid var(--cel-naranja);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
    cursor: grab;
}

body .cel-m2__rango::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid var(--cel-naranja);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
    cursor: grab;
}

body .cel-m2__valor {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 20px;
    font-weight: 700;
}

body .cel-m2__valor input {
    width: 96px;
    font-size: 32px;
    font-weight: 800;
    text-align: right;
    color: var(--cel-oscuro);
    border: 0;
    border-bottom: 2px solid var(--cel-naranja);
    background: transparent;
    padding: 0 4px;
    margin: 0;
    box-shadow: none;
    -moz-appearance: textfield;
}

body .cel-m2__valor input::-webkit-outer-spin-button,
body .cel-m2__valor input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

body .cel-fila {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0;
    border-top: 1px solid var(--cel-linea);
}

body .cel-paso__cab + .cel-fila,
body .cel-extras .cel-fila:first-child {
    border-top: 0;
    padding-top: 0;
}

body .cel-fila strong {
    display: block;
    font-size: 17px;
}

body .cel-fila strong em {
    font-style: normal;
    font-weight: 700;
    color: var(--cel-naranja);
    font-size: 15px;
    margin-left: 6px;
    white-space: nowrap;
}

body .cel-fila span {
    display: block;
    font-size: 14px;
    color: var(--cel-texto);
}

body .cel-contador {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    border: 1px solid var(--cel-linea);
    border-radius: 40px;
    overflow: hidden;
}

body .cel-contador button {
    width: 44px;
    height: 44px;
    border: 0;
    background: var(--cel-gris);
    color: var(--cel-oscuro);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    margin: 0;
    border-radius: 0;
}

body .cel-contador button:hover {
    background: var(--cel-naranja);
    color: #fff;
}

body .cel-contador output {
    min-width: 44px;
    text-align: center;
    font-weight: 700;
    font-size: 18px;
}

body .cel-switch {
    flex: 0 0 auto;
    position: relative;
    width: 58px;
    height: 32px;
    cursor: pointer;
    margin: 0;
}

body .cel-switch input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
    z-index: 1;
}

body .cel-switch span {
    position: absolute;
    inset: 0;
    background: var(--cel-linea);
    border-radius: 40px;
    transition: background .2s;
}

body .cel-switch span::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
    transition: transform .2s;
}

body .cel-switch input:checked + span {
    background: var(--cel-naranja);
}

body .cel-switch input:checked + span::after {
    transform: translateX(26px);
}

body .cel-switch input:focus-visible + span {
    outline: 2px solid var(--cel-oscuro);
    outline-offset: 2px;
}

body .cel-incluye {
    background: var(--cel-oscuro);
    color: #fff;
    padding: 28px;
}

body .cel-incluye h4 {
    color: #fff;
    font-size: 19px;
    margin-bottom: 14px;
}

body .cel-incluye ul {
    list-style: none;
    margin: 0;
    padding: 0;
    columns: 2;
    column-gap: 28px;
}

body .cel-incluye li {
    position: relative;
    padding: 4px 0 4px 26px;
    break-inside: avoid;
    font-size: 15px;
}

body .cel-incluye li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 14px;
    height: 8px;
    border-left: 3px solid var(--cel-naranja);
    border-bottom: 3px solid var(--cel-naranja);
    transform: rotate(-45deg);
}

body .cel-resumen {
    background: var(--cel-oscuro);
    color: #fff;
    padding: 30px;
}

body .cel-resumen p {
    margin: 0;
}

body .cel-resumen__eti {
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 13px;
    opacity: .75;
}

body .cel-resumen__total {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 6px 0 4px !important;
}

body .cel-total {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--cel-naranja);
}

body .cel-resumen__total small {
    font-size: 16px;
    opacity: .8;
}

body .cel-resumen__coniva {
    font-size: 15px;
    opacity: .9;
}

body .cel-resumen__lineas {
    list-style: none;
    margin: 20px 0;
    padding: 16px 0 0;
    border-top: 1px solid rgba(255, 255, 255, .15);
}

body .cel-resumen__lineas li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 0;
    font-size: 14px;
}

body .cel-resumen__lineas small {
    opacity: .7;
}

body .cel-resumen__lineas b {
    white-space: nowrap;
}

body .cel-resumen__nota {
    font-size: 12px;
    opacity: .7;
    margin-bottom: 20px !important;
}

body .cel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    padding: 12px 28px;
    border: 0;
    border-radius: 40px;
    background: var(--cel-naranja);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, transform .2s;
}

body .cel-btn:hover {
    background: #d96a0b;
    color: #fff;
    transform: translateY(-1px);
}

body .cel-btn:disabled {
    opacity: .6;
    cursor: wait;
}

body .cel-btn--wa {
    background: #25a55f;
    width: auto;
}

body .cel-btn--wa:hover {
    background: #1e8a4f;
}

body .cel-form,
body .cel-ok {
    grid-area: form;
    background: var(--cel-gris);
    padding: 32px;
    scroll-margin-top: 110px;
}

body .cel-ok {
    grid-area: ok;
    text-align: center;
    border-top: 4px solid var(--cel-naranja);
}

body .cel-ok[hidden],
body .cel-form[hidden] {
    display: none;
}

body .cel-form h3,
body .cel-ok h3 {
    font-size: 24px;
    margin-bottom: 6px;
}

body .cel-form > p {
    margin: 0 0 20px;
    color: var(--cel-texto);
}

body .cel-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

body .cel-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

body .cel-form input[type=text],
body .cel-form input[type=tel],
body .cel-form input[type=email],
body .cel-form textarea {
    display: block;
    width: 100%;
    margin: 6px 0 0;
    padding: 12px 14px;
    border: 1px solid var(--cel-linea);
    background: #fff;
    font-size: 16px;
    color: var(--cel-oscuro);
    border-radius: 0;
    box-shadow: none;
}

body .cel-form input:focus,
body .cel-form textarea:focus {
    border-color: var(--cel-naranja);
    outline: none;
}

body .cel-form__contacto {
    border: 0;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

body .cel-form__contacto legend {
    width: 100%;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    padding: 0;
}

body .cel-form__contacto label,
body .cel-form__acepto {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    font-size: 15px;
}

body .cel-form__acepto {
    margin: 16px 0 !important;
}

body .cel-form__acepto a {
    color: var(--cel-naranja);
}

body .cel-form input[type=radio],
body .cel-form input[type=checkbox] {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--cel-naranja);
}

body .cel-form .cel-btn {
    max-width: 320px;
}

body .cel-hp {
    position: absolute !important;
    left: -9999px !important;
}

body .cel-barra {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--cel-oscuro);
    color: #fff;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, .2);
}

body .cel-barra[hidden] {
    display: none;
}

body .cel-barra div {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

body .cel-barra small {
    font-size: 12px;
    opacity: .75;
}

body .cel-barra strong {
    font-size: 24px;
    color: var(--cel-naranja);
}

body .cel-barra .cel-btn {
    width: auto;
    min-height: 44px;
    padding: 8px 22px;
    font-size: 15px;
}

body .cel-form__msg {
    margin: 0 0 12px;
    font-size: 15px;
    min-height: 1em;
}

body .cel-form__msg.is-error {
    color: #c0392b;
    font-weight: 600;
}

@container (max-width: 900px) {
    body .cel-calc {
        grid-template-columns: 1fr;
        grid-template-areas: "config" "resumen" "form" "ok";
    }

    body .cel-calc__resumen {
        position: static;
    }
}

@container (max-width: 600px) {
    body .cel-calc {
        gap: 20px;
    }

    body .cel-paso,
    body .cel-incluye,
    body .cel-resumen,
    body .cel-form,
    body .cel-ok {
        padding: 22px 18px;
    }

    body .cel-paso__cab h3 {
        font-size: 19px;
    }

    body .cel-m2 {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 18px;
    }

    body .cel-m2__valor {
        justify-content: center;
    }

    body .cel-fila {
        flex-wrap: wrap;
    }

    body .cel-fila > div:first-child {
        flex: 1 1 200px;
    }

    body .cel-incluye ul {
        columns: 1;
    }

    body .cel-resumen {
        text-align: center;
    }

    body .cel-resumen__total {
        justify-content: center;
    }

    body .cel-resumen__lineas {
        text-align: left;
    }

    body .cel-form__grid {
        grid-template-columns: 1fr;
    }

    body .cel-form h3,
    body .cel-form > p {
        text-align: center;
    }

    body .cel-form .cel-btn {
        max-width: none;
    }
}

body .cel-contacto .cel-form,
body .cel-contacto .cel-ok {
    background: #fff;
    padding: 0;
}

body .cel-contacto .cel-ok {
    padding: 32px;
    background: #f4f5f7;
}

body .cel-wa-flotante {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9980;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #25a55f;
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
    transition: transform .2s;
}

body .cel-wa-flotante:hover {
    color: #fff;
    transform: scale(1.08);
}

body:has(.cel-barra:not([hidden])) .cel-wa-flotante {
    bottom: 86px;
}
