/* ==========================================================================
   Epoxi Class - capa visual moderna
   Se carga despues de EpoxiStyle.min.css y sobreescribe el tema Material.
   No cambia ids ni clases que usan los scripts (carrito, login, filtros,
   flipbook, slider); solo la apariencia.
   Nota: el tema define html { font-size: 62.5% }, asi que 1rem = 10px.
   ========================================================================== */

:root {
    --ec-container: 1560px;
    --ec-gutter: clamp(16px, 3vw, 56px);
    --ec-ink: #161833;
    --ec-ink-2: #3a3d5c;
    --ec-muted: #6b6f88;
    --ec-line: #e4e6ef;
    --ec-bg: #f5f6fa;
    --ec-surface: #ffffff;
    --ec-primary: #2b2fc4;
    --ec-primary-600: #2226a8;
    --ec-primary-50: #eef0ff;
    --ec-accent: #f28a2e;
    --ec-accent-600: #dc7517;
    --ec-green: #1fb45a;
    --ec-radius-lg: 20px;
    --ec-radius: 14px;
    --ec-radius-sm: 10px;
    --ec-shadow: 0 1px 2px rgba(22, 24, 51, .06), 0 8px 24px -12px rgba(22, 24, 51, .18);
    --ec-shadow-lg: 0 2px 4px rgba(22, 24, 51, .06), 0 24px 48px -20px rgba(22, 24, 51, .30);
    --ec-ease: cubic-bezier(.2, .7, .2, 1);
    --ec-font: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --ec-nav-h: 76px;
}

/* --- Base ---------------------------------------------------------------- */
html { scroll-behavior: smooth; }

body {
    font-family: var(--ec-font);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--ec-ink-2);
    background-color: var(--ec-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.bd-scroll { padding-top: 0; }

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--ec-font);
    color: var(--ec-ink);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.2;
    text-wrap: balance;
}

p { text-wrap: pretty; }

a { color: var(--ec-primary); transition: color .2s var(--ec-ease); }
a:hover, a:focus { color: var(--ec-primary-600); }

.color-primary { color: var(--ec-primary) !important; }
.color-contrast { color: var(--ec-accent) !important; }
.lead { font-size: 1.8rem; font-weight: 400; }

::selection { background: var(--ec-primary); color: #fff; }

:focus-visible {
    outline: 3px solid rgba(43, 47, 196, .45);
    outline-offset: 2px;
}

.ms-site-container { background: var(--ec-bg); overflow: visible; overflow-x: clip; }

/* Precarga: mas discreta */
.ms-preload { background: var(--ec-bg); }
.ms-preload .spinner .dot1, .ms-preload .spinner .dot2 { background-color: var(--ec-accent); }

/* Saltar al contenido */
.ec-skip {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 1100;
    padding: 10px 16px;
    border-radius: var(--ec-radius-sm);
    background: var(--ec-ink);
    color: #fff;
    font-weight: 600;
    transition: top .2s var(--ec-ease);
}
.ec-skip:focus { top: 12px; color: #fff; }

/* --- Barra de navegacion ------------------------------------------------- */
.ms-navbar.ec-nav,
.ms-navbar.ec-nav.shrink,
.ms-navbar.ec-nav.fixed-top {
    position: sticky;
    top: 0;
    z-index: 1030;
    height: var(--ec-nav-h);
    margin: 0;
    padding: 0;
    background: rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(228, 230, 239, .9);
    box-shadow: none;
    animation: none;
}
.ms-navbar.ec-nav.shrink { box-shadow: 0 10px 30px -18px rgba(22, 24, 51, .35); }

.ec-nav > .container {
    display: flex;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 24px;
    height: 100%;
    max-width: var(--ec-container);
}

.ec-nav .navbar-header { display: flex !important; flex: 0 0 auto; }
.ec-nav .navbar-header .navbar-brand { padding: 0; margin: 0; }
.ec-nav .navbar-header .navbar-brand img { height: 46px; width: auto; margin: 0; }

.ec-nav .navbar-collapse {
    justify-content: center !important;
    margin: 0 !important;
}

.ec-nav .navbar-collapse .navbar-nav { gap: 2px; }

.ec-nav .navbar-collapse .navbar-nav .nav-item .nav-link,
.ec-nav .navbar-collapse .navbar-nav .nav-item > a {
    position: relative;
    height: auto;
    padding: 8px 14px !important;
    border-radius: 999px;
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ec-ink-2) !important;
    background: transparent;
    transition: background-color .2s var(--ec-ease), color .2s var(--ec-ease);
}

.ec-nav .navbar-collapse .navbar-nav .nav-item .nav-link:before,
.ec-nav .navbar-collapse .navbar-nav .nav-item > a:before { display: none !important; }

.ec-nav .navbar-collapse .navbar-nav .nav-item .nav-link:hover,
.ec-nav .navbar-collapse .navbar-nav .nav-item .nav-link:focus {
    background: var(--ec-primary-50) !important;
    color: var(--ec-primary) !important;
}

.ec-nav .navbar-collapse .navbar-nav .nav-item.active > a,
.ec-nav .navbar-collapse .navbar-nav .nav-item.active .nav-link {
    background: var(--ec-primary-50) !important;
    color: var(--ec-primary) !important;
}

.ec-nav .ripple-container { display: none; }

.ec-nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex: 0 0 auto;
}

.ec-icon-btn,
.ec-nav .ec-nav-actions .btn-navbar-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    min-width: 44px;
    padding: 0 14px;
    border: 1px solid var(--ec-line);
    border-radius: 999px;
    background: var(--ec-surface);
    color: var(--ec-ink) !important;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: border-color .2s var(--ec-ease), background-color .2s var(--ec-ease), transform .15s var(--ec-ease);
}
.ec-icon-btn i { font-size: 2rem; line-height: 1; }
.ec-icon-btn:hover,
.ec-icon-btn:focus { border-color: var(--ec-primary); color: var(--ec-primary) !important; text-decoration: none; }
.ec-icon-btn:active { transform: scale(.97); }

.ec-icon-btn .chart-total-prod {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--ec-accent);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    box-shadow: 0 0 0 2px #fff;
}
.ec-icon-btn .chart-total-prod:empty { display: none; }

.ec-nav .ec-nav-actions .btn-navbar-menu {
    position: static;
    display: none;
    padding: 0;
    width: 44px;
    font-size: 2.2rem;
}

@media (max-width: 1199.98px) {
    .ec-nav .navbar-collapse .navbar-nav .nav-item .nav-link { padding: 8px 10px !important; font-size: 1.4rem; }
    .ec-icon-label { display: none; }
    .ec-icon-btn { padding: 0; width: 44px; }
}

@media (max-width: 991.98px) {
    .ec-nav .navbar-collapse { display: none !important; }
    /* Mas especifico que el tema (.ms-navbar.navbar .container .btn-navbar-menu { display:block } en <768px),
       que quitaba el flex y dejaba el icono pegado arriba en lugar de centrado */
    .ec-nav.ms-navbar.navbar .container .ec-nav-actions .btn-navbar-menu { display: inline-flex; }
    :root { --ec-nav-h: 66px; }
    .ec-nav .navbar-header .navbar-brand img { height: 38px; }
}

