/* ============================================
   ESPACIO CONSCIENTE — Design System v2
   base.css — Foundation for all pages
   REBUILD: Celeste prominent, anime.js ready,
   breathing gradients, magnetic interactions
   ============================================ */

/* ---------- @property for animatable gradients ---------- */
@property --hero-angle {
    syntax: '<angle>';
    initial-value: 135deg;
    inherits: false;
}
@property --hero-stop {
    syntax: '<percentage>';
    initial-value: 40%;
    inherits: false;
}

/* ---------- CSS Variables ---------- */
:root {
    /* Brand palette */
    --terracota: #C4956A;
    --terracota-light: #d4a97e;
    --terracota-dark: #a87d56;
    --verde-salvia: #8B9E7E;
    --verde-salvia-light: #a3b498;
    --verde-salvia-dark: #6f8264;
    --arena: #D4A574;
    --arena-light: #e0ba92;
    --arena-dark: #b8884e;
    --celeste: #8BACC4;
    --celeste-light: #a8c3d6;
    --celeste-dark: #6d8fa8;
    --celeste-vivid: #7BA3BD;
    --crema: #FAF6F1;
    --crema-dark: #f0e8dd;
    --marron: #3D3028;
    --marron-light: #4a3a2e;
    --blanco: #FFFFFF;
    --gris-suave: #E8E2DA;

    /* Glassmorphism */
    --glass-white: rgba(255, 255, 255, 0.6);
    --glass-dark: rgba(61, 48, 40, 0.6);
    --glass-blur: 20px;
    --overlay-dark: rgba(61, 48, 40, 0.5);
    --overlay-light: rgba(250, 246, 241, 0.85);

    /* Gradients */
    --grad-hero: linear-gradient(var(--hero-angle), var(--celeste-dark) 0%, var(--verde-salvia-dark) var(--hero-stop), var(--marron) 100%);
    --grad-warm: linear-gradient(135deg, var(--crema) 0%, var(--crema-dark) 100%);
    --grad-celeste: linear-gradient(135deg, var(--celeste) 0%, var(--celeste-dark) 100%);
    --grad-celeste-soft: linear-gradient(135deg, rgba(139,172,196,0.08) 0%, rgba(139,172,196,0.03) 100%);

    /* Glows */
    --glow-terracota: 0 0 24px rgba(196, 149, 106, 0.35);
    --glow-celeste: 0 0 24px rgba(139, 172, 196, 0.35);

    /* Section tints */
    --tint-calma: rgba(139, 158, 126, 0.06);
    --tint-energia: rgba(196, 149, 106, 0.06);
    --tint-frescura: rgba(139, 172, 196, 0.08);

    /* Typography */
    --font-titulo: 'Fraunces', Georgia, serif;
    --font-cuerpo: 'Lato', 'Segoe UI', sans-serif;
    --font-acento: 'Cormorant Garamond', Georgia, serif;

    /* Shadows */
    --shadow-subtle: 0 1px 3px rgba(61, 48, 40, 0.06);
    --shadow-card: 0 4px 20px rgba(61, 48, 40, 0.08);
    --shadow-elevated: 0 12px 40px rgba(61, 48, 40, 0.14);
    --shadow-floating: 0 20px 60px rgba(61, 48, 40, 0.18);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 30px;
    --radius-full: 9999px;
    --radius-blob: 30% 70% 70% 30% / 60% 40% 60% 40%;

    /* Spacing (8px scale) */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;
    --space-section: clamp(72px, 10vw, 140px);

    /* Easings */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out-sine: cubic-bezier(0.37, 0, 0.63, 1);
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Timing */
    --t-instant: 0.1s;
    --t-micro: 0.15s;
    --t-quick: 0.2s;
    --t-standard: 0.3s;
    --t-reveal: 0.5s;
    --t-deliberate: 0.4s;
    --t-dramatic: 0.8s;
    --stagger: 0.06s;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-cuerpo);
    color: var(--marron);
    background-color: var(--crema);
    line-height: 1.6;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }

