/* ============================================================
 * HerbalMakola v3 - Sistema de diseño
 * Estilo editorial minimalista (Zara/Shein/COS)
 * ============================================================ */

/* Fuentes — display editorial + sans grotesque */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600;9..144,700&family=Manrope:wght@300;400;500;600;700;800&display=swap');

/* ============================================================ */
/* VARIABLES */
/* ============================================================ */
:root {
    /* Paleta — monocromática con acento de naturaleza */
    --ink:           #0a0a0a;
    --ink-soft:      #1a1a1a;
    --ink-mid:       #4a4a4a;
    --ink-light:     #767676;
    --ink-faint:     #b4b4b4;
    --rule:          #ebebeb;
    --rule-strong:   #d8d8d8;
    --paper:         #ffffff;
    --paper-warm:    #fafaf7;
    --paper-cream:   #f4f1ea;

    /* Acento naturaleza */
    --moss:          #2d4a2b;
    --moss-deep:     #1a2e1a;
    --moss-light:    #ecf0e8;
    --sage:          #788a6c;

    /* Estado */
    --success:       #1d5e3a;
    --success-bg:    #e8f0e9;
    --error:         #8b1a1a;
    --error-bg:      #fbeaea;
    --warning:       #8b5a00;
    --warning-bg:    #fdf3e0;
    --info:          #1e3a5f;
    --info-bg:       #e8eef5;

    /* Aliases legacy */
    --green:         var(--moss);
    --green-dark:    var(--moss-deep);
    --green-light:   var(--sage);
    --green-pale:    var(--moss-light);
    --green-bg:      var(--paper-warm);
    --text-dark:     var(--ink);
    --text-mid:      var(--ink-mid);
    --text-light:    var(--ink-light);
    --border:        var(--rule);

    /* Tipografía */
    --font-display:  'Fraunces', 'Times New Roman', serif;
    --font-body:     'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Espaciado fluido */
    --space-xs:  clamp(0.5rem, 1vw, 0.75rem);
    --space-sm:  clamp(0.75rem, 1.5vw, 1rem);
    --space-md:  clamp(1rem, 2vw, 1.5rem);
    --space-lg:  clamp(1.5rem, 3vw, 2.5rem);
    --space-xl:  clamp(2.5rem, 5vw, 4rem);
    --space-2xl: clamp(4rem, 8vw, 7rem);

    /* Capa */
    --shadow-sm: 0 1px 2px rgba(10,10,10,.04);
    --shadow-md: 0 4px 14px rgba(10,10,10,.06);
    --shadow-lg: 0 12px 32px rgba(10,10,10,.10);

    /* Movimiento */
    --ease: cubic-bezier(.22,.61,.36,1);
    --t-fast: .15s var(--ease);
    --t-mid:  .35s var(--ease);
    --t-slow: .6s var(--ease);
}

/* ============================================================ */
/* RESET */
/* ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--paper);
    font-feature-settings: "kern" 1, "liga" 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }

a { color: inherit; text-decoration: none; transition: opacity var(--t-fast); }
a:hover { opacity: .65; }

button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

/* ============================================================ */
/* TIPOGRAFÍA */
/* ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: -.02em;
    line-height: 1.1;
    color: var(--ink);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 300; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); font-weight: 400; }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
h4 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }

.eyebrow {
    font-family: var(--font-body);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-mid);
}

.display {
    font-family: var(--font-display);
    font-weight: 300;
    font-style: italic;
    letter-spacing: -.03em;
}

p { color: var(--ink-soft); }

/* ============================================================ */
/* CONTENEDORES */
/* ============================================================ */
.container, .container-sm, .container-md {
    width: 100%;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2.5rem);
}
.container    { max-width: 1440px; }
.container-md { max-width: 1200px; }
.container-sm { max-width: 960px; }

