:root {
    --bg: #6a6a6f;
    --bg-soft: #5a5a60;
    --surface: rgba(255, 255, 255, 0.16);
    --surface-strong: rgba(255, 255, 255, 0.22);
    --border: rgba(255, 255, 255, 0.28);
    --text: #ffffff;
    --muted: #ececf1;
    --primary: #f5f5f7;
    --shadow: 0 24px 55px rgba(0, 0, 0, 0.28);
    --menu-height: 112px;
}

* { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--menu-height) + 18px);
}

#productos,
#categorias,
#contacto,
#carrito {
    scroll-margin-top: calc(var(--menu-height) + 18px);
}
body {
    font-family: 'Inter', sans-serif;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.24), transparent 34%),
        radial-gradient(circle at bottom left, rgba(0,0,0,0.18), transparent 28%),
        linear-gradient(140deg, #7a7a80, #67676d),
        var(--bg);
    color: var(--text);
}

body.country-gate-open {
    overflow: hidden;
}

.country-gate {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(12, 12, 14, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.country-gate.is-open {
    display: flex;
}

.country-gate-card {
    width: min(440px, 100%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 1.4rem;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
    text-align: center;
}

.country-gate-card h2 {
    margin: 0;
    color: #1d1d1f;
    font-size: 1.15rem;
    font-weight: 700;
}

.country-gate-card p {
    margin: .45rem 0 1rem;
    color: #6e6e73;
    font-size: .95rem;
}

.country-gate-card .form-select {
    margin-bottom: .9rem;
    background: rgba(255,255,255,0.98);
    color: #1d1d1f;
    border: 1px solid rgba(10, 10, 10, 0.12);
}

.glass-nav,
.glass-panel,
.category-card,
.product-card,
.contact-card,
.showcase-card {
    background: var(--surface);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.glass-nav {
    background: rgba(20, 20, 23, 0.42);
}

.glass-nav .container {
    min-height: var(--menu-height);
}

.glass-nav .nav-link {
    font-size: 1rem;
    font-weight: 600;
}

.nav-session-actions {
    display: flex;
    align-items: center;
    gap: .6rem;
}

/* Selector de país */
.nav-country-select {
    min-width: 190px;
}

/* Selector de idioma */
.nav-lang-select {
    min-width: 170px;
    min-height: 44px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
    padding-top: .55rem;
    padding-bottom: .55rem;
    padding-left: .95rem;
    padding-right: 2.2rem;
}

.nav-country-select option {
    color: #111;
}

.nav-session-actions .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.brand-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff, #8a8a8f);
    display: inline-block;
}
.brand-logo {
    height: 78px;
    width: auto;
    max-width: 130px;
    object-fit: contain;
    display: block;
}

.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 70vh;
}

/* ── Slider ─────────────────────────────────────────── */
.hero-slider { width: 100%; }
.hero-slide-img {
    height: 72vh;
    min-height: 380px;
    object-fit: cover;
    object-position: center;
    filter: brightness(.52);
}
.carousel-caption.hero-slide-caption {
    top: 50%;
    bottom: auto;
    left: 8%;
    right: 8%;
    transform: translateY(-50%);
    text-align: center;
    color: #fff !important;
}
.carousel-caption.hero-slide-caption .slide-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .78rem;
    color: #fff !important;
    margin-bottom: .65rem;
}
.carousel-caption.hero-slide-caption h2 {
    font-size: clamp(1.7rem, 4vw, 2.9rem);
    font-weight: 800;
    color: #fff !important;
    text-shadow: 0 2px 14px rgba(0,0,0,.28);
    letter-spacing: -.02em;
    margin-bottom: .8rem;
}
.carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255,255,255,.6);
    border: none;
}
.carousel-indicators .active {
    background-color: #fff;
}