/* ---------- Scroll Progress Bar ---------- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--grad-celeste);
    z-index: 9999;
    transition: none;
    pointer-events: none;
}

/* ---------- Containers ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 24px); }
.container--wide { max-width: 1400px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 24px); }
.container--narrow { max-width: 760px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 24px); }

/* ---------- Topbar ---------- */
.topbar {
    background: var(--marron);
    color: var(--crema);
    font-size: 0.78rem;
    padding: 8px 0;
    overflow: hidden;
    position: relative;
}
.topbar-marquee {
    display: flex;
    gap: var(--space-3xl);
    width: max-content;
    animation: marquee 25s linear infinite;
}
.topbar-marquee span {
    font-family: var(--font-acento);
    font-style: italic;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* ---------- Header ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 246, 241, 0.92);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    transition: background var(--t-standard), box-shadow var(--t-standard), padding var(--t-standard);
}
.header[data-scrolled="true"] {
    background: var(--glass-white);
    box-shadow: var(--shadow-card);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px clamp(16px, 4vw, 24px);
    max-width: 1200px;
    margin: 0 auto;
    transition: padding var(--t-standard);
}
.header[data-scrolled="true"] .header-inner {
    padding-top: 10px;
    padding-bottom: 10px;
}

/* Logo */
.logo { display: inline-flex; align-items: center; }
.logo img { height: 44px; width: auto; transition: height var(--t-standard); }
.header[data-scrolled="true"] .logo img { height: 36px; }

/* Nav */
.nav-main { display: flex; gap: var(--space-xl); align-items: center; }
.nav-main a {
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--marron);
    position: relative;
    padding: 4px 0;
    transition: color var(--t-micro);
}
.nav-main a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--celeste);
    transition: width var(--t-standard) var(--ease-out-expo), left var(--t-standard) var(--ease-out-expo);
}
.nav-main a:hover { color: var(--celeste-dark); }
.nav-main a:hover::after { width: 100%; left: 0; }
.nav-main a.current-menu-item,
.nav-main a.current-menu-ancestor { color: var(--celeste-dark); font-weight: 600; }
.nav-main a.current-menu-item::after,
.nav-main a.current-menu-ancestor::after {
    width: 6px; height: 6px; left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    bottom: -6px;
    background: var(--celeste);
}

/* Header actions */
.header-actions { display: flex; gap: var(--space-lg); align-items: center; }
.header-action-link {
    color: var(--marron);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    transition: color var(--t-micro), background var(--t-micro);
}
.header-action-link:hover { color: var(--celeste-dark); background: var(--tint-frescura); }
.header-action-link svg { width: 20px; height: 20px; }

.cart-icon { position: relative; }
.cart-badge {
    position: absolute; top: 2px; right: 0;
    background: var(--terracota); color: var(--blanco);
    font-size: 0.6rem; font-weight: 700;
    width: 17px; height: 17px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
}
.menu-toggle {
    display: none;
    background: none; border: none; cursor: pointer;
    width: 40px; height: 40px;
    align-items: center; justify-content: center;
    border-radius: 50%;
    transition: background var(--t-micro);
}
.menu-toggle:hover { background: var(--tint-frescura); }
.menu-toggle svg { width: 22px; height: 22px; color: var(--marron); }

/* ---------- Search Overlay ---------- */
.search-overlay {
    position: fixed;
    inset: 0;
    background: var(--overlay-dark);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 200;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 20vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-standard), visibility var(--t-standard);
}
.search-overlay[data-open="true"] { opacity: 1; visibility: visible; }
.search-form {
    width: 90%;
    max-width: 600px;
    display: flex;
    gap: var(--space-md);
    transform: translateY(-20px);
    transition: transform var(--t-deliberate) var(--ease-out-expo);
}
.search-overlay[data-open="true"] .search-form { transform: translateY(0); }
.search-form input[type="search"] {
    flex: 1;
    padding: 18px 24px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.15);
    color: var(--blanco);
    font-family: var(--font-cuerpo);
    font-size: 1.1rem;
    outline: none;
    transition: border-color var(--t-quick);
}
.search-form input[type="search"]::placeholder { color: rgba(255,255,255,0.5); }
.search-form input[type="search"]:focus { border-color: var(--celeste); }
.search-close {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: none; color: var(--blanco);
    font-size: 1.2rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--t-micro);
}
.search-close:hover { background: rgba(255,255,255,0.2); }