/* ============================================================ */
/* HEADER / NAVEGACIÓN */
/* ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.96);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--rule);
    transition: border-color var(--t-mid);
}

.header-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 18px clamp(1rem, 3vw, 2.5rem);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
}

.site-logo {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.55rem;
    letter-spacing: -.02em;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 8px;
    justify-self: start;
}
.site-logo svg { color: var(--moss); }
.site-logo:hover { opacity: 1; }

.site-nav {
    display: flex;
    gap: 32px;
    justify-self: center;
}

.nav-link {
    font-size: .78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--ink);
    padding: 6px 0;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-mid);
}
.nav-link:hover { opacity: 1; }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-self: end;
}

.icon-btn {
    position: relative;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    border-radius: 50%;
    transition: background var(--t-fast);
}
.icon-btn:hover { background: var(--paper-warm); opacity: 1; }

.cart-badge, .notif-count {
    position: absolute;
    top: 0; right: 0;
    background: var(--ink);
    color: var(--paper);
    font-size: .65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    font-family: var(--font-body);
}

.user-menu {
    position: relative;
}
.user-menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--rule);
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 500;
    color: var(--ink);
    transition: border-color var(--t-fast);
}
.user-menu-btn:hover { border-color: var(--ink); }

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all var(--t-fast);
    z-index: 200;
}
.user-dropdown.open {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.user-dropdown a, .user-dropdown .dropdown-header {
    display: block;
    padding: 10px 16px;
    font-size: .85rem;
    color: var(--ink);
}
.user-dropdown .dropdown-header {
    font-weight: 600;
    border-bottom: 1px solid var(--rule);
    margin-bottom: 4px;
    color: var(--ink-light);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .1em;
}
.user-dropdown a:hover { background: var(--paper-warm); opacity: 1; }
.dropdown-divider { border: 0; border-top: 1px solid var(--rule); margin: 4px 0; }
.dropdown-danger { color: var(--error) !important; }

.hamburger {
    display: none;
    width: 38px;
    height: 38px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 0 8px;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--ink);
    transition: transform var(--t-fast);
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================ */
/* BOTONES */
/* ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .14em;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 0;
    background: var(--ink);
    color: var(--paper);
    transition: all var(--t-mid);
    text-decoration: none;
    line-height: 1;
}
.btn:hover { background: var(--moss-deep); color: var(--paper); opacity: 1; }

.btn-primary   { background: var(--ink);   color: var(--paper); border-color: var(--ink); }
.btn-primary:hover { background: var(--moss-deep); border-color: var(--moss-deep); }

.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--paper); }

.btn-ghost { background: transparent; color: var(--ink); border-color: transparent; padding: 8px 0; }
.btn-ghost:hover { background: transparent; color: var(--moss-deep); border-color: transparent; }
.btn-ghost::after {
    content: '→';
    margin-left: 6px;
    transition: transform var(--t-fast);
}
.btn-ghost:hover::after { transform: translateX(4px); }

.btn-danger  { background: var(--error); color: var(--paper); border-color: var(--error); }
.btn-danger:hover { background: var(--ink); border-color: var(--ink); }

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

.btn-sm  { padding: 10px 18px; font-size: .7rem; letter-spacing: .12em; }
.btn-lg  { padding: 18px 36px; font-size: .82rem; }
.btn-xl  { padding: 22px 48px; font-size: .85rem; }
.btn-full{ width: 100%; }

.btn-icon { padding: 12px; }

/* ============================================================ */
/* CARDS / SUPERFICIES */
/* ============================================================ */
.card {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 0;
    overflow: hidden;
}
.card-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--rule);
}
.card-header h3, .card-header h2 { margin: 0; }
.card-body { padding: 22px; }

/* ============================================================ */
/* FORMULARIOS */
/* ============================================================ */
.form-group { margin-bottom: 18px; }

.form-label {
    display: block;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--ink-mid);
    margin-bottom: 8px;
}

.form-control, input[type="text"], input[type="email"], input[type="password"],
input[type="tel"], input[type="number"], input[type="url"], input[type="search"],
textarea, select {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: .9rem;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--rule-strong);
    border-radius: 0;
    transition: border-color var(--t-fast);
}
.form-control:focus, input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--ink);
}
textarea { resize: vertical; min-height: 90px; line-height: 1.5; }

.form-help { font-size: .78rem; color: var(--ink-light); margin-top: 6px; }
.form-error { font-size: .78rem; color: var(--error); margin-top: 6px; }

/* Checkbox/radio refinados */
input[type="checkbox"], input[type="radio"] {
    width: 16px; height: 16px;
    accent-color: var(--ink);
    cursor: pointer;
}

/* ============================================================ */
/* ALERTS */
/* ============================================================ */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    font-size: .85rem;
    border-left: 3px solid var(--ink);
    background: var(--paper-warm);
    margin-bottom: 16px;
}
.alert-success { background: var(--success-bg); border-left-color: var(--success); color: var(--success); }
.alert-error   { background: var(--error-bg);   border-left-color: var(--error);   color: var(--error); }
.alert-warning { background: var(--warning-bg); border-left-color: var(--warning); color: var(--warning); }
.alert-info    { background: var(--info-bg);    border-left-color: var(--info);    color: var(--info); }
.alert-icon { display: inline-flex; }
.alert-close {
    margin-left: auto;
    background: none;
    border: 0;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    color: inherit;
    opacity: .5;
    padding: 0 4px;
}
.alert-close:hover { opacity: 1; }

