/*
 *ARCHIVO PRINCIPAL DEL DISEÑO
conserva los valores originales de la página. */
:root {
    --iembk-azul-oscuro: #03133b;
    --iembk-acento: #007fff;
    --iembk-acento-suave: #62bfe6;
    --iembk-boton: #1885b6;
    --iembk-boton-hover: #6fa7eb;
    --iembk-boton-primario: #007bff;
    --iembk-boton-primario-hover: #0069d9;
    --iembk-boton-primario-borde-hover: #0062cc;
    --iembk-boton-primario-activo: #0062cc;
    --iembk-boton-primario-borde-activo: #005cbf;
    --iembk-acento-profundo: #005fcc;
    --iembk-acento-hover: #006fe0;
    --iembk-acento-hover-profundo: #004eaa;
    --iembk-fondo-contenido: #65a3bc5e;
    --iembk-fondo-admin: #f4f6f9;
    --iembk-fuente: sans-serif;
    --iembk-fuente-base: "Roboto", sans-serif;
    --iembk-fuente-plantilla: "Open Sans", Arial, sans-serif;
    --iembk-fuente-formularios: "Source Sans Pro", sans-serif;
    --iembk-fuente-admin: Arial, sans-serif;
    --iembk-radio: 8px;
    --iembk-content-width: 1200px;
    --iembk-imagen-proyecto: 500px;
    --iembk-imagen-proyecto-ancha: 1000px;
    --iembk-menu-texto: #e8edf7;
    --iembk-menu-texto-secundario: #b7c6df;
    --iembk-menu-borde: rgba(171, 199, 240, 0.2);
    --iembk-menu-seleccion: rgba(93, 169, 255, 0.16);
    --iembk-color-principal: #176997;
    --iembk-color-principal-hover: #0d527e;
    --iembk-color-oscuro: #03133b;
    --iembk-color-acento: #38a9dc;
    
    --iembk-color-texto: #17324a;
    --iembk-color-texto-suave: #526979;
    --iembk-color-fondo: #eef4f7;
    --iembk-color-superficie: #ffffff;
    --iembk-color-borde: #d5e0e7;
    
    --iembk-color-exito: #237a4b;
    --iembk-color-advertencia: #9a6400;
    --iembk-color-error: #b52c26;
    --iembk-color-informacion: #176997;
    
    --iembk-radio-pequeno: 6px;
    --iembk-radio-medio: 10px;
    --iembk-radio-grande: 16px;
    
    --iembk-sombra-suave: 
        0 8px 24px rgba(3, 19, 59, 0.08);
    
    --iembk-sombra-media:
        0 14px 34px rgba(3, 19, 59, 0.14);
    
    --iembk-espacio-1: 4px;
    --iembk-espacio-2: 8px;
    --iembk-espacio-3: 12px;
    --iembk-espacio-4: 16px;
    --iembk-espacio-5: 24px;
    --iembk-espacio-6: 32px;
    --iembk-espacio-7: 48px;
    
    --iembk-ancho-contenido: 1200px;
    
    --iembk-transicion:
        180ms ease;
}

.btn-primary {
    background-color: var(--iembk-boton-primario);
    border-color: var(--iembk-boton-primario);
}
.btn-primary:hover {
    background-color: var(--iembk-boton-primario-hover);
    border-color: var(--iembk-boton-primario-borde-hover);
}
.btn-primary.disabled, .btn-primary:disabled {
    background-color: var(--iembk-boton-primario);
    border-color: var(--iembk-boton-primario);
}
.btn-primary:not(:disabled):not(.disabled).active,
.btn-primary:not(:disabled):not(.disabled):active,
.show > .btn-primary.dropdown-toggle {
    background-color: var(--iembk-boton-primario-activo);
    border-color: var(--iembk-boton-primario-borde-activo);
}

:where(.iembk-page-company, .iembk-page-index) .video-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

:where(.iembk-page-company, .iembk-page-index) .video-container video {
    border-radius: var(--iembk-radio, 8px);
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
    cursor: pointer;
}

:where(.iembk-page-index) .modal {
    display: none;
    position: fixed;
    z-index: 90;
    left: 0;
    top: 170px;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

:where(.iembk-page-index) .modal video {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--iembk-radio, 8px);
    box-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

:where(.iembk-page-index) .close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

:where(.iembk-page-mantenimiento) .carousel-item img {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    border-radius: var(--iembk-radio, 8px);
}

body.iembk-page-productos-db .cart-container {
    position: fixed;
    top: auto;
    left: auto;
    right: calc(20px + env(safe-area-inset-right, 0px));
    bottom:calc(20px + env(safe-area-inset-bottom, 0px));
    z-index: 1000;
    width: 56px;
    height: 56px;
}

body.iembk-page-productos-db .cart-icon {
    appearance: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 56px;
    height: 56px;
    min-width: 56px;
    margin: 0;
    padding: 0;
    color: #ffffff;
    background: #103e69;
    border: 1px solid #78bde7;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(8, 28, 51, 0.25);
    font-size: 23px;
    line-height: 1;
    cursor: pointer;
    overflow: visible;
    transition:
        background-color 180ms ease,
        box-shadow 180ms ease;
}

body.iembk-page-productos-db .cart-icon > i {
    color: inherit;
    font-size: inherit;
    line-height: 1;
}

body.iembk-page-productos-db .cart-icon:hover {
    color: #ffffff;
    background: #185784;
    box-shadow: 0 8px 22px rgba(8, 28, 51, 0.3);
}

body.iembk-page-productos-db .cart-icon:focus-visible {
    outline: 3px solid #3299cf;
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    body.iembk-page-productos-db .cart-icon {
        transition: none;
    }
}

body.iembk-page-productos-db .cart-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1990;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    background: rgba(3, 18, 36, 0.58);
    transition:
        opacity 180ms ease,
        visibility 180ms ease;
}

body.iembk-page-productos-db .cart-backdrop.is-visible {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

body.iembk-page-productos-db.cart-open {
    overflow: hidden;
}

body.iembk-page-productos-db .iembk-carrito-precio {
    display: block;
    margin-top: 4px;
}

body.iembk-page-productos-db .iembk-carrito-sin-imagen {
    display: flex;
    flex: 0 0 72px;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    padding: 6px;
    color: #49647c;
    background: #e7eef4;
    border-radius: 8px;
    font-size: 11px;
    text-align: center;
}

body.iembk-page-productos-db .iembk-carrito-total-error {
    color: #721c24;
    background: #f8d7da;
    border: 1px solid #f1aeb5;
    border-radius: 7px;
    padding: 10px;
}

@media (prefers-reduced-motion: reduce) {
    body.iembk-page-productos-db .cart-backdrop {
        transition: none;
    }
}

:where(.iembk-page-productos-db) .cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100%;
    background: var(--iembk-azul-oscuro);
    box-shadow: -2px 0 10px rgba(0,0,0,0.15);
    z-index: 2000;
    transition: right 0.3s;
    padding: 24px 18px 18px 18px;
    overflow-y: auto;
    border: 1px solid var(--iembk-acento);
    border-radius: var(--iembk-radio, 8px);
}

:where(.iembk-page-productos-db) .cart-sidebar.open {
    right: 0;
}

:where(.iembk-page-productos-db) .cart-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

:where(.iembk-page-productos-db) .cart-sidebar-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

