

/* =====================================================
   SLIDER CLÁSICO — DISEÑO MODERNO
   FLECHAS E INDICADORES
===================================================== */

/* =====================================================
   FLECHAS
===================================================== */

[data-widget="slider_clasico"] [data-direccion-slider] {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;

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

    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;

    padding: 0 !important;

    color: #ffffff !important;
    background: rgba(15, 23, 42, 0.78) !important;

    border: 1px solid rgba(255, 255, 255, 0.65) !important;
    border-radius: 50% !important;

    font-size: 27px !important;
    font-weight: 600 !important;
    line-height: 1 !important;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25) !important;

    cursor: pointer !important;
    z-index: 999 !important;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease !important;
}

/* FLECHA ANTERIOR */

[data-widget="slider_clasico"] [data-direccion-slider="anterior"] {
    left: 18px !important;
}

/* FLECHA SIGUIENTE */

[data-widget="slider_clasico"] [data-direccion-slider="siguiente"] {
    right: 18px !important;
}

/* EFECTO HOVER */

[data-widget="slider_clasico"] [data-direccion-slider]:hover {
    color: #ffffff !important;
    background: #0891b2 !important;
    border-color: #ffffff !important;

    box-shadow: 0 5px 20px rgba(8, 145, 178, 0.45) !important;

    transform: translateY(-50%) scale(1.1) !important;
}

/* =====================================================
   CONTENEDOR DE INDICADORES
===================================================== */

[data-widget="slider_clasico"] [data-indicadores-slider="1"] {
    position: absolute !important;
    bottom: 20px !important;
    left: 0 !important;
    right: 0 !important;

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

    gap: 9px !important;
    z-index: 999 !important;
}

/* =====================================================
   PUNTOS INDICADORES
===================================================== */

[data-widget="slider_clasico"] [data-posicion-slider] {
    display: block !important;

    width: 10px !important;
    height: 10px !important;
    min-width: 10px !important;
    min-height: 10px !important;

    padding: 0 !important;

    background: rgba(255, 255, 255, 0.65) !important;

    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    border-radius: 20px !important;

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;

    cursor: pointer !important;

    transition:
        width 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease !important;
}

/* INDICADOR ACTIVO */

[data-widget="slider_clasico"] [data-posicion-slider].activo {
    width: 28px !important;
    height: 10px !important;

    background: #06b6d4 !important;

    border: 1px solid #ffffff !important;
    border-radius: 20px !important;

    box-shadow: 0 0 10px rgba(6, 182, 212, 0.65) !important;
}

/* =====================================================
   RESPONSIVE — MÓVILES
===================================================== */

@media screen and (max-width: 767px) {

    [data-widget="slider_clasico"] [data-direccion-slider] {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;

        font-size: 22px !important;
    }

    [data-widget="slider_clasico"] [data-direccion-slider="anterior"] {
        left: 10px !important;
    }

    [data-widget="slider_clasico"] [data-direccion-slider="siguiente"] {
        right: 10px !important;
    }

    [data-widget="slider_clasico"] [data-indicadores-slider="1"] {
        bottom: 12px !important;
        gap: 7px !important;
    }

}



/* =====================================================
   TUWEBENUNDÍA — CONSTRUCTOR VISUAL
   Archivo: bloques_editor/constructor/constructor.css


===================================================== */


/* =====================================================
   1. CONFIGURACIÓN GENERAL
===================================================== */

* {
    box-sizing: border-box;
}

html,
body {
    min-width: 0;
    min-height: 100%;
    margin: 0;
}

