body.sheet-open {
  /*  overflow: hidden;*/
} 

 :root {
    --color-principal: #1c9a71;
    --color-principal-suave: #e8fff7;
    --color-texto: #101828;
    --color-secundario: #667085;
    --color-borde: #cccccc;
    --color-fondo: #f5f6fa;
    --color-blanco: #ffffff;
      }


.descripcion {
    margin: 0 0 30px;
    color: var(--color-secundario);
    line-height: 1.5;
}

.campo {
    margin-bottom: 24px;
}

.campo-label {
    display: block;
    margin-bottom: 8px;

    color: #344054;
    font-size: 14px;
    font-weight: bold;
}

/* ======================================================
   COMBO GENERAL
====================================================== */

.combo {
    position: relative;
    width: 100%;
}

.combo-btn {
    width: 100%;
    min-height: 38px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--color-blanco);
    border: 1px solid var(--color-borde);
    border-radius: 5px;
    color: var(--color-texto);
    font-size: 16px;
    text-align: left;
    cursor: pointer;
    outline: none;
    max-height: 55px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.combo-btn:hover {
    border-color: var(--color-principal);
}

.combo-btn:focus-visible,
.combo.open .combo-btn {
    border-color: var(--color-principal);
    box-shadow: 0 0 0 4px rgba(29, 109, 184, 0.12);
}

.combo-label {
    flex: 1;
    overflow: hidden;

    white-space: wrap;
    text-overflow: ellipsis;
}
.nowrap {
    white-space: nowrap !important;
}

.combo-arrow {
    flex-shrink: 0;
    color: var(--color-secundario);
    font-size: 13px;

    transition: transform 0.2s;
}

.combo.open .combo-arrow {
    transform: rotate(180deg);
}

/* ======================================================
   OVERLAY
====================================================== */

.combo-overlay {
    display: none;
}

/* ======================================================
   PANEL DE ESCRITORIO
====================================================== */

.combo-panel {
    display: none;

    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 200000;

    overflow: hidden;

    background: var(--color-blanco);
    border: 1px solid var(--color-borde);
    border-radius: 5px;

    box-shadow: 0 14px 35px rgba(16, 24, 40, 0.16);
}

.combo.open .combo-panel {
    display: flex;
    flex-direction: column;
}

.combo-header {
    display: none;
}

/* ======================================================
   BUSCADOR
====================================================== */

.combo-search-container {
    padding: 12px 12px 6px;
}

.combo-search-wrapper {
    position: relative;
}

.combo-search-icon {
    position: absolute;
    top: 50%;
    left: 14px;

    color: var(--color-secundario);
    font-size: 17px;

    pointer-events: none;
    transform: translateY(-50%);
}

.combo-search {
    width: 100%;
    height: 46px;
    padding: 0 42px 0 42px;

    background: var(--color-blanco);
    border: 1px solid var(--color-borde);
    border-radius: 5px;

    color: var(--color-texto);
    font-size: 16px;

    outline: none;
}

.combo-search:focus {
    border-color: var(--color-principal);
    box-shadow: 0 0 0 3px rgba(29, 109, 184, 0.12);
}

.combo-search-clear {
    display: none;

    position: absolute;
    top: 50%;
    right: 7px;

    width: 32px;
    height: 32px;

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

    background: transparent;
    border: 0;
    border-radius: 50%;

    color: var(--color-secundario);
    font-size: 20px;

    cursor: pointer;
    transform: translateY(-50%);
}

.combo-search-clear.visible {
    display: flex;
}

.combo-search-clear:hover {
    background: #f2f4f7;
}

/* ======================================================
   LISTADO
====================================================== */

.combo-list {
    max-height: 300px;
    padding: 6px 8px 8px;

    overflow-y: auto;
    overscroll-behavior: contain;
}

.combo-item {
    width: 100%;
    min-height: 50px;
    padding: 11px 14px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    background: transparent;
    border: 0;
    border-radius: 10px;

    color: var(--color-texto);
    font-size: 16px;
    text-align: left;

    cursor: pointer;
}

.combo-item:hover,
.combo-item:focus-visible {
    background: var(--color-principal-suave);
    outline: none;
}

.combo-item.active {
    background: var(--color-principal-suave);
    color: var(--color-principal);
    font-weight: bold;
}

.combo-item-content {
    min-width: 0;
    flex: 1;
}

.combo-item-text {
    display: block;
}

