:root {
    --pretel-orange: #f58220;
    --pretel-green: #5f9637;
    --pretel-ink: #1d2528;
    --pretel-muted: #637174;
    --pretel-line: #dfe6e4;
    --pretel-soft: #f4f7f5;
    --pretel-white: #ffffff;
    --pretel-dark: #172022;

    --bg-color: #ffffff;
    --text-color: #1d2528;
    --card-bg: #ffffff;
    --footer-bg: #172022;
}

body.dark-mode {
    --bg-color: #0f1415;
    --text-color: #f7faf9;
    --card-bg: #182123;
    --footer-bg: #070909;
    --pretel-soft: #131b1d;
    --pretel-line: #3a4648;
    --pretel-muted: #c1ccce;
    --pretel-ink: #f7faf9;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 104px;
    overflow-x: hidden;
}

body {
    min-width: 320px;
    overflow-x: hidden;
    background: var(--bg-color);
    color: var(--text-color);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    transition: background-color .25s ease, color .25s ease;
}

img {
    max-width: 100%;
}

a {
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.nav-spacer {
    height: 84px;
}

.pretel-navbar {
    min-height: 84px;
    background: rgba(255, 255, 255, .94) !important;
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(223, 230, 228, .74);
}

.navbar-brand img {
    width: auto;
    max-width: 170px;
    object-fit: contain;
}

.navbar-toggler {
    width: 48px;
    height: 48px;
    padding: 0;
    border: 2px solid rgba(29, 37, 40, .62);
    border-radius: 8px;
    box-shadow: none;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 .18rem rgba(95, 150, 55, .24);
}

.navbar-nav {
    align-items: center;
    gap: 2px;
}

.nav-link {
    position: relative;
    margin: 0 4px;
    padding: .62rem .72rem !important;
    color: var(--pretel-ink) !important;
    border-radius: 7px;
    font-size: .96rem;
    font-weight: 750;
    line-height: 1.2;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: .5rem;
    right: .5rem;
    bottom: .2rem;
    height: 2px;
    background: var(--pretel-orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
}

.nav-link:hover {
    color: var(--pretel-orange) !important;
    background: rgba(245, 130, 32, .08);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.dropdown-mega {
    position: relative;
}

.mega-menu {
    left: 50%;
    max-height: calc(100vh - 118px);
    overflow-y: auto;
    padding: 20px;
    top: calc(100% + 14px);
    width: min(760px, calc(100vw - 32px));
    border: 1px solid var(--pretel-line);
    border-radius: 8px;
    background: var(--card-bg);
    transform: translateX(-50%);
}

.dropdown-mega .mega-menu[data-bs-popper] {
    left: 50%;
    margin-top: 0;
    top: calc(100% + 14px);
}

.mega-menu::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    width: 16px;
    height: 16px;
    border-left: 1px solid var(--pretel-line);
    border-top: 1px solid var(--pretel-line);
    background: var(--card-bg);
    transform: translateX(-50%) rotate(45deg);
}

.mega-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
    padding: 0 4px 16px;
    border-bottom: 1px solid var(--pretel-line);
}

.mega-menu-head strong {
    display: block;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 900;
}

.mega-menu-head span {
    display: block;
    margin-top: 3px;
    color: var(--pretel-muted);
    font-size: .88rem;
}

.mega-head-link {
    flex: 0 0 auto;
    padding: 8px 12px;
    color: var(--pretel-white);
    background: var(--pretel-green);
    border-radius: 7px;
    font-size: .85rem;
    font-weight: 800;
    text-decoration: none;
}

.mega-head-link:hover {
    color: var(--pretel-white);
    background: var(--pretel-dark);
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
}

.mega-menu-grid > div {
    min-width: 0;
    padding: 0 14px;
}

.mega-menu-grid > div + div {
    border-left: 1px solid var(--pretel-line);
}

.mega-title {
    display: block;
    margin-bottom: 10px;
    color: var(--pretel-orange);
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.mega-link {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 38px;
    padding: 8px 10px;
    color: var(--text-color);
    border-radius: 7px;
    font-size: .93rem;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    word-break: break-word;
}

.mega-link i {
    flex: 0 0 auto;
    color: var(--pretel-green);
}

.mega-link:hover {
    color: var(--pretel-dark);
    background: rgba(245, 130, 32, .14);
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.nav-tools {
    align-items: center;
    margin-left: auto;
    min-width: 0;
}

.nav-search .form-control {
    width: clamp(180px, 16vw, 245px);
    min-height: 42px;
    border-color: var(--pretel-line);
    color: var(--text-color);
    background: var(--card-bg);
    font-size: .95rem;
}

.icon-btn {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    padding: 0;
    flex: 0 0 42px;
}

.lang-toggle {
    min-width: 52px;
    height: 42px;
    padding: 0 10px;
    font-weight: 800;
}

.nav-login-btn,
.nav-user-menu > .btn {
    min-height: 42px;
    padding-inline: 16px;
    white-space: nowrap;
}

body.dark-mode .pretel-navbar {
    background: rgba(24, 33, 35, .95) !important;
    border-bottom-color: rgba(58, 70, 72, .88);
}

body.dark-mode .navbar-toggler {
    border-color: rgba(247, 250, 249, .62);
}

body.dark-mode .navbar-toggler-icon {
    filter: invert(1) grayscale(1);
}

body.dark-mode .dropdown-menu {
    color: var(--text-color);
    background: var(--card-bg);
    border-color: var(--pretel-line);
}

body.dark-mode .dropdown-item {
    color: var(--text-color);
}

body.dark-mode .dropdown-item:hover,
body.dark-mode .dropdown-item:focus {
    color: var(--pretel-white);
    background: var(--pretel-green);
}

.btn {
    border-radius: 7px;
    font-weight: 700;
}

.btn-warning {
    color: #20150b;
    background: var(--pretel-orange);
    border-color: var(--pretel-orange);
}

.btn-warning:hover {
    color: #1b1209;
    background: #dc6f13;
    border-color: #dc6f13;
}

.btn-success {
    background: var(--pretel-green);
    border-color: var(--pretel-green);
}

.btn-success:hover {
    background: #4d7d2d;
    border-color: #4d7d2d;
}

.hero-pretel {
    position: relative;
    min-height: calc(100vh - 84px);
    overflow: hidden;
    color: var(--pretel-white);
    background:
        linear-gradient(90deg, rgba(16, 22, 24, .98) 0%, rgba(16, 22, 24, .92) 43%, rgba(16, 22, 24, .38) 100%),
        radial-gradient(circle at 80% 35%, rgba(245, 130, 32, .35), transparent 32%),
        linear-gradient(135deg, #182123, #53605a 56%, #d8ded8);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.min-vh-75 {
    min-height: calc(100vh - 84px);
}

.hero-pretel h1 {
    max-width: 780px;
    margin-bottom: 22px;
    font-size: clamp(2.6rem, 6vw, 5.8rem);
    font-weight: 800;
    line-height: .96;
    letter-spacing: 0;
}

.hero-pretel p {
    max-width: 650px;
    margin-bottom: 30px;
    color: #dce4e2;
    font-size: clamp(1.08rem, 1.7vw, 1.35rem);
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-media {
    position: absolute;
    inset: 0;
}

.hero-grid {
    position: absolute;
    top: 9%;
    right: 4%;
    width: min(52vw, 720px);
    height: 84%;
    background:
        linear-gradient(110deg, transparent 0 24%, rgba(255, 255, 255, .18) 25% 26%, transparent 27% 100%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .08) 0 2px, transparent 2px 42px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 42px);
    clip-path: polygon(16% 0, 100% 8%, 88% 100%, 0 90%);
    opacity: .9;
}

.hero-machine {
    position: absolute;
    right: clamp(30px, 8vw, 130px);
    bottom: clamp(50px, 12vh, 140px);
    width: min(34vw, 440px);
    min-width: 260px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    box-shadow: 0 28px 90px rgba(0, 0, 0, .32);
}

.hero-machine span {
    display: block;
    height: 46px;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 6px;
    background:
        radial-gradient(circle at 20px 50%, var(--pretel-green) 0 5px, transparent 6px),
        linear-gradient(90deg, rgba(255, 255, 255, .2), rgba(245, 130, 32, .14));
}

.hero-machine span:last-child {
    margin-bottom: 0;
}

.section-kicker {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--pretel-orange);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.trust-strip {
    position: relative;
    z-index: 3;
    margin-top: -34px;
}

.b2b-cta-band + .trust-strip {
    margin-top: 0;
}

.trust-item {
    min-height: 108px;
    padding: 24px;
    background: var(--card-bg);
    border: 1px solid var(--pretel-line);
}

.trust-item strong {
    display: block;
    margin-bottom: 4px;
    color: var(--pretel-ink);
    font-size: 1.5rem;
}

.trust-item span {
    color: var(--pretel-muted);
}

.section-padding,
.about-section {
    padding: 92px 0;
}

.bg-soft {
    background: var(--pretel-soft);
}

.section-heading {
    max-width: 780px;
    margin: 0 auto;
}

.section-title {
    color: var(--text-color);
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 800;
    line-height: 1.05;
}

.section-heading p,
.about-card p,
.value-card p,
.product-card p,
.testimonial-card p,
.contact-panel p {
    color: var(--pretel-muted);
    line-height: 1.65;
}

.brand-showcase {
    display: grid;
    min-height: 420px;
    place-items: center;
    padding: 36px;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(245, 130, 32, .12), rgba(95, 150, 55, .1)),
        var(--card-bg);
    border: 1px solid var(--pretel-line);
}

.brand-showcase img {
    max-height: 300px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .16);
}

.about-card,
.value-card,
.testimonial-card,
.contact-panel {
    background: var(--card-bg);
    border: 1px solid var(--pretel-line);
    border-radius: 8px;
    box-shadow: 0 16px 45px rgba(18, 28, 30, .08);
}

.about-card {
    padding: clamp(28px, 5vw, 48px);
}

.about-card h2 {
    margin-bottom: 18px;
    color: var(--text-color);
    font-size: clamp(2rem, 3.8vw, 3.3rem);
    font-weight: 800;
    line-height: 1.04;
}

.value-card {
    padding: 28px;
}

.value-card i {
    display: inline-grid;
    width: 46px;
    height: 46px;
    place-items: center;
    margin-bottom: 24px;
    color: var(--pretel-orange);
    background: rgba(245, 130, 32, .12);
    border-radius: 7px;
    font-size: 1.35rem;
}

.value-card h4,
.testimonial-card h5 {
    color: var(--text-color);
    font-weight: 800;
}

.category-card,
.product-card {
    overflow: hidden;
    border: 1px solid var(--pretel-line);
    border-radius: 8px;
    background: var(--card-bg);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.product-card {
    min-height: 470px;
    position: relative;
}

.category-card:hover,
.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 130, 32, .55);
    box-shadow: 0 18px 46px rgba(18, 28, 30, .12);
}

.category-card img,
.product-card img {
    height: 180px;
    background: #eef2f0;
}

.category-card img {
    object-fit: cover;
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    padding: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f8f6 100%);
}