@media (max-width: 399.98px) {
    .ec-nav > .container { gap: 10px; padding-left: 12px; padding-right: 12px; }
    .ec-nav .navbar-header .navbar-brand img { height: 32px; }
    .ec-nav-actions { gap: 6px; }
    .ec-icon-btn, .ec-nav .ec-nav-actions .btn-navbar-menu { width: 38px; min-width: 38px; height: 38px; }
    .ec-icon-btn i { font-size: 1.8rem; }
}

/* Menu lateral (movil) */
.ec-nav .ec-nav-actions .btn-navbar-menu i { margin: 0; line-height: 1; }
.ms-slidebar { background: var(--ec-surface); box-shadow: var(--ec-shadow-lg); }
.ms-slidebar .ms-slidebar-header { min-height: 0; padding: 0; background: var(--ec-ink) !important; }
.ms-slidebar .ms-slidebar-header .ms-slidebar-title { position: static; height: auto; padding: 22px 0; background: transparent !important; }
.ms-slidebar .ms-slidebar-header .ms-slidebar-title .ms-slidebar-t { float: none; display: flex; align-items: center; line-height: 1.2; }
.ms-slidebar .ms-slidebar-header .ms-slidebar-title h3 { color: #fff; font-weight: 800; letter-spacing: -.01em; word-spacing: 0; }
.ms-slidebar .ms-slidebar-header .ms-slidebar-title h3 span { color: var(--ec-accent); font-weight: 800; }
.ms-slidebar .ms-slidebar-menu > li > a.link {
    padding: 14px 22px;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--ec-ink);
    border-bottom: 1px solid var(--ec-line);
}
.ms-slidebar .ms-slidebar-menu > li > a.link:hover { background: var(--ec-primary-50); color: var(--ec-primary); }
.ms-slidebar .ms-slidebar-menu > li > a.link.super-important { background: #fff1e4 !important; color: var(--ec-accent-600) !important; border-radius: 0; animation: none; }

/* --- Botones ------------------------------------------------------------- */
.btn {
    font-family: var(--ec-font);
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    border-radius: 999px;
    transition: background-color .2s var(--ec-ease), border-color .2s var(--ec-ease), color .2s var(--ec-ease), transform .15s var(--ec-ease), box-shadow .2s var(--ec-ease);
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn .ripple-container { display: none; }

.btn.btn-raised, .btn.btn-raised:not(.btn-link), .btn-group-raised .btn:not(.btn-link) { box-shadow: none; }

.btn.btn-primary,
.btn.btn-raised.btn-primary,
.btn-primary:not(:disabled):not(.disabled) {
    background-color: var(--ec-primary) !important;
    border-color: var(--ec-primary) !important;
    color: #fff !important;
}
.btn.btn-primary:hover,
.btn.btn-primary:focus,
.btn.btn-raised.btn-primary:hover {
    background-color: var(--ec-primary-600) !important;
    border-color: var(--ec-primary-600) !important;
    box-shadow: 0 10px 24px -12px rgba(43, 47, 196, .7) !important;
}

.btn.btn-sm { padding: 9px 16px; font-size: 1.3rem; }

.ec-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color .2s var(--ec-ease), border-color .2s var(--ec-ease), color .2s var(--ec-ease), transform .15s var(--ec-ease), box-shadow .2s var(--ec-ease);
}
.ec-btn i { font-size: 1.8rem; }
.ec-btn:active { transform: translateY(1px) scale(.99); }
.ec-btn-accent { background: var(--ec-accent); color: #fff !important; }
.ec-btn-accent:hover, .ec-btn-accent:focus { background: var(--ec-accent-600); box-shadow: 0 12px 28px -14px rgba(242, 138, 46, .9); }
.ec-btn-primary { background: var(--ec-primary); color: #fff !important; }
.ec-btn-primary:hover, .ec-btn-primary:focus { background: var(--ec-primary-600); }
.ec-btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff !important; }
.ec-btn-ghost:hover, .ec-btn-ghost:focus { background: rgba(255, 255, 255, .12); border-color: #fff; }
.ec-btn-outline { background: var(--ec-surface); border-color: var(--ec-line); color: var(--ec-ink) !important; }
.ec-btn-outline:hover, .ec-btn-outline:focus { border-color: var(--ec-primary); color: var(--ec-primary) !important; }

.ec-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: var(--ec-primary);
}
.ec-link i { transition: transform .2s var(--ec-ease); }
.ec-link:hover { text-decoration: none; }
.ec-link:hover i { transform: translateX(3px); }

/* --- Tarjetas, etiquetas, pestañas ---------------------------------------- */
.card {
    border: 1px solid var(--ec-line);
    border-radius: var(--ec-radius);
    box-shadow: var(--ec-shadow);
    overflow: hidden;
}
.card.card-primary, .card.card-info, .card.card-warning, .card.card-success { border-color: var(--ec-line); }
.card .card-header { border-radius: 0; }

.ms-tag {
    border-radius: 999px;
    padding: 3px 12px;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0;
}
.ms-tag.ms-tag-info { background: var(--ec-primary-50); color: var(--ec-primary); }
.ms-tag.ms-tag-warning { background: #fff1e4; color: var(--ec-accent-600); }

.nav-tabs { border-bottom: 1px solid var(--ec-line); }
.nav-tabs .nav-item .nav-link {
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--ec-muted);
}
.nav-tabs .nav-item .nav-link.active { color: var(--ec-primary); }
.nav-tabs .ms-tabs-indicator, .nav-tabs.indicator-primary .ms-tabs-indicator { background-color: var(--ec-primary); }

/* --- Formularios ----------------------------------------------------------- */
.form-control { font-family: var(--ec-font); color: var(--ec-ink); }
.form-group .form-control,
.form-group.is-focused .form-control {
    background-image: linear-gradient(var(--ec-primary), var(--ec-primary)), linear-gradient(var(--ec-line), var(--ec-line));
}
.form-group.label-floating label.control-label,
.form-group.label-static label.control-label { color: var(--ec-muted); font-weight: 500; }
.form-group.is-focused label.control-label { color: var(--ec-primary) !important; }

/* Checkbox: reemplaza el check de Material (hecho con sombras) por uno propio */
.checkbox label { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding-left: 0; font-size: 1.5rem; font-weight: 500; line-height: 1.4; color: var(--ec-ink-2); cursor: pointer; }
.checkbox label:hover { color: var(--ec-ink); }
.checkbox input[type=checkbox] { position: absolute; opacity: 0; width: 0; height: 0; margin: 0; pointer-events: none; }
.checkbox .checkbox-material { position: relative; top: 1px; flex: 0 0 auto; padding: 0; vertical-align: middle; }
.checkbox .checkbox-material:before { display: none !important; }
.checkbox .checkbox-material .check {
    position: relative; top: 0; display: block; width: 20px; height: 20px; margin: 0;
    border: 2px solid #c6c9d8; border-radius: 6px; background: #fff; overflow: visible;
    transition: background-color .18s var(--ec-ease), border-color .18s var(--ec-ease), box-shadow .18s var(--ec-ease);
}
.checkbox .checkbox-material .check:before,
.checkbox input[type=checkbox]:checked + .checkbox-material .check:before,
.checkbox input[type=checkbox]:focus:checked + .checkbox-material .check:before,
.checkbox input[type=checkbox]:focus:not(:checked) + .checkbox-material .check:before {
    content: ""; position: absolute; left: 5px; top: 1px; width: 6px; height: 11px; margin: 0;
    border: solid #fff; border-width: 0 2.5px 2.5px 0; box-shadow: none !important; animation: none !important; color: transparent;
    transform: rotate(45deg) scale(0); transition: transform .18s var(--ec-ease);
}
.checkbox label:hover .check { border-color: var(--ec-primary); }
.checkbox input[type=checkbox]:checked + .checkbox-material .check { background: var(--ec-primary); border-color: var(--ec-primary); }
.checkbox input[type=checkbox]:checked + .checkbox-material .check:before { transform: rotate(45deg) scale(1); }
.checkbox input[type=checkbox]:focus-visible + .checkbox-material .check { box-shadow: 0 0 0 4px rgba(43, 47, 196, .18); }
.checkbox input[type=checkbox]:disabled + .checkbox-material .check { opacity: .5; }
/* El tema dibuja una linea azul de 1px (::after) junto al check marcado */
.checkbox .checkbox-material:after,
.checkbox input[type=checkbox]:checked + .checkbox-material:after { display: none !important; content: none !important; }
/* El tema pone el texto en gris muy claro con selectores mas especificos */
html body .checkbox label,
html body .form-group .checkbox label,
html body .form-group.is-focused .checkbox label { color: var(--ec-ink-2) !important; font-size: 1.5rem; line-height: 1.4; }
html body .checkbox label:hover,
html body .form-group.is-focused .checkbox label:hover { color: var(--ec-ink) !important; }
html body .checkbox .checkbox-material { top: 0; margin-top: 0; }

/* --- Modal de cuenta --------------------------------------------------------- */
.modal-content {
    border: 0;
    border-radius: var(--ec-radius-lg);
    overflow: hidden;
    box-shadow: var(--ec-shadow-lg);
}
.modal.modal-primary .modal-header,
#ms-account-modal .modal-header {
    background: var(--ec-ink);
    border: 0;
    box-shadow: none;
}
#ms-account-modal .modal-dialog { max-width: 460px; margin: max(6vh, calc(var(--ec-nav-h) + 16px)) auto 32px; padding: 0 16px; }
#ms-account-modal .modal-content { border: 0 !important; border-radius: 24px; box-shadow: 0 40px 90px -30px rgba(14, 15, 36, .7); }
#ms-account-modal .modal-header {
    position: relative;
    padding: 30px 28px 20px;
    background: radial-gradient(120% 90% at 100% 0%, rgba(43, 47, 196, .65) 0%, rgba(22, 24, 51, 0) 60%),
                radial-gradient(80% 80% at 0% 100%, rgba(242, 138, 46, .22) 0%, rgba(22, 24, 51, 0) 60%),
                #121330;
}
#ms-account-modal .modal-header .close {
    position: absolute; top: 16px; right: 16px; z-index: 2;
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; margin: 0; padding: 0; float: none;
    border-radius: 50%; background: rgba(255, 255, 255, .1);
    color: #fff; opacity: 1; text-shadow: none; font-size: 1.8rem;
    transition: background-color .2s var(--ec-ease);
}
#ms-account-modal .modal-header .close:hover { background: rgba(255, 255, 255, .2); }
.ec-account-head { margin: 0; text-align: left; }
.ec-account-logo { display: block; height: 34px; width: auto; margin: 0 0 18px; }
.ec-account-head h3 { margin: 0 0 4px; font-size: 2.2rem; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.ec-account-head p { margin: 0; font-size: 1.4rem; color: rgba(255, 255, 255, .65); }

#ms-account-modal .modal-header-tabs { margin-top: 22px; }
#ms-account-modal .nav-tabs {
    display: flex; gap: 4px; padding: 4px; border: 0;
    border-radius: 14px; background: rgba(255, 255, 255, .08) !important;
    box-shadow: none;
}
#ms-account-modal .nav-tabs .nav-item { flex: 1 1 0; margin: 0; }
#ms-account-modal .nav-tabs .nav-link {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    height: 40px; padding: 0 8px; border: 0; border-radius: 10px;
    color: rgba(255, 255, 255, .72); font-size: 1.35rem; font-weight: 600;
    text-transform: none; letter-spacing: 0; white-space: nowrap;
    transition: background-color .2s var(--ec-ease), color .2s var(--ec-ease);
}
#ms-account-modal .nav-tabs .nav-link i { font-size: 1.6rem; margin: 0; }
#ms-account-modal .nav-tabs .nav-link:hover { color: #fff; background: rgba(255, 255, 255, .06); }
#ms-account-modal .nav-tabs .nav-link.active { color: var(--ec-ink) !important; background: #fff !important; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .5); }
#ms-account-modal .nav-tabs .ms-tabs-indicator { display: none !important; }
#ms-account-modal .modal-body { padding: 26px 28px 30px; }
#ms-account-modal .modal-body .btn-primary {
    min-height: 46px; padding: 0 26px; margin: 0; border-radius: 999px;
    background: var(--ec-primary); box-shadow: 0 14px 30px -14px rgba(43, 47, 196, .8);
    font-weight: 700; text-transform: none; letter-spacing: 0;
}
#ms-account-modal .modal-body .btn-primary:hover { background: var(--ec-primary-600); }
@media (max-width: 399.98px) {
    #ms-account-modal .nav-tabs .nav-link i { display: none; }
}
#ms-account-modal .input-group-addon { color: var(--ec-muted); }
#lblLogError { color: #c0392b; font-weight: 600; }