/* ---------- Mobile Menu (Fullscreen) ---------- */
.mobile-menu-overlay {
    position: fixed; inset: 0;
    background: var(--overlay-dark);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    z-index: 198; opacity: 0; visibility: hidden;
    transition: opacity var(--t-standard), visibility var(--t-standard);
}
.mobile-menu-overlay.active { opacity: 1; visibility: visible; }

.mobile-menu {
    position: fixed; inset: 0;
    background: var(--crema);
    z-index: 199;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--space-3xl) var(--space-xl);
    opacity: 0; visibility: hidden;
    transition: opacity var(--t-deliberate), visibility var(--t-deliberate);
}
.mobile-menu.active { opacity: 1; visibility: visible; }

.mobile-menu-close {
    position: absolute; top: var(--space-lg); right: var(--space-lg);
    background: none; border: none; cursor: pointer;
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; color: var(--marron);
    font-size: 1.5rem;
    transition: background var(--t-micro);
}
.mobile-menu-close:hover { background: var(--crema-dark); }

.mobile-menu nav { text-align: center; }
.mobile-menu nav a {
    display: block;
    font-family: var(--font-titulo);
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    font-weight: 500;
    color: var(--marron);
    padding: var(--space-md) 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--t-reveal) var(--ease-out-expo),
                transform var(--t-reveal) var(--ease-out-expo),
                color var(--t-micro);
}
.mobile-menu.active nav a { opacity: 1; transform: translateY(0); }
.mobile-menu nav a:hover { color: var(--celeste-dark); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding: var(--space-lg) 0; font-size: 0.85rem; }
.breadcrumbs a { color: var(--marron-light); transition: color var(--t-micro); }
.breadcrumbs a:hover { color: var(--celeste-dark); }
.breadcrumbs .separator { color: var(--gris-suave); margin: 0 8px; }
.breadcrumbs .current { color: var(--celeste-dark); font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 32px; border-radius: var(--radius-full);
    font-family: var(--font-cuerpo); font-size: 0.88rem; font-weight: 700;
    letter-spacing: 0.5px; text-transform: uppercase;
    cursor: pointer; border: 2px solid transparent;
    min-height: 48px; position: relative;
    transition: transform var(--t-quick) var(--ease-out-expo),
                box-shadow var(--t-standard),
                background var(--t-quick),
                color var(--t-quick),
                border-color var(--t-quick);
}
.btn:active { transform: scale(0.96); }

/* Primary — terracota with glow */
.btn-primary { background: var(--terracota); color: var(--blanco); border-color: var(--terracota); }
.btn-primary:hover {
    background: var(--terracota-dark); border-color: var(--terracota-dark);
    transform: translateY(-2px); box-shadow: var(--glow-terracota), var(--shadow-elevated);
}

/* Secondary — celeste (NEW: celeste as co-protagonist) */
.btn-secondary { background: var(--celeste); color: var(--blanco); border-color: var(--celeste); }
.btn-secondary:hover {
    background: var(--celeste-dark); border-color: var(--celeste-dark);
    transform: translateY(-2px); box-shadow: var(--glow-celeste), var(--shadow-elevated);
}

/* Outline */
.btn-outline { background: transparent; color: var(--marron); border-color: var(--marron); }
.btn-outline:hover { background: var(--marron); color: var(--crema); transform: translateY(-2px); }

/* Glass (for dark backgrounds) */
.btn-glass {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    color: var(--blanco); border-color: rgba(255,255,255,0.25);
}
.btn-glass:hover {
    background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.4);
    transform: translateY(-2px);
}