body {
    font-family: Arial, sans-serif;
    color: #1e293b;
    background: #f1f5f9;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

img {
    max-width: 100%;
}


/* =====================================================
   2. ESTRUCTURA PRINCIPAL
===================================================== */

.constructor {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    min-height: 100vh;
    background: #f1f5f9;
}

.contenido {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
}


/* =====================================================
   3. BARRA SUPERIOR
===================================================== */

.barra-superior {
    position: relative;
    z-index: 20;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
    padding: 10px 16px;
    color: #1e293b;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.barra-superior h1 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.marca-constructor,
.marca-texto {
    min-width: 0;
}

.marca-texto p {
    margin: 3px 0 0;
    color: #64748b;
    font-size: 11px;
}

.acciones {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
}


/* =====================================================
   4. BOTONES GENERALES
===================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    transition:
        background 0.18s ease,
        border-color 0.18s ease;
}

.btn-guardar {
    color: #ffffff;
    background: #2563eb;
}

.btn-guardar:hover {
    background: #1d4ed8;
}

.btn-neutro {
    color: #1e293b;
    background: #ffffff;
    border-color: #e2e8f0;
}

.btn-neutro:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.btn-peligro {
    width: 100%;
    min-height: 38px;
    color: #991b1b;
    background: #fee2e2;
    border-color: #fecaca;
}

.btn-peligro:hover {
    background: #fecaca;
}


/* =====================================================
   5. SELECTOR DE TIPO DE BLOQUE
===================================================== */

.campo-tipo-bloque {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 145px;
}

.campo-tipo-bloque label {
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
}

.campo-tipo-bloque select {
    width: 100%;
    min-height: 36px;
    padding: 0 30px 0 10px;
    color: #1e293b;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
}

.campo-tipo-bloque select:focus {
    outline: 2px solid #93c5fd;
    outline-offset: 1px;
}


/* =====================================================
   6. ESTILOS COMPARTIDOS DE PANELES
===================================================== */

.panel,
.barra-elementos {
    min-width: 0;
    background: #ffffff;
}

.panel {
    padding: 16px;
}

.panel-encabezado {
    flex: 0 0 auto;
    margin-bottom: 12px;
}

.panel h2,
.barra-elementos h2 {
    margin: 0 0 5px;
    font-size: 14px;
    font-weight: 700;
}

.panel-encabezado p {
    margin: 0;
    color: #64748b;
    font-size: 11px;
}

.panel hr,
.barra-elementos hr {
    margin: 18px 0;
    border: 0;
    border-top: 1px solid #e2e8f0;
}


/* =====================================================
   7. BARRA DE ELEMENTOS
===================================================== */

.barra-elementos {
    position: relative;
    z-index: 10;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    min-width: 0;
    padding: 14px;
    border-bottom: 1px solid #e2e8f0;
}

.barra-elementos > .panel-encabezado {
    margin-bottom: 0;
}

.barra-elementos h2 {
    margin: 0;
    font-size: 13px;
}

.barra-elementos .grupo {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    min-width: 0;
    margin: 0;
}

.barra-elementos .grupo-titulo {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin-bottom: 3px;
}

.grupo-numero {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #2563eb;
    background: #eff6ff;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 700;
}

.grupo-titulo h3 {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
}

.grupo-titulo p {
    margin: 3px 0 0;
    color: #64748b;
    font-size: 11px;
    line-height: 1.4;
}


/* =====================================================
   8. BOTONES DE WIDGETS
===================================================== */

.widget-opcion {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 8px 10px;
    color: #334155;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-align: left;
    transition:
        background 0.15s ease,
        border-color 0.15s ease;
}

.widget-opcion:hover {
    color: #1d4ed8;
    background: #eff6ff;
    border-color: #93c5fd;
}

.widget-opcion:active {
    background: #dbeafe;
}

.widget-opcion:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}

.widget-icono {
    display: inline-flex;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: #2563eb;
    background: #eff6ff;
    border-radius: 7px;
    font-size: 17px;
}

.widget-info {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.widget-info strong {
    color: #1e293b;
    font-size: 12px;
    font-weight: 600;
}

.widget-info small {
    color: #64748b;
    font-size: 11px;
    line-height: 1.4;
}

.widget-mas {
    flex: 0 0 auto;
    margin-left: auto;
    color: #64748b;
    font-size: 17px;
}


/* =====================================================
  9 ICONOS DE LOS WIDGETS
===================================================== */

/* ICONOS DE ELEMENTOS */

.barra-elementos .widget-icono {
    display: inline-flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 5px;
    color: inherit;
    background: #eff6ff;
    border-radius: 7px;
}

.barra-elementos .widget-icono img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
/* =====================================================
   10. MENÚ DESPLEGABLE DE SLIDERS
===================================================== */

.slider-menu {
    position: relative;
    z-index: 100;
    flex: 0 0 42px;
    width: 42px;
    min-width: 42px;
    overflow: visible;
}

.barra-elementos .slider-menu-boton {
    position: relative;
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    text-align: left;
}

.slider-menu-lista {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 270px;
    padding: 7px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgb(15 23 42 / 16%);
}

.slider-menu-lista[hidden] {
    display: none !important;
}

.barra-elementos .slider-menu-lista .widget-opcion {
    display: flex;
    flex: 0 0 auto;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 58px;
    padding: 10px;
    background: #ffffff;
    border: 1px solid transparent;
    border-radius: 8px;
    text-align: left;
    white-space: normal;
    font-size: 13px;
}

.barra-elementos .slider-menu-lista .widget-opcion::before {
    content: none;
}

.barra-elementos .slider-menu-lista .widget-opcion:hover {
    background: #f8fbff;
    border-color: #dbeafe;
}

.barra-elementos .slider-menu-lista .widget-mas {
    flex: 0 0 auto;
    margin-left: auto;
    font-size: 16px;
}


/* =====================================================
   11. LIENZO: BARRA DE HERRAMIENTAS
===================================================== */

.lienzo-contenedor {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    min-height: 320px;
    padding: 12px;
    background: #f8fafc;
}

.lienzo-barra {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 12px;
}

.lienzo-titulo {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.lienzo-barra strong {
    font-size: 14px;
}

.indicador-estado {
    display: inline-block;
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
}

.lienzo-acciones {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}


/* =====================================================
   12. SELECTOR DE DISPOSITIVO
===================================================== */

.selector-dispositivo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding: 3px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
}

.btn-dispositivo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 30px;
    padding: 0 10px;
    color: #475569;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 11px;
    white-space: nowrap;
}

.btn-dispositivo:hover {
    background: #f1f5f9;
}

.btn-dispositivo.activo {
    color: #2563eb;
    background: #ffffff;
    border-color: #e2e8f0;
    font-weight: 700;
    box-shadow: 0 1px 2px rgb(15 23 42 / 6%);
}


/* =====================================================
   13. ESCENARIO Y LIENZO
   Sin scroll interno.
===================================================== */

.lienzo-escenario {
    display: flex;
    flex: 1 1 auto;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 0;
    overflow: visible;
}

.lienzo,
#lienzo {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    margin-right: auto;
    margin-left: auto;
       padding: 0 0 50px;
    overflow: visible;
    background: #f8fafc;
    border: 1px solid #dbe2ea;
    border-radius: 8px;
    box-shadow: 0 4px 18px rgb(15 23 42 / 5%);
    transition: width 0.2s ease;
}