.modal-backdrop.show { opacity: .55; background: var(--ec-ink); }

/* --- Encabezados de pagina (heros del tema) ------------------------------- */
.ms-hero-page,
.ms-hero-page-override,
.ms-hero-page-bottom { margin-top: 0; }

.ms-hero-page { padding: 72px 0 64px; }

.ms-hero-bg-dark:after,
.ms-hero-bg-dark-light:after,
.ms-hero-bg-primary:after,
.ms-hero-bg-info:after {
    background: radial-gradient(120% 140% at 0% 0%, rgba(43, 47, 196, .78) 0%, rgba(22, 24, 51, .92) 55%, rgba(22, 24, 51, .96) 100%) !important;
}

.ms-hero-page h1, .ms-hero-page h2,
[class*="ms-hero-bg-"] h1, [class*="ms-hero-bg-"] h2 { color: #fff; letter-spacing: -.025em; }
.ms-hero-page h1, [class*="ms-hero-bg-"] h1 { font-size: clamp(3rem, 4.2vw, 4.8rem); font-weight: 800; }
.ms-hero-page p, [class*="ms-hero-bg-"] p { color: rgba(255, 255, 255, .85); }

/* --- Componentes del tema en paginas internas ----------------------------- */
.color-green { color: var(--ec-accent) !important; }
.bg-green { background-color: var(--ec-primary) !important; }
[class*="ms-hero-bg-"] h1.color-green, .ms-hero-page h1.color-green { color: #fff !important; }
.color-medium { color: rgba(255, 255, 255, .78) !important; }

.right-line { font-weight: 800; letter-spacing: -.03em; }
.right-line:after { border-top-color: var(--ec-line) !important; background-color: var(--ec-line) !important; }

.dropcaps:first-letter { color: var(--ec-primary); font-weight: 800; }

.ms-icon {
    border-radius: 14px !important;
    border: 0 !important;
    background: rgba(255, 255, 255, .1);
}
.ms-icon.ms-icon-inverse.ms-icon-white { background: rgba(255, 255, 255, .12); color: #fff; }
.ms-icon-feature-content h4 { font-weight: 700; letter-spacing: -.01em; }

.service-list li { padding-left: 76px; }
.service-list li:before {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border-radius: 14px;
    background-color: var(--ec-primary-50);
    color: var(--ec-primary);
    font-size: 2.2rem;
    font-weight: 800;
}
.service-list li strong { color: var(--ec-ink); }

.card.card-primary-inverse {
    background: var(--ec-ink) !important;
    border-color: var(--ec-ink);
    color: rgba(255, 255, 255, .85);
}
.card.card-primary-inverse h4 { color: var(--ec-accent) !important; }
.card.card-primary-inverse p { color: rgba(255, 255, 255, .85); }
.card .card-body img.img-fluid { border-radius: var(--ec-radius-sm); }

.ms-collapse .card { margin-bottom: 12px !important; box-shadow: none; }
.ms-collapse .card .card-header,
.ms-collapse .card .card-header.bg-green { background: var(--ec-surface) !important; border: 0; }
.ms-collapse .card .card-header .card-title a {
    padding: 18px 20px;
    font-family: var(--ec-font);
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ec-ink) !important;
    background: transparent !important;
}
.ms-collapse .card .card-header .card-title a i { color: var(--ec-primary); }
.ms-collapse .card .card-body { color: var(--ec-ink-2); }

.ms-thumbnail { border-radius: var(--ec-radius); overflow: hidden; }
.ms-thumbnail-caption { background: linear-gradient(180deg, rgba(22, 24, 51, .1) 0%, rgba(22, 24, 51, .85) 100%) !important; }
.ms-thumbnail-caption-title { font-weight: 700; letter-spacing: -.01em; }

.small-caps { font-variant: normal; font-weight: 600; color: var(--ec-muted); }

.ms-site-title { word-spacing: 0; font-weight: 800; letter-spacing: -.02em; }
.lead.lead-lg, .lead-lg { line-height: 1.55; }
.material-background {
    background: radial-gradient(120% 140% at 0% 0%, #2b2fc4 0%, #161833 60%) !important;
}
.material-background + .container .lead.text-uppercase { text-transform: none !important; font-size: 1.9rem; color: rgba(255, 255, 255, .82) !important; }

/* Filtros de la tienda */
.card .card-header.bg-primary, .card-primary > .card-header { background: var(--ec-ink) !important; }
.card-primary > .card-header .card-title, .card .card-header.bg-primary .card-title,
.card-primary > .card-header h3 { color: #fff !important; font-weight: 700; }

/* --- Tienda ----------------------------------------------------------------- */
.product-item .card.ms-feature {
    height: calc(100% - 24px);
    margin-bottom: 24px;
    border-radius: var(--ec-radius);
    transition: transform .25s var(--ec-ease), box-shadow .25s var(--ec-ease), border-color .25s var(--ec-ease);
}
.product-item .card.ms-feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--ec-shadow-lg);
    border-color: #d5d8e6;
}
.product-item .card.ms-feature .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 22px 20px 20px;
}
.product-item .card.ms-feature .card-body > a:first-of-type { flex: 1 1 auto; text-decoration: none; }
.product-item .card.ms-feature figure {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 14px;
    padding: 18px;
    aspect-ratio: 4 / 3;
    border-radius: var(--ec-radius-sm);
    background: radial-gradient(80% 80% at 50% 40%, #ffffff 0%, #f1f2f8 100%);
}
.product-item .card.ms-feature figure img { max-height: 100%; width: auto; object-fit: contain; transition: transform .35s var(--ec-ease); }
.product-item .card.ms-feature:hover figure img { transform: scale(1.04); }
.product-item .card.ms-feature h4 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -.005em;
    color: var(--ec-ink);
    text-transform: none;
}
.product-item .card.ms-feature .ms-tag.ms-tag-info { font-size: 1.6rem; padding: 4px 14px; background: transparent; color: var(--ec-ink); }
.product-item .card.ms-feature .base-price { text-decoration: line-through; background: transparent; color: var(--ec-muted); font-weight: 500; }
.product-item .card.ms-feature .btn {
    margin-top: 12px !important;
    padding: 11px 16px;
    font-size: 1.35rem;
    background-color: var(--ec-accent) !important;
    border-color: var(--ec-accent) !important;
}
.product-item .card.ms-feature .btn:hover,
.product-item .card.ms-feature .btn:focus {
    background-color: var(--ec-accent-600) !important;
    border-color: var(--ec-accent-600) !important;
    box-shadow: 0 10px 24px -12px rgba(242, 138, 46, .9) !important;
}

#discount-badge { border-radius: 999px; background: var(--ec-accent) !important; }

/* --- Pie de pagina ------------------------------------------------------------ */
.ec-footer {
    position: relative;
    margin-top: 96px;
    padding: 72px 0 0;
    background: var(--ec-ink);
    color: rgba(255, 255, 255, .72);
    font-size: 1.45rem;
    overflow: hidden;
}
.ec-footer:before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(60% 80% at 100% 0%, rgba(43, 47, 196, .45) 0%, rgba(22, 24, 51, 0) 60%),
                radial-gradient(40% 60% at 0% 100%, rgba(242, 138, 46, .16) 0%, rgba(22, 24, 51, 0) 60%);
    pointer-events: none;
}
.ec-footer > .container { position: relative; max-width: var(--ec-container); }
.ec-footer a { color: rgba(255, 255, 255, .82); }
.ec-footer a:hover, .ec-footer a:focus { color: #fff; text-decoration: none; }

.ec-footer-grid {
    display: grid;
    grid-template-columns: 1.3fr .8fr 1.1fr 1.3fr;
    gap: 48px;
    padding-bottom: 56px;
}

.ec-footer h3 {
    margin: 0 0 18px;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ec-footer-brand .ec-footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.ec-footer-brand .ec-footer-logo img { width: 40px; height: 40px; }
.ec-footer-brand .ec-footer-logo strong { display: block; color: #fff; font-size: 2rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.ec-footer-brand .ec-footer-logo span { display: block; color: rgba(255, 255, 255, .6); font-size: 1.3rem; }

.ec-footer-contact { list-style: none; margin: 0; padding: 0; }
.ec-footer-contact li { display: flex; gap: 12px; margin-bottom: 12px; line-height: 1.5; }
.ec-footer-contact i { flex: 0 0 18px; margin-top: 2px; font-size: 1.8rem; color: var(--ec-accent); }

.ec-footer-links { list-style: none; margin: 0; padding: 0; }
.ec-footer-links li { margin-bottom: 10px; }
.ec-footer-links a { transition: color .2s var(--ec-ease), padding-left .2s var(--ec-ease); }
.ec-footer-links a:hover { padding-left: 4px; }

.ec-footer-benefits { list-style: none; margin: 0 0 18px; padding: 0; }
.ec-footer-benefits li { position: relative; margin-bottom: 12px; padding-left: 28px; line-height: 1.5; }
.ec-footer-benefits li i { position: absolute; left: 0; top: 2px; font-size: 1.8rem; color: var(--ec-green); }

.ec-subscribe { display: flex; gap: 8px; margin-top: 14px; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.ec-subscribe input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 14px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 1.45rem;
    outline: none;
}
.ec-subscribe input::placeholder { color: rgba(255, 255, 255, .5); }
.ec-subscribe button { flex: 0 0 auto; padding: 11px 20px; font-size: 1.35rem; }
.ec-subscribe:focus-within { border-color: rgba(255, 255, 255, .4); }

.ec-social { display: flex; gap: 10px; margin-top: 20px; }
.ec-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    font-size: 2rem;
    transition: background-color .2s var(--ec-ease), transform .2s var(--ec-ease);
}
.ec-social a:hover { background: var(--ec-accent); transform: translateY(-2px); }

.ec-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    padding: 22px 0 26px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: 1.3rem;
    color: rgba(255, 255, 255, .55);
}
.ec-footer-bottom a { color: var(--ec-green); font-weight: 600; }

@media (max-width: 991.98px) {
    .ec-footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 575.98px) {
    .ec-footer { margin-top: 64px; padding-top: 56px; }
    .ec-footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ==========================================================================
   Inicio
   ========================================================================== */
.ec-section { padding: 96px 0; }
.ec-section-tight { padding: 64px 0; }
.ec-section > .container,
.ec-section-tight > .container,
.ec-hero-wrap > .container { max-width: var(--ec-container); }

.ec-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ec-accent-600);
}
.ec-eyebrow:before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }

