/* =========================
   LTI – KIT BUILDER (CSS)
   ========================= */

/* ---------- Variables & layout base ---------- */
.lti-kit {
    --bd: #e9edf1;
    --brand: #007519;
    --muted: #707980;
    max-width: 1100px;
    margin: 0 auto;
    margin-top: 40px;
}

.lti-main {
    padding-bottom: 90px;
}

.lti-card {
    border: 1px solid var(--bd);
    border-radius: 14px;
    padding: 16px;
    margin: 14px 0;
    background: #fff;
}

.lti-title {
    font-weight: 700;
    margin: 0 0 8px;
}

.lti-grid {
    display: grid;
    gap: 12px;
}

@media (min-width:900px) {
    .lti-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .lti-grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

/* ---------- Pills, textos, utilidades ---------- */
.pill {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid var(--bd);
    border-radius: 999px;
    font-size: 12px;
    margin-right: 6px;
    background: #efefef;
}

@media (max-width:768px) {
    .pill {
        display: none;
    }
}

.muted {
    color: var(--muted);
    font-size: 13px;
}

.is-hidden {
    display: none !important;
}

/* ---------- Hubs ---------- */
.hub {
    position: relative;
    border: 1px solid var(--bd);
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
    background: #fff;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.hub:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
}

.hub.active {
    outline: 2px solid var(--brand);
}

.hub img {
    width: 64px;
    height: 64px;
    flex: 0 0 auto;
    border: 1px solid var(--bd);
    border-radius: 10px;
    object-fit: cover;
}

/* Precio flotante */
.price-pill {
    position: absolute;
    top: 10px;
    right: 12px;
    background: #fff;
    border: 1px solid var(--bd);
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
}

.price-pill small {
    display: block;
    font-weight: 400;
    font-size: 10px;
    color: var(--muted);
    margin-top: 2px;
}

/* Lista dos columnas (móvil -> 1 columna) */
.hub ul {
    list-style: disc;
    padding-left: 18px;
    margin: 8px 0 0 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 18px;
    font-size: 12px;
}

@media (max-width:899px) {
    .hub ul {
        grid-template-columns: 1fr;
    }
}

/* ---------- Filas y tablas ---------- */
.row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.row input[type="number"] {
    width: 100px;
    padding: 8px;
    border: 1px solid var(--bd);
    border-radius: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    border: 1px solid var(--bd);
    padding: 10px;
    text-align: left;
}

th {
    background: #f8fafb;
}

/* ---------- Totales & botones ---------- */
.totalbox {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--bd);
    border-radius: 12px;
    background: #f6fff7;
    margin-top: 10px;
}

.btn {
    background: var(--brand);
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 12px 16px;
    font-weight: 700;
    cursor: pointer;
}

.btn[disabled] {
    opacity: .55;
    cursor: not-allowed;
}

/* Sticky total inferior */
.lti-sticky-total {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: #f9fff9;
    border-top: 2px solid #cde9cd;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, .08);
    padding: 10px 16px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
}

.lti-sticky-total strong {
    font-size: 15px;
}

.lti-sticky-total .muted {
    font-size: 12px;
    color: #666;
}

.lti-sticky-total .btn {
    background: #008000;
    border-radius: 6px;
    padding: 10px 18px;
    transition: background .2s ease;
}

.lti-sticky-total .btn:hover {
    background: #006400;
}

/* Botón con spinner & check final */
.lti-btn-spin {
    position: relative;
    overflow: hidden;
    transition: all .25s ease;
}

.lti-btn-spin.is-loading {
    pointer-events: none;
    opacity: .9;
}

.lti-btn-spin.is-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid rgba(255, 255, 255, .7);
    border-top-color: transparent;
    border-radius: 50%;
    animation: lti-spin .8s linear infinite;
}

.lti-btn-spin.is-added::after {
    content: "✔";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.1);
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    animation: lti-pop .25s ease;
}