.category-card img[src$="logo.jpeg"],
.product-card img[src$="logo.jpeg"],
.offer-media img[src$="logo.jpeg"] {
    object-fit: contain;
    padding: 18px;
    background: #fff;
}

.category-card h5,
.product-card h5 {
    color: var(--text-color);
    font-weight: 800;
}

.product-card h5 {
    min-height: 52px;
    display: -webkit-box;
    overflow: hidden;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-card p {
    min-height: 78px;
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 18px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.category-card span {
    color: var(--pretel-orange);
    font-weight: 700;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 54px;
}

.product-footer strong {
    color: var(--pretel-green);
    font-size: 1.25rem;
}

.price-consult {
    color: var(--pretel-orange);
    font-size: 1rem;
    font-weight: 900;
}

.filter-panel {
    padding: 22px;
    background: var(--card-bg);
    border: 1px solid var(--pretel-line);
    border-radius: 8px;
    box-shadow: 0 14px 38px rgba(18, 28, 30, .07);
}

.filter-panel .form-label {
    color: var(--text-color);
    font-size: .86rem;
    font-weight: 800;
}

.filter-count {
    color: var(--pretel-muted);
    font-weight: 800;
}

.quick-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-filter {
    padding: 8px 12px;
    color: var(--pretel-ink);
    background: var(--card-bg);
    border: 1px solid var(--pretel-line);
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 800;
    text-decoration: none;
}

.quick-filter:hover,
.quick-filter.active {
    color: #20150b;
    background: var(--pretel-orange);
    border-color: var(--pretel-orange);
}

.product-card-tools {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: flex;
    gap: 7px;
}

.product-tool-btn {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: var(--pretel-ink);
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--pretel-line);
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(18, 28, 30, .12);
}

.product-tool-btn:hover,
.product-tool-btn.active {
    color: var(--pretel-white);
    background: var(--pretel-green);
    border-color: var(--pretel-green);
}

.breadcrumb-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--pretel-muted);
    font-size: .92rem;
    font-weight: 800;
}