.ec-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px 40px;
    margin-bottom: 44px;
}
.ec-section-head h2 { margin: 0; max-width: 18ch; font-size: clamp(3rem, 3.6vw, 4.4rem); font-weight: 800; letter-spacing: -.03em; }
.ec-section-head p { margin: 0; max-width: 46ch; font-size: 1.7rem; color: var(--ec-muted); }

/* Carrusel: los banners son 16:9; se muestran completos */
.ec-hero-wrap { padding: 20px 0 0; }
#container-slider {
    overflow: hidden;
    border-radius: var(--ec-radius-lg);
    background: var(--ec-ink);
    box-shadow: var(--ec-shadow-lg);
}
#container-slider #slider {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    max-height: calc(100vh - var(--ec-nav-h) - 40px);
    margin: 0;
}
#container-slider .arrowPrev,
#container-slider .arrowNext {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    top: 50%;
    left: 20px;
    width: 48px;
    height: 48px;
    margin-top: -24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .85);
    color: var(--ec-ink);
    font-size: 2rem;
    box-shadow: var(--ec-shadow);
    opacity: 0;
    transition: opacity .25s var(--ec-ease), transform .2s var(--ec-ease), background-color .2s var(--ec-ease);
}
#container-slider .arrowNext { left: auto; right: 20px !important; }
#container-slider:hover .arrowPrev,
#container-slider:hover .arrowNext,
#container-slider .arrowPrev:focus,
#container-slider .arrowNext:focus { opacity: 1; }
#container-slider .arrowPrev:hover,
#container-slider .arrowNext:hover { background: #fff; color: var(--ec-primary); text-decoration: none; }