@keyframes lti-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes lti-pop {
    0% {
        transform: translate(-50%, -50%) scale(.6);
        opacity: 0;
    }

    80% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

/* 📱 Barra fija más baja en móvil */
@media (max-width: 480px) {
    .lti-sticky-total {
        padding: 8px 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* texto */
    .lti-sticky-total strong {
        font-size: 12px;
    }

    .lti-sticky-total .muted {
        font-size: 11px;
        opacity: .85;
        display: none;
    }

    /* botón */
    .lti-sticky-total .btn {
        padding: 8px 14px;
        border-radius: 6px;
        font-size: 14px;
        line-height: 1.1;
    }

    /* por si llevas un icono/imagen a la izquierda */
    .lti-sticky-total img,
    .lti-sticky-total .lti-summary-thumb {
        width: 26px;
        height: 26px;
    }

    /* reduce el margen de fondo reservado */
    .lti-main {
        padding-bottom: 72px;
    }
}

/* iPhone con notch: ajusta al borde seguro */
@supports(padding: max(0px)) {
    .lti-sticky-total {
        padding-bottom: max(8px, env(safe-area-inset-bottom));
    }
}

/* ---------- Paso 2: fila + fields + stepper ---------- */
#lti-kit12 .lti-card .row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 40px;
    align-items: center;
    margin-top: 6px;
    margin-left: 4px;
}

/* Evitar 100% forzado por temas */
#step-2 .lti-field,
#step-2 .lti-field * {
    max-width: fit-content;
}

/* Field block */
#step-2 .lti-field,
#lti-kit12 .lti-card .row label {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f9fafc;
    border: 1px solid var(--bd);
    border-radius: 12px;
    padding: 10px 14px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}



#lti-kit12 .lti-card .row strong {
    white-space: nowrap;
    font-weight: 700;
    color: #1b1f23;
    margin-right: 2px;
    font-size: 15px;
}

/* Grid responsive de campos Paso 2 */
#step-2 .row {
    display: grid !important;
    gap: 20px 40px !important;
    align-items: start !important;
    grid-template-columns: 1fr !important;
}

@media (min-width:700px) {
    #step-2 .row {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        width: fit-content;
    }
}

@media (max-width:700px) {
    #step-2 .lti-field {
        flex-direction: column;
        max-width: 100%;
    }
}



/* Stepper ± consistente */
.lti-stepper {
    display: inline-grid;
    grid-template-columns: 40px 80px 40px;
    align-items: stretch;
    height: 40px;
    border: 1px solid var(--bd);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    transition: box-shadow .2s;
}

.lti-stepper:focus-within {
    box-shadow: 0 0 0 2px rgba(0, 117, 25, .2);
}

.lti-stepper button {
    appearance: none;
    width: 40px;
    height: 40px;
    border: 0;
    background: #f7f9fb;
    display: flex;
    align-items: center;
    justify-content: center;
    font: inherit;
    font-size: 18px;
    line-height: 1;
    color: inherit;
    cursor: pointer;
    user-select: none;
    transition: background .15s;
}

.lti-stepper button:first-child {
    border-right: 1px solid var(--bd);
}

.lti-stepper button:last-child {
    border-left: 1px solid var(--bd);
}

.lti-stepper button:hover {
    background: #eef3f8;
}

.lti-stepper button.is-pressed {
    transform: scale(.96);
}

.lti-stepper input[type="number"] {
    width: 80px;
    height: 40px;
    border: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    outline: none;
    color: #1b1f23;
}

/* quitar flechas */
.lti-stepper input[type="number"]::-webkit-outer-spin-button,
.lti-stepper input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.lti-stepper input[type="number"] {
    -moz-appearance: textfield;
}

@media (max-width:700px) {
    .lti-stepper {
        grid-template-columns: 40px 40px 40px;

    }

    #step-2 .lti-stepper {
        grid-template-columns: 40px 80px 40px;
    }
}

/* ---------- Paso 4/3 grids ---------- */
#interior-grid,
#exterior-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
}