.breadcrumb-line a {
    color: var(--pretel-green);
    text-decoration: none;
}

.breadcrumb-line a::after {
    content: "/";
    margin-left: 8px;
    color: var(--pretel-muted);
}

.quick-product-grid {
    display: grid;
    grid-template-columns: minmax(220px, 330px) 1fr;
    gap: 24px;
}

.quick-product-media {
    display: grid;
    min-height: 280px;
    place-items: center;
    background: var(--pretel-soft);
    border: 1px solid var(--pretel-line);
    border-radius: 8px;
}

.quick-product-media img {
    max-width: 100%;
    max-height: 260px;
    object-fit: contain;
    padding: 16px;
}

.quick-specs {
    border: 1px solid var(--pretel-line);
    border-radius: 8px;
    overflow: hidden;
}

.quick-specs p {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
    padding: 10px 12px;
    border-bottom: 1px solid var(--pretel-line);
}

.quick-specs p:last-child {
    border-bottom: 0;
}

.quick-specs span {
    color: var(--pretel-muted);
    font-weight: 800;
}

.mini-cart-widget {
    position: fixed;
    right: clamp(16px, 2.2vw, 30px);
    bottom: clamp(88px, 10vh, 98px);
    z-index: 1030;
    display: none;
    width: clamp(52px, 4.2vw, 58px);
    height: clamp(52px, 4.2vw, 58px);
    place-items: center;
    color: var(--pretel-white);
    background: var(--pretel-green);
    border-radius: 50%;
    box-shadow: 0 12px 28px rgba(0,0,0,.22);
    text-decoration: none;
}

.mini-cart-widget.show {
    display: inline-grid;
}

.mini-cart-widget span {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    color: #20150b;
    background: var(--pretel-orange);
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 900;
    line-height: 22px;
    text-align: center;
}

.compare-drawer {
    position: fixed;
    left: 50%;
    bottom: 22px;
    z-index: 1040;
    display: none;
    align-items: center;
    gap: 18px;
    padding: 12px 14px;
    background: var(--card-bg);
    border: 1px solid var(--pretel-line);
    border-radius: 8px;
    box-shadow: 0 18px 46px rgba(18, 28, 30, .22);
    transform: translateX(-50%);
}

.compare-drawer.show {
    display: flex;
}

.compare-drawer span {
    display: block;
    color: var(--pretel-muted);
    font-size: .82rem;
}

.compare-actions {
    display: flex;
    gap: 8px;
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 48px;
    z-index: 1050;
    display: none;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--pretel-line);
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(18, 28, 30, .16);
}

.search-suggestions.show {
    display: block;
}

.search-suggestions a {
    display: block;
    padding: 10px 12px;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid var(--pretel-line);
}

.search-suggestions a:last-child {
    border-bottom: 0;
}

.search-suggestions a:hover {
    background: var(--pretel-soft);
}

.search-suggestions span,
.search-suggestions small {
    display: block;
}

.search-suggestions small {
    color: var(--pretel-muted);
    font-size: .78rem;
}

.catalog-carousel-wrap {
    position: relative;
    padding: 0 0 42px;
}

.catalog-swiper {
    overflow: hidden;
    padding: 6px 2px 12px;
}

.catalog-swiper .swiper-slide {
    height: auto;
    display: flex;
}

.catalog-swiper .product-card,
.catalog-swiper .offer-card {
    width: 100%;
}

.catalog-carousel-wrap .swiper-pagination {
    bottom: 0 !important;
}

.catalog-carousel-wrap .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--pretel-muted);
    opacity: .45;
}

.catalog-carousel-wrap .swiper-pagination-bullet-active {
    width: 26px;
    border-radius: 999px;
    background: var(--pretel-orange);
    opacity: 1;
}

.offers-section {
    color: var(--pretel-white);
    background:
        radial-gradient(circle at 15% 10%, rgba(245, 130, 32, .24), transparent 30%),
        linear-gradient(135deg, #172022, #263234);
}

.offers-section .section-title,
.offers-section .section-heading p {
    color: var(--pretel-white);
}

.offer-card {
    overflow: hidden;
    min-height: 500px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    box-shadow: 0 18px 55px rgba(0, 0, 0, .18);
    transition: transform .25s ease, border-color .25s ease;
}

.offer-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 130, 32, .7);
}

.offer-media {
    position: relative;
    height: 220px;
    background: linear-gradient(180deg, #ffffff 0%, #eef2f0 100%);
}

.offer-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
}

.offer-media span {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 7px 10px;
    color: #20150b;
    background: var(--pretel-orange);
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 900;
}

.offer-body {
    padding: 24px;
}