/* ── Hero text full-width ────────────────────────────── */
.hero-text-section {
    padding: 88px 0 72px;
}
.hero-full-blurb {
    max-width: 840px;
    margin: 0 auto;
    text-align: center;
}
.hero-main-title {
    font-size: clamp(2rem, 4.2vw, 3.4rem);
    font-weight: 800;
    color: #1d1d1f;
    line-height: 1.06;
    letter-spacing: -.025em;
    margin-bottom: 1.2rem;
}
.hero-main-subtitle {
    font-size: 1.18rem;
    color: #6e6e73;
    max-width: 620px;
    margin: 0 auto 2.2rem;
    line-height: 1.6;
}
.public-site .hero-main-title { color: #1d1d1f !important; }
.public-site .hero-main-subtitle { color: #6e6e73 !important; }
.public-site .hero-text-section { background: #ffffff; }

.glass-panel,
.category-card,
.product-card,
.contact-card,
.showcase-card {
    border-radius: 28px;
}

.section-padding { padding: 96px 0; }
.bg-soft-dark { background: rgba(0, 0, 0, 0.12); }
.eyebrow {
    display: inline-block;
    color: #d8d8de;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .74rem;
    margin-bottom: .75rem;
}

.hero-cards-wrap {
    display: grid;
    gap: 1.5rem;
}

.showcase-card { padding: 2rem; }
.floating-card { transform: translateY(10px); }
.secondary-card { margin-left: auto; max-width: 340px; }
.stat-bubble {
    width: 110px;
    height: 110px;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
}
.stat-bubble strong { font-size: 2rem; color: #fff; }
.stat-bubble span { color: var(--muted); }

.category-card {
    padding: 1.6rem;
    transition: transform .25s ease, border-color .25s ease;
}
.category-card:hover,
.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255,255,255,0.4);
}
.category-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-weight: 700;
    margin-bottom: 1rem;
}

.product-card { overflow: hidden; height: 100%; }
.products-priority-section {
    position: relative;
    background: linear-gradient(180deg, rgba(0,0,0,0.18), rgba(255,255,255,0.08));
}
.products-priority-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 10%, rgba(255,255,255,0.25), transparent 38%);
    pointer-events: none;
}
.products-priority-section .container {
    position: relative;
    z-index: 1;
}
.products-priority-section h2 {
    font-size: clamp(1.8rem, 2.2vw, 2.4rem);
}
.product-card {
    background: linear-gradient(155deg, rgba(255,255,255,0.2), rgba(0,0,0,0.2));
    border: 1px solid rgba(255,255,255,0.34);
}
.product-image-wrap { position: relative; height: 220px; overflow: hidden; }
.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(.95) contrast(1.05);
}

@media (min-width: 1200px) {
    .products-priority-section .js-product-item .product-content {
        padding: 1.1rem !important;
    }
    .products-priority-section .product-image-wrap {
        height: 190px;
    }
    .products-priority-section .price-tag {
        font-size: 1.05rem;
    }
    .products-priority-section .qty-step-btn {
        width: 26px;
        height: 26px;
    }
    .products-priority-section .qty-input {
        max-width: 66px;
    }
}
.featured-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,0.92);
    color: #111;
    padding: .4rem .8rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
}
.price-tag {
    font-size: 1.22rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: .02em;
}
.price-display-block {
    display: flex;
    flex-direction: column;
    gap: .1rem;
}
.price-base-note {
    font-size: .92rem;
    font-weight: 600;
    color: #6e6e73;
}
.price-caption {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .12em;
}
.product-buy-controls {
    justify-content: space-between;
    margin-top: .1rem;
}
.qty-stepper {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .15rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.34);
}
.qty-step-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    color: #1d1d1f;
    font-size: .95rem;
    font-weight: 600;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.qty-input {
    max-width: 72px;
    border-radius: 999px;
    text-align: center;
    padding-top: .35rem;
    padding-bottom: .35rem;
    font-size: .9rem;
}
.cart-panel {
    background: linear-gradient(155deg, rgba(255,255,255,0.2), rgba(0,0,0,0.2));
    border: 1px solid rgba(255,255,255,0.32);
}
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s ease;
    z-index: 2040;
}
.cart-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}
.cart-drawer {
    position: fixed;
    top: var(--menu-height);
    right: 0;
    width: min(620px, 94vw);
    height: calc(100vh - var(--menu-height));
    margin-top: 0 !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 20px 0 0 0;
    z-index: 2050;
    transform: translateX(102%);
    transition: transform .34s cubic-bezier(.22, .61, .36, 1);
}
.cart-drawer.is-open {
    transform: translateX(0);
}

