/* Portal autenticado: usa todo el ancho debajo de la cabecera de la tienda. */
html.bre-portal-active,
body.bre-portal-active {
    overflow-x: hidden;
}

body.bre-portal-active .sidebar-container,
body.bre-portal-active .wd-sidebar,
body.bre-portal-active aside.sidebar-container,
body.bre-portal-active .blog-sidebar,
body.bre-portal-active .widget-area,
body.bre-portal-active .page-title,
body.bre-portal-active .breadcrumbs-location-below_header,
body.bre-portal-active .wd-page-title {
    display: none !important;
}

body.bre-portal-active .content-layout-wrapper,
body.bre-portal-active .site-content,
body.bre-portal-active .content-area,
body.bre-portal-active .main-page-wrapper > .container,
body.bre-portal-active .main-page-wrapper .container,
body.bre-portal-active article.page,
body.bre-portal-active article.page > .entry-content {
    width: 100% !important;
    max-width: none !important;
    flex: 0 0 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

body.bre-portal-active .main-page-wrapper {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

body.bre-portal-active .bre-app {
    width: 100vw;
    max-width: none;
    min-height: calc(100vh - 145px);
    margin: 0;
}

body.bre-portal-active .bre-main {
    position: relative;
    min-width: 0;
    background: #f4f7f5;
}

body.bre-portal-active .bre-content {
    width: 100%;
    max-width: none;
    transition: opacity .18s ease, filter .18s ease;
}

body.bre-portal-active .bre-sidebar {
    background:
        radial-gradient(circle at 18% 4%, rgba(82, 188, 140, .16), transparent 24%),
        linear-gradient(180deg, #082e23 0%, #06271e 100%);
    box-shadow: 12px 0 36px rgba(7, 42, 31, .06);
}

body.bre-portal-active .bre-sidebar nav {
    gap: 6px;
}

body.bre-portal-active .bre-sidebar nav a,
body.bre-portal-active .bre-logout {
    min-height: 44px;
    border: 1px solid transparent;
    border-radius: 11px;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

body.bre-portal-active .bre-sidebar nav a:hover {
    transform: translateX(2px);
    border-color: rgba(255, 255, 255, .06);
    background: rgba(255, 255, 255, .065);
}

body.bre-portal-active .bre-sidebar nav a.active {
    border-color: rgba(126, 215, 178, .10);
    background: linear-gradient(90deg, rgba(126, 215, 178, .17), rgba(126, 215, 178, .08));
    box-shadow: inset 3px 0 #79d6af;
}

body.bre-portal-active .bre-main > header {
    position: sticky;
    z-index: 20;
    top: 0;
    height: 88px;
    border-bottom-color: #e3eae7;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 7px 24px rgba(25, 58, 46, .035);
    backdrop-filter: blur(13px);
}

body.bre-portal-active .bre-main > header h1 {
    color: #122820;
    font-size: 22px;
    letter-spacing: -.35px;
}

body.bre-portal-active .bre-content {
    padding: 32px clamp(22px, 3.2vw, 48px) 48px;
}

body.bre-portal-active .bre-welcome {
    overflow: hidden;
    border-color: #dfe9e4;
    border-radius: 18px;
    background:
        radial-gradient(circle at 92% 10%, rgba(41, 156, 108, .09), transparent 28%),
        linear-gradient(125deg, #fff, #f4faf7);
    box-shadow: 0 12px 34px rgba(26, 66, 50, .045);
}

body.bre-portal-active .bre-welcome h2 {
    color: #10271e;
    letter-spacing: -.5px;
}

body.bre-portal-active .bre-kpis article,
body.bre-portal-active .bre-card {
    border-color: #e0e9e5;
    border-radius: 16px;
    box-shadow: 0 9px 26px rgba(25, 61, 47, .035);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

body.bre-portal-active .bre-kpis article:hover,
body.bre-portal-active .bre-card:hover {
    border-color: #cfe0d8;
    box-shadow: 0 14px 34px rgba(25, 61, 47, .06);
}

body.bre-portal-active .bre-order-view table {
    font-size: 13px;
}

body.bre-portal-active .bre-order-view th {
    color: #61736c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .55px;
    text-transform: uppercase;
}

body.bre-portal-active .bre-order-view tbody tr {
    transition: background .16s ease;
}

body.bre-portal-active .bre-order-view tbody tr:hover {
    background: #f7faf8;
}

.bre-async-loader {
    position: absolute;
    z-index: 30;
    inset: 88px 0 0;
    display: grid;
    place-items: start center;
    padding-top: 90px;
    visibility: hidden;
    background: rgba(244, 247, 245, .56);
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(2px);
    transition: visibility 0s linear .18s, opacity .18s ease;
}

.is-navigating .bre-async-loader,
.has-navigation-error .bre-async-loader {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition-delay: 0s;
}

.is-navigating .bre-content {
    opacity: .42;
    filter: saturate(.75);
    pointer-events: none;
}

.bre-loader-card {
    display: grid;
    min-width: 230px;
    place-items: center;
    padding: 22px 26px;
    border: 1px solid #dbe7e1;
    border-radius: 17px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 22px 54px rgba(18, 56, 41, .12);
    color: #18392d;
}

.bre-loader-card > span {
    width: 24px;
    height: 24px;
    margin-bottom: 12px;
    border: 2px solid #d5e9df;
    border-top-color: #19724b;
    border-radius: 50%;
    animation: bre-spin .72s linear infinite;
}

.bre-loader-card strong {
    font-size: 13px;
}

.bre-loader-card small {
    margin-top: 4px;
    color: #7b8c85;
    font-size: 10px;
}

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

.bre-doc-count {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 13px;
    border: 1px solid #d3e5dc;
    border-radius: 99px;
    background: rgba(255,255,255,.78);
    color: #256448;
    font-size: 11px;
    font-weight: 800;
}

.bre-document-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 18px;
    margin-top: 20px;
}

.bre-document-grid > .bre-empty {
    grid-column: 1/-1;
}

.bre-document-card {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 16px;
    padding: 22px;
    border: 1px solid #e0e9e5;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 9px 26px rgba(25,61,47,.035);
    transition: border-color .2s ease,box-shadow .2s ease,transform .2s ease;
}

.bre-document-card:hover {
    transform: translateY(-2px);
    border-color: #c9ddd3;
    box-shadow: 0 16px 36px rgba(25,61,47,.065);
}

.bre-document-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 14px;
    background: #eaf6f0;
    color: #19724b;
    font-size: 20px;
    font-weight: 800;
}

.bre-document-type {
    color: #19724b;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.bre-document-body h3 {
    margin: 5px 0 11px;
    color: #152a22;
    font-size: 18px;
}

.bre-document-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 13px;
    color: #77877f;
    font-size: 11px;
}

.bre-document-meta strong {
    margin-left: auto;
    color: #294b3e;
}

.bre-document-body > p {
    margin: 13px 0 0;
    color: #697b73;
    font-size: 12px;
    line-height: 1.55;
}

.bre-document-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 17px;
}

.bre-download {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #cfe1d8;
    border-radius: 10px;
    color: #185e42!important;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    transition: background .18s ease,border-color .18s ease;
}

.bre-download:hover {
    border-color: #9fcbb8;
    background: #eff8f4;
}

.bre-download.pdf {
    color: #8e3731!important;
    border-color: #ead4d1;
}

.bre-download.pdf:hover {
    border-color: #dcb3ae;
    background: #fff5f4;
}

.bre-download small {
    color: #8a9992;
    font-size: 9px;
    font-weight: 600;
}

@media (max-width: 900px) {
    html.bre-portal-active,
    body.bre-portal-active,
    body.bre-menu-visible { height: 100%; }

    body.bre-portal-mobile { overflow: hidden !important; }
    body.bre-portal-mobile > .website-wrapper,
    body.bre-portal-mobile > .wd-toolbar,
    body.bre-portal-mobile > footer { display: none !important; }

    body.bre-portal-active .bre-app {
        position: fixed;
        z-index: 99990;
        inset: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        overflow: hidden;
    }

    body.bre-portal-active .bre-main {
        height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;
    }

    body.bre-portal-active .bre-sidebar {
        top: 0;
        bottom: 0;
        left: min(-88vw, -310px);
        width: min(86vw, 320px);
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        padding: max(22px, env(safe-area-inset-top)) 18px max(22px, calc(env(safe-area-inset-bottom) + 16px));
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        box-shadow: 24px 0 70px rgba(3, 24, 17, .3);
    }

    body.bre-portal-active .menu-open .bre-sidebar { left: 0; }
    body.bre-portal-active .bre-sidebar-head { display: flex; align-items: center; justify-content: space-between; }
    body.bre-portal-active .bre-sidebar .bre-brand { padding: 0 12px 20px; }
    body.bre-portal-active .bre-menu-close {
        display: grid;
        width: 38px;
        height: 38px;
        margin: -4px 2px 16px 10px;
        place-items: center;
        border: 1px solid rgba(255,255,255,.13);
        border-radius: 50%;
        background: rgba(255,255,255,.07);
        color: #fff;
        font-size: 23px;
        line-height: 1;
    }
    body.bre-portal-active .bre-sidebar nav { gap: 3px; }
    body.bre-portal-active .bre-sidebar nav a { min-height: 43px; padding: 10px 13px; font-size: 13px; }
    body.bre-portal-active .bre-logout {
        margin-top: 14px;
        border-top: 1px solid rgba(255,255,255,.1);
        border-radius: 0;
        padding: 18px 13px 8px;
    }

    body.bre-portal-active .bre-overlay {
        background: rgba(5, 24, 17, .52);
        backdrop-filter: blur(3px);
    }

    body.bre-portal-active .bre-main > header {
        height: 78px;
        padding-top: env(safe-area-inset-top);
    }

    .bre-async-loader {
        top: 78px;
        padding-top: 55px;
    }
}

@media (min-width: 901px) {
    .bre-menu-close { display: none; }
    .bre-sidebar-head { display: block; }
}

@media (max-width: 760px) {
    .bre-document-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .bre-document-card { grid-template-columns: 1fr; }
    .bre-document-actions { grid-template-columns: 1fr; }
    .bre-document-meta strong { width: 100%; margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
    body.bre-portal-active .bre-content,
    body.bre-portal-active .bre-card,
    body.bre-portal-active .bre-sidebar nav a {
        transition: none !important;
    }
}

body.bre-portal-active .bre-menu-close{display:none!important}

/* Garantías, devoluciones y RMA */
.bre-back-link{display:inline-block;margin-bottom:18px;color:#19724b!important;font-size:12px;font-weight:750;text-decoration:none}.bre-case-form,.bre-case-reply{margin-top:20px}.bre-case-form label,.bre-case-reply label{display:block;margin-top:15px;color:#344a41;font-size:12px;font-weight:700}.bre-case-form input,.bre-case-form select,.bre-case-form textarea,.bre-case-reply input,.bre-case-reply textarea{display:block;width:100%;margin-top:7px;padding:12px 13px;border:1px solid #d5e1dc;border-radius:10px;background:#fbfdfc;color:#173027}.bre-case-form input:focus,.bre-case-form select:focus,.bre-case-form textarea:focus,.bre-case-reply textarea:focus{outline:0;border-color:#55a984;box-shadow:0 0 0 3px rgba(25,114,75,.09)}.bre-check-line{display:flex!important;align-items:center;gap:8px}.bre-check-line input{width:auto!important;margin:0!important;accent-color:#19724b}.bre-case-status{display:inline-flex;align-items:center;padding:8px 12px;border:1px solid #cfe2d9;border-radius:99px;background:#edf7f2;color:#1d6648;font-size:10px;font-weight:850}.bre-case-list{display:grid;gap:11px;margin-top:20px}.bre-case-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:19px 21px;border:1px solid #e0e9e5;border-radius:14px;background:#fff;color:inherit!important;text-decoration:none;box-shadow:0 7px 22px rgba(25,61,47,.03);transition:.18s}.bre-case-row:hover{transform:translateY(-1px);border-color:#c9ddd3;box-shadow:0 12px 28px rgba(25,61,47,.06)}.bre-case-row h3{margin:5px 0;color:#172d24;font-size:16px}.bre-case-row small{color:#7b8c85}.bre-case-context{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.bre-case-context span{padding:7px 10px;border:1px solid #dce8e2;border-radius:8px;background:#fff;color:#53675f;font-size:11px}.bre-case-thread{margin-top:22px}.bre-case-thread>h3{margin:0 0 13px}.bre-case-message{max-width:82%;margin:0 0 13px;padding:17px 19px;border:1px solid #dfe9e4;border-radius:16px 16px 16px 5px;background:#fff;box-shadow:0 6px 20px rgba(25,61,47,.03)}.bre-case-message.admin{margin-left:auto;border-color:#cce3d8;border-radius:16px 16px 5px 16px;background:#eff8f4}.bre-case-message header{display:flex;justify-content:space-between;gap:14px;color:#61746c;font-size:10px}.bre-case-message header strong{color:#1f5941}.bre-case-message p{margin:10px 0 0;color:#354a41;font-size:13px;line-height:1.6}.bre-case-files{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.bre-case-files a{padding:8px 10px;border:1px solid #cfe1d8;border-radius:8px;background:#fff;color:#176443!important;font-size:10px;font-weight:750;text-decoration:none}.bre-case-files small{color:#84948d}@media(max-width:480px){.bre-case-row{align-items:flex-start;flex-direction:column}.bre-case-message{max-width:94%}}