.offer-body h3 {
    color: var(--pretel-white);
    font-size: 1.35rem;
    font-weight: 900;
    min-height: 68px;
    display: -webkit-box;
    overflow: hidden;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.offer-body p {
    color: #d6dfdd;
    line-height: 1.55;
    min-height: 74px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.offer-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 54px;
    margin-top: 18px;
}

.offer-price-stack {
    display: grid;
    gap: 2px;
}

.offer-old-price {
    color: rgba(255, 255, 255, .66);
    font-size: .92rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: line-through;
}

.offer-footer strong,
.offer-sale-price {
    color: var(--pretel-orange);
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1.12;
}

.b2b-cta-band {
    border-top: 1px solid var(--pretel-line);
    border-bottom: 1px solid var(--pretel-line);
    background: var(--pretel-dark);
    color: var(--pretel-white);
}

.b2b-cta-band p {
    color: #d6dfdd;
}

.availability-note,
.document-panel {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid var(--pretel-line);
    border-radius: 8px;
    background: var(--pretel-soft);
}

.availability-note strong,
.document-panel h2 {
    color: var(--text-color);
    font-weight: 800;
}

.document-panel p {
    margin-bottom: 14px;
}

.bg-dark-panel {
    color: var(--pretel-white);
    background:
        radial-gradient(circle at 20% 10%, rgba(245, 130, 32, .18), transparent 32%),
        linear-gradient(135deg, #161f21, #253134);
}

.brand-logo-box {
    display: grid;
    min-height: 130px;
    place-items: center;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
}

.marca-logo {
    max-height: 82px;
    object-fit: contain;
    filter: grayscale(100%) brightness(1.12);
    transition: filter .25s ease, transform .25s ease;
}

.brand-logo-box:hover .marca-logo {
    filter: none;
    transform: scale(1.05);
}

.testimonial-card {
    padding: 28px;
}

.contact-panel {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(320px, .8fr);
    gap: 36px;
    align-items: start;
    padding: clamp(28px, 5vw, 54px);
}

.contact-panel h2 {
    color: var(--text-color);
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 800;
    line-height: 1.05;
}

.contact-form {
    display: grid;
    gap: 14px;
    max-width: none;
    margin: 0;
}

.form-control {
    min-height: 48px;
    padding: 12px 14px;
    border-color: var(--pretel-line);
    border-radius: 7px;
    background: var(--pretel-white);
}

textarea.form-control {
    resize: vertical;
}

.footer-pretel {
    padding: 64px 0 22px;
    color: var(--pretel-white);
    background: var(--footer-bg);
}

.footer-pretel h4 {
    margin-bottom: 18px;
    color: var(--pretel-orange);
    font-weight: 800;
}

.footer-pretel p {
    color: #cfd8d6;
}

.footer-pretel hr {
    margin: 34px 0 22px;
    border-color: rgba(255, 255, 255, .18);
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.social-icons a {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--pretel-white);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 7px;
    font-size: 1.25rem;
    text-decoration: none;
}

.social-icons a:hover {
    color: var(--pretel-dark);
    background: var(--pretel-orange);
}

.whatsapp-btn {
    position: fixed;
    right: clamp(16px, 2.2vw, 30px);
    bottom: 24px;
    z-index: 999;
    display: grid;
    width: clamp(54px, 4.6vw, 60px);
    height: clamp(54px, 4.6vw, 60px);
    place-items: center;
    color: var(--pretel-white);
    background: #25d366;
    border-radius: 50%;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .26);
    font-size: 1.9rem;
    text-decoration: none;
}

.whatsapp-btn:hover {
    color: var(--pretel-white);
    transform: translateY(-3px);
}

.dashboard-card {
    padding: 30px;
    text-align: center;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .08);
}

.table {
    background: var(--card-bg);
}

.dark-mode .pretel-navbar {
    background: rgba(14, 20, 22, .96) !important;
    border-bottom: 1px solid var(--pretel-line);
}

.dark-mode .nav-link {
    color: #f4f6f6 !important;
}

.dark-mode .dropdown-menu,
.dark-mode .mega-menu,
.dark-mode .table,
.dark-mode .list-group-item {
    color: var(--text-color);
    background: var(--card-bg);
    border-color: var(--pretel-line);
}

.dark-mode .dropdown-item {
    color: var(--text-color);
}

.dark-mode .dropdown-item:hover,
.dark-mode .dropdown-item.active {
    color: #20150b;
    background: var(--pretel-orange);
}

.dark-mode .trust-item strong,
.dark-mode .value-card h4,
.dark-mode .category-card h5,
.dark-mode .product-card h5,
.dark-mode .testimonial-card h5 {
    color: #f5f7f7;
}

.dark-mode .form-control {
    color: #f5f7f7;
    background: #101719;
    border-color: var(--pretel-line);
}

.dark-mode .form-select,
.dark-mode textarea.form-control {
    color: #f5f7f7;
    background-color: #101719;
    border-color: var(--pretel-line);
}

.dark-mode .filter-panel,
.dark-mode .quick-product-modal,
.dark-mode .search-suggestions,
.dark-mode .compare-drawer,
.dark-mode .profile-summary-card {
    background: var(--card-bg);
    border-color: var(--pretel-line);
}

.dark-mode .product-tool-btn {
    color: var(--text-color);
    background: rgba(16, 23, 25, .92);
}

.dark-mode .table-light {
    --bs-table-bg: #202b2d;
    --bs-table-color: #f7faf9;
}

.dark-mode .bg-light {
    background-color: #202b2d !important;
}

.dark-mode .main-product-image,
.dark-mode .thumb-producto {
    background: #101719;
}

.dark-mode .stock-pill.available {
    color: #dff4d7;
    background: rgba(95, 150, 55, .28);
}

.dark-mode .stock-pill.unavailable {
    color: #ffd8d8;
    background: rgba(220, 53, 69, .24);
}

.thumb-producto {
    transition: all .25s ease;
    border: 2px solid transparent;
    background: #fff;
}

.thumb-producto:hover {
    transform: scale(1.04);
    border-color: #198754;
}

.active-thumb {
    border-color: #198754 !important;
    box-shadow: 0 0 0 .15rem rgba(25, 135, 84, .25);
}

@media (max-width: 991px) {
    .pretel-navbar .container {
        align-items: center;
        gap: 10px;
        padding-inline: 18px;
    }

    .navbar-collapse {
        flex-basis: 100%;
        margin-top: 10px;
        padding: 16px;
        border: 1px solid var(--pretel-line);
        border-radius: 8px;
        background: var(--card-bg);
        box-shadow: 0 18px 45px rgba(18, 28, 30, .12);
    }

    .navbar-nav {
        align-items: stretch;
        gap: 4px;
        width: 100%;
    }

    .nav-link {
        margin: 0;
        padding: .78rem .85rem !important;
        font-size: 1rem;
    }

    .nav-link::after {
        left: .85rem;
        right: auto;
        bottom: .45rem;
        width: 34px;
    }

    .nav-tools {
        width: 100%;
        margin-left: 0;
        margin-top: 12px;
        padding-top: 14px;
        border-top: 1px solid var(--pretel-line);
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 10px !important;
    }

    .nav-tools .nav-login-btn,
    .nav-tools .nav-user-menu,
    .nav-tools .nav-user-menu > .btn {
        width: 100%;
    }

    .nav-tools .nav-user-menu > .btn {
        text-align: left;
    }

    .nav-tools .nav-login-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 46px;
    }

    .hero-pretel {
        min-height: auto;
    }

    .min-vh-75 {
        min-height: 680px;
        padding: 58px 0;
    }

    .hero-grid {
        width: 82vw;
        opacity: .45;
    }

    .hero-machine {
        right: 22px;
        bottom: 34px;
        max-width: calc(100vw - 44px);
        opacity: .58;
    }

    .contact-panel {
        grid-template-columns: 1fr;
    }

    .mega-menu {
        left: auto;
        max-height: 62vh;
        overflow-y: auto;
        position: static;
        top: auto;
        width: 100%;
        transform: none;
    }

    .mega-menu::before {
        display: none;
    }

    .mega-menu-head {
        align-items: flex-start;
        display: grid;
        gap: 12px;
    }

    .mega-head-link {
        justify-self: start;
    }

    .mega-menu-grid {
        grid-template-columns: 1fr;
    }

    .mega-menu-grid > div {
        padding: 12px 4px;
    }

    .mega-menu-grid > div + div {
        border-left: 0;
        border-top: 1px solid var(--pretel-line);
    }

    .nav-search {
        width: 100%;
        margin: 0 0 4px;
        order: -1;
    }

    .nav-search .form-control {
        width: 100%;
    }

    body.dark-mode .navbar-collapse {
        box-shadow: 0 18px 45px rgba(0, 0, 0, .34);
    }
}