:where(.iembk-page-productos-db) .cart-sidebar-footer {
    margin-top: 20px;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

body:where(.iembk-page-productos-db).cart-open .container-fluid {
    transition: margin-right 0.3s;
    margin-right: 350px;
}

:where(.iembk-page-productos-db) .catalogo-productos {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

:where(.iembk-page-productos-db) .producto-card {
    border: 1px solid var(--iembk-acento);
    border-radius: var(--iembk-radio, 8px);
    padding: 1rem;
    width: 220px;
    text-align: center;
    background: var(--iembk-azul-oscuro);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

:where(.iembk-page-productos-db) .producto-card img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    margin-bottom: 10px;
}

:where(.iembk-page-productos-db) .producto-card button {
    margin-top: 10px;
}

body:where(.iembk-page-admin-cotizacion, .iembk-page-admin-cotizaciones, .iembk-page-admin-index) {
    background: var(--iembk-fondo-admin);
}

:where(.iembk-page-admin-cotizacion, .iembk-page-admin-cotizaciones) .panel {
    background: white;
    border-radius: var(--iembk-radio, 8px);
    padding: 20px;
}

:where(.iembk-page-admin-cotizacion) .panel {
    margin-bottom: 20px;
}

:where(.iembk-page-admin-cotizaciones, .iembk-page-admin-index) .barra {
    background: var(--iembk-azul-oscuro);
    color: white;
    padding: 15px 0;
}

:where(.iembk-page-admin-index) .tarjeta {
    background: white;
    border-left: 5px solid var(--iembk-acento);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

:where(.iembk-page-admin-index) .numero {
    color: var(--iembk-azul-oscuro);
    font-size: 30px;
    font-weight: bold;
}

body:where(.iembk-page-admin-login) {
    background: var(--iembk-azul-oscuro);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--iembk-fuente-admin);
}

:where(.iembk-page-admin-login) .login-card {
    width: 100%;
    max-width: 420px;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, .3);
}

:where(.iembk-page-admin-login) .login-card h1 {
    color: var(--iembk-azul-oscuro);
    font-size: 26px;
    text-align: center;
    margin-bottom: 25px;
}

:where(.iembk-formularios) .form-consulta {
    max-width: 500px;
    background: #eee;
    padding: 25px;
    font-family: var(--iembk-fuente-formularios);
}

:where(.iembk-formularios) .campo-form {
    width: 100%;
    height: 36px;
    margin: 2px 0 6px;
    padding-left: 6px;
    box-sizing: border-box;
    border-radius: 3px;
    border: 0;
    font-family: var(--iembk-fuente-formularios);
    font-size: 1em;
}

:where(.iembk-formularios) label span {
    color: #f00;
}

:where(.iembk-formularios) textarea {
    min-height: 150px !important;
}

:where(.iembk-formularios) .btn-form {
    display: inline-block;
    border: 0;
    background: #000;
    height: 46px;
    line-height: 46px;
    padding: 0 20px;
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

:where(.iembk-formularios) .btn-form:hover {
    background: #444;
}


body.iembk-page .iembk-imagen-proyecto {
    max-width: var(--iembk-imagen-proyecto);
    width: 100%;
    height: auto;
}


body.iembk-page .iembk-imagen-proyecto-ancha {
    max-width: var(--iembk-imagen-proyecto-ancha);
    width: 100%;
    height: auto;
}


body.iembk-page .iembk-lienzo {
    position: relative;
    padding-left: 0;
    padding-right: 0;
}


body.iembk-page .iembk-fila-proyectos {
    margin-bottom: 2px;
}


body.iembk-page .iembk-texto-claro {
    color: #f1f1f1;
}


body.iembk-page .iembk-imagen-centrada {
    display: block;
    margin-left: auto;
    margin-right: auto;
}


body.iembk-page .iembk-texto-blanco {
    color: white;
}


body.iembk-page .iembk-texto-marca {
    color: var(--iembk-azul-oscuro);
}


body.iembk-page .iembk-seccion {
    padding-left: 10px;
    padding-right: 10px;
}


body.iembk-page .iembk-titulo-blanco {
    color: white;
    text-align: center;
}


body.iembk-page .iembk-submenu-220 {
    min-width: 220px;
}


body.iembk-page .iembk-video-portada {
    width: 1150px;
}


body.iembk-page .iembk-titulo-ancho {
    text-align: center;
    padding-right: 90px;
    padding-left: 90px;
}


body.iembk-page .iembk-titulo-vision {
    color: white;
    text-align: center;
    margin-top: 1px;
}


body.iembk-page .iembk-texto-tarjeta {
    color: white;
    text-align: justify;
    margin: 0;
}


body.iembk-page .iembk-submenu-scroll {
    min-width: 240px;
    max-height: 350px;
    overflow-y: auto;
}


body.iembk-page .iembk-boton-cotizacion {
    width: 100px;
    height: 38px;
    padding-top: 2px;
    padding-bottom: 2px;
    padding-right: 2px;
    padding-left: 2px;
}


body.iembk-page .iembk-fila-presentacion {
    margin-top: 80px;
    margin-bottom: 0;
}


body.iembk-page .iembk-texto-objetivo {
    color: white;
    margin-top: 15px;
}


body.iembk-page .iembk-sin-margen-superior {
    margin-top: 0;
}


body.iembk-page .iembk-tarjeta-empresa {
    background: var(--iembk-azul-oscuro);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 32px 24px;
}


body.iembk-page .iembk-imagen-empresa {
    border-radius:  var(--iembk-radio, 8px);
    max-width: 500px;
    width: 100%;
    height: auto;
}


body.iembk-page .iembk-tarjeta-marcas {
    background: var(--iembk-azul-oscuro);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 32px 24px;
    height: 468px;
}


body.iembk-page .iembk-imagen-marcas {
    border-radius:  var(--iembk-radio, 8px);
    max-width: 600px;
    width: 100%;
    height: auto;
}


body.iembk-page .iembk-documento-empresa {
    display: block;
    border-radius: 12px;
    max-width: 150%;
}


body.iembk-page .iembk-aviso-contacto {
    max-width: 500px;
    margin: 20px auto;
}


body.iembk-page .iembk-campo-antispam {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}


body.iembk-page .iembk-fila-destacada {
    margin-top: 80px;
}


body.iembk-page .iembk-fila-resumen {
    margin-top: 40px;
    margin-bottom: 40px;
}


body.iembk-page .iembk-seccion-destacada {
    padding-left: 10px;
    padding-right: 10px;
    border-left-width: 10px;
}


body.iembk-page .iembk-cabecera {
    padding-top: 0;
}


body.iembk-page .iembk-logo {
    max-width: 120px;
    height: auto;
    display: block;
    margin: 0 auto;
}


body.iembk-page .iembk-navegacion {
    padding-left: 0;
}


body.iembk-page .iembk-submenu-divisiones {
    min-width: 300px;
}


body.iembk-page .iembk-submenu-proyectos {
    min-width: 200px;
}


body.iembk-page .iembk-enlace-productos {
    padding-top: 19px;
}


body.iembk-page .iembk-enlace-linea {
    display: block;
    line-height: 1;
}


body.iembk-page .iembk-enlace-sublinea {
    font-size: .9em;
    display: block;
    line-height: 1.2;
}


body.iembk-page .iembk-sin-margen {
    margin: 0;
}


body.iembk-page .iembk-boton-cerrar-carrito {
    width: 100px;
    height: 38px;
    margin-top: 0;
    padding-top: 2px;
    padding-bottom: 2px;
    padding-left: 2px;
    padding-right: 2px;
}


body.iembk-page .iembk-modal-cotizacion {
    width: 350px;
}


body.iembk-page .iembk-carrito-vacio {
    display: none;
    padding: 32px 16px;
    text-align: center;
    color: var(--iembk-azul-oscuro);
}


body.iembk-page .iembk-boton-enviar-cotizacion {
    width: 100px;
    height: 38px;
    margin-top: 0;
}


body.iembk-page .iembk-catalogo-heading-col {
    padding-left: 300px;
}


body.iembk-page .iembk-catalogo-heading {
    text-align: center;
    padding-right: 90px;
    padding-left: 90px;
    left: 300px;
    border: 1px solid var(--iembk-acento);
}


body.iembk-page .iembk-catalogo-aviso {
    text-align: center;
    margin-top: 30px;
}


body.iembk-page .iembk-carrito-fila {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}


body.iembk-page .iembk-carrito-imagen {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-right: 10px;
    color: white;
}


body.iembk-page .iembk-carrito-datos {
    flex: 1;
}


body.iembk-page .iembk-carrito-controles {
    margin-top: 5px;
}


body.iembk-page .iembk-carrito-restar {
    width: 39px;
    padding-top: 2px;
    padding-bottom: 2px;
    padding-right: 2px;
    padding-left: 2px;
}


body.iembk-page .iembk-carrito-cantidad {
    margin: 0 8px;
}


body.iembk-page .iembk-carrito-sumar {
    width: 39px;
    padding-top: 2px;
    padding-bottom: 2px;
    padding-right: 2px;
    padding-left: 2px;
    margin-top: 0;
}


body.iembk-page .iembk-carrito-eliminar {
    width: 39px;
    padding-top: 2px;
    padding-bottom: 2px;
    padding-right: 2px;
    padding-left: 2px;
    margin-top: 0;
    background-color: red;
}


body.iembk-page .iembk-carrito-total {
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 10px;
    text-align: right;
}


body.iembk-page .iembk-fila-compacta {
    margin-bottom: 5px;
}


:root {
    --iembk-page-gutter: clamp(12px, 3vw, 32px);
}

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

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

body {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg,
iframe,
embed,
object {
    max-width: 100%;
}

img,
video {
    height: auto;
}

video[width],
iframe[width] {
    width: 100% !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
button,
label,
td,
th {
    overflow-wrap: anywhere;
}

.container,
.container-fluid {
    max-width: 100%;
}

main,
section,
footer,
.well1,
.tm-main-content,
.tm-services-container,
.tm-site-header {
    max-width: 100%;
}


.tm-site-header-col {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.tm-site-header-left {
    flex: 0 0 auto;
}

.tm-site-header-left img {
    width: auto;
    max-width: 120px;
    height: auto;
}

.tm-site-header-right,
.tm-menu-container-outer,
.navbar,
.navbar-collapse {
    min-width: 0;
    max-width: 100%;
}

.navbar {
    width: 100%;
}

.sf-menu {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    max-width: 100%;
}

.sf-menu > li > a {
    white-space: normal;
}

.admin-login-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    margin: 8px 5px !important;
    padding: 10px 14px !important;
    color: #fff !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    background: linear-gradient(135deg, var(--iembk-acento), var(--iembk-acento-profundo)) !important;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--iembk-radio, 8px);
    box-shadow: 0 4px 12px rgba(0, 95, 204, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.admin-login-link:hover,
.admin-login-link:focus {
    color: #fff !important;
    background: linear-gradient(135deg, var(--iembk-acento-hover), var(--iembk-acento-hover-profundo)) !important;
    box-shadow: 0 6px 16px rgba(0, 78, 170, 0.35);
    transform: translateY(-1px);
    text-decoration: none;
}

.admin-login-link:focus-visible,
.submenu-toggle:focus-visible,
.navbar-toggler:focus-visible {
    outline: 3px solid #ffbd59;
    outline-offset: 2px;
}

.submenu-toggle {
    display: none;
}


.tm-main-bg1,
.tm-services-bg3,
.tm-welcome-container,
.tm-article,
.tm-featured-item {
    max-width: 100%;
    background-position: center;
    background-size: cover;
}


form,
fieldset,
.form-consulta,
.modal-dialog,
.modal-content {
    max-width: 100%;
}

input,
select,
textarea,
button,
.campo-form,
.form-control {
    max-width: 100%;
}

.form-consulta {
    width: min(100%, 680px);
    padding-inline: var(--iembk-page-gutter);
}

.campo-form,
.form-consulta input:not([type="submit"]):not([type="hidden"]),
.form-consulta textarea,
.form-consulta select {
    width: 100%;
}

textarea {
    resize: vertical;
}


.catalogo-productos {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: clamp(14px, 2vw, 24px);
    width: 100%;
    align-items: stretch;
}

.catalogo-productos > .col-12 {
    grid-column: 1 / -1;
}

.producto-card {
    width: auto !important;
    min-width: 0;
    max-width: 100% !important;
    margin: 0 !important;
}

.producto-card img {
    max-width: 100%;
    object-fit: contain;
}

.cart-container {
    max-width: calc(100vw - 20px);
}

.cart-sidebar {
    max-width: 100vw;
}


.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    max-width: 100%;
}


@media (max-width: 1199.98px) {
    .container {
        width: 100%;
        max-width: 100%;
        padding-left: var(--iembk-page-gutter);
        padding-right: var(--iembk-page-gutter);
    }

    .tm-site-header-left img {
        max-width: 100px;
    }

    .sf-menu > li > a {
        padding-left: 9px !important;
        padding-right: 9px !important;
        font-size: 13px;
    }
}


@media (max-width: 991.98px) {
    body.cart-open {
        margin-right: 0 !important;
    }

    .tm-site-header-col {
        align-items: flex-start;
    }

    .tm-site-header-left {
        padding: 8px 12px;
    }

    .tm-site-header-right,
    .tm-menu-container-outer {
        flex: 1 1 auto;
        width: auto;
    }

    .navbar {
        display: flex;
        justify-content: flex-end;
        padding: 8px 12px !important;
    }

    .navbar-toggler {
        display: block;
        margin-left: auto;
        min-width: 44px;
        min-height: 44px;
    }

    .navbar-collapse {
        flex-basis: 100%;
        width: 100%;
        max-height: calc(100vh - 110px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .navbar-collapse.show .sf-menu,
    .navbar-collapse.collapsing .sf-menu {
        display: block !important;
        width: 100%;
    }

    .sf-menu > li {
        position: relative;
        float: none !important;
        width: 100%;
    }

    .sf-menu > li > a {
        display: block;
        width: 100%;
        min-height: 44px;
        padding: 11px 14px !important;
    }

    .navbar-collapse.show .sf-menu ul,
    .navbar-collapse.collapsing .sf-menu ul {
        display: none !important;
        position: static !important;
        width: 100% !important;
        margin-left: 0 !important;
        min-width: 0 !important;
        max-width: 100% !important;
        max-height: 50vh !important;
        overflow-y: auto;
    }

    .navbar-collapse.show .sf-menu li.submenu-open > ul,
    .navbar-collapse.collapsing .sf-menu li.submenu-open > ul {
        display: block !important;
    }

    .sf-menu li.has-submenu > a {
        padding-right: 58px !important;
    }

    .sf-menu li ul li > a {
        padding-left: 28px !important;
    }

    .sf-menu li ul li ul li > a {
        padding-left: 42px !important;
    }

    .sf-menu li ul li ul li ul li > a {
        padding-left: 56px !important;
    }

    .submenu-toggle {
        position: absolute;
        z-index: 5;
        top: 4px;
        right: 6px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        min-width: 40px;
        height: 40px;
        padding: 0;
        color: currentColor;
        font-size: 24px;
        line-height: 1;
        background: rgba(0, 127, 255, 0.1);
        border: 1px solid rgba(0, 95, 204, 0.28);
        border-radius: 7px;
        cursor: pointer;
    }

    .submenu-toggle:hover,
    .submenu-toggle:focus {
        background: rgba(0, 127, 255, 0.2);
    }

    .admin-login-link {
        margin: 6px 10px !important;
        width: calc(100% - 20px) !important;
    }

    main .col-12[style*="padding-left"],
    main .iembk-catalogo-heading-col {
        padding-left: 15px !important;
    }

    .tm-section-header[style*="padding-right"],
    .tm-section-header[style*="padding-left"],
    .tm-section-header.iembk-titulo-ancho,
    .tm-section-header.iembk-catalogo-heading {
        padding-left: 16px !important;
        padding-right: 16px !important;
        left: auto !important;
    }
}


@media (max-width: 767.98px) {
    :root {
        --iembk-page-gutter: 14px;
    }

    body.cart-open {
        margin-right: 0 !important;
    }

    .tm-site-header-left img {
        max-width: 82px;
    }

    .tm-site-header-col {
        min-height: 68px;
    }

    h1 {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        line-height: 1.15;
    }

    h2,
    .tm-section-header {
        font-size: clamp(1.45rem, 7vw, 2rem);
        line-height: 1.2;
    }

    h3 {
        font-size: clamp(1.2rem, 6vw, 1.6rem);
    }

    .row {
        max-width: calc(100% + 30px);
    }

    .cart-sidebar {
        right: -100% !important;
        width: min(100%, 380px) !important;
    }

    .cart-sidebar.open {
        right: 0 !important;
    }

    .cart-sidebar-footer {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .cart-sidebar-footer .btn {
        flex: 1 1 120px;
        width: auto !important;
    }

    .modal-dialog {
        width: auto;
        margin: 10px;
    }

    .modal-content[style*="width"],
    .modal-content.iembk-modal-cotizacion {
        width: 100% !important;
    }

    .modal-footer {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .modal-footer
    .btn:not(.iembk-boton-cerrar-modal):not(.iembk-boton-enviar-cotizacion) {
        flex: 1 1 12px;
        width: auto !important;
        margin: 0 !important;
    }

    .catalogo-productos {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    }

    table {
        display: block;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    footer {
        padding-left: var(--iembk-page-gutter);
        padding-right: var(--iembk-page-gutter);
        text-align: center;
    }
}


@media (max-width: 479.98px) {
    body.iembk-publico footer.iembk-footer {
        margin-top: 24px;
        border-radius: 10px 10px 0 0;
    }
    
    body.iembk-publico .iembk-footer-superior {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        gap: 14px;
        padding: 22px 18px;
    }
    
    body.iembk-publico .iembk-footer-marca {
        width: 90px;
        margin: 0;
    }
    
    body.iembk-publico .iembk-footer-identidad {
        width: 100%;
        min-width: 0;
        padding: 0;
        border-left: 0;
        text-align: center;
    }
    
    body.iembk-publico .iembk-footer-lema {
        margin: 0 0 6px;
        font-size: 15px;
        line-height: 1.45;
        text-align: center;
        word-break: normal;
        overflow-wrap: break-word;
    }
    
    body.iembk-publico .iembk-footer-descripcion {
        margin: 0;
        font-size: 12px;
        line-height: 1.6;
        letter-spacing: 0;
        text-align: center;
        word-break: normal;
        overflow-wrap: break-word;
    }
    
    body.iembk-publico footer.iembk-footer .iembk-footer-boton {
        grid-column: 1 / -1;
        justify-self: center;
        width: 100%;
        max-width: 280px;
        min-width: 44px;
        white-space: normal;
    }
    
    body.iembk-publico .iembk-footer-inferior {
        flex-direction: column;
        justify-content: center;
        gap: 2px;
        margin: 0 18px;
        padding: 12px 0 6px;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ================================================================
   CONTROLES DE CARRUSELES
   ================================================================ */

/* Carruseles Slick: proyectos recientes y galería de la empresa. */
body.iembk-page .tm-carousel .slick-prev,
body.iembk-page .tm-carousel .slick-next {
    z-index: 6;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(8, 38, 82, 0.96), rgba(22, 108, 164, 0.96));
    box-shadow: 0 8px 22px rgba(3, 19, 59, 0.3);
    transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

body.iembk-page .tm-carousel .slick-prev {
    left: 10px;
}

body.iembk-page .tm-carousel .slick-next {
    right: 10px;
}

body.iembk-page .tm-carousel .slick-prev::before,
body.iembk-page .tm-carousel .slick-next::before {
    display: block;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 36px;
    font-weight: 300;
    line-height: 42px;
    color: #fff;
    opacity: 1;
}

body.iembk-page .tm-carousel .slick-prev::before {
    content: "\2039";
}

body.iembk-page .tm-carousel .slick-next::before {
    content: "\203A";
}

body.iembk-page .tm-carousel .slick-prev:hover,
body.iembk-page .tm-carousel .slick-prev:focus-visible,
body.iembk-page .tm-carousel .slick-next:hover,
body.iembk-page .tm-carousel .slick-next:focus-visible {
    background: linear-gradient(145deg, #178bc3, #0a3f79);
    box-shadow: 0 10px 28px rgba(3, 19, 59, 0.4);
    transform: translateY(-50%) scale(1.08);
}

body.iembk-page .tm-carousel .slick-prev:focus-visible,
body.iembk-page .tm-carousel .slick-next:focus-visible {
    outline: 3px solid rgba(68, 181, 231, 0.42);
    outline-offset: 3px;
}

body.iembk-page .tm-carousel .slick-dots {
    bottom: -38px;
}

body.iembk-page .tm-carousel .slick-dots li,
body.iembk-page .tm-carousel .slick-dots li button {
    width: 26px;
    height: 26px;
}

body.iembk-page .tm-carousel .slick-dots li button::before {
    width: 26px;
    font-size: 22px;
    color: rgba(16, 67, 116, 0.42);
}

body.iembk-page .tm-carousel .slick-dots li.slick-active button::before {
    color: #167db4;
    transform: scaleX(1.2);
}

/* Carruseles Bootstrap de la sección de mantenimiento. */
body.iembk-page-mantenimiento .carousel {
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(3, 19, 59, 0.18);
}

body.iembk-page-mantenimiento .custom-carousel-btn {
    top: 50%;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(4, 28, 66, 0.94), rgba(17, 104, 160, 0.94));
    color: #fff;
    opacity: 1;
    box-shadow: 0 7px 20px rgba(3, 19, 59, 0.34);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transform: translateY(-50%);
    transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

body.iembk-page-mantenimiento .carousel-control-prev.custom-carousel-btn {
    left: 12px;
}

body.iembk-page-mantenimiento .carousel-control-next.custom-carousel-btn {
    right: 12px;
}

body.iembk-page-mantenimiento .custom-carousel-btn .fas {
    display: block;
    width: auto;
    font-size: 19px;
    line-height: 1;
    color: #fff;
    text-shadow: 0 1px 4px rgba(3, 19, 59, 0.38);
}

body.iembk-page-mantenimiento .custom-carousel-btn:hover,
body.iembk-page-mantenimiento .custom-carousel-btn:focus-visible {
    background: linear-gradient(145deg, #1596ce, #0a4d88);
    border-color: #fff;
    color: #fff;
    box-shadow: 0 9px 25px rgba(3, 19, 59, 0.42);
    transform: translateY(-50%) scale(1.08);
}

body.iembk-page-mantenimiento .custom-carousel-btn:focus-visible {
    outline: 3px solid rgba(68, 181, 231, 0.48);
    outline-offset: 3px;
}

body.iembk-page-mantenimiento .visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

body.iembk-page-mantenimiento .carousel-indicators button {
    width: 28px;
    height: 4px;
    margin: 0 4px;
    border: 0;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.68);
    box-shadow: 0 1px 4px rgba(3, 19, 59, 0.34);
}

body.iembk-page-mantenimiento .carousel-indicators button.active {
    background-color: #48b5e7;
}

@media (max-width: 550px) {
    body.iembk-page .tm-carousel .slick-prev,
    body.iembk-page .tm-carousel .slick-next,
    body.iembk-page-mantenimiento .custom-carousel-btn {
        width: 42px;
        height: 42px;
    }

    body.iembk-page .tm-carousel .slick-prev {
        left: 6px;
    }

    body.iembk-page .tm-carousel .slick-next {
        right: 6px;
    }

    body.iembk-page-mantenimiento .carousel-control-prev.custom-carousel-btn {
        left: 8px;
    }

    body.iembk-page-mantenimiento .carousel-control-next.custom-carousel-btn {
        right: 8px;
    }
}

/* ================================================================
   EXPERIENCIA MÓVIL Y VISOR DEL CURRÍCULUM
   ================================================================ */

body.iembk-page-company .iembk-pdf-viewer {
    width: 100%;
    max-width: 940px;
    margin: 0 auto;
    overflow: hidden;

    background: #ffffff;
    border: 1px solid #cbd9e4;
    border-radius: 14px;
    box-shadow: var(--iembk-sombra-tarjeta);
}

body.iembk-page-company .iembk-pdf-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 68px;
    padding: 12px 18px;

    color: #ffffff;
    background: var(--iembk-azul-oscuro);
}

body.iembk-page-company .iembk-pdf-title {
    font-size: 17px;
    font-weight: 650;
    letter-spacing: 0.015em;
}

body.iembk-page-company .iembk-pdf-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

body.iembk-page-company .iembk-pdf-control {
    min-width: 92px;
    min-height: 42px;
    padding: 8px 13px;

    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 7px;

    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

body.iembk-page-company .iembk-pdf-control:hover:not(:disabled),
body.iembk-page-company .iembk-pdf-control:focus-visible {
    background: rgba(255, 255, 255, 0.2);
}

body.iembk-page-company .iembk-pdf-control:focus-visible {
    outline: 3px solid #82c8f2;
    outline-offset: 2px;
}

body.iembk-page-company .iembk-pdf-control:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

body.iembk-page-company .iembk-pdf-page {
    min-width: 112px;
    color: #e7f3fb;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

body.iembk-page-company .iembk-pdf-stage {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 480px;
    padding: 16px;
    overflow: auto;

    background: #e9eef2;
}

body.iembk-page-company .iembk-pdf-status {
    max-width: 520px;
    margin: auto;
    padding: 20px;
    color: #52677d;
    line-height: 1.6;
    text-align: center;
}

body.iembk-page-company .iembk-pdf-canvas {
    display: block;
    max-width: 100%;
    height: auto;

    background: #ffffff;
    box-shadow: 0 8px 24px rgba(3, 19, 59, 0.16);
}

body.iembk-page-company .iembk-pdf-canvas[hidden] {
    display: none;
}

body.iembk-page-company .iembk-pdf-actions {
    padding: 16px;
    text-align: center;
    border-top: 1px solid #d6e0e8;
}

body.iembk-page-company .iembk-pdf-noscript {
    padding: 0 16px 16px;
    color: #52677d;
    text-align: center;
}

@media (max-width: 767.98px) {
    body.iembk-publico .container-fluid.iembk-lienzo,
    body.iembk-publico main .container,
    body.iembk-publico main .container-fluid {
        width: 100% !important;
        max-width: 100% !important;
    }

    body.iembk-publico .container-fluid.iembk-lienzo {
        margin-right: 0;
        margin-left: 0;
    }

    body.iembk-publico main {
        width: 100%;
        margin-right: 0;
        margin-left: 0;
    }

    body.iembk-publico main .container,
    body.iembk-publico main .container-fluid {
        padding-right: 14px;
        padding-left: 14px;
    }

    body.iembk-publico main .iembk-seccion {
        padding-right: 12px;
        padding-left: 12px;
    }

    body.iembk-publico main .row {
        max-width: none;
    }

    body.iembk-publico main .iembk-fila-presentacion {
        margin-top: 42px;
    }

    body.iembk-publico main .tm-dotted-box-container {
        margin-bottom: 18px !important;
    }

    body.iembk-publico main .tm-dotted-box,
    body.iembk-publico main .tm-solid-border,
    body.iembk-publico main .iembk-tarjeta-empresa,
    body.iembk-publico main .iembk-tarjeta-marcas {
        width: 100%;
        max-width: none;
    }

    body.iembk-publico main [align="justify"],
    body.iembk-publico main .tm-article-text,
    body.iembk-publico main .iembk-texto-tarjeta {
        text-align: left !important;
        word-spacing: normal;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    body.iembk-publico main .tm-media {
        flex-direction: column;
        align-items: stretch;
    }

    body.iembk-publico main .tm-media-img {
        width: 100%;
        max-width: none;
        margin-right: 0;
        margin-bottom: 18px;
    }

    body.iembk-publico main .tm-media-body {
        width: 100%;
        max-width: none;
        margin: 0;
    }

    body.iembk-publico main .tm-carousel {
        width: 100%;
        max-width: 100% !important;
    }

    body.iembk-publico main .btn,
    body.iembk-publico main .tm-btn,
    body.iembk-publico main .btn-form {
        min-height: 46px;
    }

    body.iembk-page-company .iembk-pdf-viewer {
        border-radius: 11px;
    }

    body.iembk-page-company .iembk-pdf-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 15px;
    }

    body.iembk-page-company .iembk-pdf-title {
        text-align: center;
    }

    body.iembk-page-company .iembk-pdf-controls {
        width: 100%;
        gap: 7px;
    }

    body.iembk-page-company .iembk-pdf-control {
        flex: 1 1 0;
        min-width: 0;
        min-height: 44px;
        padding-right: 8px;
        padding-left: 8px;
    }

    body.iembk-page-company .iembk-pdf-page {
        flex: 0 1 110px;
        min-width: 0;
    }

    body.iembk-page-company .iembk-pdf-stage {
        min-height: 360px;
        padding: 8px;
    }

    body.iembk-page-company .iembk-pdf-actions {
        padding: 12px;
    }

    body.iembk-page-company .iembk-pdf-actions .btn {
        width: 100%;
        white-space: normal;
    }
}

@media (max-width: 479.98px) {
    body.iembk-publico main .container,
    body.iembk-publico main .container-fluid {
        padding-right: 12px;
        padding-left: 12px;
    }

    body.iembk-publico main .iembk-seccion {
        padding-right: 8px;
        padding-left: 8px;
    }

    body.iembk-publico main .tm-dotted-box,
    body.iembk-publico main .tm-solid-border,
    body.iembk-publico main .iembk-tarjeta-empresa,
    body.iembk-publico main .iembk-tarjeta-marcas,
    body.iembk-page-index main .tm-media {
        padding: 16px;
    }

    body.iembk-page-company .iembk-pdf-control {
        font-size: 14px;
    }

    body.iembk-page-company .iembk-pdf-page {
        font-size: 12px;
    }
}

/* Vista previa de noticias en PDF sin depender del visor del navegador. */
body.iembk-page-index .iembk-pdf-viewer--news {
    position: relative;
    display: block;
    background: #e7edf5;
}

body.iembk-page-index .iembk-pdf-viewer--news .iembk-pdf-stage {
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: auto;
    background: #e7edf5;
}

body.iembk-page-index .iembk-pdf-viewer--news .iembk-pdf-canvas {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    box-shadow: none;
}

body.iembk-page-index .iembk-pdf-viewer--news .iembk-pdf-canvas[hidden] {
    display: none;
}

body.iembk-page-index .iembk-pdf-viewer--news .iembk-pdf-status {
    margin: auto;
    padding: 24px;
    color: #102452;
    font-weight: 700;
    text-align: center;
}

body.iembk-page-index .iembk-news-document-link {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(10, 44, 91, 0.94);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(3, 19, 59, 0.24);
}

body.iembk-page-index .iembk-news-document-link:hover,
body.iembk-page-index .iembk-news-document-link:focus-visible {
    background: #167db4;
    color: #fff;
}

/* ================================================================
   TEXTO SOBRE PROYECTOS RECIENTES
   ================================================================ */

body.iembk-page-index .tm-carousel figure.effect-honey {
    overflow: hidden;
    background: #dceaf1;
    border-radius: 12px;
    box-shadow: 0 7px 20px rgba(3, 19, 59, 0.12);
}

body.iembk-page-index .tm-carousel figure.effect-honey img {
    opacity: 1;
    filter: saturate(0.96) contrast(1.03);
    transition: opacity 220ms ease, filter 220ms ease;
}

body.iembk-page-index .tm-carousel figure.effect-honey:hover img {
    opacity: 0.96;
    filter: saturate(1) contrast(1.05);
}

body.iembk-page-index .tm-carousel figure.effect-honey figcaption {
    padding: 0;
    color: #d4e9f7;
    text-transform: none;
    background: linear-gradient(
        180deg,
        rgba(2, 13, 40, 0) 28%,
        rgba(2, 13, 40, 0.28) 55%,
        rgba(2, 13, 40, 0.9) 100%
    );
}

body.iembk-page-index .tm-carousel figure.effect-honey figcaption::before {
    height: 4px;
    background: #3188bd;
    transform: none;
}

body.iembk-page-index .tm-carousel figure.effect-honey h4 {
    bottom: 0;
    padding: 54px 16px 16px;
    color: #c9e2f2;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: clamp(12px, 1.05vw, 14px);
    font-style: normal;
    font-weight: 600;
    line-height: 1.38;
    letter-spacing: 0.018em;
    word-spacing: normal;
    text-align: left;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.78);
    transform: none;
}

body.iembk-page-index .tm-carousel figure.effect-honey h4 i {
    display: block;
    opacity: 1;
    color: inherit;
    font-style: normal;
    transform: none;
}

body.iembk-page-index .tm-carousel figure.effect-honey h4 span {
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.012em;
}

body.iembk-page-index .tm-carousel figure.effect-honey:hover h4,
body.iembk-page-index .tm-carousel figure.effect-honey:hover h4 i {
    opacity: 1;
    transform: none;
}

@media (max-width: 575.98px) {
    body.iembk-page-index .tm-featured .tm-section-header-small {
        display: block;
        width: 100%;
        max-width: 100%;
        padding: 18px 20px !important;
        font-size: 20px;
        overflow-wrap: normal;
    }

    body.iembk-page-index .tm-carousel figure.effect-honey h4 {
        padding: 46px 14px 14px;
        font-size: 12px;
        line-height: 1.34;
    }
}


#navbar {
    position: relative;
    z-index: 1030;
    padding: 16px clamp(10px, 2vw, 22px);
}

#navbar .iembk-cabecera {
    position: relative;
    padding: 0;
    color: var(--iembk-menu-texto);
    background: linear-gradient(120deg, var(--iembk-azul-oscuro), #102b52);
    border: 1px solid var(--iembk-menu-borde);
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(3, 19, 59, 0.18);
}

#navbar .iembk-cabecera > .row {
    margin: 0;
    max-width: 100%;
}

#navbar .tm-site-header-col {
    position: static;
    align-items: center;
    gap: 20px;
    padding: 12px 18px;
    background: transparent;
}

#navbar .tm-site-header-left {
    padding: 0;
    flex: 0 0 auto;
}

#navbar .iembk-marca {
    display: block;
    overflow: hidden;
    border: 1px solid var(--iembk-menu-borde);
    border-radius: 8px;
}

#navbar .iembk-logo {
    display: block;
    width: 128px;
    max-width: 128px;
    height: auto;
    margin: 0;
}

#navbar .tm-site-header-right {
    position: static;
    flex: 1 1 auto;
}

#navbar .iembk-navegacion {
    position: static;
    width: 100%;
    padding: 0 !important;
    font-family: var(--iembk-fuente);
}

#navbar #menuPrincipal {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;
    width: 100%;
    margin: 0 !important;
    padding: 0;
    list-style: none;
}

#navbar .sf-menu::before,
#navbar .sf-menu::after {
    display: none;
}

#navbar .sf-menu li {
    position: relative;
    float: none;
    list-style: none;
}

#navbar .sf-menu > li {
    width: auto;
    flex: 0 0 auto;
}

#navbar .sf-menu > li > a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: auto;
    min-height: 44px;
    padding: 12px 11px !important;
    color: var(--iembk-menu-texto);
    background: transparent;
    border: 0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-transform: none;
    white-space: nowrap;
    text-decoration: none;
    transition: color 160ms ease, background-color 160ms ease;
}