@media (min-width:900px) {

    #interior-grid,
    #exterior-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---------- Pasos (barra de progreso) ---------- */
.lti-steps-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.lti-steps-nav .lti-step,
.lti-steps-nav .lti-step-dot,
.lti-steps-nav .lti-step-label {
    cursor: pointer !important;
}

.lti-step {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.lti-step-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 2px solid var(--bd);
    background: #fff;
    font-weight: 800;
    line-height: 1;
    padding: 0;
}

.lti-step-dot.is-active {
    border-color: var(--brand);
    color: var(--brand);
    box-shadow: 0 0 0 3px rgba(0, 117, 25, .12);
}

.lti-step-label {
    margin-left: 8px;
    font-weight: 700;
    color: #1b1f23;
}

.lti-step-spacer {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, #e9edf1, #f3f5f7);
    border-radius: 2px;
}

/* Móvil: 2 columnas; oculta separadores */
@media (max-width:700px) {
    .lti-steps-nav {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        column-gap: 14px;
        row-gap: 10px;
        align-items: center;
    }

    .lti-step-spacer {
        display: none !important;
    }

    .lti-step-dot {
        width: 22px;
        height: 22px;
        font-size: 12px;
    }

    .lti-step-label {
        font-size: 13px;
        font-weight: 600;
        margin-left: 4px;
    }
}

/* Desktop: línea con separador fijo */
@media (min-width:701px) {
    .lti-steps-nav {
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
    }

    .lti-step-label {
        display: inline !important;
        margin: 0 !important;
    }

    .lti-step-spacer {
        flex: 0 0 72px !important;
        height: 2px !important;
        background: linear-gradient(90deg, #e9edf1, #f3f5f7) !important;
        border-radius: 2px;
    }
}

/* ---------- Resultado (aperturas) ---------- */
#lti-aperturas .aperturas-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--bd);
    border-radius: 12px;
    overflow: hidden;
    font-size: 18px;
}

#lti-aperturas thead th {
    background: #f7fafc;
    font-weight: 800;
    letter-spacing: .02em;
    padding: 12px 14px;
    border-bottom: 1px solid var(--bd);
}

#lti-aperturas tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid #eef1f4;
    vertical-align: middle;
}

#lti-aperturas tbody tr:last-child td {
    border-bottom: 0;
}

#lti-aperturas .sensor-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

#lti-aperturas .sensor-thumb {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border: 1px solid var(--bd);
    border-radius: 8px;
    object-fit: cover;
    background: #fff;
}

#lti-aperturas select {
    width: 100%;
    max-width: 420px;
    height: 38px;
    border: 1px solid var(--bd);
    border-radius: 10px;
    padding: 6px 10px;
    background: #fff;
}

#lti-aperturas .price-cell {
    white-space: nowrap;
    font-weight: 800;
}

#lti-aperturas .price-cell small {
    font-weight: 400;
    color: var(--muted);
    margin-left: 6px;
}

/* Móvil: tabla desplazable (mantiene cabeceras) */
@media (max-width:700px) {
    #lti-aperturas .aperturas-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border: 1px solid var(--bd);
        border-radius: 12px;
        margin-bottom: 15px;
    }

    #lti-aperturas .aperturas-table {
        min-width: max-content;
        table-layout: auto !important;
        max-width: 100%;
        width: auto;
        font-size: 14px;
    }

    #lti-aperturas .sensor-cell {
        display: grid;
        grid-template-columns: 34px 1fr;
        align-items: center;
        gap: 10px;
        min-width: 0;
    }

    /* Opcional: que las dos primeras columnas no partan líneas */
    #lti-aperturas thead th:nth-child(1),
    #lti-aperturas thead th:nth-child(2),
    #lti-aperturas tbody td:nth-child(1),
    #lti-aperturas tbody td:nth-child(2) {
        white-space: nowrap;
    }

    #lti-aperturas .sensor-thumb {
        width: 34px;
        height: 34px;
    }

    #lti-aperturas select {
        width: auto !important;
        min-width: 0;
        height: 36px;
        background: #fff !important;
    }

    #lti-aperturas .price-cell {
        white-space: nowrap;
        text-align: right;
    }


}

/* ---------- Extras (Paso 3) ---------- */
.extra-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    margin-bottom: 15px;
    overflow: visible;
}

.extra-card {
    border: 1px solid var(--bd);
    border-radius: 12px;
    padding: 12px;
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 10px;
    align-items: center;
    background: #fff;
}

.extra-card img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--bd);
}

.extra-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.extra-desc {
    color: #616b74;
    font-size: 12px;
    margin-top: 2px;
}