@media (max-width: 768px) {
    .nav-spacer {
        height: 76px;
    }

    .pretel-navbar {
        min-height: 76px;
    }

    .navbar-brand img {
        max-width: 118px;
        height: 42px;
    }

    .navbar-toggler {
        width: 46px;
        height: 46px;
    }

    .navbar-collapse {
        max-height: calc(100vh - 92px);
        overflow-y: auto;
        padding: 14px;
    }

    .nav-search {
        width: 100%;
        margin: 0 0 4px;
        order: -1;
    }

    .nav-search .form-control {
        display: block;
        width: 100%;
        min-height: 44px;
    }

    .icon-btn,
    .lang-toggle {
        height: 44px;
    }

    .icon-btn {
        width: 44px;
        flex-basis: 44px;
    }

    .lang-toggle {
        min-width: 58px;
    }

    .nav-tools {
        gap: 8px !important;
    }

    .nav-tools .dropdown-menu {
        max-width: calc(100vw - 56px);
    }

    .hero-pretel h1 {
        font-size: clamp(2.35rem, 12vw, 3.8rem);
    }

    .hero-actions .btn {
        width: 100%;
    }

    .trust-strip {
        margin-top: 0;
    }

    .section-padding,
    .about-section {
        padding: 68px 0;
    }

    .brand-showcase {
        min-height: 280px;
    }

    .product-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .product-footer .btn {
        width: 100%;
    }

    .catalog-carousel-wrap {
        padding: 0 0 42px;
    }

    .quick-product-grid {
        grid-template-columns: 1fr;
    }

    .compare-drawer {
        left: 12px;
        right: 12px;
        justify-content: space-between;
        transform: none;
    }

    .mini-cart-widget {
        right: 16px;
        bottom: 88px;
        width: 54px;
        height: 54px;
    }
}

@media (max-width: 420px) {
    .icon-btn {
        width: 38px;
        height: 38px;
    }

    .contact-panel,
    .about-card,
    .value-card,
    .testimonial-card {
        padding: 22px;
    }

    .hero-machine {
        min-width: 220px;
    }
}

/* =====================================
PAGINAS INTERNAS
===================================== */

.page-hero {
    color: var(--pretel-white);
    background:
        radial-gradient(circle at 80% 20%, rgba(245, 130, 32, .28), transparent 30%),
        linear-gradient(135deg, #172022, #2b383a);
}

.compact-hero {
    padding: 74px 0 64px;
}

.page-hero h1 {
    max-width: 820px;
    margin-bottom: 14px;
    font-size: clamp(2.3rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1;
}

.page-hero p {
    max-width: 690px;
    margin-bottom: 0;
    color: #d6dfdd;
    font-size: 1.12rem;
    line-height: 1.6;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--pretel-orange);
    font-weight: 800;
    text-decoration: none;
}

.back-link:hover {
    color: #ffad68;
}

.empty-state,
.confirmation-card,
.checkout-panel,
.cart-panel,
.summary-card,
.product-gallery,
.product-info-panel,
.contact-info-card,
.contact-form-card {
    background: var(--card-bg);
    border: 1px solid var(--pretel-line);
    border-radius: 8px;
    box-shadow: 0 16px 45px rgba(18, 28, 30, .08);
}

.empty-state {
    display: grid;
    justify-items: center;
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(34px, 6vw, 64px);
    text-align: center;
}

.empty-state i {
    margin-bottom: 18px;
    color: var(--pretel-orange);
    font-size: 4rem;
}

.empty-state h2 {
    color: var(--text-color);
    font-weight: 800;
}

.empty-state p {
    max-width: 560px;
    color: var(--pretel-muted);
}

.empty-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
}

.product-detail-page {
    background: var(--pretel-soft);
}

.product-gallery {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
}

.thumb-list {
    display: grid;
    align-content: start;
    gap: 12px;
}

.thumb-producto {
    width: 76px;
    height: 76px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 7px;
    background: #fff;
}

.thumb-producto:hover {
    transform: scale(1.04);
    border-color: var(--pretel-green);
}

.active-thumb {
    border-color: var(--pretel-green) !important;
    box-shadow: 0 0 0 .15rem rgba(95, 150, 55, .24);
}

.main-product-image {
    display: grid;
    min-height: 520px;
    place-items: center;
    border-radius: 8px;
    background: #f7faf8;
}

.main-product-image img {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
}

.product-info-panel {
    padding: clamp(26px, 4vw, 42px);
}

.product-info-panel h1 {
    margin-bottom: 14px;
    color: var(--text-color);
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 800;
    line-height: 1.05;
}

.product-info-panel p {
    color: var(--pretel-muted);
    line-height: 1.65;
}

.detail-price {
    margin: 22px 0;
    color: var(--pretel-green);
    font-size: 2rem;
    font-weight: 900;
}

.stock-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 999px;
    font-weight: 800;
}

.stock-pill.available {
    color: #246119;
    background: rgba(95, 150, 55, .16);
}

.stock-pill.unavailable {
    color: #9a2424;
    background: rgba(220, 53, 69, .14);
}

.product-card-actions {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.product-card-actions .btn-success {
    display: inline-grid;
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
}

.pretel-action-toast {
    position: fixed;
    right: 24px;
    bottom: 104px;
    z-index: 1090;
    max-width: min(360px, calc(100vw - 32px));
    padding: 12px 16px;
    color: #fff;
    background: var(--pretel-green);
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(18, 28, 30, .2);
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity .2s ease, transform .2s ease;
}

.pretel-action-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.pretel-action-toast.warning {
    color: #241800;
    background: var(--pretel-orange);
}

.favorite-product-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    height: 100%;
    padding: 14px;
    border: 1px solid var(--pretel-line);
    border-radius: 8px;
    background: var(--card-bg);
}