/* Ghost — text + underline */
.btn-ghost {
    background: none; border: none; color: var(--celeste-dark);
    padding: 8px 4px; min-height: auto; text-transform: none;
    font-weight: 600; letter-spacing: 0; position: relative;
}
.btn-ghost::after {
    content: ''; position: absolute; bottom: 4px; left: 0;
    width: 0; height: 1.5px; background: currentColor;
    transition: width var(--t-standard) var(--ease-out-expo);
}
.btn-ghost:hover::after { width: 100%; }
.btn-ghost:active { transform: none; }

/* Small variant */
.btn-sm { padding: 10px 22px; font-size: 0.82rem; min-height: 40px; }

/* Magnetic class — JS enhances on desktop */
.magnetic { will-change: transform; }

/* ---------- Chips ---------- */
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 16px; border-radius: var(--radius-full);
    font-family: var(--font-cuerpo); font-size: 0.82rem; font-weight: 500;
    transition: background var(--t-micro), transform var(--t-quick);
}
.chip:hover { transform: translateY(-1px); }
.chip-glass {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    color: var(--blanco); border: 1px solid rgba(255,255,255,0.2);
}
.chip-glass:hover { background: rgba(255,255,255,0.25); }
.chip-sm { padding: 3px 12px; font-size: 0.75rem; }
.chip-calma { background: var(--tint-calma); color: var(--verde-salvia-dark); }
.chip-energia { background: var(--tint-energia); color: var(--terracota-dark); }
.chip-frescura { background: var(--tint-frescura); color: var(--celeste-dark); }

/* ---------- Overline chip ---------- */
.overline-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 16px; border-radius: var(--radius-full);
    background: var(--tint-frescura); color: var(--celeste-dark);
    font-family: var(--font-acento); font-style: italic; font-size: 0.9rem;
    margin-bottom: var(--space-md);
}

/* ---------- Section Headers ---------- */
.section-header-left { margin-bottom: var(--space-2xl); }
.section-counter {
    font-family: var(--font-titulo); font-size: 0.7rem; font-weight: 600;
    color: var(--celeste); letter-spacing: 3px; opacity: 0.6;
    display: block; margin-bottom: var(--space-xs);
}
.section-header-left h2 {
    font-family: var(--font-titulo); font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 600; color: var(--marron);
}

/* ---------- Scroll Cue ---------- */
.scroll-cue {
    position: absolute; bottom: var(--space-xl); left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    color: rgba(255,255,255,0.5);
    font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase;
}
.scroll-cue-line {
    width: 1px; height: 32px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scroll-cue-pulse 2s ease-in-out infinite;
}
/* @keyframes scroll-cue-pulse lives in homepage.css */

/* ---------- Footer ---------- */
.footer-fade {
    height: 120px;
    background: linear-gradient(to bottom, var(--crema), var(--marron));
}
.footer {
    background: var(--marron);
    color: var(--gris-suave);
    padding: 0;
}
.footer-top {
    text-align: center;
    padding: var(--space-2xl) 0 var(--space-xl);
}
.footer-top .logo { justify-content: center; margin-bottom: var(--space-md); }
.footer-top .logo img { height: 40px; }
.footer-tagline {
    font-family: var(--font-acento); font-style: italic;
    font-size: 1rem; color: var(--gris-suave); opacity: 0.6;
    margin-bottom: var(--space-lg);
}
.social-links { display: flex; gap: var(--space-md); justify-content: center; }
.social-link {
    width: 44px; height: 44px;
    background: rgba(255,255,255,0.06); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--gris-suave);
    transition: transform var(--t-quick) var(--spring), background var(--t-quick), color var(--t-quick);
}
.social-link:hover { background: var(--celeste); color: var(--blanco); transform: scale(1.1); }
.social-link svg { width: 18px; height: 18px; }

.footer-links {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl);
    padding: var(--space-xl) 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-col h4 {
    font-family: var(--font-titulo); font-size: 0.95rem;
    color: var(--crema); margin-bottom: var(--space-md);
}
.footer-col a {
    display: block; font-size: 0.82rem; color: var(--gris-suave);
    padding: 4px 0;
    transition: color var(--t-micro), transform var(--t-quick) var(--ease-out-expo);
}
.footer-col a:hover { color: var(--celeste-light); transform: translateX(4px); }