/* ============================================================ */
/* BREADCRUMB */
/* ============================================================ */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--ink-light);
    padding: 18px 0;
}
.breadcrumb a { color: var(--ink-light); }
.breadcrumb a:hover { color: var(--ink); opacity: 1; }
.breadcrumb .sep { color: var(--ink-faint); }
.breadcrumb .current { color: var(--ink); }

/* ============================================================ */
/* HERO / SECCIONES */
/* ============================================================ */
.hero {
    min-height: 78vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--paper-cream);
    padding: var(--space-xl) var(--space-md);
    position: relative;
    overflow: hidden;
}
.hero-inner { max-width: 720px; position: relative; z-index: 2; }
.hero h1 {
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -.03em;
    margin: 18px 0 24px;
}
.hero h1 em {
    font-style: italic;
    color: var(--moss-deep);
}
.hero p {
    font-size: 1.05rem;
    color: var(--ink-mid);
    max-width: 540px;
    margin: 0 auto 36px;
}

.section { padding: var(--space-2xl) 0; }
.section-head {
    margin-bottom: var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
}
.section-head h2 { margin: 8px 0 0; }

/* ============================================================ */
/* GRID DE PRODUCTOS */
/* ============================================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: clamp(1px, 0.3vw, 2px) clamp(8px, 1.2vw, 14px);
}

.product-card {
    background: var(--paper);
    position: relative;
    overflow: hidden;
    transition: transform var(--t-mid);
}

.product-media {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--paper-warm);
}
.product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s var(--ease);
}
.product-card:hover .product-media img { transform: scale(1.04); }

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--ink);
    color: var(--paper);
    font-size: .65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    padding: 5px 9px;
    z-index: 2;
}
.product-badge.sale { background: var(--moss-deep); }
.product-badge.out  { background: var(--ink-light); }

.product-quick {
    position: absolute;
    bottom: 0;
    left: 0; right: 0;
    background: var(--ink);
    color: var(--paper);
    padding: 14px;
    text-align: center;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .14em;
    opacity: 0;
    transform: translateY(100%);
    transition: all var(--t-mid);
    cursor: pointer;
}
.product-card:hover .product-quick {
    opacity: 1;
    transform: translateY(0);
}

.product-info {
    padding: 14px 4px 22px;
}
.product-name {
    font-family: var(--font-body);
    font-size: .88rem;
    font-weight: 500;
    color: var(--ink);
    margin: 0 0 6px;
    line-height: 1.35;
}
.product-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: .88rem;
    font-weight: 600;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}
.product-price-old {
    color: var(--ink-light);
    font-weight: 400;
    text-decoration: line-through;
}
.product-price-sale { color: var(--moss-deep); }

/* ============================================================ */
/* PRODUCT DETAIL */
/* ============================================================ */
.product-detail {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
    padding: var(--space-lg) 0;
}
.product-detail-image {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--paper-warm);
}
.product-detail-image img {
    width: 100%; height: 100%; object-fit: cover;
}
.product-detail-info {
    position: sticky;
    top: 100px;
    padding-top: 12px;
}
.product-detail h1 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 400;
    margin: 14px 0 18px;
}
.product-detail .product-price {
    font-size: 1.2rem;
    margin: 18px 0 28px;
}

.qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--ink);
}
.qty-stepper button {
    width: 44px; height: 44px;
    font-size: 1.1rem;
    background: transparent;
    border: 0;
    cursor: pointer;
}
.qty-stepper input {
    width: 50px;
    text-align: center;
    border: 0;
    border-left: 1px solid var(--ink);
    border-right: 1px solid var(--ink);
    padding: 12px 0;
    font-weight: 600;
    -moz-appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ============================================================ */
/* CARRITO */
/* ============================================================ */
.cart-page { padding: var(--space-lg) 0 var(--space-2xl); }
.cart-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
}
.cart-item {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--rule);
    align-items: center;
}
.cart-item img {
    width: 90px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: var(--paper-warm);
}
.cart-item-name { font-weight: 500; font-size: .92rem; margin-bottom: 6px; }
.cart-item-meta { font-size: .8rem; color: var(--ink-light); }
.cart-item-price { font-weight: 600; font-variant-numeric: tabular-nums; }
.cart-remove {
    font-size: .72rem;
    color: var(--ink-light);
    text-decoration: underline;
    text-underline-offset: 3px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 4px 0;
}
.cart-remove:hover { color: var(--error); }