.combo-item-description {
    display: block;
    margin-top: 3px;

    color: var(--color-secundario);
    font-size: 13px;
    font-weight: normal;
}

.combo-item.active .combo-item-description {
    color: #527aa2;
}

.combo-check {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;   
    border-radius: 50%;
    color: transparent;
    font-size: 14px;
}
.combo-check .mdi {
    margin: 0px;
}

.combo[data-multiple="true"] .combo-check {
    border-radius: 6px;
}

.combo-item.active .combo-check {
    background: var(--color-principal);
    border-color: var(--color-principal);
    color: var(--color-blanco);
}

.combo-empty {
    display: none;
    padding: 28px 14px;

    color: var(--color-secundario);
    text-align: center;
}

/* ======================================================
   PIE DEL COMBO
====================================================== */

.combo-footer {
    display: none;
    padding: 12px 14px;

    background: var(--color-blanco);
    border-top: 1px solid #eaecf0;
}

.combo[data-multiple="true"] .combo-footer {
    display: flex;
    align-items: center;
    gap: 10px;
}

.combo-clear {
    min-height: 46px;
    padding: 10px 14px;

    background: #f2f4f7;
    border: 0;
    border-radius: 11px;

    color: #344054;
    font-size: 15px;
    font-weight: bold;

    cursor: pointer;
}

.combo-confirm {
    min-height: 46px;
    flex: 1;
    padding: 10px 16px;

    background: var(--color-principal);
    border: 0;
    border-radius: 11px;

    color: var(--color-blanco);
    font-size: 15px;
    font-weight: bold;

    cursor: pointer;
}

.combo-confirm:active,
.combo-clear:active {
    transform: scale(0.98);
}

/* ======================================================
   RESULTADO DE PRUEBA
====================================================== */

.resultados {
    margin-top: 35px;
    padding: 20px;

    background: var(--color-blanco);
    border: 1px solid #eaecf0;
    border-radius: 14px;
}

.resultados h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

.resultado-linea {
    margin: 8px 0;
    color: #344054;
    word-break: break-word;
}

.resultado-linea strong {
    color: var(--color-texto);
}

/* ======================================================
   MOBILE: BOTTOM SHEET
====================================================== */

@media (max-width: 600px) {


    .combo {
        position: static;
    }

    .combo-overlay {
        display: block;

        position: fixed;
        inset: 0;
        z-index: 9099;

        background: rgba(16, 24, 40, 0.58);

        opacity: 0;
        visibility: hidden;

        transition:
            opacity 0.25s,
            visibility 0.25s;
    }

    .combo.open .combo-overlay {
        opacity: 1;
        visibility: visible;
    }

    .combo-panel {
        display: flex;

        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 300000;

        width: 100%;
        height: min(82vh, 680px);
        max-height: 92vh;

        flex-direction: column;

        border: 0;
        border-radius: 24px 24px 0 0;

        box-shadow: 0 -12px 40px rgba(16, 24, 40, 0.22);

        visibility: hidden;
        transform: translateY(105%);

        transition:
            transform 0.3s ease,
            visibility 0.3s;
    }

    .combo.open .combo-panel {
        display: flex;
        visibility: visible;
        transform: translateY(0);
    }

    .combo-header {
        display: block;
        flex-shrink: 0;
        padding: 8px 16px 4px;
    }

    .combo-handle {
        width: 44px;
        height: 5px;
        margin: 0 auto 14px;

        background: var(--color-borde);
        border-radius: 999px;
    }

    .combo-title-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .combo-title-container {
        min-width: 0;
    }

    .combo-title {
        margin: 0;
        font-size: 19px;
    }

    .combo-counter {
        margin-top: 4px;
        color: var(--color-secundario);
        font-size: 13px;
    }

    .combo-close {
        width: 40px;
        height: 40px;
        flex-shrink: 0;

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

        background: #f2f4f7;
        border: 0;
        border-radius: 50%;

        color: #344054;
        font-size: 25px;

        cursor: pointer;
    }

    .combo-search-container {
        flex-shrink: 0;
        padding: 10px 16px 8px;
    }

    .combo-list {
        min-height: 0;
        max-height: none;
        flex: 1;

        padding: 4px 12px 14px;
    }

    .combo-item {
        min-height: 56px;
        padding: 13px 14px;
    }

    .combo-footer {
        flex-shrink: 0;
        padding: 12px 16px;
        padding-bottom: calc(
            12px + env(safe-area-inset-bottom)
        );
    }
}