.footer-bottom {
    padding: var(--space-lg) 0;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.75rem; opacity: 0.5;
}
.payment-icons { display: flex; gap: 8px; }
.payment-icon {
    padding: 3px 10px; background: rgba(255,255,255,0.06);
    border-radius: var(--radius-sm); font-size: 0.65rem; font-weight: 700; color: var(--gris-suave);
}

/* ---------- WhatsApp FAB ---------- */
.whatsapp-fab {
    position: fixed; bottom: 24px; right: 24px; z-index: 90;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25D366; color: var(--blanco);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-elevated);
    transition: transform var(--t-quick) var(--spring), box-shadow var(--t-standard);
    border: none; cursor: pointer;
}
.whatsapp-fab:hover { transform: scale(1.1); box-shadow: var(--shadow-floating); }
.whatsapp-fab svg { width: 28px; height: 28px; }

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed; bottom: 90px; right: 24px; z-index: 89;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--blanco); color: var(--marron);
    border: 1.5px solid var(--gris-suave);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    opacity: 0; transform: translateY(10px); pointer-events: none;
    transition: opacity var(--t-standard), transform var(--t-standard) var(--ease-out-expo),
                background var(--t-micro), border-color var(--t-micro);
    box-shadow: var(--shadow-card);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--crema-dark); border-color: var(--celeste); color: var(--celeste-dark); }
.back-to-top svg { width: 20px; height: 20px; }

/* ---------- Animations (CSS) ---------- */
/* marquee is used by topbar (global), others live in homepage.css only */
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Reveal classes — set by JS IntersectionObserver */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--t-reveal) var(--ease-out-expo),
                transform var(--t-reveal) var(--ease-out-expo);
}
[data-reveal].visible {
    opacity: 1;
    transform: none;
}
[data-reveal="left"] { transform: translateX(-30px); }
[data-reveal="right"] { transform: translateX(30px); }
[data-reveal="scale"] { transform: scale(0.92); }

/* Stagger children */
[data-stagger] > * {
    opacity: 0; transform: translateY(20px);
    transition: opacity var(--t-reveal) var(--ease-out-expo),
                transform var(--t-reveal) var(--ease-out-expo);
}
[data-stagger].visible > * { opacity: 1; transform: none; }
[data-stagger].visible > *:nth-child(1) { transition-delay: calc(1 * var(--stagger)); }
[data-stagger].visible > *:nth-child(2) { transition-delay: calc(2 * var(--stagger)); }
[data-stagger].visible > *:nth-child(3) { transition-delay: calc(3 * var(--stagger)); }
[data-stagger].visible > *:nth-child(4) { transition-delay: calc(4 * var(--stagger)); }
[data-stagger].visible > *:nth-child(5) { transition-delay: calc(5 * var(--stagger)); }
[data-stagger].visible > *:nth-child(6) { transition-delay: calc(6 * var(--stagger)); }
[data-stagger].visible > *:nth-child(7) { transition-delay: calc(7 * var(--stagger)); }
[data-stagger].visible > *:nth-child(8) { transition-delay: calc(8 * var(--stagger)); }

/* ---------- Skip Link ---------- */
.skip-link {
    position: absolute; top: -100%; left: 50%;
    transform: translateX(-50%); z-index: 10000;
    padding: 12px 24px; background: var(--marron); color: var(--crema);
    font-family: var(--font-cuerpo); font-weight: 700;
    text-decoration: none; border-radius: var(--radius-full);
    transition: top 0.2s ease;
}
.skip-link:focus { top: 8px; outline: 3px solid var(--celeste); outline-offset: 2px; }

/* ---------- Focus Visible ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
[role="tab"]:focus-visible, [role="radio"]:focus-visible {
    outline: 3px solid var(--celeste); outline-offset: 2px; border-radius: 4px;
}

/* ---------- Texture Overlay ---------- */
.texture-overlay { position: relative; }
.texture-overlay::after {
    content: ''; position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none; z-index: 0;
}