.cart-summary {
    border: 1px solid var(--rule);
    padding: 28px;
    position: sticky;
    top: 100px;
}
.cart-summary h3 {
    font-family: var(--font-body);
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .14em;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--rule);
}
.summary-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: .9rem;
    color: var(--ink-mid);
}
.summary-line strong { color: var(--ink); font-weight: 600; }
.summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--rule);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
}

/* ============================================================ */
/* CHECKOUT */
/* ============================================================ */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
}
.checkout-step {
    margin-bottom: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--rule);
}
.checkout-step:last-child { border-bottom: 0; }
.checkout-step-head {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 20px;
}
.checkout-step-num {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--ink-faint);
    font-variant-numeric: tabular-nums;
}
.checkout-step-head h2 {
    font-size: 1.05rem;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin: 0;
}

.payment-option {
    display: flex;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--rule-strong);
    cursor: pointer;
    transition: border-color var(--t-fast);
    margin-bottom: 10px;
    align-items: flex-start;
}
.payment-option:hover { border-color: var(--ink); }
.payment-option input[type="radio"] { margin-top: 3px; flex-shrink: 0; }
.payment-option.selected { border-color: var(--ink); background: var(--paper-warm); }
.payment-option-icon {
    width: 38px; height: 38px;
    background: var(--paper-warm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    flex-shrink: 0;
}
.payment-option-info { flex: 1; }
.payment-option-name { font-weight: 600; font-size: .92rem; margin-bottom: 2px; }
.payment-option-desc { font-size: .78rem; color: var(--ink-light); }
.payment-option-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--moss-light);
    color: var(--moss-deep);
    font-size: .65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-left: 6px;
}

.payment-instructions {
    margin-top: 16px;
    padding: 18px;
    background: var(--paper-warm);
    border-left: 3px solid var(--moss);
    font-size: .85rem;
    color: var(--ink-soft);
    line-height: 1.55;
}
.payment-instructions h4 {
    font-size: .8rem;
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--ink);
}
.payment-account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 14px;
}
.payment-account-item {
    background: var(--paper);
    padding: 12px 14px;
    border: 1px solid var(--rule);
}
.payment-account-label {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--ink-light);
    margin-bottom: 4px;
}
.payment-account-value {
    font-weight: 600;
    font-size: .92rem;
    color: var(--ink);
    word-break: break-all;
    font-variant-numeric: tabular-nums;
}

/* ============================================================ */
/* HERO PRODUCTOS DESTACADOS HOMEPAGE */
/* ============================================================ */
.split-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--paper-cream);
    align-items: center;
}
.split-feature-media { aspect-ratio: 4/5; overflow: hidden; }
.split-feature-media img { width: 100%; height: 100%; object-fit: cover; }
.split-feature-text { padding: clamp(2rem, 5vw, 5rem); }

/* ============================================================ */
/* PRODUCT SHOP SIDEBAR */
/* ============================================================ */
.shop-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: clamp(2rem, 4vw, 4rem);
}
.shop-sidebar { padding-top: 8px; }
.shop-sidebar h4 {
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .14em;
    margin-bottom: 14px;
    color: var(--ink-mid);
}
.shop-filter-list { list-style: none; }
.shop-filter-list li { padding: 6px 0; }
.shop-filter-list a {
    font-size: .9rem;
    color: var(--ink);
}
.shop-filter-list a.active { font-weight: 600; }

/* ============================================================ */
/* FOOTER */
/* ============================================================ */
.site-footer {
    background: var(--paper-warm);
    padding: var(--space-xl) 0 var(--space-md);
    margin-top: var(--space-2xl);
    border-top: 1px solid var(--rule);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: var(--space-lg);
}
.footer-col h5 {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .14em;
    margin-bottom: 16px;
    color: var(--ink);
    font-family: var(--font-body);
}
.footer-col ul { list-style: none; }
.footer-col li { padding: 5px 0; }
.footer-col a { font-size: .82rem; color: var(--ink-mid); }

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 12px;
}
.footer-tagline { font-size: .85rem; color: var(--ink-mid); max-width: 320px; line-height: 1.55; }

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--rule);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: .78rem;
    color: var(--ink-light);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}
.footer-social a {
    width: 36px; height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--rule-strong);
    border-radius: 50%;
    transition: all var(--t-fast);
}
.footer-social a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); opacity: 1; }