.favorite-product-card img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 8px;
    background: #f7faf8;
}

.favorite-product-card h4 {
    margin-bottom: 6px;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 800;
}

.favorite-product-card p {
    margin-bottom: 10px;
    color: var(--pretel-muted);
    font-size: .9rem;
    line-height: 1.45;
}

.favorite-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.spec-panel {
    margin: 28px 0;
    padding: 22px;
    border-radius: 8px;
    background: var(--pretel-soft);
}

.spec-panel h2,
.checkout-panel h2,
.summary-card h2,
.contact-info-card h2 {
    margin-bottom: 18px;
    color: var(--text-color);
    font-size: 1.35rem;
    font-weight: 800;
}

.spec-panel th {
    width: 38%;
    color: var(--text-color);
}

.cart-panel {
    overflow: hidden;
}

.cart-item {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) 180px 135px 48px;
    gap: 18px;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--pretel-line);
}

.cart-item:last-child {
    border-bottom: 0;
}

.cart-item img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border: 1px solid var(--pretel-line);
    border-radius: 8px;
}

.cart-item-main h2 {
    margin-bottom: 6px;
    color: var(--text-color);
    font-size: 1.05rem;
    font-weight: 800;
}

.cart-item-main span,
.cart-line-total span {
    display: block;
    color: var(--pretel-muted);
    font-size: .9rem;
}

.cart-item-main strong,
.cart-line-total strong {
    color: var(--pretel-green);
}

.cart-qty {
    display: grid;
    gap: 8px;
}

.cart-qty input {
    max-width: 110px;
}

.summary-card {
    top: 104px;
    padding: 28px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
    color: var(--pretel-muted);
}

.summary-row strong {
    color: var(--text-color);
}

.summary-row.total {
    align-items: center;
    margin-bottom: 0;
    color: var(--text-color);
    font-size: 1.15rem;
    font-weight: 800;
}

.summary-row.total strong {
    color: var(--pretel-green);
    font-size: 1.6rem;
}

.summary-note {
    margin-top: 22px;
    padding: 16px;
    color: var(--pretel-muted);
    background: var(--pretel-soft);
    border-radius: 8px;
    font-size: .94rem;
    line-height: 1.5;
}

.checkout-panel {
    padding: 28px;
}

.checkout-table {
    margin-bottom: 0;
}

.payment-card .bank-data {
    display: grid;
    gap: 10px;
}

.bank-data p,
.bank-summary p {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin: 0;
    padding: 12px 0;
    border-bottom: 1px solid var(--pretel-line);
}

.bank-data span,
.bank-summary span {
    color: var(--pretel-muted);
}

.bank-data strong,
.bank-summary strong {
    color: var(--text-color);
    text-align: right;
}

.contact-info-card,
.contact-form-card {
    height: 100%;
    padding: clamp(26px, 4vw, 40px);
}

.contact-info-card p {
    color: var(--pretel-muted);
    line-height: 1.6;
}

.contact-method {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid var(--pretel-line);
}

.contact-method i {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--pretel-orange);
    background: rgba(245, 130, 32, .12);
    border-radius: 7px;
}

.contact-method span {
    display: block;
    color: var(--pretel-muted);
    font-size: .9rem;
}

.contact-method strong {
    color: var(--text-color);
}

.confirmation-card {
    max-width: 820px;
    margin: 0 auto;
    padding: clamp(34px, 6vw, 64px);
    text-align: center;
}

.confirmation-icon {
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    margin: 0 auto 24px;
    color: var(--pretel-white);
    background: var(--pretel-green);
    border-radius: 50%;
    font-size: 3rem;
}

.confirmation-card h1 {
    color: var(--text-color);
    font-weight: 900;
}

.confirmation-card > p,
.confirmation-note {
    color: var(--pretel-muted);
}

.folio-box {
    display: grid;
    gap: 4px;
    margin: 28px 0;
    padding: 22px;
    border-radius: 8px;
    background: var(--pretel-soft);
}

.folio-box span {
    color: var(--pretel-muted);
    font-weight: 700;
}