.extra-price {
    font-weight: 700;
    font-size: 13px;
}

.extra-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
}

.group-title {
    font-weight: 700;
    margin: 16px 0 8px;
}

/* Videovigilancia (2 cols a partir de 768px) */
#extra-video,
#extra-safety,
#extra-control,
#extra-video-ajax,
#extra-video-ezviz,
#extra-domotics,
#extra-lighting-interruptores,
#extra-lighting-lightcore,
#extra-lighting-paneles,
#extra-power-switches,
#extra-carteles
{
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
}

@media (min-width:768px) {

    #extra-video,
    #extra-safety,
    #extra-control,
    #extra-video-ajax,
    #extra-video-ezviz,
    #extra-domotics,
    #extra-lighting-interruptores,
    #extra-lighting-lightcore,
    #extra-lighting-paneles,
    #extra-power-switches,
    #extra-carteles
     {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---------- Notas & bloques informativos ---------- */
.lti-note {
    margin-top: 8px;
    font-size: 13px;
    color: #48515a;
}

.lti-note b {
    color: #1b1f23;
}

.lti-alert {
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid #ffd7d7;
    background: #fff6f6;
    border-radius: 10px;
    color: #7a1f1f;
    font-size: 13px;
    font-weight: 600;
}

.lti-hint {
    margin: 10px 0;
    padding: 12px;
    border: 1px solid var(--bd);
    background: #f9fbfd;
    border-radius: 12px;
    font-size: 13px;
    color: #3a434b;
}

.lti-info-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
}

@media (min-width:900px) {
    .lti-info-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.lti-info-card {
    border: 1px solid var(--bd);
    background: #fff;
    border-radius: 12px;
    padding: 12px;
}

.lti-info-card h4 {
    margin: 0 0 6px;
    font-size: 14px;
}

.lti-info-card ul {
    margin: 0;
    padding-left: 18px;
    font-size: 13px;
    color: #515b63;
}

/* ---------- Resumen (sidebar/box) ---------- */
.lti-summary {
    margin-top: 14px;
    border: 1px solid var(--bd);
    border-radius: 12px;
    background: #fff;
}

.lti-summary-title {
    margin: 0;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 800;
    background: #f7fafc;
    border-bottom: 1px solid var(--bd);
}

.lti-summary-list {
    list-style: none;
    margin: 0;
    padding: 8px 12px;
    display: grid;
    gap: 6px;
    font-size: 13px;
}

.lti-summary-item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}

.lti-summary-name {
    color: #1b1f23;
}

.lti-summary-qty {
    font-weight: 700;
    white-space: nowrap;
}

.lti-summary-thumb {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid var(--bd);
    background: #fff;
}

/* === Colapsables Paso 5 === */
.collapsible {
    border-top: 1px solid var(--bd, #e9edf1);
    padding-top: 10px;
    margin-top: 14px;
}

.collapsible:first-of-type {
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
}

.collapsible-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: 0;
    padding: 10px 0;
    font-weight: 600;
    cursor: pointer;
}

.collapsible .chev {
    display: inline-flex;
    transition: transform .25s ease;
}

.collapsible.is-open .chev {
    transform: rotate(180deg);
}

.collapsible-body {
    overflow: hidden;
    max-height: 0;
    transition: max-height .28s ease;
    will-change: max-height;
}

.collapsible.is-open .collapsible-body {
    /* valor grande para permitir contenido alto; ajusta si quieres */
    max-height: 2000px;
}

.collapsible.is-open .collapsible-body.is-auto {
    max-height: none;
    /* evita cortes en móviles largos */
}

/* Separación interna */
.collapsible .lti-note {
    margin-bottom: 10px;
}

.lti-card .subgroup {
    margin-top: 16px;
}

.lti-card .subgroup-title {
    font-weight: 600;
    margin: 8px 0 8px;
    font-size: 15px;
}

/* === Subgrupos dentro de colapsables (Paso 5) === */
.subgroup {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid var(--bd, #e9edf1);
    border-radius: 10px;
    background: #f9fafb;
    /* tono claro neutro */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    transition: background-color .2s ease, box-shadow .2s ease;
}

.subgroup:hover {
    background: #f7fdf9;
    /* sutil verde al pasar */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.subgroup-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--brand, #007519);
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid var(--brand, #007519);
    padding-bottom: 4px;
}

.subgroup-title::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--brand, #007519);
    border-radius: 50%;
}

/* === Subgrupos dentro de colapsables (Paso 5) === */
.subgroup {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid var(--bd, #e9edf1);
    border-radius: 10px;
    background: #f9fafb;
    /* tono claro neutro */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    transition: background-color .2s ease, box-shadow .2s ease;
}

.subgroup:hover {
    background: #f7fdf9;
    /* sutil verde al pasar */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.subgroup-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--brand, #007519);
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid var(--brand, #007519);
    padding-bottom: 4px;
}

.subgroup-title::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--brand, #007519);
    border-radius: 50%;
}

@media (max-width: 600px) {
    .lti-kit {
        padding-bottom: 128px;
    }

    /* más margen en móvil */
}

/* ✅ Solución robusta sin animación: abre completo */
.collapsible-body {
    display: none;
    overflow: visible !important;
}

.collapsible.is-open .collapsible-body {
    display: block;
    /* muestra todo */
    max-height: none !important;
}

/* Evitar cualquier recorte en móviles */
@media (max-width: 768px) {

    .lti-card,
    .group,
    .extra-grid,
    .subgroup {
        overflow: visible !important;
    }
}


/* Título con botón de info */
/* Botón informativo */
/* Reset duro para que no herede estilos de Flatsome */
button.lti-info-btn {
    all: unset;
    /* quita todo lo heredado del tema */
    box-sizing: border-box;
    display: inline-grid;
    place-items: center;
    width: 18px !important;
    height: 18px !important;
    font-size: 12px;
    aspect-ratio: 1 / 1;
    /* mantiene el círculo aunque el tema toque el ancho */
    border: 2px solid #007519;
    border-radius: 9999px;
    background: #fff;
    color: #007519;
    cursor: pointer;
    line-height: 1 !important;
    padding: 0 !important;
    vertical-align: middle;
}

/* Icono “i” dentro */
button.lti-info-btn svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
    stroke: currentColor;
}

/* Hover */
button.lti-info-btn:hover {
    background: #007519;
    color: #fff;
    border-color: #007519;
}

/* Alineación con el título */
.lti-with-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Pequeña corrección de alineado con el título */
.lti-with-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Modal base */
.lti-modal[hidden] {
    display: none !important;
}

.lti-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    /* por encima del sticky total y chat */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.lti-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
}

.lti-modal__dialog {
    position: relative;
    max-width: 720px;
    width: 100%;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    padding: 18px 18px 20px;
    max-height: 85vh;
    overflow: auto;
    animation: lti-pop .16s ease;
    top: -30px;
}

@media (max-width: 768px) {
    .lti-modal__dialog {
        top: -30px;
    }
}

@keyframes lti-pop {
    from {
        transform: scale(.98);
        opacity: 0
    }

    to {
        transform: scale(1);
        opacity: 1
    }
}

.lti-modal__title {
    margin: 0 0 8px;
    font-size: 18px;
}





.lti-modal__content {
    font-size: 14px;
    line-height: 1.55;
}

.lti-bullets {
    margin: 8px 0 12px 18px;
}

.lti-hr {
    border: 0;
    height: 1px;
    background: #e9edf1;
    margin: 12px 0;
}

/* Mobile: que no quede por detrás del sticky */
@media (max-width: 600px) {
    .lti-modal {
        padding: 10px;
    }

    .lti-modal__dialog {
        max-height: 80vh;
    }
}

.lti-swatches {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

/* ===== Reset solo para los botones de color (swatches) ===== */
.lti-swatch {
    all: unset;
    /* elimina estilos heredados de Flatsome */
    display: inline-block;
    box-sizing: border-box;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.25);
    background: var(--sw, #ccc);
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.2s ease;
    vertical-align: middle;
}

.lti-swatch:hover {
    transform: scale(1.15);
    border-color: #007519;
}

.lti-swatch.is-active {
    border: 2px solid #007519;
    box-shadow: 0 0 0 2px rgba(0, 117, 25, 0.25);
}