#container-slider .listslider {
    bottom: 18px !important;
    gap: 8px;
    padding: 8px 12px !important;
    border-radius: 999px;
    background: rgba(22, 24, 51, .35);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    left: 50% !important;
    width: auto !important;
    transform: translateX(-50%);
}
#container-slider .listslider li { width: auto; height: auto; margin: 0; border-radius: 0; }
#container-slider .listslider li a {
    width: 8px !important;
    height: 8px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, .55) !important;
    transition: width .3s var(--ec-ease), background-color .3s var(--ec-ease);
}
#container-slider .listslider li a.item-select-slid { width: 24px !important; background: #fff !important; }

@media (hover: none) {
    #container-slider .arrowPrev, #container-slider .arrowNext { opacity: 1; width: 38px; height: 38px; margin-top: -19px; font-size: 1.6rem; }
}
@media (max-width: 575.98px) {
    .ec-hero-wrap { padding: 12px 0 0; }
    #container-slider { border-radius: var(--ec-radius); }
    #container-slider .arrowPrev { left: 10px; }
    #container-slider .arrowNext { right: 10px !important; }
}

/* Categorias */
.ec-categories {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}
.ec-category {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 14px 14px 22px;
    border: 1px solid var(--ec-line);
    border-radius: var(--ec-radius-lg);
    background: var(--ec-surface);
    color: var(--ec-ink-2);
    text-decoration: none !important;
    transition: transform .25s var(--ec-ease), box-shadow .25s var(--ec-ease), border-color .25s var(--ec-ease);
}
.ec-category:hover, .ec-category:focus { transform: translateY(-4px); box-shadow: var(--ec-shadow-lg); border-color: #d5d8e6; color: var(--ec-ink-2); }
.ec-category-media {
    aspect-ratio: 4 / 3;
    margin-bottom: 18px;
    overflow: hidden;
    border-radius: var(--ec-radius);
    background: #eef0f6;
}
.ec-category-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ec-ease); }
.ec-category:hover .ec-category-media img { transform: scale(1.05); }
.ec-category h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 8px 12px;
    font-size: 2rem;
    font-weight: 800;
}
.ec-category h3 i { font-size: 2rem; color: var(--ec-muted); transition: transform .2s var(--ec-ease), color .2s var(--ec-ease); }
.ec-category:hover h3 i { color: var(--ec-accent); transform: translateX(3px); }
.ec-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 8px; padding: 0; list-style: none; }
.ec-chips li {
    padding: 4px 10px;
    border-radius: 8px;
    background: var(--ec-bg);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--ec-ink-2);
}
.ec-chips li.ec-chip-label { padding-left: 0; padding-right: 2px; background: transparent; font-weight: 700; color: var(--ec-muted); }

@media (max-width: 991.98px) { .ec-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) {
    .ec-section { padding: 64px 0; }
    .ec-categories { grid-template-columns: 1fr; }
}