#wompiCustomerModal {
    z-index: 2070;
}

.modal-backdrop {
    z-index: 2060;
}

.cart-header-top p {
    max-width: 320px;
    line-height: 1.4;
}
.cart-header {
    flex: 0 0 auto;
}
.cart-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: .2rem;
}
.cart-footer {
    flex: 0 0 auto;
    position: sticky;
    bottom: 0;
    padding-top: .7rem;
    margin-top: .4rem;
    border-top: 1px solid rgba(255,255,255,0.15);
    background: linear-gradient(180deg, rgba(255,255,255,0), rgba(15,15,17,0.22));
}
@media (max-width: 767.98px) {
    .cart-header-top {
        flex-direction: column;
    }
    .cart-header-top p {
        max-width: none;
    }
}
body.cart-open {
    overflow: hidden;
}
.cart-table {
    --bs-table-bg: transparent;
    --bs-table-color: #fff;
    --bs-table-border-color: rgba(255,255,255,0.15);
    font-size: .86rem;
    table-layout: fixed;
}
.cart-table thead th {
    border-bottom-color: rgba(255,255,255,0.22);
    font-weight: 500;
    font-size: .74rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}
.cart-table th,
.cart-table td {
    padding: .42rem .38rem;
    vertical-align: middle;
}
.cart-table td:first-child {
    max-width: 180px;
}
.cart-table td:first-child .fw-semibold {
    font-size: .84rem;
    line-height: 1.3;
    word-break: break-word;
}
.cart-table td:first-child .small {
    font-size: .72rem;
    line-height: 1.2;
    word-break: break-word;
}
.cart-qty-input {
    width: 70px;
    min-width: 70px;
    max-width: 70px;
    border-radius: 10px;
    padding: .25rem .35rem;
    font-size: .82rem;
}
.cart-total-wrap {
    min-width: 240px;
    text-align: right;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 18px;
    padding: .9rem 1.1rem;
}
.categories-secondary-section .section-title {
    opacity: .9;
}
.categories-secondary-section .category-card {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.2);
}
.benefits-list {
    padding-left: 1.1rem;
    color: var(--muted);
    margin-bottom: 0;
}
.benefits-list li + li { margin-top: .9rem; }
.payment-methods-content {
    color: var(--muted);
    white-space: pre-line;
    font-size: .98rem;
    line-height: 1.7;
    margin-bottom: 0;
}
.contact-card { height: 100%; }
.footer { border-top: 1px solid rgba(255,255,255,0.08); }
.btn-primary {
    background: linear-gradient(180deg, #ffffff, #d9d9de);
    color: #111;
    border: none;
}
.btn-primary:hover,
.btn-light:hover {
    color: #111;
    opacity: .95;
}
.btn-outline-light { border-color: rgba(255,255,255,0.2); }
.btn-outline-light:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.36);
}
.btn-whatsapp {
    background: #25d366;
    color: #fff;
    border: 1px solid #25d366;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}
.btn-whatsapp:hover {
    background: #1ebe5b;
    border-color: #1ebe5b;
    color: #fff;
}
.btn-whatsapp.disabled,
.btn-whatsapp:disabled {
    opacity: .6;
}
.wa-icon {
    font-size: .95rem;
    line-height: 1;
}
.empty-state { border-radius: 30px; }
.table, .form-control, .form-select {
    --bs-body-bg: rgba(255,255,255,.05);
    --bs-body-color: #fff;
    --bs-border-color: rgba(255,255,255,0.15);
}
.form-control, .form-select {
    background: rgba(255,255,255,0.05);
    color: #fff;
    border-radius: 16px;
    padding: .85rem 1rem;
}
.form-control:focus, .form-select:focus {
    background: rgba(255,255,255,0.08);
    color: #fff;
    box-shadow: 0 0 0 .25rem rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.25);
}
.qty-stepper .qty-input.form-control,
.qty-stepper .qty-input.form-control-sm {
    height: 32px;
    min-height: 32px;
    padding: .2rem .45rem;
    line-height: 1.1;
}
.table-dark-glass {
    background: rgba(255,255,255,0.04);
    color: #fff;
    border-radius: 24px;
    overflow: hidden;
}
.admin-table-scroll,
.table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.glass-panel,
.table-dark-glass {
    max-width: 100%;
    min-width: 0;
}