#navbar .sf-menu > li > a:hover,
#navbar .sf-menu > li.submenu-open > a,
#navbar .sf-menu > li.is-current-section > a {
    color: #fff;
    background: var(--iembk-menu-seleccion);
}

#navbar .sf-menu > li.is-current-section > a::after {
    position: absolute;
    display: block;
    right: 14px;
    bottom: 3px;
    left: 14px;
    height: 2px;
    background: var(--iembk-acento);
    border-radius: 2px;
    content: '';
}

#navbar .sf-menu > .iembk-nav-admin {
    margin-left: auto;
    padding-left: 8px;
}

#navbar .sf-menu > .iembk-nav-correo > a {
    color: var(--iembk-menu-texto-secundario);
}

#navbar .sf-menu .admin-login-link {
    width: auto !important;
    min-height: 44px;
    margin: 0 !important;
    padding: 12px 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 9px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

#navbar .sf-menu ul {
    display: none !important;
    box-sizing: border-box;
    opacity: 1 !important;
    margin: 0;
    padding: 6px;
    color: var(--iembk-menu-texto);
    background: var(--iembk-azul-oscuro);
    border: 1px solid var(--iembk-menu-borde);
    border-radius: 12px;
}

#navbar .sf-menu li.submenu-open > ul {
    display: block !important;
}

#navbar .sf-menu > li > ul {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 340px;
    min-width: 0;
    max-width: calc(100vw - 48px);
    max-height: min(65vh, 560px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #45628a var(--iembk-azul-oscuro);
    box-shadow: 0 16px 36px rgba(3, 19, 59, 0.3);
}

#navbar .sf-menu ul ul,
#navbar .sf-menu ul.dropdown-down,
#navbar .sf-menu ul.dropdown-down li ul {
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    max-height: none !important;
    margin: 0 0 6px 10px !important;
    padding: 0 0 0 6px;
    overflow: visible !important;
    background: transparent;
    border: 0;
    border-left: 1px solid var(--iembk-menu-borde);
    border-radius: 0;
    box-shadow: none;
}

#navbar .sf-menu ul li > a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 10px 12px !important;
    color: var(--iembk-menu-texto);
    background: transparent;
    border: 0;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    white-space: normal;
    overflow-wrap: anywhere;
    text-transform: none;
}

#navbar .sf-menu ul li > a:hover,
#navbar .sf-menu ul a[aria-current="page"] {
    color: #fff;
    background: var(--iembk-menu-seleccion);
}

#navbar .sf-menu .has-submenu > a {
    padding-right: 50px !important;
}


#navbar .has-submenu > a > .fa {
    display: none !important;
}

#navbar .sf-menu .sf-with-ul::before,
#navbar .sf-menu .sf-with-ul::after {
    display: none !important;
    content: none !important;
}

#navbar .submenu-toggle {
    position: absolute;
    top: 2px;
    right: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    color: var(--iembk-menu-texto);
    background: transparent;
    border: 0;
    border-radius: 7px;
    cursor: pointer;
}

#navbar .submenu-toggle:hover {
    background: var(--iembk-menu-seleccion);
}

#navbar .submenu-chevron {
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 160ms ease;
}

#navbar .submenu-open > .submenu-toggle .submenu-chevron {
    transform: rotate(225deg);
}

#navbar a:focus-visible,
#navbar button:focus-visible {
    outline: 3px solid #ffbd59;
    outline-offset: 2px;
}

@media (min-width: 992px) {
    #navbar #navbarSupportedContent1 {
        position: static;
        display: flex !important;
        width: 100%;
        max-height: none;
        overflow: visible;
        background: transparent;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    #navbar .tm-site-header-col {
        gap: 10px;
        padding: 10px 12px;
    }

    #navbar .iembk-logo {
        width: 104px;
        max-width: 104px;
    }

    #navbar .sf-menu > li > a {
        padding-right: 8px !important;
        padding-left: 8px !important;
        font-size: 13px;
    }

    #navbar .sf-menu > li.has-submenu > a {
        padding-right: 44px !important;
    }
}