#lienzo[style*="width: 100%"] {
    width: 100% !important;
    max-width: none !important;
}


/* =====================================================
   14. PIE DEL LIENZO
===================================================== */

.lienzo-pie {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 12px;
    width: 100%;
    max-width: 1100px;
    margin: 10px auto 0;
    color: #64748b;
    font-size: 10px;
    line-height: 1.5;
}


/* =====================================================
   15. LIENZO VACÍO
===================================================== */

.vacio {
    padding: 50px 15px;
    color: #64748b;
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    text-align: center;
}

.vacio-icono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 12px;
    color: #2563eb;
    background: #eff6ff;
    border-radius: 12px;
    font-size: 28px;
}

.vacio h2 {
    margin: 0 0 10px;
    font-size: 22px;
}

.vacio p {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.6;
}


/* =====================================================
   16. ELEMENTOS DEL LIENZO
===================================================== */

.elemento {
    position: relative !important;
    min-width: 0;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid transparent;
    border-radius: 5px;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.elemento:last-child {
    margin-bottom: 0;
}

.elemento:hover {
    outline: 1px dashed #93c5fd;
}

.elemento.seleccionado {
    background-color: #eff6ff;
    outline: 2px solid #2563eb;
}

.elemento[draggable="true"] {
    cursor: grab;
}

.elemento[draggable="true"]:active {
    cursor: grabbing;
}

.elemento h1,
.elemento h2,
.elemento h3,
.elemento h4,
.elemento h5,
.elemento h6 {
    overflow-wrap: anywhere;
}

.elemento h2 {
    margin: 0;
    font-size: 30px;
}

.elemento p {
    line-height: 1.6;
}

.elemento img {
    display: block;
    max-width: 100%;
    height: auto;
}

.elemento button {
    padding: 11px 18px;
    color: #ffffff;
    background: #2563eb;
    border: 0;
    border-radius: 6px;
}


/* =====================================================
   17. BOTÓN PARA ELIMINAR ELEMENTOS
===================================================== */

.elemento > .btn-eliminar-caja {
    position: absolute !important;
    top: -9px !important;
    right: -9px !important;
    bottom: auto !important;
    left: auto !important;
    display: none;
    align-items: center;
    justify-content: center;
    width: 18px !important;
    min-width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #ffffff !important;
    background: #e53935 !important;
    border: 1px solid #ffffff !important;
    border-radius: 50% !important;
    font-size: 13px !important;
    line-height: 1 !important;
    transform: none !important;
    float: none !important;
    cursor: pointer !important;
    z-index: 2147483647 !important;
    box-sizing: border-box !important;
}

.elemento:hover > .btn-eliminar-caja,
.elemento.seleccionado > .btn-eliminar-caja {
    display: flex !important;
}


/* =====================================================
   18. ESTRUCTURAS ANIDADAS
===================================================== */

.elemento-estructura {
    min-width: 0;
    padding: 12px;
    background: transparent;
    border: 1px dashed #94a3b8;
    border-radius: 5px;
}

.elemento-estructura:hover {
    border-color: #64748b;
}

.elemento-estructura.seleccionado {
    background: transparent;
    border: 1px solid #2563eb;
}

.etiqueta-estructura {
    display: block;
    margin: 0 0 8px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    pointer-events: none;
}


/* =====================================================
   19. ZONAS DE CONTENIDO
===================================================== */

.zona-contenido {
    box-sizing: border-box;
    min-width: 0;
    min-height: 55px;
    margin: 0;
    padding: 24px;
    background: transparent !important;
    background-color: transparent !important;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.zona-contenido:empty::before {
    display: block;
    padding: 12px 4px;
    color: #94a3b8;
    content: "Agrega widgets o secciones aquí";
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
    pointer-events: none;
}



/* =====================================================
   20. WIDGETS DE CONTENIDO
===================================================== */

.elemento details {
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.elemento summary {
    font-weight: 600;
    cursor: pointer;
}

.elemento details p {
    margin-bottom: 0;
}

.elemento [contenteditable="true"] {
    min-height: 24px;
    outline: none;
}

.elemento [contenteditable="true"]:focus {
    outline: 1px dashed #2563eb;
}





/* =====================================================
   24. SELECCIÓN DE ELEMENTOS
===================================================== */

#lienzo .constructor-seleccionado {
    outline: 2px solid #2563eb !important;
    outline-offset: -2px;
}

#lienzo [data-widget]:not(.constructor-seleccionado):hover {
    outline: 1px dashed #93c5fd;
}




/* =====================================================
   26. ACCESIBILIDAD
===================================================== */

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}