/* ============================================================ */
/* UPLOAD AREA */
/* ============================================================ */
.upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px 22px;
    border: 1.5px dashed var(--rule-strong);
    background: var(--paper-warm);
    text-align: center;
    cursor: pointer;
    transition: all var(--t-fast);
}
.upload-area:hover { border-color: var(--ink); background: var(--paper); }
.upload-area input[type="file"] { display: none; }
.upload-area p { margin: 6px 0; font-size: .88rem; color: var(--ink-mid); }
.upload-icon { color: var(--ink-light); margin-bottom: 6px; }

/* ============================================================ */
/* BADGES de status */
/* ============================================================ */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: .68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-family: var(--font-body);
}

/* ============================================================ */
/* TABLAS */
/* ============================================================ */
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
table th, table td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid var(--rule);
}
table th {
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--ink-light);
    background: var(--paper-warm);
}
table tr:hover td { background: var(--paper-warm); }

/* ============================================================ */
/* AUTH (LOGIN/REGISTER) */
/* ============================================================ */
.auth-wrap {
    max-width: 440px;
    margin: var(--space-xl) auto;
    padding: 0 var(--space-md);
}
.auth-wrap h1 {
    font-size: 2.2rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 8px;
}
.auth-wrap > p {
    text-align: center;
    color: var(--ink-light);
    font-size: .9rem;
    margin-bottom: 32px;
}
.auth-wrap .btn { width: 100%; }
.auth-wrap .auth-meta {
    text-align: center;
    margin-top: 22px;
    font-size: .85rem;
    color: var(--ink-light);
}
.auth-wrap .auth-meta a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================ */
/* UTILITIES */
/* ============================================================ */
.text-center { text-align: center; }
.text-muted { color: var(--ink-light); }
.text-mono { font-variant-numeric: tabular-nums; }
.mb-sm { margin-bottom: 10px; }
.mb-md { margin-bottom: 20px; }
.mb-lg { margin-bottom: 40px; }
.mt-sm { margin-top: 10px; }
.mt-md { margin-top: 20px; }
.mt-lg { margin-top: 40px; }
.hide-mobile { display: initial; }
.show-mobile { display: none; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-sm { gap: 10px; }
.gap-md { gap: 20px; }

/* ============================================================ */
/* ANIMACIONES */
/* ============================================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .6s var(--ease) both; }
.fade-up-1 { animation: fadeUp .6s var(--ease) .1s both; }
.fade-up-2 { animation: fadeUp .6s var(--ease) .2s both; }
.fade-up-3 { animation: fadeUp .6s var(--ease) .3s both; }

@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
    width: 36px; height: 36px;
    border: 2px solid var(--rule);
    border-top-color: var(--ink);
    border-radius: 50%;
    animation: spin .8s linear infinite;
    display: inline-block;
}

/* ============================================================ */
/* RESPONSIVE */
/* ============================================================ */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .product-detail { grid-template-columns: 1fr; gap: 32px; }
    .product-detail-info { position: static; }
    .shop-layout { grid-template-columns: 1fr; }
    .shop-sidebar {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--rule);
        margin-bottom: 16px;
    }
    .shop-sidebar h4 { display: none; }
    .shop-filter-list { display: flex; gap: 4px; }
    .shop-filter-list li { padding: 0; }
    .shop-filter-list a {
        white-space: nowrap;
        padding: 8px 14px;
        border: 1px solid var(--rule-strong);
        font-size: .8rem;
    }
    .shop-filter-list a.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
}

@media (max-width: 768px) {
    body { font-size: 14px; }
    .header-inner { grid-template-columns: auto 1fr auto; padding: 14px 16px; }
    .hamburger { display: flex; align-items: center; order: 3; }
    .site-nav {
        position: fixed;
        top: 64px; left: 0; right: 0;
        background: var(--paper);
        flex-direction: column;
        gap: 0;
        padding: 16px;
        border-bottom: 1px solid var(--rule);
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--t-mid);
        justify-self: stretch;
    }
    .site-nav.open { max-height: 400px; }
    .site-nav .nav-link { padding: 14px 4px; font-size: .92rem; }

    .user-menu-btn span { display: none; }
    .cart-grid, .checkout-grid { grid-template-columns: 1fr; }
    .cart-summary, .product-detail-info { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .split-feature { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 4px; }

    .hide-mobile { display: none; }
    .show-mobile { display: initial; }
    .btn { padding: 13px 24px; }
}

@media (max-width: 480px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 4px; }
    .footer-grid { grid-template-columns: 1fr; }
    h1 { font-size: 1.8rem; }
}

/* Print */
@media print {
    .site-header, .site-footer, .btn, .cart-summary, .hamburger { display: none !important; }
}