@media (max-width: 991.98px) {
    #navbar {
        padding: 12px 10px;
    }

    #navbar .tm-site-header-col {
        gap: 12px;
        padding: 10px 12px;
    }

    #navbar .iembk-logo {
        width: 112px;
        max-width: 112px;
    }

    #navbar .navbar-toggler {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        min-height: 46px;
        padding: 10px 14px;
        color: #fff;
        background: var(--iembk-menu-seleccion);
        border: 1px solid var(--iembk-menu-borde);
        border-radius: 9px;
        font-size: 14px;
        font-weight: 600;
    }

    #navbar .iembk-menu-icon {
        position: relative;
        display: block;
        width: 18px;
        height: 2px;
        background: currentColor;
    }

    #navbar .iembk-menu-icon::before,
    #navbar .iembk-menu-icon::after {
        position: absolute;
        left: 0;
        width: 18px;
        height: 2px;
        background: currentColor;
        content: '';
        transition: transform 160ms ease;
    }

    #navbar .iembk-menu-icon::before { top: -6px; }
    #navbar .iembk-menu-icon::after { top: 6px; }
    #navbar .navbar-toggler[aria-expanded="true"] .iembk-menu-icon { background: transparent; }
    #navbar .navbar-toggler[aria-expanded="true"] .iembk-menu-icon::before { top: 0; transform: rotate(45deg); }
    #navbar .navbar-toggler[aria-expanded="true"] .iembk-menu-icon::after { top: 0; transform: rotate(-45deg); }

    #navbar #navbarSupportedContent1 {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        left: 0;
        width: 100%;
        max-height: calc(100vh - 130px);
/*        max-height: calc(100dvh - 130px); */
        overflow-y: auto;
        overscroll-behavior: contain;
        color: var(--iembk-menu-texto);
        background: var(--iembk-azul-oscuro);
        border: 1px solid var(--iembk-menu-borde);
        border-radius: 12px;
        box-shadow: 0 16px 32px rgba(3, 19, 59, 0.28);
    }

    #navbar #menuPrincipal {
        display: block;
        padding: 8px;
    }

    #navbar .sf-menu > li {
        width: 100%;
    }

    #navbar .sf-menu > li > a {
        justify-content: flex-start;
        min-height: 48px;
        padding: 12px 14px !important;
        font-size: 15px;
    }

    #navbar .sf-menu > li.has-submenu > a {
        padding-right: 50px !important;
    }

    #navbar .sf-menu > li > ul {
        position: static !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        max-height: none !important;
        overflow: visible !important;
        margin: 4px 0 8px;
        padding: 4px;
        border: 0;
        border-left: 2px solid var(--iembk-acento);
        border-radius: 0;
        box-shadow: none;
    }

    #navbar .sf-menu > .iembk-nav-admin {
        margin: 8px 0 0;
        padding: 10px 0 2px;
        border-top: 1px solid var(--iembk-menu-borde);
    }

    #navbar .sf-menu .admin-login-link {
        justify-content: center;
        width: 100% !important;
        min-height: 48px;
    }
}

#navbar .sf-menu .admin-login-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    
    min-height: 46px;
    padding: 10px 14px !important;
    
    color: #ffffff !important;
    background: linear-gradient(
        135deg,
        #285683,
        #183c62
    ) !important;
    
    border: 1px solid rgba(191, 217, 244, 0.45);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
    
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    transform: none;
    
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease;
}

#navbar .admin-login-link .iembk-acceso-icono {
    flex: 0 0 auto;
    font-size: 21px;
    line-height: 1;
    color: #e1efff;
}

#navbar .admin-login-link .iembk-acceso-icono::before {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    font-style: normal;
}

#navbar .sf-menu .admin-login-link:hover {
    background: linear-gradient(
        135deg,
        #316696,
        #214e7b
    ) !important;
    
    border-color: rgba(218, 235, 255, 0.8);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.22);
    transform: none;
}

#navbar .sf-menu .admin-login-link:focus-visible {
    outline: 3px solid #b7d8ff;
    outline-offset: 3px;
}

@media (max-width: 991.98px){
    #navbar .sf-menu .admin-login-link {
        min-height: 48px;
    }
}

:root {
    --iembk-azul-oscuro: #03133b;
    --iembk-fondo-contenido: #e7f0f5;
    --iembk-fondo-admin:#f4f6f9;
    
    --iembk-boton: #23679b;
    --iembk-boton-hover: #194f7a;
    
    --iembk-boton-primario: #23679b;
    --iembk-boton-primario-hover: #194f7a;
    --iembk-boton-primario-borde-hover: #194f7a;
    --iembk-boton-primario-activo: #143f63;
    --iembk-boton-primario-borde-activo: #143f63;
    
    --iembk-fuente: "Segoe UI", Arial, sans-serif;
    --iembk-fuente-base: "Segoe UI", Arial, sans-serif;
    --iembk-fuente-plantilla: "Segoe UI", Arial, sans-serif;
    --iembk-fuente-formularios: "Segoe UI", Arial, sans-serif;
    --iembk-fuente-admin: "Segoe UI", Arial, sans-serif;
    
    --iembk-radio: 10px;
    --iembk-borde-suave: #d5e0e9;
    --iembk-sombra-suave: 0 8px 24px rgba(3, 19, 59, 0.08);
}

body.iembk-publico main {
    font-size: 16px;
    line-height: 1.75;
}

body.iembk-publico main .tm-section-header {
    border-radius: 10px;
    font-weight: 600;
    box-shadow: var(--iembk-sombra-suave);
}

body.iembk-publico main .tm-article-title {
    font-weight: 600;
    line-height: 1.45;
}

body.iembk-publico main .tm-article-text,
body.iembk-publico main .iembk-texto-tarjeta {
    line-height: 1.8;
}

body.iembk-publico main .tm-dotted-box,
body.iembk-publico main .tm-solid-border {
    background: var(--iembk-azul-oscuro);
    color: #f3f6fc;
    border: 1px solid #294369;
    border-radius: 14px;
    padding: clamp(20px, 2.5vw, 30px);
    box-shadow: var(--iembk-sombra-suave);
}

body.iembk-publico main .tm-service-description {
    color: #a9d6ff;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 16px;
}

body.iembk-page .iembk-tarjeta-marcas {
    height: auto;
}

body.iembk-publico main .tm-media-img,
body.iembk-publico main .iembk-imagen-proyecto,
body.iembk-publico main .iembk-imagen-proyecto-ancha {
    border-radius: 10px;
}

body.iembk-publico .video-container video {
    box-shadow: var(--iembk-sombra-suave);
}

body.iembk-page .btn,
body.iembk-page .tm-btn,
body.iembk-page .btn-form {
    border-radius: 8px;
    font-weight: 600;
}

body.iembk-page .btn:focus-visible,
body.iembk-page .tm-btn:focus-visible,
body.iembk-page .btn-form:focus-visible {
    outline: 3px solid #78baff;
    outline-offset: 3px;
}

body.iembk-page-productos-db .producto-card {
    padding: 20px;
    background: var(--iembk-azul-oscuro);
    border: 1px solid #294369;
    border-radius: 14px;
    box-shadow: var(--iembk-sombra-suave);
}

body.iembk-page-productos-db .producto-card img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    box-sizing: border-box;
    padding: 12px;
    margin-bottom: 16px;
    background: #ffffff;
    border-radius: 9px;
}

body.iembk-page-productos-db .producto-titulo {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
}

body.iembk-page-productos-db .producto-modelo,
body.iembk-page-productos-db .producto-stock {
    color: #d1dced;
    font-size: 14px;
    line-height: 1.6;
}

body.iembk-page-productos-db .producto-precio {
    color: #a9d6ff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    margin: 14px 0;
}

body.iembk-page-productos-db .cart-sidebar-close {
    color: #ffffff;
}

body.iembk-formularios .form-consulta {
    box-sizing: border-box;
    background: #ffffff;
    color: #203247;
    padding: clamp(20px, 3vw, 32px);
    border: 1px solid var(--iembk-borde-suave);
    border-radius: 14px;
    box-shadow: var(--iembk-sombra-suave);
}

body.iembk-formularios .form-consulta label {
    display: block;
    color: #203247;
    font-weight: 600;
    margin-bottom: 8px;
}

body.iembk-page-formulario-db .well1 > .container > p {
    color: #203247;
    line-height: 1.8;
}

body.iembk-page .campo-form,
body.iembk-page .form-control {
    box-sizing: border-box;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 16px;
    border-radius: 8px;
}

body.iembk-page .campo-form,
body.iembk-page .form-control:not(.is-invalid):not(.is-valid)
{
    color: #203247;
    background-color: #ffffff;
    border: 1px solid #bac9d7;
}

body.iembk-page .campo-form:focus-visible,
body.iembk-page .form-control:focus-visible {
    outline: 2px solid #23679b;
    outline-offset: 2px;
}

body.iembk-formularios .form-consulta .campo-form {
    margin-bottom: 18px;
}

body.iembk-formularios .btn-form {
    background: var(--iembk-boton);
    color: #ffffff;
}

body.iembk-formularios .btn-form:hover {
    background: var(--iembk-boton-hover);
}

body.iembk-page-productos-db .modal-content {
    border: 1px solid var(--iembk-borde-suave);
    border-radius: 14px;
    box-shadow: var(--iembk-sombra-suave);
}

body.iembk-admin .panel,
body.iembk-admin .tarjeta,
body.iembk-admin .login-card {
    border-radius: 14px;
    box-shadow: var(--iembk-sombra-suave);
}

body.iembk-admin .panel,
body.iembk-admin .login-card {
    border: 1px solid var(--iembk-borde-suave);
}

body.iembk-admin .panel {
    padding: clamp(18px, 2.5vw, 28px);
}

body.iembk-admin .login-card {
    box-sizing: border-box;
    width: calc(100% - 32px);
    padding: clamp(22px, 4vw, 32px);
}

body.iembk-admin .login-card h1 {
    font-weight: 600;
    line-height: 1.3;
}

body.iembk-admin .barra {
    box-shadow: 0 3px 12px rgba(3, 19, 59, 0.12);
}

body.iembk-admin .numero {
    font-variant-numeric: tabular-nums;
}

body.iembk-admin .table thead th {
    background: var(--iembk-azul-oscuro);
    color: #ffffff;
    border-color: #294369;
    font-weight: 600;
}

body.iembk-admin .table td,
body.iembk-admin .table th {
    padding: 14px;
    vertical-align: middle;
}

@media (max-width: 575.98px){
    body.iembk-publico main .tm-dotted-box,
    body.iembk-publico main .tm-solid-border {
        padding: 18px;
    }
    
    body.iembk-page-productos-db .producto-card {
        padding: 16px;
    }
    
    body.iembk-publico main .iembk-texto-tarjeta,
    body.iembk-publico main .tm-solid-border figure > div[align="justify"] {
        text-align: left;
    }
}

body.iembk-page-admin-producto-nuevo {
    min-height: 100vh;
    color: #203247;
    background: var(--iembk-fondo-admin);
}

body.iembk-page-admin-producto-nuevo .barra {
    padding: 15px 0;
    color: #ffffff;
    background: var(--iembk-azul-oscuro);
    box-shadow: 0 3px 12px rgba(3, 19, 59, 0.14);
}

body.iembk-page-admin-producto-nuevo .producto-form-panel {
    max-width: 850px;
    padding: clamp(20px, 3vw, 32px);
    background: #ffffff;
    border: 1px solid var(--iembk-borde-suave);
    border-radius: 14px;
    box-shadow: var(--iembk-sombra-suave);
}

body.iembk-page-admin-producto-nuevo textarea.form-control {
    min-height: 130px;
    resize: vertical;
}

@media (max-width: 575.98px){
    body.iembk-page-admin-producto-nuevo .barra .container {
        gap: 12px;
        align-items: flex-start !important;
        flex-direction: column;
    }
}

:root {
    --iembk-superficie: #ffffff;
    --iembk-superficie-suave: #f7f9fc;
    --iembk-fondo-pagina: #edf2f6;
    
    --iembk-texto-principal: #182a40;
    --iembk-texto-secundario: #5c6f84;
    
    --iembk-azul-intermedio: #123660;
    --iembk-azul-claro-formal: #91c7ed;
    
    --iembk-linea-formal: rgba(3, 19,59, 0.13);
    
    --iembk-sombra-tarjeta:
        0 7px 22px rgba(3, 19, 59, 0.08);

    --iembk-sombra-elevada:
        0 16px 38px rgba(3, 19, 59, 0.13);
    
    --iembk-transicion:
        180ms ease;
}

body.iembk-publico {
    color: var(--iembk-texto-principal);
    background:
        linear-gradient(
            180deg,
            #f5f7fa 0%,
            var(--iembk-fondo-pagina) 100%
        );
}

body.iembk-publico .container-fluid.iembk-lienzo {
    background:
        linear-gradient(
            180deg,
            #f9fbfc 0%,
            #eef4f7 100%
        );
    
    border-right: 1px solid var(--iembk-linea-formal);
    border-left: 1px solid var(--iembk-linea-formal);
    
    box-shadow:
        0 0 35px rgba(3, 19, 59, 0.08);
}

body.iembk-publico main {
    letter-spacing: 0.002em; 
}

body.iembk-publico main .tm-section-header {
    color: var(--iembk-azul-oscuro);
    
    background: rgba(255, 255, 255, 0.97);
    
    border: 1px solid #d4e0e8;
    border-top: 5px solid #3188bd;
    
    border-radius: 10px;
    
    font-weight: 650;
    line-height: 1.35;
    letter-spacing: 0.025em;
    
    text-shadow: none;
    
    box-shadow:
        0 8px 22px rgba(3, 19, 59, 0.15);
}

body.iembk-publico main .tm-section-header-small {
    color: var(--iembk-azul-oscuro);
    font-weight: 600;
}

body.iembk-publico main .tm-dotted-box,
body.iembk-publico main .tm-solid-border,
body.iembk-publico main .iembk-tarjeta-empresa,
body.iembk-publico main .iembk-tarjeta-marcas {
    color: var(--iembk-texto-principal);

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f8fbfd 100%
        );
    
    border: 1px solid #d5e1e9;
    border-top: 4px solid #3188bd;
    
    border-radius:14px;
    
    box-shadow: var(--iembk-sombra-tarjeta);
    
    transition:
        border-color var(--iembk-transicion),
        box-shadow var(--iembk-transicion);
}

body.iembk-publico main .tm-dotted-box:hover,
body.iembk-publico main .tm-solid-border:hover,
body.iembk-publico main .iembk-tarjeta-empresa:hover,
body.iembk-publico main .iembk-tarjeta-marcas:hover {
    border-color: #b8dcef;
    box-shadow: var(--iembk-sombra-elevada);
}

body.iembk-publico main .tm-article-title {
    color: var(--iembk-azul-oscuro);
    font-weight: 650;
    letter-spacing: 0.018em;
}

body.iembk-publico main .tm-service-description {
    color: #216a9b;
    font-weight: 650;
    letter-spacing: 0.012em;
}

body.iembk-publico main .tm-article-text,
body.iembk-publico main .iembk-texto-tarjeta,
body.iembk-publico main .tm-solid-border figure > div {
    color: #52677d;
    line-height: 1.82;
}

body.iembk-publico main .tm-dotted-box p,
body.iembk-publico main .tm-solid-border p,
body.iembk-publico main .iembk-tarjeta-empresa p,
body.iembk-publico main .iembk-tarjeta-marcas p {
    color: #52677d;
}

body.iembk-publico main .iembk-titulo-blanco,
body.iembk-publico main .iembk-titulo-vision {
    color: var(--iembk-azul-oscuro);
}

body.iembk-page-index main .tm-media {
    height: calc(100% - 24px);
    margin-bottom: 24px;
    padding: clamp(18px, 2vw, 24px);
    background: #ffffff;
    border: 1px solid #d5e1e9;
    border-radius: 14px;
    box-shadow: var(--iembk-sombra-tarjeta);
}

body.iembk-page-index main .tm-media-body,
body.iembk-page-index main .tm-media-body p,
body.iembk-page-index main .tm-media-body .iembk-texto-marca {
    color: #52677d;
}