/* =====================================================
   27. VISTA PREVIA
===================================================== */

.constructor.vista-previa .panel,
.constructor.vista-previa .barra-elementos,
.constructor.vista-previa .barra-propiedades {
    display: none !important;
}

.constructor.vista-previa .contenido {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.constructor.vista-previa .lienzo-contenedor {
    flex: 1 1 auto;
    min-height: 0;
    padding: 24px;
    overflow: visible;
}

.constructor.vista-previa .lienzo,
.constructor.vista-previa #lienzo {
    max-width: 1100px;
}

.constructor.vista-previa .elemento {
    outline: none;
    cursor: default;
}

.constructor.vista-previa .elemento:hover {
    outline: none;
}

.constructor.vista-previa .elemento.seleccionado {
    background-color: transparent;
}

.constructor.vista-previa #lienzo .constructor-seleccionado {
    outline: none !important;
}


/* =====================================================
   28. ESCRITORIO — DESDE 1024px

   Orden vertical:
   1. Barra superior
   2. Elementos
   3. Lienzo
   4. Propiedades

   Se evita el scroll interno del lienzo y del
   panel de propiedades.


   ESCRITORIO — DESDE 1024px
   El lienzo crece según su contenido.
   Propiedades siempre debajo, sin superposición.
===================================================== */