.admin-site .row,
.admin-site [class*="col-"] {
    min-width: 0;
}

.admin-data-table {
    width: max-content;
    min-width: 920px;
    max-width: none;
}

.admin-data-table {
    min-width: 920px;
}
.admin-data-table th,
.admin-data-table td {
    white-space: nowrap;
}
.admin-data-table td:first-child {
    white-space: normal;
    min-width: 220px;
}
.admin-data-table td:nth-child(3) {
    white-space: normal;
    min-width: 220px;
}
.admin-shell { min-height: 100vh; background: var(--bg); }
.sidebar {
    width: 280px;
    background: rgba(255,255,255,0.04);
    border-right: 1px solid rgba(255,255,255,0.08);
}
.sidebar .nav-link {
    color: var(--muted);
    border-radius: 14px;
    padding: .9rem 1rem;
}
.sidebar .nav-link.active,
.sidebar .nav-link:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}
.content-wrap {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
}

.login-card { max-width: 440px; }

.admin-site {
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.98), rgba(246,247,249,0.98) 48%, rgba(236,238,241,0.98) 100%),
        #f5f5f7;
    color: #1d1d1f;
}

.admin-site .admin-shell {
    background: transparent;
}

.admin-site .sidebar {
    background: rgba(255,255,255,0.82);
    border-right: 1px solid rgba(0,0,0,0.08);
    box-shadow: inset -1px 0 0 rgba(255,255,255,0.65);
}

.admin-site .glass-panel,
.admin-site .login-card {
    background: rgba(255,255,255,0.78);
    border: 1px solid rgba(255,255,255,0.95);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.admin-site .text-white,
.admin-site .sidebar .navbar-brand,
.admin-site h1,
.admin-site h2,
.admin-site h3,
.admin-site h4,
.admin-site h5 {
    color: #1d1d1f !important;
}

.admin-site .text-secondary,
.admin-site .benefits-list,
.admin-site .sidebar .nav-link {
    color: #6e6e73 !important;
}

.admin-site .sidebar .nav-link.active,
.admin-site .sidebar .nav-link:hover {
    background: #1d1d1f;
    color: #ffffff !important;
}

.admin-site .form-control,
.admin-site .form-select,
.admin-site textarea.form-control {
    background: rgba(255,255,255,0.96);
    color: #1d1d1f;
    border: 1px solid rgba(10,10,10,0.12);
}

.admin-site .form-control:focus,
.admin-site .form-select:focus,
.admin-site textarea.form-control:focus {
    background: #ffffff;
    color: #1d1d1f;
    border-color: rgba(10,10,10,0.25);
    box-shadow: 0 0 0 .25rem rgba(17, 24, 39, 0.08);
}

.admin-site .table,
.admin-site .admin-data-table {
    --bs-table-bg: transparent;
    --bs-table-color: #1d1d1f;
    --bs-table-border-color: rgba(0,0,0,0.08);
}

.admin-site .table-dark-glass {
    background: rgba(255,255,255,0.72);
    color: #1d1d1f;
}

.admin-site .btn-light {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.12);
    color: #1d1d1f;
}

.admin-site .btn-outline-light {
    border-color: rgba(0,0,0,0.22);
    color: #1d1d1f;
}

.admin-site .btn-outline-light:hover {
    background: rgba(255,255,255,0.96);
    border-color: rgba(0,0,0,0.34);
    color: #1d1d1f;
}