body.iembk-publico main .tm-media-img,
body.iembk-publico main .iembk-imagen-proyecto,
body.iembk-publico main .iembk-imagen-proyecto-ancha,
body.iembk-publico main .iembk-imagen-empresa,
body.iembk-publico main .iembk-imagen-marcas {
    border: 1px solid rgba(3, 19, 59, 0.12);
    border-radius: 10px;
    
    box-shadow:
        0 7px 20px rgba(3, 19, 59, 0.12);
}

body.iembk-publico .video-container video {
    border: 1px solid rgba(3, 19, 59, 0.16);
    border-radius: 12px;
    
    box-shadow:
        0 12px 30px rgba(3, 19, 59, 0.16);
}

body.iembk-publico main img {
    max-width: 100%
}

body.iembk-page .btn,
body.iembk-page .tm-btn,
body.iembk-page .btn-form {
    border-radius: 8px;
    
    font-weight: 600;
    letter-spacing: 0.012em;
    
    transition:
        color var(--iembk-transicion),
        background-color var(--iembk-transicion),
        border-color var(--iembk-transicion),
        box-shadow var(--iembk-transicion);
}

body.iembk-page .btn:hover,
body.iembk-page .tm-btn:hover,
body.iembk-page .btn-form:hover {
    box-shadow:
        0 6px 15px rgba(3, 19, 59, 0.16);
}

body.iembk-page .btn-primary,
body.iembk-page .tm-btn,
body.iembk-page .btn-form {
    color: #ffffff;
    
    background:
        linear-gradient(
            135deg,
            #286f9f 0%,
            #194f7a 100%
        );
    
    border-color: #194f7a;
}

body.iembk-page .btn-primary:hover,
body.iembk-page .tm-btn:hover,
body.iembk-page .btn-form:hover {
    color: #ffffff;
    
    background:
        linear-gradient(
            135deg,
            #215f8b 0%,
            #123f65 100%
        );
    
    border-color: #123f65;
}

body.iembk-page .btn:focus-visible,
body.iembk-page .tm-btn:focus-visible,
body.iembk-page .btn-form:focus-visible {
    outline: 3px solid #78baff;
    outline-offset: 3px;
}

body.iembk-page-productos-db .producto-card {
    display: flex;
    flex-direction: column;
    
    height: 100%;
    overflow: hidden;
    
    color: var(--iembk-texto-principal);

    background: #ffffff;
    
    border: 1px solid #d5e1e9;
    border-top: 4px solid #3188bd;
    
    border-radius: 14px;
    
    box-shadow: var(--iembk-sombra-tarjeta);
    
    transition:
        border-color var(--iembk-transicion),
        box-shadow var(--iembk-transicion);
}

body.iembk-page-productos-db .producto-card:hover {
    border-color: #b8dcef;
    box-shadow: var(--iembk-sombra-elevada);
}

body.iembk-page-productos-db .producto-card img {
    border: 1px solid #d7e0e8;
    border-radius: 9px;
    
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f6f8fa 100%
        );
}

body.iembk-page-productos-db .producto-titulo {
    min-height: 50px;
    
    color: var(--iembk-azul-oscuro);
    font-weight: 650;
    letter-spacing: 0.008em;
}

body.iembk-page-productos-db .producto-modelo {
    color: #60758a;
    font-size: 13px;
    letter-spacing: 0.035em;
}

body.iembk-page-productos-db .producto-precio {
    color: #216a9b;
    font-size: 23px;
    font-weight: 700;
}

body.iembk-page-productos-db .producto-stock {
    color: #52677d;
}

body.iembk-page-productos-db .producto-card > .btn:last-child {
    margin-top: auto;
}

body.iembk-page-productos-db .cart-sidebar-header {
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

body.iembk-page-productos-db .cart-sidebar-close {
    color: #ffffff;
    border-radius: 6px;
}

body.iembk-page-productos-db .cart-sidebar-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

body.iembk-formularios .form-consulta {
    width: 100%;
    max-width: 680px;
    margin-right: auto;
    margin-left: auto;
    
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fbfcfe 100%
        );
    
    border: 1px solid var(--iembk-linea-formal);
    border-top: 4px solid #23679b;
    
    border-radius: 14px;
    box-shadow: var(--iembk-sombra-tarjeta);
}

body.iembk-page .campo-form,
body.iembk-page .form-control {
    color: var(--iembk-texto-principal);
    background-color: #ffffff;
    
    border: 1px solid #b9c8d6;
    border-radius: 8px;
    
    transition:
        border-color var(--iembk-transicion),
        box-shadow var(--iembk-transicion);
}

body.iembk-page .campo-form:hover,
body.iembk-page .form-control:hover {
    border-color: #819bb2;
}

body.iembk-page .campo-form:focus,
body.iembk-page .form-control:focus {
    border-color: #23679b;
    
   box-shadow:
       0 0 0 3px rgba(35, 103, 155, 0.14);
}

body.iembk-page .campo-form::placeholder,
body.iembk-page .form-control::placeholder {
    color: #7a8a9b;
    opacity: 1;
}

body.iembk-formularios .btn-form {
    min-height: 48px;
    padding-right: 24px;
    padding-left: 24px;
}

body.iembk-admin {
    color: var(--iembk-texto-principal);
    background:
        linear-gradient(
            180deg,
            #f6f8fb 0%,
            #edf2f6 100%
        );
}

body.iembk-admin h1,
body.iembk-admin h2,
body.iembk-admin h3 {
    color: var(--iembk-texto-principal);
    font-weight: 650;
}

body.iembk-admin .panel,
body.iembk-admin .tarjeta,
body.iembk-admin .login-card,
body.iembk-admin .producto-form-panel {
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fbfcfe 100%
        );
    
    border: 1px solid var(--iembk-linea-formal);
    border-radius: 14px;
    
    box-shadow: var(--iembk-sombra-tarjeta);
}

body.iembk-admin .tarjeta {
    border-left: 5px solid #23679b;
}

body.iembk-admin .login-card {
    border-top: 4px solid #23679b;
}

body.iembk-admin .table-responsive {
    overflow-x: auto;
    
    background: #ffffff;
    
    border: 1px solid var(--iembk-linea-formal);
    border-radius: 10px;
    
    box-shadow:
        0 5px 16px rgba(3, 19, 59, 0.07);
}

body.iembk-admin .table {
    margin-bottom: 0;
}

body.iembk-admin .table thead th {
    color: #ffffff;
    background: var(--iembk-azul-oscuro);
    
    border-color: #294369;
    
    font-weight: 650;
    letter-spacing: 0.012em;
}

body.iembk-admin .table tbody tr {
    transition:
        background-color var(--iembk-transicion);
}

body.iembk-admin .table tbody tr:hover {
    background-color: #eef5fa;
}

body.iembk-admin .alert {
    border-radius: 9px;
}

body.iembk-publico footer {
    color: var(--iembk-texto-secundario);
    
    padding-top: 28px;
    padding-bottom: 28px;
    margin-top: 25px;
    
    border-top: 1px solid var(--iembk-linea-formal);
    
    font-size: 14px;
    line-height: 1.7;
}

body.iembk-publico footer a {
    color: #315f85;
    font-weight: 600;
}

body.iembk-publico footer a:hover {
    color: var(--iembk-azul-oscuro);
}