@media screen and (min-width: 1024px) {

    html,
    body {
        min-height: 100%;
        height: auto;
    }

    body {
        overflow-x: hidden;
        overflow-y: auto;
    }

    .constructor {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .barra-superior {
        position: relative;
        flex: 0 0 auto;
        min-height: 60px;
    }

    .constructor > .contenido {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: auto;
        min-width: 0;
        min-height: 0;
        overflow: visible;
    }

    /* ELEMENTOS */

    .constructor > .contenido > .barra-elementos {
        position: relative;
        z-index: 10;
        display: flex;
        flex: 0 0 auto;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 10px;
        width: 100%;
        min-width: 0;
        min-height: 0;
        padding: 10px 14px;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        border-right: 0;
        border-bottom: 1px solid #e2e8f0;
    }

    .barra-elementos > .panel-encabezado {
        flex: 0 0 auto;
        margin: 0;
    }

    .barra-elementos .grupo {
        display: flex;
        flex: 0 0 auto;
        flex-direction: row;
        align-items: center;
        gap: 6px;
        margin: 0;
    }

    .barra-elementos .grupo-titulo {
        display: none;
    }

    .barra-elementos .widget-opcion {
        position: relative;
        display: inline-flex;
        flex: 0 0 42px;
        align-items: center;
        justify-content: center;
        width: 42px;
        min-width: 42px;
        height: 42px;
        min-height: 42px;
        margin: 0;
        padding: 0;
        overflow: visible;
        font-size: 0;
        white-space: nowrap;
    }

    .barra-elementos .widget-opcion::before {
        font-size: 21px;
        line-height: 1;
    }

.barra-elementos .widget-opcion .widget-info,
.barra-elementos .widget-opcion .widget-mas {
    display: none;
}

.barra-elementos .widget-opcion .widget-icono {
    display: inline-flex;
}

    /* LIENZO: altura natural */

    .constructor > .contenido > .lienzo-contenedor {
        position: relative;
        z-index: 1;
        display: flex;
        flex: 0 0 auto;
        flex-direction: column;
        width: 100%;
        min-width: 0;
        min-height: 0;
        height: auto;
        padding: 12px;
        overflow: visible;
    }

    .constructor > .contenido > .lienzo-contenedor > .lienzo-barra {
        flex: 0 0 auto;
        width: 100%;
        max-width: none;
        margin: 0 0 10px;
    }

    .constructor > .contenido > .lienzo-contenedor > .lienzo-escenario {
        display: block;
        flex: 0 0 auto;
        width: 100%;
        min-width: 0;
        min-height: 0;
        height: auto;
        overflow: visible;
    }

    .constructor > .contenido > .lienzo-contenedor #lienzo {
        display: flow-root;
        width: 100%;
        max-width: 100%;
        min-height: 0;
        height: auto;
        margin: 0 auto;
        overflow: visible;
    }

    .constructor > .contenido > .lienzo-contenedor > .lienzo-pie {
        flex: 0 0 auto;
        margin-top: 8px;
    }

    /* PROPIEDADES: después del lienzo */

    .constructor > .contenido > .barra-propiedades {
        position: relative;
        z-index: 2;
        display: flex;
        flex: 0 0 auto;
        flex-direction: column;
        width: 100%;
        min-width: 0;
        min-height: 0;
        height: auto;
        padding: 12px 16px;
        overflow: visible;
        background: #ffffff;
        border-top: 1px solid #e2e8f0;
    }

    .constructor > .contenido > .barra-propiedades > .panel-encabezado {
        flex: 0 0 auto;
        margin-bottom: 8px;
    }

    .constructor > .contenido > .barra-propiedades > #propiedades {
        flex: 0 0 auto;
        width: 100%;
        min-width: 0;
        min-height: 0;
        height: auto;
        overflow: visible;
    }

    .constructor > .contenido > .barra-propiedades > .panel-pie {
        flex: 0 0 auto;
        padding-top: 8px;
    }

    /* VISTA PREVIA */

    .constructor.vista-previa {
        display: block;
        height: auto;
        min-height: 100vh;
    }

    .constructor.vista-previa > .contenido {
        display: block;
        height: auto;
        min-height: 100vh;
    }

    .constructor.vista-previa .lienzo-contenedor {
        min-height: 100vh;
        padding: 24px;
    }
}

/* =====================================================
   29. TABLET — ENTRE 768px Y 1023px
===================================================== */