/* ============================================================ */
/* v4 — HERO CARRUSEL                                           */
/* ============================================================ */
.hero-carousel {
    position: relative;
    min-height: 82vh;
    overflow: hidden;
    background: var(--paper-cream);
}
.hero-track { position: relative; width: 100%; height: 100%; min-height: 82vh; }
.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    background-size: cover;
    background-position: center;
    background-color: var(--paper-cream);
    opacity: 0;
    visibility: hidden;
    transform: scale(1.04);
    transition: opacity .8s var(--ease), transform 6s linear, visibility .8s;
}
.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 2;
}
.hero-slide-inner { max-width: 760px; position: relative; z-index: 2; }
.hero-slide-inner.align-left  { margin-right: auto; text-align: left; }
.hero-slide-inner.align-right { margin-left: auto;  text-align: right; }
/* Si el slide tiene imagen de fondo, el texto va en claro */
.hero-slide[style*="url"] .hero-title,
.hero-slide[style*="url"] .hero-sub,
.hero-slide[style*="url"] .hero-eyebrow { color: #fff; }
.hero-slide[style*="url"] .hero-title em { color: #e8f0e9; }
.hero-eyebrow { display: inline-block; margin-bottom: 14px; }
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 6.5vw, 5rem);
    font-weight: 300;
    line-height: 1.02;
    letter-spacing: -.03em;
    margin: 0 0 22px;
    color: var(--ink);
}
.hero-title em { font-style: italic; color: var(--moss-deep); }
.hero-sub {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: var(--ink-mid);
    max-width: 560px;
    margin: 0 0 32px;
    line-height: 1.6;
}
.align-center .hero-sub { margin-left: auto; margin-right: auto; }
.align-right  .hero-sub { margin-left: auto; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.align-center .hero-actions { justify-content: center; }
.align-right  .hero-actions { justify-content: flex-end; }
.btn-ghost-light {
    border: 1px solid rgba(255,255,255,.6);
    color: #fff;
}
.hero-slide:not([style*="url"]) .btn-ghost-light {
    border-color: var(--rule-strong);
    color: var(--ink);
}
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 46px; height: 46px;
    border: none;
    background: rgba(255,255,255,.85);
    color: var(--ink);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--t-fast), transform var(--t-fast);
    box-shadow: var(--shadow-sm);
}
.hero-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.hero-prev { left: 18px; }
.hero-next { right: 18px; }
.hero-dots {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 10px;
}
.hero-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.55);
    cursor: pointer;
    padding: 0;
    transition: all var(--t-fast);
}
.hero-dot.is-active { background: #fff; width: 26px; border-radius: 5px; }
.hero-slide:not([style*="url"]) ~ .hero-dots .hero-dot { background: rgba(10,10,10,.25); }
.hero-slide:not([style*="url"]) ~ .hero-dots .hero-dot.is-active { background: var(--ink); }
@media (max-width: 640px) {
    .hero-carousel, .hero-track, .hero-slide { min-height: 70vh; }
    .hero-arrow { display: none; }
}

/* ============================================================ */
/* v4 — SELECTOR DE MONEDA E IDIOMA (header)                    */
/* ============================================================ */
.currency-switch { position: relative; }
.currency-switch-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 38px;
    background: none;
    border: none;
    padding: 0 10px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .04em;
    cursor: pointer;
    color: var(--ink);
    border-radius: 2px;
    transition: background var(--t-fast);
}
.currency-switch-btn:hover { background: var(--paper-warm); }
.currency-switch:has(.currency-dropdown.open) .currency-switch-btn { background: var(--paper-warm); }
.currency-switch-btn:hover { border-color: var(--ink); }
.currency-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: var(--paper);
    border: 1px solid var(--rule);
    box-shadow: var(--shadow-md);
    z-index: 200;
    display: none;
    padding: 6px;
}
.currency-dropdown.open { display: block; }
.currency-dropdown a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    font-size: .82rem;
    color: var(--ink-mid);
    text-decoration: none;
    border-radius: 2px;
}
.currency-dropdown a:hover { background: var(--paper-warm); color: var(--ink); }
.currency-dropdown a.active { color: var(--moss-deep); font-weight: 700; }
.currency-dropdown a span:last-child { color: var(--ink-faint); }