@media (max-width: 767.98px) {
    body.iembk-publico .container-fluid.iembk-lienzo {
        border-right: 0;
        border-left: 0;
        box-shadow: none;
    }
    
    body.iembk-publico main .tm-section-header {
        max-width: calc(100vw - 32px);
        
        font-size: clamp(20px, 6vw, 28px);
        line-height: 1.3;
        
        overflow-wrap: anywhere;
    }
    
    body.iembk-publico main .tm-dotted-box,
    body.iembk-publico main .tm-solid-border {
        padding: 18px;
    }
    
    body.iembk-formularios .form-consulta {
        padding: 20px;
    }
    
    body.iembk-admin .panel,
    body.iembk-admin .producto-form-panel {
        padding: 18px;
    }
    
    body.iembk-admin .table td,
    body.iembk-admin .table th {
        white-space: nowrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.iembk-page *,
    body.iembk-page *::before,
    body.iembk-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

body.iembk-admin .admin-barra-principal {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
    background: linear-gradient(135deg, #071d42, #0c4278);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 7px 24px rgba(3, 19, 59, 0.22);
}

body.iembk-admin .admin-barra-contenido {
    display: flex;
    align-items: center;
    gap: 20px;
}

body.iembk-admin .admin-identidad {
    display: flex;
    flex-direction: column;
    min-width: 160px;
}

body.iembk-admin .admin-marca {
    color: #fff;
    font-size: 18px;
    font-weight: 750;
    letter-spacing: 0.02em;
    text-decoration: none;
}

body.iembk-admin .admin-marca:hover {
    color: #9bdcff;
    text-decoration: none;
}

body.iembk-admin .admin-usuario {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 2px;
    color: #d8eafa;
    font-size: 12px;
}

body.iembk-admin .admin-usuario-rol {
    padding: 2px 7px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

body.iembk-admin .admin-navegacion {
    display: flex;
    flex: 1;
    gap: 7px;
    align-items: center;
}

body.iembk-admin .admin-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #e8f4ff;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
    transition:
        background-color 160ms ease,
        border-color 160ms ease,
        color 160ms ease;
}

body.iembk-admin .admin-nav-link:hover,
body.iembk-admin .admin-nav-link:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

body.iembk-admin .admin-nav-link.active {
    color: #082650;
    background: #fff;
    border-color: #fff;
}

body.iembk-admin .admin-logout-form {
    margin: 0;
}

body.iembk-admin .admin-logout-button {
    min-height: 42px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 8px;
    color: #fff;
    background: transparent;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
}

body.iembk-admin .admin-titulo-acciones {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

body.iembk-admin .admin-filtro-acciones {
    gap: 8px;
}

body.iembk-admin .admin-filtro-acciones .btn {
    flex: 1;
}

body.iembk-admin .admin-aviso-mayusculas {
    margin: 8px 0 0;
    color: #8a5a00;
    font-size: 14px;
    font-weight: 650;
}

body.iembk-admin .admin-aviso-mayusculas[hidden] {
    display: none;
}

body.iembk-admin .admin-logout-button:hover,
body.iembk-admin .admin-logout-button:focus-visible {
    color: #082650;
    background: #fff;
}

body.iembk-admin .admin-marca:focus-visible,
body.iembk-admin .admin-nav-link:focus-visible,
body.iembk-admin .admin-logout-button:focus-visible {
    outline: 3px solid #65c7ef;
    outline-offset: 3px;
}

@media (max-width: 991.98px) {
    body.iembk-admin .admin-barra-contenido {
        flex-wrap: wrap;
    }
    
    body.iembk-admin .admin-identidad {
        flex: 1;
    }
    
    body.iembk-admin .admin-navegacion {
        order: 3;
        flex-basis: 100%;
    }
}

@media (max-width: 575.98px) {
    body.iembk-admin .admin-barra-principal {
        position: static;
    }
    
    body.iembk-admin .admin-barra-contenido {
        align-items: stretch;
    }
    
    body.iembk-admin .admin-identidad {
        flex-basis: 100%;
    }
    
    body.iembk-admin .admin-usuario {
        flex-wrap: wrap;
    }
    
    body.iembk-admin .admin-navegacion {
        display: grid;
        grid-template-columns: 1fr;
    }
    
    body.iembk-admin .admin-nav-link,
    body.iembk-admin .admin-logout-form,
    body.iembk-admin .admin-logout-button {
        width: 100%;
    }

    body.iembk-admin .admin-titulo-acciones {
        align-items: stretch;
        flex-direction: column;
    }

    body.iembk-admin .admin-titulo-acciones > .btn {
        width: 100%;
    }
}

body.iembk-admin .admin-identidad {
    min-width: 140px;
}

body.iembk-admin .admin-marca {
    display: block;
    width: 128px;
    max-width: 128px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    background: transparent;
    text-decoration: none;
}

body.iembk-admin .admin-marca-logo {
    display: block;
    width: 128px;
    max-width: 128px;
    height: auto;
    margin: 0; 
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    object-fit: contain;
}

body.iembk-admin .admin-nav-link {
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
}

body.iembk-admin .admin-login-logo {
    display: block;
    width: 128px;
    max-width: 60%;
    height: auto;
    margin: 0 auto 18px;
    padding: 0;
    border: 1px solid rgba(8, 38, 80, 0.16);
    border-radius: 8px;
    object-fit: contain;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    body.iembk-admin .admin-marca,
    body.iembk-admin .admin-marca-logo {
        width: 104px;
        max-width: 104px;
    }
    
    body.iembk-admin .admin-identidad {
        min-width: 116px;
    }
}

@media (max-width: 991.98px) {
    body.iembk-admin .admin-marca,
    body.iembk-admin .admin-marca-logo {
        width: 112px;
        max-width: 112px;
    }
    
    body.iembk-admin .admin-identidad {
        min-width: 124px;
    }
}

@media (max-width: 575.98px) {
    body.iembk-admin .admin-identidad {
        min-width: 0;
    }
    
    body.iembk-admin .admin-marca,
    body.iembk-admin .admin-marca-logo {
        width: 100px;
        max-width: 100px;
    }
}

body.iembk-publico {
    --iembk-foto-ancho: 520px;
    --iembk-foto-proporcion: 10 / 9;
    --iembk-marco-grosor: 3px;
    --iembk-marco-color: #178ac4;
    --iembk-marco-radio: 12px;
}


body.iembk-publico main .iembk-imagen-proyecto,
body.iembk-publico main .iembk-imagen-proyecto-ancha,
body.iembk-publico main .tm-services-img > img {
    display: block;
    width: min(100%, var(--iembk-foto-ancho));
    max-width: var(--iembk-foto-ancho);
    aspect-ratio: var(--iembk-foto-proporcion);
    height: auto;
    margin: 0 auto 24px;
    object-fit: contain;
    box-sizing: border-box;
}

body.iembk-page-mantenimiento main .carousel {
    width: min(100%, var(--iembk-foto-ancho));
    margin-right: auto;
    margin-left: auto;
    padding: var(--iembk-marco-grosor);
    overflow: hidden;
    border-radius: var(--iembk-marco-radio);
    background: var(--iembk-marco-color);
    box-sizing: border-box;
}

body.iembk-page-mantenimiento main .carousel-inner {
    overflow: hidden;
    border-radius: calc(
        var(--iembk-marco-radio)
        - var(--iembk-marco-grosor)
    );
}

body.iembk-page-mantenimiento main .carousel-item {
    aspect-ratio: var(--iembk-foto-proporcion);
}

body.iembk-page-mantenimiento main .carousel-item img {
    width: 100%;
    height: 100%;
    max-height: none;
    border: 0;
    border-radius: calc(
        var(--iembk-marco-radio)
        - var(--iembk-marco-grosor)
    );
    object-fit: cover;
}

body.iembk-page-index main .tm-carousel figure.effect-honey {
    overflow: hidden;
    border: var(--iembk-marco-grosor)
        solid var(--iembk-marco-color);
    border-radius: var(--iembk-marco-radio);
    box-sizing: border-box;
}

body.iembk-page-index main .tm-carousel figure.effect-honey img {
    display: block;
    width: 100%;
    height: auto;
    border: 0;
}

body.iembk-page-productos-db main .producto-card img {
    height: 180px;
    padding: 12px;
    border: var(--iembk-marco-grosor)
        solid var(--iembk-marco-color);
    border-radius: var(--iembk-marco-radio);
    background: #ffffff;
    object-fit: contain;
    box-sizing: border-box;
}

body.iembk-page-index main .tm-media-img {
    border: var(--iembk-marco-grosor)
        solid var(--iembk-marco-color);
    border-radius: var(--iembk-marco-radio);
    box-sizing: border-box;
}

@media (max-width: 575.98px) {
    body.iembk-publico {
        --iembk-foto-ancho: 100%;
        --iembk-marco-grosor: 3px;
        --iembk-marco-radio: 10px;
    }
    
    body.iembk-page-productos-db main .producto-card img {
        height: 220px;
    }
}

/* ========================================================
 * FOOTER CORPORATIVO IEMBK
 * ========================================================*/

body.iembk-publico footer.iembk-footer {
    width: 100%;
    margin-top: 32px;
    padding: 0;
    overflow: hidden;
    color: #ffffff;
    text-align: left;
    font-family: "Segoe UI", Arial, sans-serif;
    background: linear-gradient(110deg, #081c33, #103657);
    border: 1px solid rgba(156, 202, 232, 0.16);
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -5px 24px rgba(8, 28, 51, 0.06);
}

body.iembk-publico footer.iembk-footer,
body.iembk-publico footer.iembk-footer * {
    box-sizing: border-box;
}

body.iembk-publico .iembk-footer-superior {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    padding: 26px 30px;
}

body.iembk-publico .iembk-footer-marca {
    display: block;
    width: 100px;
    margin: 0;
    overflow: hidden;
    border: 0;
    border-radius: 5px;
    box-shadow: none;
}

body.iembk-publico .iembk-footer-logo {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
}

body.iembk-publico .iembk-footer-identidad {
    display: block;
    min-width: 0;
    margin: 0;
    padding: 2px 0 2px 24px;
    border-left: 1px solid rgba(160, 202, 230, 0.25);
}

body.iembk-publico .iembk-footer-lema {
    margin: 0 0 6px;
    color: #f4f8fc;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
    text-align:  left;
}

body.iembk-publico .iembk-footer-descripcion {
    max-width: none;
    margin: 0;
    color: #b7ccde;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.25px;
    text-align: left;
}

/* Enlaces */
body.iembk-publico footer.iembk-footer a {
    color: #d8e6f1;
    text-decoration: none;
}

body.iembk-publico footer.iembk-footer a:hover {
    color: #ffffff
}

/* Boton */
body.iembk-publico footer.iembk-footer .iembk-footer-boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 44px;
    max-width: 100%;
    padding: 11px 16px;
    color: #eef8ff;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(160, 211, 244, 0.5);
    border-radius: 6px;
    box-shadow: none;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    transition:
        background-color 180ms ease,
        border-color 180ms ease;
}

body.iembk-publico .iembk-footer-boton span {
    flex-shrink: 0;
    color: #91d5ff;
    font-size: 20px;
    line-height: 1;
}

body.iembk-publico footer.iembk-footer .iembk-footer-boton:hover {
    color: #ffffff;
    background: rgba(130, 201, 247, 0.12);
    border-color: #91d5ff;
    transform: none;
    box-shadow: none;
}

body.iembk-publico footer.iembk-footer a:focus-visible {
    outline: 2px solid #91d5ff;
    outline-offset: 4px;
}

body.iembk-publico .iembk-footer-inferior {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 18px;
    margin: 0 30px;
    padding: 6px 0;
    color: #b7ccde;
    background: transparent;
    border-top: 1px solid rgba(160, 202, 230, 0.16);
    font-size: 11px;
    line-height: 1.5;
}

body.iembk-publico .iembk-footer-inferior p {
    margin: 0;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

body.iembk-publico footer.iembk-footer .iembk-footer-admin {
    display: inline-flex;
    align-items:center;
    min-height: 44px;
    color: #b7ccde;
    font-size: 11px;
    font-weight: 400;
    opacity: 1;
}


body.iembk-publico footer.iembk-footer .iembk-footer-admin:hover {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

@media (max-width: 767.98px) {
    body.iembk-publico .iembk-footer-superior {
        grid-template-columns: 84px minmax(0, 1fr);
        gap: 18px;
        padding: 22px;
    }
    
    body.iembk-publico .iembk-footer-marca {
        width: 84px;
    }
    
    body.iembk-publico .iembk-footer-identidad {
        padding-left: 18px;
    }
    
    body.iembk-publico footer.iembk-footer .iembk-footer-boton {
        grid-column: 1 / -1;
        justify-self: start;
    }
    
    body.iembk-publico .iembk-footer-inferior {
        margin-right: 22px;
        margin-left: 22px;
    }
}

@media (max-width: 479.98px) {
    body.iembk-publico footer.iembk-footer {
        margin-top: 24px;
        border-radius: 8px 8px 0 0;
    }
    
    body.iembk-publico .iembk-footer-superior {
        grid-template-columns: 70px minmax(0, 1fr);
        gap: 16px;
        padding: 20px 16px;
    }
    
    body.iembk-publico .iembk-footer-marca {
        width: 70px;
    }
    
    body.iembk-publico .iembk-footer-identidad {
        padding-left: 14px;
    }
    
    body.iembk-publico .iembk-footer-lema {
        font-size: 14px;
    }
    
    body.iembk-publico .iembk-footer-descripcion {
        font-size: 11px;
        letter-spacing: 0;
    }
    
    body.iembk-publico footer.iembk-footer .iembk-footer-boton {
        justify-self: stretch;
    }
    
    body.iembk-publico .iembk-footer-inferior {
        margin-right: 16px;
        margin-left: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.iembk-publico footer.iembk-footer .iembk-footer-boton {
        transition: none;
    }
}

/* =================================================
 * MEJOR ACABADO VISUAL
 * ================================================= */ 

body.iembk-publico {
    color: #24384d;
    font-family:
        "Segoe UI",
        "Roboto",
        Arial,
        sans-serif;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

body.iembk-publico main {
    padding-bottom: clamp(24px, 4vw, 52px);
}

body.iembk-publico main p,
body.iembk-publico main li {
    line-height: 1.72;
}

body.iembk-publico main .tm-section-header {
    padding: clamp(18px, 2.5vw, 28px);
}

body.iembk-publico main .tm-dotted-box,
body.iembk-publico main .tm-solid-border,
body.iembk-publico main .tm-media,
body.iembk-publico main .producto-card {
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
    body.iembk-publico main .tm-dotted-box:hover,
    body.iembk-publico main .tm-solid-border:hover,
    body.iembk-publico main .tm-media:hover,
    body.iembk-publico main .producto-card:hover {
        transform: translateY(-3px);
    }
}

body.iembk-publico a:focus-visible,
body.iembk-publico button:focus-visible {
    outline: 3px solid #78baff;
    outline-offset: 3px;
}

@media (max-width: 575.98px) {
    body.iembk-publico main {
        padding-bottom: 24px;
    }
    
    body.iembk-publico main .tm-section-header {
        padding: 18px;
    }
    
    body.iembk-publico main p,
    body.iembk-publico main li {
        line-height: 1.62;
    }
}
/* ==============================================
*Página de estructuras - Diseño sin Fotografías
* ===============================================*/

body.iembk-page-estructura .iembk-estructura-seccion {
    counter-reset: proyecto-estructura;
    padding: clamp(30px, 5vw, 64px)
        clamp(18px, 4vw, 48px);
}

/*Encabezado principal */
body.iembk-page-estructura
.iembk-estructura-encabezado {
    position: relative;
    max-width: 850px;
    margin: 0 0 clamp(30px, 5vw, 52px);
    padding: clamp(24px, 4vw, 42px);
    overflow: hidden;
    color: #ffffff;
    text-align: left;
    background:
        linear-gradient(
            120deg,
            #071d38 0%,
            #0b3f6d 68%,
            #176997 100%
        );
    border: 1px solid rgba(139, 216, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 16px 34px rgba(7, 29, 56, 0.16);
}

body.iembk-page-estructura
.iembk-estructura-encabezado::after {
    position: absolute;
    top: -75px;
    right: -55px;
    width: 190px;
    height: 190px;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
}

body.iembk-page-estructura
.iembk-estructura-etiqueta {
    display: block;
    margin-bottom: 12px;
    color: #91d9ff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

body.iembk-page-estructura
.iembk-estructura-titulo {
    position: relative;
    z-index: 1;
    margin: 0 0 14px;
    color: #ffffff;
    font-family: "Segoe UI", Arial, sans-serif;
    font-weight: 650;
    line-height: 1.12;
    letter-spacing: -0.5px;
}

body.iembk-page-estructura
.iembk-estructura-introduccion {
    position: relative;
    z-index: 1;
    max-width: 670px;
    margin: 0;
    color: #d5e7f5;
    font-size: clamp(14px, 2vw, 16px);
    line-height: 1.7;
}

body.iembk-page-estructura
.iembk-estructura-seccion .tm-services {
    align-items: stretch;
    margin-bottom: 0;
}

body.iembk-page-estructura
.iembk-estructura-seccion .col-md-6 {
    display: flex;
    margin-bottom: 24px;
}

body.iembk-page-estructura
.iembk-estructura-seccion .tm-approach-box {
    display: flex;
    width: 100%;
    margin: 0;
}

body.iembk-page-estructura
.iembk-estructura-seccion .tm-media {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 250px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #d5e1eb; 
    border-top: 4px solid #278fc7;
    border-radius: 13px;
    box-shadow: 0 10px 26px rgba(15, 48, 78, 0.09);
}

body.iembk-page-estructura
.iembk-estructura-seccion .tm-services-img {
    counter-increment: proyecto-estructura; 
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: clamp(22px, 3vw, 30px);
}

body.iembk-page-estructura
.iembk-estructura-seccion .tm-services-img::before {
    display: inline-flex;
    align-self: flex-start;
    align-items: center; 
    min-height: 28px;
    margin-bottom: 18px;
    padding: 5px 11px;
    color: #0c527f;
    background: #e8f5fc;
    border: 1px solid #c2e4f5;
    border-radius: 999px;
    content:
        "proyecto "
        counter(proyecto-estructura, decimal-leading-zero);
    font-size: 11px;
    font-weight: 700;
    line-height: 1px;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

body.iembk-page-estructura
.iembk-estructura-seccion
img[data-src-pendiente] {
    display: none;
}

body.iembk-page-estructura
.iembk-estructura-seccion
.tm-service-description {
    display: block;
    margin: 0 0 14px;
    color: #092d51;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: clamp(16px, 2vw, 19px);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: none;
}

body.iembk-page-estructura
.iembk-estructura-seccion h5 {
    margin: 0;
    color: #4c6072;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.75;
    text-align: left;
}

body.iembk-page-estructura
.iembk-estructura-seccion ul {
    margin: 14px 0 0;
    padding-left: 20px;
    color: #4c6072;
}

body.iembk-page-estructura
.iembk-estructura-seccion li {
    margin-bottom: 7px;
    font-size: 14px;
    line-height: 1.65;
}

body.iembk-page-estructura
.iembk-estructura-seccion div[align] {
    text-align: left;
}

@media (hover: hover) and (pointer: fine) {
    body.iembk-page-estructura
    .iembk-estructura-seccion .tm-media:hover {
        border-color: #8fc8e7;
        border-top-color: #176997;
        box-shadow: 0 15px 32px rgba(15, 48, 78, 0.14);
        transform: translateY(-3px);
    }
}

@media (max-width: 767.98px) {
    body.iembk-page-estructura
    .iembk-estructura-seccion {
        padding: 28px 16px;
    }
    
    body.iembk-page-estructura
    .iembk-estructura-encabezado {
        margin-bottom: 28px;
        padding: 26px 22px;
        border-radius: 12px;
    }
    
    body.iembk-page-estructura
    .iembk-estructura-seccion .col-md-6 {
        margin-bottom: 16px;
    }
    
    body.iembk-page-estructura
    .iembk-estructura-seccion .tm-media {
        min-height: 0;
        border-radius: 11px;
    }
    
    body.iembk-page-estructura
    .iembk-estructura-seccion .tm-services-img {
        padding: 22px 20px;
    }
}

@media (max-width: 479.98px) {
    body.iembk-page-estructura
    .iembk-estructura-titulo {
        font-size: 28px;
    }
    
    body.iembk-page-estructura
    .iembk-estructura-introduccion {
        font-size: 14px;
        line-height: 1.65;
    }
    
    body.iembk-page-estructura
    .iembk-estructura-seccion
    .tm-service-description {
        font-size: 16px;
    }
}

/* =======================================
 * CARRITO Y FORMULARIO
 * ======================================= */

body.iembk-page-productos-db .cart-container {
    position: fixed;
    top: auto;
    right: calc(22px + env(safe-area-inset-right, 0px));
    bottom: calc(22px + env(safe-area-inset-bottom, 0px));
    z-index: 1950;
    width: 58px;
    height: 58px;
}

body.iembk-page-productos-db .cart-icon {
    appearance: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin: 0;
    padding: 0;
    color: #ffffff;
    background:
        linear-gradient(
            145deg,
            #176997,
            #0a3c68
        );
    border: 1px solid #58b2e2;
    border-radius: 50%;
    box-shadow:
        0 12px 28px rgba(5, 35, 64, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

body.iembk-page-productos-db .cart-icon:hover {
    color: #ffffff;
    border-color: #a9e1ff;
    box-shadow:
        0 15px 32px rgba(5, 35, 64, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

body.iembk-page-productos-db .cart-icon:focus-visible {
    outline: 3px solid #70cdf9;
    outline-offset: 4px;
}

body.iembk-page-productos-db .cart-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1990;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    background: rgba(3, 18, 34, 0.62);
    backdrop-filter: blur(3px);
    transition:
        visibility 220ms ease,
        opacity 220ms ease;
}

body.iembk-page-productos-db
.cart-backdrop.is-visible {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

body.iembk-page-productos-db .cart-sidebar {
    position: fixed;
    top: 0;
    right: -460px;
    bottom: 0;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    width: min(420px, 100vw);
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    color: #263c4f;
    background: #f3f6f9;
    border: 0;
    border-radius: 1px solid #c9d6e0;
    border-radius: 0;
    box-shadow: -18px 0 45px rgba(3, 25, 48, 0.25);
    transition: right 260ms ease;
}

body.iembk-page-productos-db
.cart-sidebar.open {
    right: 0;
}

body.iembk-page-productos-db
.cart-sidebar-header {
    position: sticky;
    top: 0;
    z-index: 3;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
    padding: 22px 20px;
    color: #ffffff;
    background:
        linear-gradient(
            120deg,
            #071d38,
            #0d4b78
        );
    border-bottom: 3px solid #4eb2e4;
}

body.iembk-page-productos-db
.cart-sidebar-header h5 {
    margin: 0;
    color: #ffffff;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
}

body.iembk-page-productos-db
.cart-sidebar-header h5::after {
    display: block;
    margin-top: 5px;
    color: #bddcee;
    content: "Productos seleccionados";
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
}

body.iembk-page-productos-db
.cart-sidebar-close {
    appearance: none;
    display: inline-flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0 0 3px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    font-family: Arial, sans-serif;
    font-size: 27px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
}

body.iembk-page-productos-db
.cart-sidebar-close:hover {
    color: #082a49;
    background: #ffffff;
    border-color: #ffffff;
}

body.iembk-page-productos-db
#carritoContenido {
    display: grid;
    gap: 12px;
    width: 100%;
    padding: 18px;
}

body.iembk-page-productos-db
.iembk-carrito-vacio-texto {
    margin: 20px 0;
    padding: 30px 18px;
    color: #607487;
    background: #ffffff;
    border: 1px dashed #adc0ce;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}

body.iembk-page-productos-db
.iembk-carrito-fila {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 13px;
    color: #2c4254;
    background: #ffffff;
    border: 1px solid #d6e0e8;
    border-radius: 12px;
    box-shadow: 0 5px 16px rgba(10, 42, 68, 0.06);
}

body.iembk-page-productos-db
.iembk-carrito-imagen,
body.iembk-page-productos-db
.iembk-carrito-sin-imagen {
    flex: 0 0 70px;
    width: 70px;
    height: 70px;
    margin: 0;
    overflow: hidden;
    object-fit: contain;
    color: #64788a;
    background: #edf2f6;
    border: 1px solid #dce5eb;
    border-radius: 9px;
}

body.iembk-page-productos-db
.iembk-carrito-sin-imagen {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    font-size: 10px;
    line-height: 1.3;
    text-align: center;
}

body.iembk-page-productos-db
.iembk-carrito-datos {
    flex: 1 1 auto;
    min-width: 0;
    color: #344b5e;
}

body.iembk-page-productos-db
.iembk-carrito-datos > strong {
    display: block;
    margin: 0;
    color: #0b3154;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

body.iembk-page-productos-db
.iembk-carrito-precio {
    display: block;
    margin-top: 5px;
    color: #176997;
    font-size: 13px;
    font-weight: 700;
}

body.iembk-page-productos-db
.iembk-carrito-controles {
    display: grid;
    grid-template-columns:
        36px
        minmax(30px, auto)
        36px
        minmax(82px, auto);
    gap: 6px;
    align-items: center;
    margin-top: 12px;
}

body.iembk-page-productos-db
iembk-control-cantidad {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0;
    color: #16496c;
    background: #f5f9fc;
    border: 1px solid #aabfce;
    border-radius: 7px;
    font-size: 19px;
    font-weight: 600;
    line-height: 1;
}

body.iembk-page-productos-db
.iembk-control-cantidad:hover {
    color: #ffffff;
    background: #176997;
    border-color: #176997;
}

body.iembk-page-productos-db
.iembk-carrito-cantidad {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    min-height: 36px;
    margin: 0;
    color: #173b58;
    background: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

body.iembk-page-productos-db
.iembk-carrito-eliminar {
    appearance: none;
    display: inline-flex;
    align-items: center; 
    justify-content: center;
    width: auto;
    min-width: 82px;
    min-height: 36px;
    margin: 0;
    padding: 7px 11px;
    color: #9a2822;
    background: #fff5f4;
    border: 1px solid #e8aaa6;
    border-radius: 7px;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

body.iembk-page-productos-db
.iembk-carrito-eliminar:hover {
    color: #ffffff;
    background: #9a2822;
    border-color: #9a2822;
}

body.iembk-page-productos-db
.iembk-carrito-total {
    margin: 4px 0 0;
    padding: 15px;
    color: #0a3154;
    background: #e8f5fc;
    border: 1px solid #badff2;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.5;
    text-align: right;
}

body.iembk-page-productos-db
.iembk-carrito-total-error {
    color: #842720;
    background: #fff0ef;
    border-color: #edb0ac;
    text-align: left;
}

body.iembk-page-productos-db
.cart-sidebar-footer {
    position: sticky;
    bottom: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid #d3dfe7;
    box-shadow: 0 -8px 20px rgba(11, 45, 72, 0.06);
}

body.iembk.page-productos-db
.iembk-boton-cotizacion,
body.iembk-page-productos-db
.iembk-boton-cerrar-carrito {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 44px;
    margin: 0;
    padding: 10px 17px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

body.iembk-page-productos-db
.iembk-boton-cotizacion {
    flex: 1 1 170px;
    color: #ffffff;
    background: #176997;
    border: 1px solid #176997;
}

body.iembk-page-productos-db
.iembk-boton-cotizacion:hover:not(:disabled){
    color: #ffffff;
    background: #0d527e;
    border-color: #0d527e;
}

body.iembk-page-productos-db
.iembk-boton-cotizacion:disabled {
    color: #81919e;
    background: #e2e8ed;
    border-color: #ced8df;
    cursor: not-allowed;
    opacity: 1;
}

body.iembk-page-productos-db
.iembk-boton-cerrar-carrito {
    flex: 0 1 100px;
    color: #43596b;
    background: #ffffff;
    border: 1px solid #9fb1bf;
}

/*======================================
 * FORMULARIO DE COTIZACIÓN
 * ===================================== */

body.iembk-page-productos-db
#form_modal .modal-dialog{
    width: auto;
    max-width: 560px;
    margin: 24px auto;
}

body.iembk-page-productos-db
#form_modal .modal-content {
    width: 100%;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #cbd9e3;
    border-radius: 15px;
    box-shadow: 0 24px 60px rgba(4, 27, 50, 0.28);
}

body.iembk-page-productos-db
#form-modal .modal-header {
    padding: 22px 24px;
    color: #ffffff;
    background:
        linear-gradient(
            120deg,
            #071d38,
            #0d4b78
        );
    border-bottom: 3px solid #4eb2e4;
}

body.iembk-page-productos-db
#form_modal .modal-title {
    margin: 0;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
}

body.iembk-page-productos-db
#form_modal .modal-body {
    padding: 24px;
    color: #30495d;
}

body.iembk-page-productos-db
#form_modal .form-group {
    margin-bottom: 17px;
}

body.iembk-page-productos-db
#form_modal label {
    display: block;
    margin-bottom: 7px;
    color: #193e5d;
    font-size: 13px;
    font-weight: 700;
}

body.iembk-page-productos-db
#form_modal .form-control {
    width: 100%;
    min-height: 45px;
    padding: 10px 12px;
    color: #263f52;
    background: #ffffff;
    border: 1px solid #adbfcc;
    border-radius: 8px;
    box-shadow: none;
    font-size: 14px;
}

body.iembk-page-productos-db
#form_modal .form-control:focus {
    border-color: #278fc7;
    box-shadow: 0 0 0 3px rgba(39, 143, 199, 0.16);
}

body.iembk-page-productos-db
.iembk-cotizacion-acciones {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    padding: 17px 24px;
    background: #f5f8fa;
    border-top: 1px solid #d5e0e7;
}

body.iembk-page-productos-db
.iembk-boton-cerrar-modal,
body.iembk-page-productos-db
.iembk-boton-enviar-cotizacion {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 44px;
    margin: 0;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
}

body.iembk-page-productos-db
.iembk-boton-cerrar-modal {
    color: #43596b;
    background: #ffffff;
    border: 1px solid #9fb1bf;
}

body.iembk-page-productos-db
.iembk-boton-enviar-cotizacion {
    color: #ffffff;
    background: #176997;
    border: 1px solid #176997;
}

body.iembk-page-productos-db
.iembk-boton-enviar-cotizacion:hover:not(:disabled) {
    color: #ffffff;
    background: #0d527e;
    border-color: #0d527e;
}

body.iembk-page-productos-db
.iembk-boton-enviar-cotizacion:disabled {
    color: #dce7ee;
    background: #668397;
    border-color: #668397;
    cursor: wait;
}

body.iembk-page-productos-db
.cart-sidebar button:focus-visible,
body.iembk-page-productos-db
#form_modal button:focus-visible {
    outline: 3px solid #65c5f2;
    outline-offset: 3px;
}

@media (max-width: 575.98px) {
    body.iembk-page-productos-db
    .cart-container {
        right: calc(
            16px + env(safe-area-inset-right, 0px)
        );
        bottom: calc(
            16px + env(safe-area-inset-bottom, 0px)
        );
    }
    
    body.iembk-page-productos-db
    .cart-sidebar {
        width: 100%;
        border-left: 0;
    }
    
    body.iembk-page-productos-db
    .cart-sidebar-header {
        padding: 18px 16px;
    }
    
    body.iembk-page-productos-db
    #carritoContenido {
        padding: 14px;
    }
    
    body.iembk-page-productos-db
    .iembk-carrito-fila {
        gap: 10px;
        padding: 11px;
    }
    
    body.iembk-page-productos-db
    .iembk-carrito-imagen,
    body.iembk-page-productos-db
    .iembk-carrito-sin-imagen {
        flex-basis: 58px;
        width: 58px;
        height: 58px;
    }
    
    body.iembk-page-productos-db
    .iembk-carrito-controles {
        grid-template-columns:
            36px
            34px
            36px
            minmax(76px, 1fr);
    }
    
    body.iembk-page-productos-db
    .cart-sidebar-footer {
        padding:
            14px
            14px
            calc(
                14px
                + env(safe-area-inset-bottom, 0px)
            );
    }
    
    body.iembk-page-productos-db
    .iembk-boton-cotizacion,
    body.iembk-page-productos-db
    .iembk-boton-cerrar-carrito {
        flex: none;
        width: 100% !important;
    }
    
    body.iembk-page-productos-db
    #form_modal .modal-dialog {
        max-width: none;
        margin: 10px;
    }
    
    body.iembk-page-productos-db
    #form_modal .modal-header,
    body.iembk-page-productos-db
    #form_modal .modal-body {
        padding: 19px 17px;
    }
    
    body.iembk-page-productos-db
    .iembk-cotizacion-acciones {
        flex-direction: column-reverse;
        padding: 15px 17px;
    }
    
    body.iembk-page-productos-db
    .iembk-boton-cerrar-modal,
    body.iembk-page-productos-db
    .iembk-boton-enviar-cotizacion {
        width: 100% !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.iembk-page-productos-db
    .cart-icon,
    body.iembk-page-productos-db
    .cart-sidebar,
    body.iembk-page-productos-db
    .cart-backdrop {
        transition: none;
    }
}

body.iembk-page-productos-db
.cart-container
.cart-icon
.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    
    display: inline-flex;
    align-items: center;
    justify-content: center;
    
    box-sizing: border-box;
    min-width: 25px;
    height: 25px;
    padding: 0 6px;
    
    color: #ffffff;
    background-color: #b52c26;
    border: 2px solid #ffffff;
    border-radius: 999px;
    
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    text-shadow: none;
    
    box-shadow: 0 4px 10px rgba(73, 16, 13, 0.3);
}

@media (max-width: 767.98px) {
    body.iembk-page-productos-db
    #form_modal
    .iembk-cotizacion-acciones {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px !important;
        
        padding: 14px 16px !important;
    }
    
    body.iembk-page-productos-db
    #form_modal
    .iembk-cotizacion-acciones
    .btn {
        flex: 0 0 auto !important;
        
        width: 100% !important;
        min-width: 0 !important;
        min-height: 46px !important; 
        height: auto !important;
    
        margin: 0 !important;
        padding: 12px 16px !important;
        
        border-radius: 8px;
        font-size: 13px;
        font-weight: 700;
        line-height: 1.25;
        
        white-space: normal;
     }
    
    body.iembk-page-productos-db
    #form_modal
    .iembk-boton-enviar-cotizacion {
        grid-row: 1;
    }
    
    body.iembk-page-productos-db
    #form_modal
    .iembk-boton-cerrar-modal {
        grid-row: 2;
    }
    
    body.iembk-page-productos-db
    .cart-sidebar-footer {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px !important;
    }
    
    body.iembk-page-productos-db
    .cart-sidebar-footer
    .btn {
        flex: none !important;
        
        width: 100% !important;
        min-width: 0 !important;
        min-height: 44px !important;
        height: auto !important;
        
        margin: 0 !important;
        padding: 10px 12px !important;
        
        white-space: normal;
    }
}

@media (max-width: 380px) {
    body.iembk-page-productos-db
    .cart-sidebar-footer {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
 * SISTEMA VISUAL COMPARTIDO
 * ========================================== */

html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body.iembk-page {
    color: var(--iembk-color-texto);
    background: var(--iembk-color-fondo);
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

body.iembk-page img,
body.iembk-page video,
body.iembk-page iframe {
    max-width: 100%;
}

body.iembk-page img {
    height: auto;
}

body.iembk-page .container {
    width: min(
        calc(100% - 32px),
        var(--iembk-ancho-contenido)
    );
}

body.iembk-page h1,
body.iembk-page h2,
body.iembk-page h3,
body.iembk-page h4,
body.iembk-page h5 {
    color: var(--iembk-color-oscuro);
    line-height: 1.2;
    text-wrap: balance;
}

body.iembk-page p {
    text-wrap: pretty;
}

body.iembk-page .btn,
body.iembk-page button,
body.iembk-page input[type="submit"] {
    min-height: 44px;
    border-radius: var(--iembk-radio-pequeno);
    font-weight: 700;
    transition:
        background-color var(--iembk-transicion),
        border-color var(--iembk-transicion),
        color var(--iembk-transicion),
        box-shadow var(--iembk-transicion),
        transform var(--iembk-transicion);
}

body.iembk-page .btn-primary,
body.iembk-page .btn-form {
    color: #ffffff;
    background: var(--iembk-color-principal);
    border-color: var(--iembk-color-principal);
}

body.iembk-page .btn-primary:hover,
body.iembk-page .btn-form:hover {
    color: #ffffff;
    background: var(--iembk-color-principal-hover);
    border-color: var(--iembk-color-principal-hover);
}

body.iembk-page .producto-card,
body.iembk-page .tm-dotted-box,
body.iembk-page .panel {
    border: 1px solid var(--iembk-color-borde);
    border-radius: var(--iembk-radio-medio);
    box-shadow: var(--iembk-sombra-suave);
}

body.iembk-page a:focus-visible,
body.iembk-page button:focus-visible,
body.iembk-page input:focus-visible,
body.iembk-page select:focus-visible,
body.iembk-page textarea:focus-visible {
    outline: 3px solid var(--iembk-color-acento);
    outline-offset: 3px;
}

/*=================================================
 * COMPATIBILIDAD PARA TELÉFONOS Y VENTANAS PEQUEÑAS
* ================================================ */

html,
body {
    max-width: 100%;
    overflow-x: clip;
}

@media (max-width: 767.98px) {
    
    body.iembk-page {
        font-size: 16px;
    }
    
    body.iembk-page .container,
    body.iembk-page .container-fluid {
        max-width: 100%
    }
    
    body.iembk-page .container {
        width: calc(100% - 24px);
        padding-left: 0;
        padding-right: 0;
    }
    
    body.iembk-page .iembk-seccion,
    body.iembk-page .well1 {
        padding-top: 28px;
        padding-bottom: 28px;
    }
    
    body.iembk-page .tm-section-header {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding: 16px 18px;
        
        font-size: clamp(22px, 7vw, 30px);
        overflow-wrap: anywhere;
    }
    
    body.iembk-page .iembk-video-portada {
        display: block;
        width: 100%;
        height: auto;
        max-height: 60vh;
        object-fit: cover;
        border-radius: 0;
    }
    
    body.iembk-page .catalogo-productos {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    
    body.iembk-page .producto-card {
        width: 100%;
        min-width: 0;
        padding: 16px;
    }
    
    body.iembk-page .producto-card img{
        width: 100%;
        height: 210%;
        object-fit: contain;
    }
    
    body.iembk-page .form-consulta {
        width: 100%;
        max-width: 100%;
        padding: 20px 16px;
    }
    
    body.iembk-page input,
    body.iembk-page select,
    body.iembk-page textarea {
        max-width: 100%;
        font-size: 16px;
    }
    body.iembk-page .modal-dialog {
        width: auto;
        max-width: none;
        margin: 8px;
    }
    
    body.iembk-page .modal-content {
        width: 100%;
        max-height: calc(100dvh - 16px);
        overflow-y: auto;
    }
    
    body.iembk-page .cart-sidebar {
        width: 100%;
        max-width: 100%;
    }
    
    body.iembk-page .table-responsive {
        width: 100%;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
    }
    
    body.iembk-page table {
        min-width: 680px;
    }
    
    body.iembk-page footer {
        width: 100%
            text-align: center;
    }
    
    body.iembk-page footer img {
        max-width: 150px;
    }
}

@media (min-width: 768px) and (max-width: 1023.98px) {
    body.iembk-page .catalogo-productos {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
    
    body.iembk-page .container {
        width: calc(100% - 40px);
    }
}

@media (prefers-reduced-motion: reduce) {
    
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================
 * MENSAJES NO BLOQUEANTES
 * ========================================== */

.iembk-mensajes {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 10000;
    
    display: grid;
    gap: 10px;
    
    width: min(390px, calc(100% - 36px));
    pointer-events: none;
}

.iembk-mensaje {
    display: flex;
    align-item: flex-start;
    gap: 12px;
    
    padding: 14px 15px;
    color: #ffffff;
    border-radius: var(--iembk-radio-medio);
    box-shadow: var(--iembk-sombra-media);
    
    font-size: 14px;
    line-height: 1.45;
    
    pointer-events: auto;
}

.iembk-mensaje-exito {
    background: var(--iembk-color-exito);
}

.iembk-mensaje-error {
    background: var(--iembk-color-error);
}

.iembk-mensaje-advertencia {
    background: var(--iembk-color-advertencia);
}

.iembk-mensaje-informacion {
    background: var(--iembk-color-informacion);
}

.iembk-mensaje-texto {
    flex: 1;
}

.iembk-mensaje-cerrar {
    flex: 0 0 32px;
    
    width: 32px;
    min-height: 32px !important;
    padding: 0;
    
    color: #ffffff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    
    font-size: 22px;
    line-height: 1;
}

@media (max-width: 575.98px) {
    .iembk-mensajes {
        top: 10px;
        right: 10px;
        width: calc(100% - 20px);
    }
}

/*========================================
 * BUSCADOR DEL CATÁLOGO
 * ======================================= */

.iembk-buscador-productos {
    width: min(760px, 100%);
    margin: 0 auto 30px;
    padding: 20px;
    
    background: var(--iembk-color-superficie);
    border: 1px solid var(--iembk-color-borde);
    border-radius: var(--iembk-radio-medio);
    box-shadow: var(--iembk-sombra-suave);
}

.iembk-buscador-productos label {
    display: block;
    margin-bottom: 8px;
    
    color: var(--iembk-color-oscuro);
    font-weight: 700;
}

.iembk-buscador-controles {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.iembk-resultado-busqueda {
    min-height: 24px;
    margin: 10px 0 0;
    
    color: var(--iembk-color-texto-suave);
    font-size: 14px;
}

body.iembk-page [hidden] {
    display: none !important;
}

@media (max-width: 575.98) {
    .iembk-buscador-productos {
        padding: 16px;
    }
    
    .iembk-buscador-controles {
        grid-template-colimns: 1fr;
    }
    
    .iembk-buscador-controles .btn {
        width: 100%;
    }
}

.iembk-saltar-contenido {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 20000;
    
    padding: 10px 14px;
    
    color: #ffffff;
    background: var(--iembk-color-oscuro);
    border-radius: var(--iembk-radio-pequeno);
    
    transform: translateY(-160%);
}

.iembk-saltar-contenido:focus {
    transform: translateY(0);
}

/* Detalle de mensajes recibidos en el panel administrativo. */
body.iembk-admin .admin-contacto-mensaje {
    min-height: 140px;
    padding: 18px;
    color: var(--iembk-color-texto);
    background: var(--iembk-color-fondo);
    border: 1px solid var(--iembk-color-borde);
    border-radius: var(--iembk-radio-medio);
    overflow-wrap: anywhere;
    white-space: normal;
}

/* ================================================
 * CARRUSEL DE FORMA HEXAGONAL
 * ================================================ */

body.iembk-page-index main .tm-carousel {
    max-height: none;
    overflow: visible;
}

body.iembk-page-index main .tm-carousel .slick-list {
    overflow: hidden;
}

body.iembk-page-index main
.tm-carousel figure.effect-honey {
    overflow: hidden;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    
    -webkit-clip-path: polygon(
        22% 0,
        78% 0,
        100% 50%,
        78% 100%,
        22% 100%,
        0 50%
    );
    
    clip-path: polygon(
        22% 0,
        78% 0,
        100% 50%,
        78% 100%,
        22% 100%,
        0 50%
    );
}

body.iembk-page-index main
.tm-carousel figure.effect-honey img {
    display: block;
    width: 100%;
    height: auto;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

body.iembk-page-index main
.tm-carousel figure.effect-honey h4 {
    right: 14%;
    left: 14%;
    width: auto;
}

/* =======================================
 * TITULO PRINCIPAL DEBAJO DEL VIDEO 
 * ======================================= */

body.iembk-page-index .tm-header-floating {
    position: static;
    inset: auto;
    z-index: auto;
    
    display: block;
    width: min(100%, 760px);
    margin: clamp(24px, 4vw, 42px) auto 0;
    padding:
        clamp(14px, 2vw, 20px)
        clamp(18px, 4vw, 38px);
    
    color: #10385c;
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.98),
            rgba(239, 247, 251, 0.98)
        );
    
    border: 1px solid rgba(23, 105, 151, 0.2);
    border-top: 3px solid var(
        --iembk-color-principal,
        #176997
    );
    border-radius: 12px;
    
    box-shadow:
        0 10px 28px rgba(3, 19, 59, 0.1);
    
    font-family:
        "Segoe UI",
        "Open Sans",
        Arial,
        sans-serif;
    
    font-size: clamp(17px, 2vw, 24px);
    font-weight: 650;
    line-height: 1.35;
    letter-spacing: 0.015em;
    text-align: center;
    text-transform: none;
    text-wrap: balance;
    
    transform: none;
}

body.iembk-page-index .tm-welcome {
    padding-top: 1px;
}

body.iembk-page-index .tm-welcome-row {
    margin-top: clamp(24px, 4vw, 48px);
}

/*Ajuste para tabletas */
@media (max-width: 991.98px) {
    body.iembk-page-index .tm-header-floating {
        width: min(100%, 680px);
        margin-top: 28px;
        font-size: clamp(17px, 3vw, 22px);
    }
}

/* Ajuste para teléfonos */
@media (max-width: 575.98px) {
    body.iembk-page-index .tm-header-floating {
        width: 100%;
        margin-top: 20px;
        padding: 14px 16px;
        
        border-top-width: 3px;
        border-radius: 10px;
        
        font-size: clamp(16px, 5vw, 19px);
        line-height: 1.4;
        letter-spacing: 0;
    }
    
    body.iembk-page-index .tm-welcome-row {
        margin-top: 24px;
    }
    
    body.iembk-page-index .video-container {
        width: 100%;
        margin: 0;
    }
    
    body.iembk-page-index .iembk-video-portada {
        display: block;
        width: 100%;
        height: auto;
        max-height: none;
        object-fit: contain;
    }
}

/* ===================================================
 * PRESENTACIÓN Y TARJETAS DEL INICIO
 * =================================================== */

body.iembk-page-index .iembk-presentacion-video {
    display: block;
    width: 100%;
    max-width: 1150px;
    margin: 16px auto 0;
    padding: 0 10px;
}

body.iembk-page-index .iembk-presentacion-marco {
    overflow: hidden;
    background: #03133b;
    border: 1px solid #d5e0e7;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(3, 19, 59, 0.08);
}

body.iembk-page-index
.iembk-presentacion-marco .iembk-video-portada {
    display: block;
    width: 100%;
    height: auto;
    max-height: none; 
    margin: 0; 
    border: 0;
    border-radius: 0;
    box-shadow: none;
    object-fit: contain;
}

body.iembk-page-index .iembk-presentacion-intro {
    max-width: 850px;
    margin: 0 auto;
    padding: clamp(28px, 4vw, 44px) 16px;
    background: transparent;
    border: 0;
    box-shadow: none;
    text-align: center;
}

body.iembk-page-index .iembk-presentacion-etiqueta {
    margin: 0 0 12px;
    color: #176997;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body.iembk-page-index .iembk-presentacion-titulo {
    max-width: 40ch;
    margin: 0 auto;
    padding: 0;
    color: #03133b;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

body.iembk-page-index .iembk-presentacion-descripcion {
    max-width: 56ch;
    margin: 14px auto 0;
    color: #526979;
    font-size: 15px;
    line-height: 1.7;
    text-align: center;
}

body.iembk-page-index .iembk-presentacion-contacto {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 44px;
    max-width: 100%;
    margin-top: 20px;
    padding: 11px 20px;
    color: #ffffff;
    background: #176997;
    border: 1px solid #176997;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
}

body.iembk-page-index .iembk-presentacion-contacto:hover {
    color: #ffffff;
    background: #0d527e;
}

body.iembk-page-index main .iembk-inicio-tarjetas {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 20px;
    width: 100%;
    margin: 0 0 40px;
}

body.iembk-page-index main .iembk-inicio-tarjeta {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 18px;
    min-width: 0;
    padding: 24px;
    color: #526979;
    background: #ffffff;
    border: 1px solid #d5e0e7;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(3, 19, 59, 0.04);
}

body.iembk-page-index main .iembk-inicio-imagen {
    display: block;
    width: 96px;
    height: 96px;
    max-width: 100%;
    margin: 0;
    padding: 5px;
    background: #eef4f7;
    border: 1px solid #d5e0e7;
    border-radius: 10px;
    object-fit: contain;
}

body.iembk-page-index main .iembk-inicio-contenido {
    width: 100%;
    min-width: 0;
}

body.iembk-page-index main .iembk-inicio-etiqueta {
    margin: 0 0 8px;
    color: #176997;
    font-size: 10px; 
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.iembk-page-index main .iembk-inicio-titulo {
    margin: 0 0 12px;
    padding: 0;
    color: #03133b;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    text-transform: none;
}

body.iembk-page-index main
.iembk-inicio-contenido > p:not(.iembk-inicio-etiqueta) {
    margin: 0;
    color: inherit;
    font-size: 14px;
    line-height: 1.7;
    text-align: left;
    overflow-wrap: anywhere;
}

body.iembk-page-index main .iembk-inicio-enlace {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin-top: 10px;
    color: #176997;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

body.iembk-page-index main .iembk-inicio-enlace:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

body.iembk-page-index main .iembk-inicio-tarjeta--principal {
    grid-column: 1 / -1;
    grid-template-columns: 140px minmax(0, 1fr);
    align-items: center;
    gap: 28px;
    padding: clamp(24px, 4vw, 36px);
    color: #ffffff;
    background: linear-gradient(135deg, #285683, #183c62);
    border: 1px solid rgba(191, 217, 244, 0.45);
    border-left: 4px solid #8fc8ec;
    box-shadow: 0 8px 24px rgba(3, 19, 59, 0.12);
}

body.iembk-page-index main
.iembk-inicio-tarjeta--principal .iembk-inicio-imagen {
    width: 140px;
    height: 140px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(191, 217, 244, 0.35);
}

body.iembk-page-index main
.iembk-inicio-tarjeta--principal .iembk-inicio-titulo {
    color: #ffffff;
    font-size: clamp(23px, 3vw, 28px);
}

body.iembk-page-index main
.iembk-inicio-tarjeta--principal .iembk-inicio-etiqueta,
body.iembk-page-index main
.iembk-inicio-tarjeta--principal .iembk-inicio-enlace {
    color: #ffffff;
}

body.iembk-page-index main
.iembk-inicio-tarjeta--principal .iembk-inicio-contenido {
    max-width: 68ch;
}

body.iembk-page-index .iembk-presentacion-contacto:focus-visible,
body.iembk-page-index main .iembk-inicio-enlace:focus-visible {
    outline: 3px solid #38a9dc;
    outline-offset: 4px;
}

@media (max-width: 900px) {
    body.iembk-page-index main .iembk-inicio-tarjetas {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
    
    body.iembk-page-index main .iembk-inicio-tarjeta {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 20px;
    }
    
    body.iembk-page-index main .iembk-inicio-tarjeta--principal {
        grid-template-columns: 120px minmax(0, 1fr);
    }
    
    body.iembk-page-index main
    .iembk-inicio-tarjeta--principal .iembk-inicio-imagen {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 575.98px) {
    body.iembk-page-index .iembk-presentacion-intro {
        padding: 28px 12px;
    }
    
    body.iembk-page-index main .iembk-inicio-tarjeta {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 14px;
        padding: 20px;
    }
    
    body.iembk-page-index main .iembk-inicio-imagen {
        width: 72px;
        height: 72px;
    }
    
    body.iembk-page-index main .iembk-inicio-titulo {
        font-size: 18px;
    }
    
    body.iembk-page-index main .iembk-inicio-tarjeta--principal {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }
    
    body.iembk-page-index main
    .iembk-inicio-tarjeta--principal .iembk-inicio-imagen {
        width: 96px;
        height: 96px;
    }
    
    body.iembk-page-index main
    .iembk-inicio-tarjeta--principal .iembk-inicio-titulo {
        font-size: 23px;
    }
}

@media (max-width: 360px) {
    body.iembk-page-index main .iembk-inicio-tarjeta {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* =================================================
 * MOVIMIENTO DISCRETO DE LAS TARJETAS
 * ================================================= */

@media (prefers-reduced-motion: no-preference) {
    body.iembk-page-index main .iembk-inicio-tarjeta {
        animation: iembk-tarjeta-entrada 550ms ease-out backwards;
        transition:
            transform 220ms ease,
            box-shadow 220ms ease;
    }
    
    body.iembk-page-index main
    .iembk-inicio-tarjeta:nth-child(2) {
        animation-delay: 80ms;
    }
    
    body.iembk-page-index main
    .iembk-inicio-tarjeta:nth-child(3) {
        animation-delay: 160ms;
    }
    
    body.iembk-page-index main
    .iembk-inicio-tarjeta:nth-child(4) {
        animation-delay: 240ms;
    }
    
    body.iembk-page-index main
    .iembk-inicio-tarjeta:focus-within {
        transform: translateY(-3px);
        box-shadow: 0 12px 28px rgba(3, 19, 59, 0.14);
    }
}

@media (hover: hover) and (pointer: fine)
    and (prefers-reduced-motion: no-preference) {
        body.iembk-page-index main .iembk-inicio-tarjeta:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 28px rgba(3, 19, 59, 0.14);
        }
}

@keyframes iembk-tarjeta-entrada {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#navbar #menuPrincipal ul > li + li {
    border-top: 0;
}

#navbar #menuPrincipal ul li.submenu-open > a {
    color: #ffffff;
    background: rgba(93, 169, 255, 0.16);
}

#navbar #menuPrincipal li.has-submenu > a {
    min-height: 48px;
    padding-right: 54px !important;
}

#navbar #menuPrincipal .submenu-toggle {
    top: 2px;
    right: 4px;
    width: 44px;
    height: 44px;
    color: #e1efff;
    background: rgba(255, 255, 255, 0.05);
}

#navbar #menuPrincipal .submenu-toggle:hover,
#navbar #menuPrincipal .submenu-toggle:focus-visible {
    color: #ffffff;
    background: rgba(93, 169, 255, 0.22);
}

#navbar #menuPrincipal ul ul {
    margin-left: 12px !important;
    padding-left: 8px;
    border-left: 2px solid rgba(98, 191, 230, 0.35);
}

@media (min-width: 992px) {
    #navbar #menuPrincipal > li > ul {
        top: calc(100% + 4px);
        width: 360px;
        min-width: 0;
        max-width: calc(100vw - 32px);
        max-height: min(70vh, 600px) !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }
}

@media (max-width: 991.98px) {
    #navbar #navbarSupportedContent1 {
        max-height: calc(100vh - 130px);
        max-height: calc(100dvh - 130px);
        overflow-y: auto;
    }
    
    #navbar #menuPrincipal > li > ul {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        max-height: none !important;
        overflow: visible !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    #navbar #menuPrincipal .submenu-chevron {
        transition: none;
    }
}