/* Catalogo */
.ec-catalog {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 48px;
    margin-top: 72px;
    padding: 48px 56px;
    border-radius: var(--ec-radius-lg);
    background: linear-gradient(135deg, var(--ec-primary-50) 0%, #fff6ee 100%);
    border: 1px solid var(--ec-line);
}
.ec-catalog h2 { margin: 0 0 12px; font-size: clamp(2.6rem, 3vw, 3.6rem); font-weight: 800; }
.ec-catalog p { margin: 0 0 22px; max-width: 44ch; color: var(--ec-muted); font-size: 1.7rem; }
.ec-catalog .bookshelf { margin: 0; }
.ec-catalog .covers { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.ec-catalog .covers figure { margin: 0; border-radius: 6px; box-shadow: var(--ec-shadow-lg); }
@media (max-width: 767.98px) {
    .ec-catalog { grid-template-columns: 1fr; padding: 32px 24px; gap: 28px; margin-top: 56px; }
}

/* Datos relevantes */
.ec-stats-band { padding: 0; }
.ec-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--ec-line);
    border-radius: var(--ec-radius-lg);
    background: var(--ec-surface);
    box-shadow: var(--ec-shadow);
    overflow: hidden;
}
.ec-stat { padding: 34px 32px; border-left: 1px solid var(--ec-line); }
.ec-stat:first-child { border-left: 0; }
.ec-stat i { font-size: 2.2rem; color: var(--ec-accent); }
.ec-stat .counter-wrap {
    display: block;
    margin: 10px 0 4px;
    font-size: clamp(3.6rem, 4vw, 5.2rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.04em;
    color: var(--ec-ink);
    font-variant-numeric: tabular-nums;
}
.ec-stat .counter-wrap small { font-size: .55em; color: var(--ec-primary); letter-spacing: 0; }
.ec-stat p { margin: 0; font-size: 1.45rem; font-weight: 600; color: var(--ec-muted); }
@media (max-width: 991.98px) {
    .ec-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ec-stat:nth-child(3) { border-left: 0; }
    .ec-stat:nth-child(n+3) { border-top: 1px solid var(--ec-line); }
}

/* Mensaje del director + mision/vision/valores */
.ec-about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.ec-quote {
    position: relative;
    padding: 44px 44px 40px;
    border-radius: var(--ec-radius-lg);
    background: var(--ec-ink);
    color: rgba(255, 255, 255, .82);
    overflow: hidden;
}
.ec-quote:before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(70% 70% at 100% 0%, rgba(43, 47, 196, .55) 0%, rgba(22, 24, 51, 0) 70%);
    pointer-events: none;
}
.ec-quote > * { position: relative; }
.ec-quote .ec-eyebrow { color: var(--ec-accent); }
.ec-quote blockquote { margin: 0; padding: 0; border: 0; }
.ec-quote blockquote p:first-child { margin-bottom: 18px; color: #fff; font-size: clamp(2.2rem, 2.4vw, 2.8rem); font-weight: 700; line-height: 1.3; letter-spacing: -.02em; }
.ec-quote blockquote p { font-size: 1.6rem; max-width: 58ch; }
.ec-quote cite { display: block; margin-top: 24px; font-style: normal; font-weight: 700; color: var(--ec-accent); }

.ec-values .card { margin: 0 0 12px; box-shadow: none; border-radius: var(--ec-radius); }
.ec-values .card .card-header {
    padding: 0;
    background: var(--ec-surface) !important;
    border: 0;
}
.ec-values .card .card-header .card-title { margin: 0; }
.ec-values .card .card-header .card-title a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 22px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--ec-ink) !important;
    background: transparent !important;
    text-decoration: none;
}
.ec-values .card .card-header .card-title a:before,
.ec-values .card .card-header .card-title a:after { display: none !important; }
.ec-values .card .card-header .card-title a i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--ec-primary-50);
    color: var(--ec-primary);
    font-size: 1.7rem;
}
.ec-values .card .card-header .card-title a .ec-chevron {
    margin-left: auto;
    width: auto;
    height: auto;
    background: transparent;
    color: var(--ec-muted);
    font-size: 2rem;
    transition: transform .25s var(--ec-ease);
}
.ec-values .card .card-header .card-title a:not(.collapsed) .ec-chevron { transform: rotate(180deg); }
.ec-values .card .card-body { padding: 0 22px 22px 74px; color: var(--ec-ink-2); font-size: 1.55rem; }
.ec-values .card .card-body ul { margin: 0; padding-left: 18px; }
.ec-values .card .card-body li { margin-bottom: 10px; }
.ec-values .card .card-body li strong { color: var(--ec-ink); }
.ec-values .ec-proverb { display: block; margin-top: 8px; color: var(--ec-muted); font-style: italic; }

@media (max-width: 991.98px) { .ec-about { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 575.98px) {
    .ec-quote { padding: 32px 26px; }
    .ec-values .card .card-body { padding-left: 22px; }
}

/* Portafolio: mosaico asimetrico */
.ec-portfolio {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 260px;
    gap: 16px;
}
.ec-portfolio figure {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: var(--ec-radius);
    background: #dfe1ea;
}
.ec-portfolio figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.ec-portfolio figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ec-ease); }
.ec-portfolio figure:hover img { transform: scale(1.05); }
.ec-portfolio figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 40px 20px 18px;
    background: linear-gradient(180deg, rgba(22, 24, 51, 0) 0%, rgba(22, 24, 51, .82) 100%);
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -.01em;
}
@media (max-width: 991.98px) {
    .ec-portfolio { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 200px; }
}
@media (max-width: 575.98px) {
    .ec-portfolio { grid-template-columns: 1fr; grid-auto-rows: 240px; }
    .ec-portfolio figure:nth-child(1) { grid-column: span 1; grid-row: span 1; }
}

/* Materiales (pestañas) */
.ec-materials {
    padding: 56px;
    border: 1px solid var(--ec-line);
    border-radius: var(--ec-radius-lg);
    background: var(--ec-surface);
    box-shadow: var(--ec-shadow);
}
.ec-segmented {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0 0 40px;
    padding: 5px;
    list-style: none;
    border-radius: 999px;
    background: var(--ec-bg);
    border: 1px solid var(--ec-line);
}
.ec-segmented .nav-link {
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--ec-muted);
    transition: background-color .2s var(--ec-ease), color .2s var(--ec-ease), box-shadow .2s var(--ec-ease);
}
.ec-segmented .nav-link:hover { color: var(--ec-ink); text-decoration: none; }
.ec-segmented .nav-link.active { background: var(--ec-surface); color: var(--ec-primary); box-shadow: 0 1px 2px rgba(22, 24, 51, .1), 0 4px 12px -6px rgba(22, 24, 51, .25); }