/* ============================================================ */
/* v4 — TRANSPORTISTAS (checkout)                               */
/* ============================================================ */
.carrier-option {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--rule);
    padding: 14px 16px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color var(--t-fast), background var(--t-fast);
    border-radius: 3px;
}
.carrier-option:hover { border-color: var(--rule-strong); }
.carrier-option.selected { border-color: var(--moss); background: var(--moss-light); }
.carrier-option input { accent-color: var(--moss); width: 17px; height: 17px; flex-shrink: 0; }
.carrier-thumb {
    width: 54px; height: 54px;
    flex-shrink: 0;
    object-fit: contain;
    background: var(--paper-warm);
    border: 1px solid var(--rule);
    border-radius: 3px;
    display: flex; align-items: center; justify-content: center;
    color: var(--ink-light);
}
.carrier-thumb img { width: 100%; height: 100%; object-fit: contain; }
.carrier-info { flex: 1; min-width: 0; }
.carrier-name { font-weight: 600; font-size: .95rem; }
.carrier-desc { font-size: .8rem; color: var(--ink-light); margin-top: 2px; }
.carrier-days { font-size: .74rem; color: var(--sage); margin-top: 2px; }
.carrier-price { font-weight: 700; font-size: 1rem; white-space: nowrap; }
.carrier-price.free { color: var(--success); }

/* ============================================================ */
/* v4 — MINI-CARRITO (drawer lateral)                           */
/* ============================================================ */
.cart-drawer-overlay {
    position: fixed; inset: 0;
    background: rgba(10,10,10,.4);
    z-index: 998;
    opacity: 0; visibility: hidden;
    transition: opacity .3s var(--ease), visibility .3s;
}
.cart-drawer-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer {
    position: fixed; top: 0; right: 0;
    width: min(420px, 92vw);
    height: 100%;
    background: var(--paper);
    z-index: 999;
    transform: translateX(100%);
    transition: transform .35s var(--ease);
    display: flex; flex-direction: column;
    box-shadow: var(--shadow-lg);
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 22px;
    border-bottom: 1px solid var(--rule);
}
.cart-drawer-head h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; margin: 0; }
.cart-drawer-close { background: none; border: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink-mid); }
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 14px 22px; }
.cart-drawer-empty { text-align: center; padding: 60px 20px; color: var(--ink-light); }
.mini-cart-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.mini-cart-item img { width: 64px; height: 80px; object-fit: cover; background: var(--paper-warm); flex-shrink: 0; }
.mini-cart-item-info { flex: 1; min-width: 0; }
.mini-cart-item-name { font-weight: 500; font-size: .88rem; margin-bottom: 4px; }
.mini-cart-item-meta { font-size: .78rem; color: var(--ink-light); }
.mini-cart-qty { display: inline-flex; align-items: center; border: 1px solid var(--rule); margin-top: 8px; }
.mini-cart-qty button { width: 28px; height: 28px; border: none; background: none; cursor: pointer; font-size: 1rem; color: var(--ink-mid); }
.mini-cart-qty span { width: 32px; text-align: center; font-size: .82rem; }
.mini-cart-remove { background: none; border: none; color: var(--ink-light); font-size: .76rem; cursor: pointer; text-decoration: underline; margin-top: 6px; padding: 0; }
.mini-cart-remove:hover { color: var(--error); }
.cart-drawer-foot { padding: 20px 22px; border-top: 1px solid var(--rule); }
.cart-drawer-total { display: flex; justify-content: space-between; font-size: 1rem; font-weight: 600; margin-bottom: 14px; }

/* Botón añadir mejorado */
.btn-add-cart.is-loading { opacity: .7; pointer-events: none; }
.btn-add-cart.is-done { background: var(--success) !important; color: #fff !important; }
@keyframes cart-bump { 0%{transform:scale(1)} 30%{transform:scale(1.35)} 100%{transform:scale(1)} }
.cart-badge.bump { animation: cart-bump .4s var(--ease); }

/* ====== v4: mini-carrito (estructura del render JS) ====== */
.mini-cart-item { align-items: flex-start; }
.mini-cart-thumb { width: 60px; height: 72px; object-fit: cover; background: var(--paper-warm); flex-shrink: 0; }
.mini-cart-thumb--empty { background: var(--paper-warm); }
.mini-cart-info { flex: 1; min-width: 0; }
.mini-cart-name { font-weight: 500; font-size: .88rem; margin-bottom: 2px; line-height: 1.3; }
.mini-cart-price { font-size: .78rem; color: var(--ink-light); margin-bottom: 6px; }
.mini-cart-qbtn { width: 26px; height: 26px; border: none; background: none; cursor: pointer; font-size: 1rem; color: var(--ink-mid); }
.mini-cart-right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 8px; }
.mini-cart-line { font-size: .85rem; font-weight: 600; white-space: nowrap; }
.mini-cart-remove { width: 24px; height: 24px; line-height: 1; padding: 0; text-decoration: none; font-size: 1.1rem; }