@media screen and (min-width: 768px) and (max-width: 1023px) {

    .constructor {
        min-height: 100vh;
    }

    .barra-superior {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 12px;
    }

    .acciones {
        gap: 6px;
    }

    .constructor > .contenido {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .barra-elementos {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 10px;
        padding: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
    }

    .barra-elementos .grupo {
        display: flex;
        flex: 0 0 auto;
        flex-direction: row;
        align-items: center;
        gap: 6px;
    }

    .barra-elementos .grupo-titulo {
        display: none;
    }

    .barra-elementos .widget-opcion {
        flex: 0 0 42px;
        width: 42px;
        min-width: 42px;
        height: 42px;
        min-height: 42px;
        padding: 0;
        justify-content: center;
    }

  .barra-elementos .widget-opcion .widget-info,
.barra-elementos .widget-opcion .widget-mas {
    display: none;
}

.barra-elementos .widget-opcion .widget-icono {
    display: inline-flex;
}

    .barra-elementos .widget-opcion::before {
        font-size: 21px;
    }

    .lienzo-contenedor {
        flex: 1 0 auto;
        min-height: 380px;
        padding: 12px;
        overflow: visible;
    }

    .lienzo-barra {
        flex-wrap: wrap;
        max-width: none;
    }

    .lienzo-escenario {
        overflow: visible;
    }

    .lienzo,
    #lienzo {
        min-height: 0;
    }

    .barra-propiedades {
        flex: 0 0 auto;
        min-height: 180px;
        padding: 14px;
        overflow: visible;
    }

    .constructor.vista-previa .lienzo-contenedor {
        min-height: 100vh;
        padding: 20px;
    }
}


/* =====================================================
   30. MÓVIL — HASTA 767px
===================================================== */

@media screen and (max-width: 767px) {

    .constructor {
        min-height: 100vh;
    }

    .barra-superior {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 10px;
    }

    .acciones {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
    }

    .campo-tipo-bloque {
        flex: 1 1 100%;
        min-width: 0;
    }

    .acciones > .btn {
        flex: 1 1 auto;
    }

    .constructor > .contenido {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    /* Herramientas horizontales */

    .barra-elementos {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 8px;
        padding: 9px;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
    }

    .barra-elementos > .panel-encabezado {
        flex: 0 0 auto;
        margin: 0;
    }

    .barra-elementos .grupo {
        display: flex;
        flex: 0 0 auto;
        flex-direction: row;
        align-items: center;
        gap: 6px;
    }

    .barra-elementos .grupo-titulo {
        display: none;
    }

    .barra-elementos .widget-opcion {
        flex: 0 0 40px;
        width: 40px;
        min-width: 40px;
        height: 40px;
        min-height: 40px;
        padding: 0;
        justify-content: center;
    }

  .barra-elementos .widget-opcion .widget-info,
.barra-elementos .widget-opcion .widget-mas {
    display: none;
}

.barra-elementos .widget-opcion .widget-icono {
    display: inline-flex;
}

    .barra-elementos .widget-opcion::before {
        font-size: 20px;
    }

    /* Área de edición */

    .lienzo-contenedor {
        flex: 0 0 auto;
        min-height: 320px;
        padding: 8px;
        overflow: visible;
    }

    .lienzo-barra {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin-bottom: 8px;
    }

    .lienzo-acciones {
        justify-content: space-between;
    }

    .selector-dispositivo {
        flex: 1 1 auto;
        justify-content: space-around;
    }

    .btn-dispositivo {
        flex: 1 1 auto;
        padding: 0 6px;
    }

    .lienzo-escenario {
        overflow: visible;
    }

    .lienzo,
    #lienzo {
        width: 100%;
        min-height: 0;
        border-radius: 5px;
    }

    .lienzo-pie {
        gap: 4px;
        font-size: 10px;
    }

    .vacio {
        padding: 30px 12px;
    }

    .vacio h2 {
        font-size: 18px;
    }

    .vacio p {
        font-size: 12px;
    }

    /* Propiedades debajo del lienzo */

    .barra-propiedades {
        flex: 0 0 auto;
        min-height: 0;
        padding: 12px;
        overflow: visible;
    }

    .barra-propiedades > #propiedades {
        min-height: 0;
        overflow: visible;
    }

    .campo {
        margin-bottom: 12px;
    }

    .campo textarea {
        min-height: 72px;
    }

    .constructor.vista-previa .lienzo-contenedor {
        min-height: 100vh;
        padding: 10px;
    }
}