.folio-box strong {
    color: var(--pretel-green);
    font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.bank-summary {
    margin: 0 auto 24px;
    text-align: left;
}

@media (max-width: 991px) {
    .cart-item {
        grid-template-columns: 86px minmax(0, 1fr) 48px;
    }

    .cart-qty,
    .cart-line-total {
        grid-column: 2 / 4;
    }
}

@media (max-width: 768px) {
    .compact-hero {
        padding: 58px 0 48px;
    }

    .product-gallery {
        grid-template-columns: 1fr;
    }

    .thumb-list {
        display: flex;
        overflow-x: auto;
        order: 2;
        padding-bottom: 4px;
    }

    .main-product-image {
        min-height: 330px;
    }

    .cart-item {
        grid-template-columns: 80px minmax(0, 1fr);
    }

    .cart-item .icon-btn,
    .cart-qty,
    .cart-line-total {
        grid-column: 1 / 3;
    }

    .cart-qty {
        grid-template-columns: 100px 1fr;
    }

    .cart-line-total {
        display: flex;
        justify-content: space-between;
    }

    .bank-data p,
    .bank-summary p {
        display: grid;
        gap: 4px;
    }

    .bank-data strong,
    .bank-summary strong {
        text-align: left;
    }
}

/* =====================================
RELACIONES MARCA / CATEGORIA
===================================== */

.brand-logo-link {
    min-height: 158px;
    color: var(--pretel-white);
    text-decoration: none;
}

.brand-logo-link span {
    margin-top: 12px;
    color: #dfe8e6;
    font-size: .9rem;
    font-weight: 800;
    line-height: 1.25;
}

.brand-logo-link:hover {
    color: var(--pretel-white);
    border-color: rgba(245, 130, 32, .72);
    background: rgba(245, 130, 32, .14);
    transform: translateY(-4px);
}

.compare-table th {
    min-width: 160px;
}

.profile-summary-card {
    height: 100%;
    padding: 16px;
    background: var(--card-bg);
    border: 1px solid var(--pretel-line);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(18, 28, 30, .08);
}

.profile-summary-card span {
    display: block;
    color: var(--pretel-muted);
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.profile-summary-card strong {
    display: block;
    margin-top: 4px;
    color: var(--pretel-green);
    font-size: 1.8rem;
    line-height: 1;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.product-meta a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    color: var(--pretel-green);
    background: rgba(95, 150, 55, .12);
    border: 1px solid rgba(95, 150, 55, .22);
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
}

.product-meta a:hover {
    color: var(--pretel-white);
    background: var(--pretel-green);
    border-color: var(--pretel-green);
}

.detail-meta {
    margin-bottom: 18px;
}

.detail-meta a {
    font-size: .86rem;
}
/* PRETEL chatbot */
.pretel-chatbot-launcher {
    position: fixed;
    right: clamp(16px, 2.2vw, 30px);
    bottom: clamp(154px, 18vh, 168px);
    width: clamp(54px, 4.6vw, 64px);
    height: clamp(54px, 4.6vw, 64px);
    border: 0;
    border-radius: 50%;
    background: var(--pretel-green);
    color: var(--pretel-white);
    box-shadow: 0 16px 36px rgba(95, 150, 55, 0.34);
    z-index: 1040;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.35rem, 1.8vw, 1.65rem);
    transition: transform .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.pretel-chatbot-launcher:hover {
    background: var(--pretel-orange);
    color: var(--pretel-dark);
    transform: translateY(-3px);
    box-shadow: 0 20px 44px rgba(245, 130, 32, .28);
}

.pretel-chatbot-launcher:focus-visible {
    outline: 3px solid rgba(245, 130, 32, .42);
    outline-offset: 4px;
}

.pretel-chatbot-panel {
    position: fixed;
    right: clamp(16px, 2.2vw, 30px);
    bottom: clamp(184px, 22vh, 230px);
    width: min(410px, calc(100vw - 32px));
    height: min(560px, calc(100vh - 196px));
    min-height: 360px;
    background: var(--card-bg);
    border: 1px solid var(--pretel-line);
    border-radius: 14px;
    box-shadow: 0 26px 76px rgba(15, 23, 42, 0.24);
    z-index: 1041;
    display: none;
    overflow: hidden;
    color: var(--text-color);
}

.pretel-chatbot-panel.is-open {
    display: flex;
    flex-direction: column;
    animation: chatbotPanelIn .18s ease-out;
}

@keyframes chatbotPanelIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.98);
    }

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

.pretel-chatbot-panel header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    min-height: 78px;
    padding: 16px 18px;
    background:
        radial-gradient(circle at 92% 0%, rgba(245, 130, 32, .26), transparent 34%),
        linear-gradient(135deg, var(--pretel-dark), var(--pretel-green));
    color: var(--pretel-white);
}

.pretel-chatbot-panel header strong {
    display: block;
    font-size: 1.02rem;
    font-weight: 900;
    line-height: 1.2;
}

.pretel-chatbot-panel header span {
    display: block;
    margin-top: 4px;
    font-size: 0.8rem;
    line-height: 1.35;
    opacity: 0.86;
}

.pretel-chatbot-panel header button {
    display: inline-grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, .13);
    color: var(--pretel-white);
    font-size: 1rem;
    transition: background-color .18s ease, transform .18s ease;
}

.pretel-chatbot-panel header button:hover {
    background: rgba(255, 255, 255, .22);
    transform: translateY(-1px);
}

.pretel-chatbot-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: var(--pretel-soft);
    scrollbar-width: thin;
    scrollbar-color: rgba(95, 150, 55, .6) transparent;
}

.pretel-chatbot-message {
    max-width: 88%;
    padding: 11px 13px;
    border-radius: 12px;
    margin-bottom: 11px;
    font-size: 0.94rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
    box-shadow: 0 8px 22px rgba(18, 28, 30, .07);
}

.pretel-chatbot-message-bot {
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--pretel-line);
    border-top-left-radius: 4px;
}

.pretel-chatbot-message-user {
    background: var(--pretel-green);
    color: var(--pretel-white);
    margin-left: auto;
    border-top-right-radius: 4px;
}

.pretel-chatbot-form {
    display: flex;
    gap: 8px;
    padding: 12px 14px 14px;
    border-top: 1px solid var(--pretel-line);
    background: var(--card-bg);
}

.pretel-chatbot-form input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--pretel-line);
    border-radius: 8px;
    min-height: 44px;
    padding: 10px 12px;
    background: var(--card-bg);
    color: var(--text-color);
    font-size: .95rem;
}

.pretel-chatbot-form button {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 8px;
    background: var(--pretel-orange);
    color: var(--pretel-dark);
    font-weight: 800;
    transition: filter .18s ease, transform .18s ease;
}

.pretel-chatbot-form button:hover {
    filter: brightness(0.96);
    transform: translateY(-1px);
}

.pretel-chatbot-form input:focus {
    border-color: var(--pretel-green);
    box-shadow: 0 0 0 .16rem rgba(95, 150, 55, .18);
    outline: 0;
}

.pretel-live-alerts {
    position: fixed;
    right: clamp(84px, 7vw, 110px);
    bottom: 24px;
    z-index: 1060;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100vw - 120px));
    pointer-events: none;
}

.pretel-live-alert {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 12px;
    color: var(--text-color);
    background: var(--card-bg);
    border: 1px solid rgba(95, 150, 55, .34);
    border-left: 4px solid var(--pretel-green);
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(18, 28, 30, .18);
    pointer-events: auto;
    animation: pretelAlertIn .22s ease-out;
}

.pretel-live-alert i {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: var(--pretel-orange);
    background: rgba(245, 130, 32, .14);
    border-radius: 8px;
}

.pretel-live-alert strong,
.pretel-live-alert span {
    display: block;
}

.pretel-live-alert strong {
    font-size: .94rem;
    line-height: 1.25;
}

.pretel-live-alert span {
    color: var(--pretel-muted);
    font-size: .84rem;
    line-height: 1.35;
}

.pretel-live-alert a {
    display: inline-flex;
    margin-top: 6px;
    color: var(--pretel-green);
    font-size: .82rem;
    font-weight: 800;
    text-decoration: none;
}

@keyframes pretelAlertIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.dark-mode .pretel-chatbot-launcher {
    box-shadow: 0 16px 38px rgba(0, 0, 0, .36);
}

body.dark-mode .pretel-chatbot-panel {
    box-shadow: 0 26px 76px rgba(0, 0, 0, .48);
}

body.dark-mode .pretel-chatbot-message {
    box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
}