/* ====== v4: spinner / estados del botón añadir ====== */
.btn-add-cart { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-add-spinner { display: none; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: btn-spin .6s linear infinite; }
.btn-add-cart.is-loading .btn-add-spinner { display: inline-block; }
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* Botón de tarjeta: icono circular siempre visible, elegante */
.product-quick {
    position: absolute;
    left: auto; top: auto; right: 12px; bottom: 12px;
    width: 40px; height: 40px;
    padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff; color: var(--ink);
    border: 1px solid var(--rule); border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,.12);
    opacity: 1; transform: none;
    transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
    cursor: pointer;
    text-transform: none; letter-spacing: normal;
    z-index: 2;
}
.product-quick:hover { background: var(--ink); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.22); }
.product-quick:active { transform: translateY(0) scale(.95); }
.product-quick .btn-add-icon, .product-quick .btn-add-check { width: 18px; height: 18px; }
.btn-add-cart.is-done { background: var(--success, #2d6a4f) !important; color: #fff !important; border-color: var(--success, #2d6a4f) !important; }

.btn-add-icon, .btn-add-check { display: block; }
.btn-add-cart .btn-add-check { display: none; }
.btn-add-cart.is-loading .btn-add-icon,
.btn-add-cart.is-loading .btn-add-check { display: none; }
.btn-add-cart.is-done .btn-add-icon { display: none; }
.btn-add-cart.is-done .btn-add-check { display: block; }

/* ====== v4: selector de idioma (banderas) ====== */
.lang-switch { position: relative; display: inline-flex; }
.lang-switch-btn {
    display: inline-flex; align-items: center; gap: 7px;
    height: 38px; padding: 0 10px;
    background: none; border: none; border-radius: 2px;
    cursor: pointer; color: var(--ink); line-height: 1;
    transition: background var(--t-fast);
}
.lang-switch-btn:hover { background: var(--paper-warm); }
.lang-caret { color: var(--ink-light); transition: transform .2s; flex-shrink: 0; }
.lang-switch:has(.lang-dropdown.open) .lang-caret { transform: rotate(180deg); }
.lang-switch:has(.lang-dropdown.open) .lang-switch-btn { background: var(--paper-warm); }
.lang-flag {
    width: 24px; height: 16px; flex-shrink: 0;
    display: inline-block; border-radius: 3px; overflow: hidden;
    box-shadow: 0 0 0 1px rgba(0,0,0,.12);
    background: #fff;
}
.lang-flag svg { width: 100%; height: 100%; display: block; }
.lang-code { display: block; font-size: .56rem; font-weight: 700; line-height: 15px; text-align: center; letter-spacing: .02em; color: var(--ink-mid); }
.lang-dropdown {
    position: absolute; top: calc(100% + 8px); right: 0;
    min-width: 190px; max-width: calc(100vw - 32px); padding: 6px;
    background: var(--paper); border: 1px solid var(--rule);
    box-shadow: 0 12px 34px rgba(0,0,0,.12);
    z-index: 300;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.lang-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-option {
    display: flex; align-items: center; gap: 11px; width: 100%;
    padding: 9px 10px; background: none; border: none; cursor: pointer;
    text-align: left; font-size: .86rem; color: var(--ink);
    font-family: inherit; border-radius: 2px;
    transition: background var(--t-fast, .15s);
}
.lang-option:hover { background: var(--paper-warm); }
.lang-option.active { background: var(--paper-warm); font-weight: 600; }
.lang-option .lang-flag { width: 27px; height: 18px; }
.lang-option.active .lang-name::after { content: " ✓"; color: var(--moss, #4a5d3a); }
.lang-name { white-space: nowrap; }

/* Ocultar la interfaz nativa de Google Translate (pero mantenerla activa) */
#google_translate_element { display: none !important; }

/* ====== v4: ajustes responsive cabecera (idioma/moneda) ====== */
.currency-dropdown { max-width: calc(100vw - 32px); }
@media (max-width: 768px) {
    .header-actions { gap: 6px; }
    .lang-switch-btn, .currency-switch-btn { padding: 0 8px; height: 38px; }
    .currency-switch-btn { font-size: .75rem; gap: 4px; }
}
@media (max-width: 380px) {
    .header-actions { gap: 2px; }
    .lang-switch-btn { padding: 0 6px; }
    .currency-switch-btn { padding: 0 6px; }
}