/* =====================================================
   31. IMPRESIÓN
===================================================== */

@media print {

    .barra-superior,
    .panel,
    .barra-elementos,
    .barra-propiedades,
    .lienzo-barra,
    .lienzo-pie {
        display: none !important;
    }

    .constructor {
        display: block;
        width: 100%;
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    .contenido {
        display: block;
        overflow: visible;
    }

    .lienzo-contenedor {
        display: block;
        min-height: 0;
        padding: 0;
        overflow: visible;
    }

    .lienzo-escenario {
        display: block;
        overflow: visible;
    }

    .lienzo,
    #lienzo {
        width: 100%;
        max-width: none;
        min-height: 0;
        margin: 0;
        padding: 0;
        border: 0;
        box-shadow: none;
    }

    .elemento,
    .elemento.seleccionado {
        background: transparent;
        outline: none;
    }
}






/* =====================================================
   SLIDER CLÁSICO — MOTOR DE TRANSICIÓN INFINITA
   MOVIMIENTO CONTINUO HACIA ADELANTE
   TUWEBENUNDIA.CL
===================================================== */

/* =====================================================
   ESCENARIO
===================================================== */

[data-widget="slider_clasico"] [data-slider-escenario="1"] {

    position: relative !important;
    overflow: hidden !important;

}

/* =====================================================
   PISTA
===================================================== */

[data-widget="slider_clasico"] [data-slider-pista="1"] {

    position: relative !important;

    display: grid !important;

    grid-template-columns: minmax(0, 1fr) !important;

    min-width: 0 !important;

}

/* =====================================================
   DIAPOSITIVAS
===================================================== */

[data-widget="slider_clasico"]
[data-slider-pista="1"] >
.slider-clasico-diapositiva {

    grid-area: 1 / 1 !important;

    display: block !important;

    width: 100% !important;
    min-width: 0 !important;

    transform: translate3d(100%, 0, 0) !important;

    pointer-events: none !important;

    transition: transform 500ms ease-in-out !important;

    will-change: transform;

}

/* =====================================================
   POSICIÓN IZQUIERDA
===================================================== */

[data-widget="slider_clasico"]
[data-slider-pista="1"] >
.slider-clasico-diapositiva[data-slider-posicion="izquierda"] {

    transform: translate3d(-100%, 0, 0) !important;

    pointer-events: none !important;

    z-index: 1 !important;

}

/* =====================================================
   POSICIÓN CENTRAL
===================================================== */

[data-widget="slider_clasico"]
[data-slider-pista="1"] >
.slider-clasico-diapositiva[data-slider-posicion="centro"] {

    transform: translate3d(0, 0, 0) !important;

    pointer-events: auto !important;

    z-index: 2 !important;

}

/* =====================================================
   POSICIÓN DERECHA
===================================================== */

[data-widget="slider_clasico"]
[data-slider-pista="1"] >
.slider-clasico-diapositiva[data-slider-posicion="derecha"] {

    transform: translate3d(100%, 0, 0) !important;

    pointer-events: none !important;

    z-index: 1 !important;

}

/* =====================================================
   POSICIÓN OCULTA
   LAS DEMÁS DIAPOSITIVAS NO PARTICIPAN
   EN LA ANIMACIÓN.
===================================================== */

[data-widget="slider_clasico"]
[data-slider-pista="1"] >
.slider-clasico-diapositiva[data-slider-posicion="oculta"] {

    transform: translate3d(100%, 0, 0) !important;

    pointer-events: none !important;

    visibility: hidden !important;

    z-index: 0 !important;

}

/* =====================================================
   PREPARACIÓN SIN TRANSICIÓN
===================================================== */

[data-widget="slider_clasico"][data-slider-sin-transicion="1"]
[data-slider-pista="1"] >
.slider-clasico-diapositiva {

    transition: none !important;

}

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

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

    [data-widget="slider_clasico"]
    [data-slider-pista="1"] >
    .slider-clasico-diapositiva {

        transition: none !important;

    }

}