@media (max-width: 991.98px) {
    .section-padding { padding: 72px 0; }
    .hero-section .min-vh-100 { min-height: auto !important; }
    .sidebar { width: 100%; }
    .nav-session-actions {
        margin-top: 1rem;
        width: 100%;
    }
    .nav-country-select {
        flex: 1;
        min-width: 0;
    }
    .cart-total-wrap {
        min-width: 0;
        width: 100%;
        text-align: left;
    }
    .cart-drawer {
        width: 100vw;
        top: var(--menu-height);
        height: calc(100vh - var(--menu-height));
        border-radius: 0;
    }
    .admin-data-table {
        min-width: 760px;
    }

    .content-wrap {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .admin-table-scroll,
    .table-responsive {
        max-width: calc(100vw - 2rem);
    }
}

@media (max-width: 575.98px) {
    .nav-session-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .nav-session-actions .btn {
        width: 100%;
    }
}

.public-site {
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.96), rgba(246,247,249,0.96) 46%, rgba(238,240,243,0.96) 100%),
        #f5f5f7;
    color: #1d1d1f;
}

.public-site .glass-nav,
.public-site .glass-panel,
.public-site .category-card,
.public-site .product-card,
.public-site .contact-card,
.public-site .showcase-card,
.public-site .cart-panel {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.public-site .glass-nav {
    background: rgba(255, 255, 255, 0.8);
}

.public-site .navbar-brand,
.public-site .nav-link,
.public-site .text-white,
.public-site .price-tag,
.public-site .h1,
.public-site .h2,
.public-site .h3,
.public-site .h4,
.public-site .h5,
.public-site h1,
.public-site h2,
.public-site h3,
.public-site h4,
.public-site h5 {
    color: #1d1d1f !important;
}

.public-site .text-secondary,
.public-site .eyebrow,
.public-site .benefits-list,
.public-site .payment-methods-content {
    color: #6e6e73 !important;
}

.public-site .bg-soft-dark,
.public-site .products-priority-section {
    background: rgba(255, 255, 255, 0.45);
}

.public-site .products-priority-section::before {
    background: radial-gradient(circle at 14% 10%, rgba(255,255,255,0.94), transparent 42%);
}

.public-site .nav-country-select,
.public-site .form-control,
.public-site .form-select,
.public-site .qty-input,
.public-site .cart-qty-input {
    background: rgba(255, 255, 255, 0.95);
    color: #1d1d1f;
    border: 1px solid rgba(10, 10, 10, 0.08);
}

.public-site .btn-primary {
    background: #1d1d1f;
    color: #fff;
}

.public-site .btn-whatsapp {
    background: #25d366;
    border-color: #25d366;
    color: #fff;
}

.public-site .btn-whatsapp:hover {
    background: #1ebe5b;
    border-color: #1ebe5b;
    color: #fff;
}

.public-site .btn-primary:hover {
    background: #000;
    color: #fff;
}

.public-site .btn-light {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    color: #1d1d1f;
}

.public-site .btn-outline-light {
    border-color: rgba(0,0,0,0.2);
    color: #1d1d1f;
}

.public-site .btn-outline-light:hover {
    background: rgba(255,255,255,0.92);
    border-color: rgba(0,0,0,0.3);
}

.public-site .featured-badge {
    background: #1d1d1f;
    color: #fff;
}

.public-site .cart-total-wrap {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0,0,0,0.08);
}
.public-site .cart-footer {
    border-top: 1px solid rgba(0,0,0,0.08);
    background: linear-gradient(180deg, rgba(255,255,255,0), rgba(245,245,247,0.95));
}

.public-site .qty-stepper {
    background: rgba(246, 247, 249, 0.78);
    border: 1px solid rgba(0,0,0,0.08);
}

.public-site .qty-step-btn {
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(0,0,0,0.08);
}

.public-site .cart-table {
    --bs-table-color: #1d1d1f;
    --bs-table-border-color: rgba(0,0,0,0.08);
}