/* ---------- Image Handling ---------- */
.product-img img, .category-img img, .gallery-main img, .gallery-thumb img,
.related-img img, .featured-img img, .article-card-img img, .product-card-img img {
    width: 100%; height: 100%; object-fit: cover;
}

/* ---------- WooCommerce Overrides ---------- */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
    border-top-color: var(--celeste); background: var(--crema);
    font-family: var(--font-cuerpo); border-radius: var(--radius-md);
}
.woocommerce-message::before { color: var(--verde-salvia); }
.woocommerce-info::before { color: var(--celeste); }
.woocommerce-error::before { color: var(--terracota); }

.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit {
    background: var(--terracota); color: var(--blanco); border-radius: var(--radius-full);
    font-family: var(--font-cuerpo); font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px; padding: 12px 28px; transition: all var(--t-standard); border: none;
}
.woocommerce a.button:hover, .woocommerce button.button:hover {
    background: var(--terracota-dark); transform: translateY(-2px); box-shadow: var(--glow-terracota);
}
.woocommerce a.button.alt, .woocommerce button.button.alt { background: var(--celeste); }
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: var(--celeste-dark); }

/* WC form styling */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    border: 1.5px solid var(--gris-suave); border-radius: var(--radius-sm);
    font-family: var(--font-cuerpo); padding: 14px 16px;
    transition: border-color var(--t-quick), box-shadow var(--t-quick);
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row select:focus {
    border-color: var(--celeste); box-shadow: 0 0 0 3px rgba(139,172,196,0.15);
}

.woocommerce table.shop_table { border-color: var(--gris-suave); border-radius: var(--radius-md); overflow: hidden; }
.woocommerce table.shop_table th { background: var(--crema-dark); font-family: var(--font-titulo); font-weight: 600; }
.woocommerce .quantity .qty {
    border: 2px solid var(--gris-suave); border-radius: var(--radius-sm);
    font-family: var(--font-cuerpo); padding: 8px; width: 60px; text-align: center;
}

/* ---------- MC4WP Newsletter ---------- */
.mc4wp-form input[type="email"] {
    width: 100%; padding: 14px 20px;
    border: 1.5px solid var(--gris-suave); border-radius: var(--radius-full);
    font-family: var(--font-cuerpo); font-size: 0.9rem;
    transition: border-color var(--t-quick), box-shadow var(--t-quick);
}
.mc4wp-form input[type="email"]:focus {
    border-color: var(--celeste); box-shadow: 0 0 0 3px rgba(139,172,196,0.15); outline: none;
}
.mc4wp-form input[type="submit"],
.mc4wp-form button[type="submit"] {
    width: 100%; padding: 14px 32px;
    background: var(--celeste); color: var(--blanco);
    border: 2px solid var(--celeste); border-radius: var(--radius-full);
    font-family: var(--font-cuerpo); font-weight: 700; font-size: 0.85rem;
    text-transform: uppercase; letter-spacing: 0.5px; cursor: pointer;
    transition: background var(--t-quick), transform var(--t-quick);
}
.mc4wp-form input[type="submit"]:hover,
.mc4wp-form button[type="submit"]:hover {
    background: var(--celeste-dark); transform: translateY(-2px);
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .footer-links { grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
}
@media (max-width: 768px) {
    .nav-main { display: none; }
    .menu-toggle { display: flex; }
    .footer-links { grid-template-columns: 1fr; gap: var(--space-md); }
    .footer-bottom { flex-direction: column; gap: var(--space-sm); text-align: center; }
    .whatsapp-fab { bottom: 16px; right: 16px; width: 52px; height: 52px; }
    .back-to-top { bottom: 78px; right: 16px; }
}
@media (min-width: 1400px) {
    .container { max-width: 1320px; }
    .container--wide { max-width: 1480px; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    [data-reveal], [data-stagger] > * { opacity: 1; transform: none; }
    .topbar-marquee { animation: none; }
    html { scroll-behavior: auto; }
}