.ec-material { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.ec-material-media {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    max-height: 380px;
    padding: 32px;
    border-radius: var(--ec-radius-lg);
    background: radial-gradient(70% 70% at 50% 40%, #ffffff 0%, #eceef7 100%);
}
.ec-material-media img { max-height: 100%; max-width: 100%; object-fit: contain; }
.ec-material h3 { margin: 0 0 14px; font-size: clamp(2.4rem, 2.6vw, 3.2rem); font-weight: 800; }
.ec-material .ec-uses { margin: 0 0 26px; padding: 0; list-style: none; columns: 2; column-gap: 24px; }
.ec-material .ec-uses li { position: relative; margin-bottom: 10px; padding-left: 26px; break-inside: avoid; font-size: 1.6rem; }
.ec-material .ec-uses li:before { content: "\f26b"; font-family: 'Material-Design-Iconic-Font'; position: absolute; left: 0; top: 0; color: var(--ec-green); font-size: 1.8rem; }
.ec-specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.ec-specs div { padding: 16px 18px; border-radius: var(--ec-radius-sm); background: var(--ec-bg); }
.ec-specs dt { margin-bottom: 4px; font-size: 1.2rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ec-muted); }
.ec-specs dd { margin: 0; font-size: 1.7rem; font-weight: 700; color: var(--ec-ink); }
.ec-pigments { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ec-pigments div { padding: 18px 20px; border-radius: var(--ec-radius-sm); background: var(--ec-bg); }
.ec-pigments h4 { margin: 0 0 4px; font-size: 1.7rem; font-weight: 800; }
.ec-pigments h4 small { font-size: 1.3rem; font-weight: 600; color: var(--ec-muted); }
.ec-pigments p { margin: 0; font-size: 1.5rem; }

@media (max-width: 991.98px) {
    .ec-materials { padding: 32px 24px; }
    .ec-material { grid-template-columns: 1fr; gap: 28px; }
    .ec-material-media { max-height: 280px; aspect-ratio: 4 / 3; }
}
@media (max-width: 575.98px) {
    .ec-material .ec-uses { columns: 1; }
    .ec-specs, .ec-pigments { grid-template-columns: 1fr; }
}

/* Llamado a la accion */
.ec-cta {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 56px;
    border-radius: var(--ec-radius-lg);
    background: var(--ec-primary);
    color: rgba(255, 255, 255, .85);
    overflow: hidden;
}
.ec-cta:before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(60% 120% at 100% 100%, rgba(242, 138, 46, .55) 0%, rgba(43, 47, 196, 0) 60%),
                radial-gradient(50% 100% at 0% 0%, rgba(22, 24, 51, .45) 0%, rgba(43, 47, 196, 0) 70%);
    pointer-events: none;
}
.ec-cta > * { position: relative; }
.ec-cta h2 { margin: 0 0 8px; color: #fff; font-size: clamp(2.8rem, 3.2vw, 4rem); font-weight: 800; letter-spacing: -.03em; }
.ec-cta p { margin: 0; max-width: 52ch; font-size: 1.7rem; }
.ec-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 575.98px) { .ec-cta { padding: 36px 26px; } }

/* --- Encabezado de pagina con imagen (Productos) ------------------------------ */
.ec-page-hero { padding: 80px 0 88px; background: var(--ec-ink); }
.ec-page-hero > .container { max-width: var(--ec-container); }
.ec-page-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.ec-page-hero h1 { margin: 0 0 28px; text-align: left; }
.ec-page-hero .ec-eyebrow { color: var(--ec-accent); }
.ec-value-list { margin: 0 0 32px; padding: 0; list-style: none; counter-reset: ecv; }
.ec-value-list li {
    position: relative;
    margin-bottom: 18px;
    padding-left: 54px;
    color: rgba(255, 255, 255, .8);
    font-size: 1.6rem;
    line-height: 1.55;
    counter-increment: ecv;
}
.ec-value-list li:before {
    content: counter(ecv, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 38px;
    text-align: center;
}
.ec-value-list strong { color: var(--ec-accent); font-weight: 700; }
.ec-page-hero-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--ec-radius-lg);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
}
@media (max-width: 991.98px) {
    .ec-page-hero { padding: 56px 0 64px; }
    .ec-page-hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Reducir movimiento */
@media (prefers-reduced-motion: reduce) {
    *, *:before, *:after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* --- Ancho de contenido: aprovechar pantallas grandes -------------------------- */
.ec-nav > .container,
.ec-footer > .container,
.ec-section > .container,
.ec-section-tight > .container,
.ec-hero > .container,
.ec-page-hero > .container,
.ec-stats-band > .container {
    width: 100%;
    max-width: var(--ec-container);
    padding-left: var(--ec-gutter);
    padding-right: var(--ec-gutter);
}

/* ==========================================================================
   Hero de portada
   ========================================================================== */
.ec-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(64px, 8vw, 120px) 0 clamp(64px, 7vw, 112px);
    background: #0c0d20;
    color: #fff;
}

/* --- Fondo: resina epoxica ---------------------------------------------------- */
.ec-hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ec-resin {
    position: absolute; inset: -3%;
    background: #0c0d20 url('../img/hero-resina.jpg') center right / cover no-repeat;
    will-change: transform;
    animation: ecResinDrift 40s ease-in-out infinite alternate;
}
@media (max-width: 767.98px) {
    .ec-resin { background-image: url('../img/hero-resina-m.jpg'); background-position: center; }
}
/* Profundidad: oscurece donde va el texto y da sensacion de capa gruesa */
.ec-resin-depth {
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(10, 11, 28, .92) 0%, rgba(10, 11, 28, .78) 32%, rgba(10, 11, 28, .25) 62%, rgba(10, 11, 28, .1) 100%),
        radial-gradient(120% 80% at 50% 120%, rgba(5, 6, 18, .85) 0%, rgba(5, 6, 18, 0) 55%);
}
/* Reflejo del barniz: una franja de luz que recorre la superficie muy lento */
.ec-resin-sheen {
    position: absolute; top: -40%; bottom: -40%; left: -30%;
    width: 38%;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .07) 45%, rgba(255, 255, 255, .16) 50%, rgba(255, 255, 255, .07) 55%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-18deg);
    mix-blend-mode: screen;
    animation: ecSheen 11s var(--ec-ease) infinite;
}
.ec-hero:after {
    /* borde inferior tipo canto de cubierta pulida */
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: linear-gradient(90deg, rgba(242, 162, 90, 0), rgba(242, 162, 90, .55), rgba(233, 234, 255, .4), rgba(242, 162, 90, 0));
}

.ec-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: clamp(40px, 5vw, 88px);
    align-items: center;
}