@media (min-width: 1400px) {
    .pretel-chatbot-panel {
        width: 430px;
        height: 590px;
    }
}

@media (max-width: 768px) {
    .pretel-live-alerts {
        left: 12px;
        right: 12px;
        bottom: 216px;
        width: auto;
    }

    .pretel-chatbot-launcher {
        right: 16px;
        bottom: 152px;
        width: 54px;
        height: 54px;
        font-size: 1.35rem;
    }

    .pretel-chatbot-panel {
        left: 12px;
        right: 12px;
        bottom: 216px;
        width: auto;
        height: min(540px, calc(100vh - 236px));
        min-height: 330px;
        border-radius: 12px;
    }

    .pretel-chatbot-panel header {
        min-height: 72px;
        padding: 14px;
    }

    .pretel-chatbot-panel header strong {
        font-size: .98rem;
    }

    .pretel-chatbot-panel header span {
        font-size: .78rem;
    }

    .pretel-chatbot-messages {
        padding: 14px;
    }

    .pretel-chatbot-message {
        max-width: 92%;
        font-size: .91rem;
    }
}

@media (max-width: 420px) {
    .pretel-chatbot-panel {
        left: 8px;
        right: 8px;
        bottom: 208px;
        width: auto;
        height: min(500px, calc(100vh - 226px));
    }

    .pretel-chatbot-form {
        padding: 10px;
    }

    .pretel-chatbot-form input {
        font-size: .9rem;
    }
}

.payment-receipt-form {
    width: min(100%, 260px);
}

.profile-orders-responsive {
    overflow: visible;
}

.profile-orders-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 14px;
}

.profile-orders-table thead {
    display: none;
}

.profile-orders-table tbody,
.profile-orders-table tr {
    display: block;
}

.profile-orders-table tr {
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 12px;
    padding: 18px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.profile-orders-table td {
    display: block;
    border: 0;
    padding: 0;
}

.profile-orders-table td::before {
    display: block;
    margin-bottom: 5px;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.profile-orders-table td:nth-child(1)::before {
    content: "Pedido";
}

.profile-orders-table td:nth-child(2)::before {
    content: "Fecha";
}

.profile-orders-table td:nth-child(3)::before {
    content: "Total";
}

.profile-orders-table td:nth-child(4)::before {
    content: "Estado";
}

.profile-orders-table td:nth-child(5)::before {
    content: "Pago";
}

.profile-orders-table td:nth-child(6)::before {
    content: "Acciones";
}

.profile-orders-table td:nth-child(1) {
    font-weight: 800;
    color: #0f172a;
    overflow-wrap: anywhere;
}

.order-product-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.order-product-thumb {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 9px;
    background: #f8fafc;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.order-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-product-thumb-more {
    color: #0f766e;
    font-weight: 800;
    font-size: 0.9rem;
}

.profile-orders-table td:nth-child(3) {
    color: #198754;
    font-size: 1.1rem;
    font-weight: 800;
}

.profile-orders-table td:nth-child(5) {
    padding: 12px;
    border-radius: 10px;
    background: #f8fafc;
}

.profile-orders-table .payment-receipt-form {
    width: 100%;
    max-width: 360px;
}

.profile-orders-table .payment-receipt-form .form-control {
    width: 100%;
}

.profile-orders-table .payment-receipt-form .form-text {
    line-height: 1.35;
}

.profile-orders-table td:nth-child(6) .d-flex,
.profile-order-actions {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
    gap: 10px;
    align-items: start;
}

.profile-orders-table td:nth-child(6) .btn,
.profile-orders-table td:nth-child(6) form,
.profile-orders-table td:nth-child(6) form .btn,
.profile-order-actions .btn,
.profile-order-actions form,
.profile-order-actions form .btn {
    width: 100%;
}

.profile-orders-table .invoice-upload-form {
    grid-column: 1 / -1;
    padding: 14px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 12px;
    background: #f8fafc;
}

.invoice-upload-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #0f172a;
    font-weight: 800;
}

.invoice-upload-head small {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(25, 135, 84, 0.12);
    color: #198754;
    font-size: 0.72rem;
    font-weight: 800;
}

.invoice-file-field {
    display: grid;
    gap: 6px;
    margin-bottom: 10px;
}

.invoice-file-field span {
    color: #475569;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.profile-orders-table .invoice-upload-form .form-control {
    min-height: 42px;
    border-color: rgba(15, 23, 42, 0.14);
    background-color: #fff;
}

.profile-orders-table .invoice-upload-form .form-text {
    margin-bottom: 10px;
    color: #64748b;
    line-height: 1.45;
}

.profile-orders-table .invoice-upload-form .btn {
    min-height: 40px;
    font-weight: 800;
}

.dark-mode .profile-orders-table tr,
.dark-mode .profile-orders-table td:nth-child(5),
.dark-mode .profile-orders-table .invoice-upload-form {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(15, 23, 42, 0.88);
}

.dark-mode .profile-orders-table td:nth-child(1),
.dark-mode .invoice-upload-head {
    color: #f8fafc;
}

.dark-mode .invoice-file-field span,
.dark-mode .profile-orders-table .invoice-upload-form .form-text {
    color: #cbd5e1;
}

.dark-mode .profile-orders-table .invoice-upload-form .form-control {
    border-color: rgba(255, 255, 255, 0.16);
    background-color: rgba(15, 23, 42, 0.95);
    color: #f8fafc;
}

@media (min-width: 992px) {
    .profile-orders-table tr {
        display: grid;
        grid-template-columns: minmax(0, 1.45fr) minmax(104px, 0.75fr) minmax(126px, 0.75fr) minmax(134px, 0.85fr);
        grid-template-areas:
            "pedido fecha total estado"
            "pago pago acciones acciones";
        gap: 20px 24px;
        align-items: start;
    }

    .profile-orders-table td:nth-child(1) {
        grid-area: pedido;
    }

    .profile-orders-table td:nth-child(2) {
        grid-area: fecha;
    }

    .profile-orders-table td:nth-child(3) {
        grid-area: total;
    }

    .profile-orders-table td:nth-child(4) {
        grid-area: estado;
    }

    .profile-orders-table td:nth-child(5) {
        grid-area: pago;
    }

    .profile-orders-table td:nth-child(6) {
        grid-area: acciones;
    }
}

@media (max-width: 1199.98px) {
    .profile-orders-table tr {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .profile-orders-table td:nth-child(5) {
        padding: 14px;
    }
}