/* --- Texto ------------------------------------------------------------------- */
.ec-hero-title {
    margin: 0 0 24px;
    font-family: var(--ec-font);
    font-size: clamp(3.8rem, 4.6vw, 6.8rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -.035em;
    color: #fff;
    text-align: left;
}
.ec-hero-title > span { display: block; }

/* Palabra que "se vierte": cambia entre aplicaciones con efecto de resina */
.ec-pour {
    position: relative;
    height: 1.12em;
    margin: .02em 0 .04em;
    overflow: visible;
}
.ec-pour-word {
    position: relative;
    display: inline-block;
    padding-right: .06em;
    background: linear-gradient(175deg, #ffe7c7 0%, #f6a85e 30%, #e07a22 55%, #ffd29e 72%, #b8601c 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    filter: drop-shadow(0 10px 24px rgba(242, 138, 46, .28));
    clip-path: inset(0 0 0 0);
}
/* gota que escurre bajo la palabra */
.ec-pour-word:after {
    content: ""; position: absolute; left: 18%; bottom: -.08em;
    width: .16em; height: .16em; border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    background: linear-gradient(180deg, #f6a85e, #b8601c);
    opacity: 0;
}
.ec-pour-word.is-out { animation: ecPourOut .5s var(--ec-ease) forwards; }
.ec-pour-word.is-in { animation: ecPourIn .9s cubic-bezier(.3, .9, .25, 1) forwards; }
.ec-pour-word.is-in:after { animation: ecDrip 1.4s .35s cubic-bezier(.5, 0, .7, .4) forwards; }

@keyframes ecPourIn {
    0%   { clip-path: inset(0 0 100% 0); transform: translateY(-.12em) scaleY(1.06); filter: blur(4px) drop-shadow(0 10px 24px rgba(242, 138, 46, .28)); }
    60%  { clip-path: inset(0 0 0 0); filter: blur(0) drop-shadow(0 10px 24px rgba(242, 138, 46, .28)); }
    100% { clip-path: inset(0 0 0 0); transform: none; filter: drop-shadow(0 10px 24px rgba(242, 138, 46, .28)); }
}
@keyframes ecPourOut {
    to { clip-path: inset(100% 0 0 0); transform: translateY(.1em); opacity: .4; }
}
@keyframes ecDrip {
    0%   { opacity: 0; transform: translateY(0) scale(.4); }
    25%  { opacity: 1; transform: translateY(.05em) scale(1); }
    100% { opacity: 0; transform: translateY(.9em) scale(.6, 1.2); }
}

.ec-hero-lead { margin: 0 0 34px; max-width: 50ch; font-size: clamp(1.6rem, 1.25vw, 1.9rem); line-height: 1.65; color: rgba(255, 255, 255, .74); }

.ec-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.ec-btn-lg { padding: 16px 28px; font-size: 1.6rem; }
.ec-btn-glass {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .2);
    color: #fff !important;
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.ec-btn-glass:hover, .ec-btn-glass:focus { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .4); }
.ec-btn-glass i { transition: transform .25s var(--ec-ease); }
.ec-btn-glass:hover i { transform: translateX(4px); }
.ec-hero .ec-btn-accent { box-shadow: 0 18px 40px -16px rgba(242, 138, 46, .85); }

.ec-hero-proof { display: flex; flex-wrap: wrap; margin: 48px 0 0; padding: 0; }
.ec-hero-proof > div { padding: 0 28px; border-left: 1px solid rgba(255, 255, 255, .14); }
.ec-hero-proof > div:first-child { padding-left: 0; border-left: 0; }
.ec-hero-proof dt { font-size: clamp(2.6rem, 2.2vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: #fff; }
.ec-hero-proof dt:after { content: "+"; color: var(--ec-accent); }
.ec-hero-proof dd { margin: 4px 0 0; font-size: 1.3rem; color: rgba(255, 255, 255, .6); }

/* --- Carrusel ---------------------------------------------------------------- */
.ec-hero-stage { position: relative; padding: 36px 0 36px 36px; }
.ec-hero-ring {
    position: absolute; z-index: 0;
    inset: 4% -4% 0 14%;
    border-radius: 40px;
    background: radial-gradient(60% 60% at 70% 40%, rgba(43, 47, 196, .55), rgba(43, 47, 196, 0) 70%),
                radial-gradient(50% 50% at 30% 80%, rgba(242, 138, 46, .35), rgba(242, 138, 46, 0) 70%);
    filter: blur(40px);
}
.ec-hero-frame {
    position: relative; z-index: 1;
    padding: 8px;
    border-radius: 26px;
    background: linear-gradient(160deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .05) 38%, rgba(242, 162, 90, .35));
    box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .06) inset;
}
.ec-hero-frame #container-slider { border-radius: 19px; box-shadow: none; }
.ec-hero-frame #container-slider #slider { max-height: none; }

/* --- Sello giratorio --------------------------------------------------------- */
.ec-seal {
    position: absolute; z-index: 3;
    top: -6px; left: -8px;
    width: 148px; height: 148px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
}
.ec-seal:before {
    /* disco de resina con brillo */
    content: ""; position: absolute; inset: 6px; border-radius: 50%;
    background:
        radial-gradient(70% 50% at 35% 25%, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 60%),
        conic-gradient(from 200deg, #1d2070, #2b2fc4, #12133a, #b8601c, #f6a85e, #1d2070);
    box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .25), inset 0 -10px 24px rgba(0, 0, 0, .35);
}
.ec-seal-ring {
    position: absolute; inset: 0; width: 100%; height: 100%;
    animation: ecSpin 18s linear infinite;
}
.ec-seal-ring text { fill: #fff; font-family: var(--ec-font); font-size: 15px; font-weight: 700; letter-spacing: .12em; }
.ec-seal-core {
    position: absolute; top: 50%; left: 50%;
    width: 58px; height: 58px; margin: -29px 0 0 -29px;
    border-radius: 50%;
    background: #fff;
    color: var(--ec-primary);
    box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .6);
    overflow: hidden;
}
.ec-seal-ico {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.6rem;
    animation: ecSwapA 6s var(--ec-ease) infinite;
}
.ec-seal-ico.is-b { color: var(--ec-accent); animation-name: ecSwapB; }
.ec-seal:hover .ec-seal-ring, .ec-seal:focus-visible .ec-seal-ring { animation-duration: 6s; }
.ec-seal:hover .ec-seal-core { transform: scale(1.06); }
.ec-seal-core { transition: transform .3s var(--ec-ease); }

@keyframes ecSpin { to { transform: rotate(360deg); } }
@keyframes ecSwapA { 0%, 42% { transform: translateY(0); } 50%, 92% { transform: translateY(-120%); } 100% { transform: translateY(0); } }
@keyframes ecSwapB { 0%, 42% { transform: translateY(120%); } 50%, 92% { transform: translateY(0); } 100% { transform: translateY(120%); } }
@keyframes ecSheen { 0% { left: -40%; } 55%, 100% { left: 120%; } }
@keyframes ecResinDrift { to { transform: translate(-1.5%, 1%) scale(1.025); } }

/* Entrada */
.ec-hero-copy > *, .ec-hero-stage { opacity: 0; animation: ecRise .9s var(--ec-ease) forwards; }
.ec-hero-copy > :nth-child(2) { animation-delay: .1s; }
.ec-hero-copy > :nth-child(3) { animation-delay: .2s; }
.ec-hero-copy > :nth-child(4) { animation-delay: .3s; }
.ec-hero-stage { animation-delay: .2s; animation-duration: 1.1s; }
@keyframes ecRise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    .ec-hero *, .ec-hero-copy > *, .ec-hero-stage { animation: none !important; opacity: 1 !important; }
    .ec-seal-ico.is-b { display: none; }
}

@media (max-width: 991.98px) {
    .ec-hero-layout { grid-template-columns: 1fr; }
    .ec-resin-depth { background: linear-gradient(180deg, rgba(10, 11, 28, .85) 0%, rgba(10, 11, 28, .55) 55%, rgba(10, 11, 28, .35) 100%); }
    .ec-hero-proof { margin-top: 36px; }
    .ec-hero-stage { padding: 30px 0 0 24px; }
}
@media (max-width: 575.98px) {
    .ec-hero { padding: 44px 0 56px; }
    .ec-hero-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ec-hero-proof > div { padding: 0 12px; }
    .ec-hero-proof dt { font-size: 2.4rem; }
    .ec-hero-proof dd { font-size: 1.15rem; line-height: 1.35; }
    .ec-hero-actions .ec-btn { flex: 1 1 100%; justify-content: center; }
    .ec-hero-stage { padding: 34px 0 0 14px; }
    .ec-hero-frame { padding: 6px; border-radius: 20px; }
    .ec-hero-frame #container-slider { border-radius: 15px; }
    .ec-seal { width: 104px; height: 104px; top: -4px; left: -6px; }
    .ec-seal-ring text { font-size: 16px; }
    .ec-seal-core { width: 42px; height: 42px; margin: -21px 0 0 -21px; }
    .ec-seal-ico { font-size: 2rem; }
}

/* Filtros de tienda */
#Filters .ec-check-all { margin: 18px 0 20px; padding-bottom: 16px; border-bottom: 1px solid var(--ec-line); }
#Filters .ec-check-all label { font-weight: 600; color: var(--ec-ink); }
#Filters fieldset .checkbox { margin: 0 0 12px; }

/* Credito LoboGeek en el footer */
.ec-footer-bottom { align-items: center; }
.ec-footer-bottom a.ec-credit { display: inline-flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, .6); font-weight: 500; text-decoration: none; }
.ec-credit-label { font-size: 1.3rem; }
.ec-credit img { display: block; width: auto; height: 34px; opacity: .85; transition: opacity .2s var(--ec-ease), transform .2s var(--ec-ease); }
.ec-credit:hover img, .ec-credit:focus-visible img { opacity: 1; transform: translateY(-1px); }
