/* ============================================================
   PAC LIMPIEZA V3 - Multi-Theme Design System
   Institutional Colors · 4 Themes × Light/Dark · Conversion-Focused
   Base: #0082cc blue, #74bb20 green, #ffffff white
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Instrument+Serif:ital@0;1&family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&family=Fraunces:ital,wght@0,600;0,700;1,600&display=swap');

:root {
    --pac-blue: #0082cc;
    --pac-blue-600: #006faf;
    --pac-blue-700: #005a8f;
    --pac-blue-100: #E6F4FB;
    --pac-blue-50: #F3FAFD;
    --pac-green: #74bb20;
    --pac-green-600: #5fa017;
    --pac-green-700: #4a8212;
    --pac-green-100: #EEF8DF;
    --pac-green-50: #F7FCEE;
    --pac-white: #ffffff;
    --wa: #25D366;
    --wa-600: #1DA851;
    --danger: #DC2626;
    --danger-100: #FEE2E2;
    --warning: #F59E0B;
    --success: var(--pac-green);
    --max-w: 1280px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-elev: #ffffff;
    --surface: #ffffff;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    --text: #0f172a;
    --text-soft: #475569;
    --text-muted: #94a3b8;
    --text-inverse: #ffffff;
    --accent: var(--pac-green);
    --accent-hover: var(--pac-green-600);
    --accent-contrast: #ffffff;
    --ff-display: 'Space Grotesk', sans-serif;
    --ff-body: 'DM Sans', sans-serif;
    --ff-serif: 'Instrument Serif', serif;
    --r-xs: 4px;
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 20px;
    --r-xl: 32px;
    --r-pill: 999px;
    --sh-xs: 0 1px 2px rgba(15,23,42,0.04);
    --sh-sm: 0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
    --sh-md: 0 4px 12px rgba(15,23,42,0.08), 0 2px 4px rgba(15,23,42,0.04);
    --sh-lg: 0 12px 32px rgba(15,23,42,0.10), 0 4px 8px rgba(15,23,42,0.04);
    --sh-xl: 0 24px 64px rgba(15,23,42,0.14);
    --sh-soft: 0 10px 30px rgba(2, 6, 23, 0.08);
    --sh-focus: 0 0 0 3px rgba(0,130,204,0.25);
    --header-h: 84px;
    /* V4.6.10: structural tokens shared across all themes for consistent containment */
    --noise-opacity: 0.04;
    --container-pad-x: clamp(1rem, 4vw, 2rem);
    --section-pad-y: clamp(3rem, 7vw, 5rem);
    --card-pad: clamp(1rem, 2.5vw, 1.75rem);
    --grid-gap: clamp(1rem, 2.5vw, 1.75rem);
}

/* THEME 1: INDUSTRIAL (default) */
[data-theme="industrial"] {
    --bg: #ffffff; --bg-alt: #f8fafc; --bg-elev: #ffffff; --surface: #ffffff;
    --border: #e2e8f0; --border-strong: #cbd5e1;
    --text: #0f172a; --text-soft: #475569; --text-muted: #94a3b8;
    --accent: var(--pac-blue); --accent-hover: var(--pac-blue-600);
    --ff-display: 'Space Grotesk', sans-serif; --ff-body: 'DM Sans', sans-serif;
    --r-xs: 4px; --r-sm: 8px; --r-md: 12px; --r-lg: 20px; --r-xl: 32px;
    --sh-soft: 0 10px 30px rgba(2, 6, 23, 0.08);
}
[data-theme="industrial"][data-mode="dark"] {
    --bg: #0a0f1a; --bg-alt: #111827; --bg-elev: #1a2332; --surface: #151e2d;
    --border: #1f2937; --border-strong: #374151;
    --text: #f1f5f9; --text-soft: #cbd5e1; --text-muted: #64748b;
    --sh-sm: 0 1px 3px rgba(0,0,0,0.4); --sh-md: 0 4px 12px rgba(0,0,0,0.5);
    --sh-lg: 0 12px 32px rgba(0,0,0,0.55); --sh-xl: 0 24px 64px rgba(0,0,0,0.6);
    --sh-soft: 0 14px 40px rgba(0, 0, 0, 0.45);
}

/* THEME 2: EDITORIAL */
[data-theme="editorial"] {
    --bg: #fafaf7; --bg-alt: #f4f3ee; --bg-elev: #ffffff; --surface: #ffffff;
    --border: #e8e6df; --border-strong: #c9c5b8;
    --text: #18181b; --text-soft: #52525b; --text-muted: #a1a1aa;
    --accent: var(--pac-blue); --accent-hover: var(--pac-blue-700);
    --ff-display: 'Fraunces', serif; --ff-body: 'Inter', sans-serif;
    --r-xs: 3px; --r-sm: 4px; --r-md: 6px; --r-lg: 10px; --r-xl: 14px;
    --sh-soft: 0 8px 24px rgba(24, 24, 27, 0.06);
}
[data-theme="editorial"][data-mode="dark"] {
    --bg: #18181b; --bg-alt: #1f1f23; --bg-elev: #27272a; --surface: #27272a;
    --border: #3f3f46; --border-strong: #52525b;
    --text: #f4f4f5; --text-soft: #d4d4d8; --text-muted: #71717a;
    --sh-soft: 0 14px 36px rgba(0, 0, 0, 0.5);
}

/* THEME 3: PREMIUM */
[data-theme="premium"] {
    --bg: #fbfaf7; --bg-alt: #f2efe8; --bg-elev: #ffffff; --surface: #ffffff;
    --border: #e6e1d5; --border-strong: #c9bfa8;
    --text: #1a1814; --text-soft: #5c5346; --text-muted: #928770;
    --accent: #b8860b; --accent-hover: #9c7209; --accent-contrast: #ffffff;
    --ff-display: 'Fraunces', serif; --ff-body: 'DM Sans', sans-serif;
    --r-xs: 2px; --r-sm: 4px; --r-md: 8px; --r-lg: 12px; --r-xl: 16px;
    --sh-soft: 0 10px 28px rgba(26, 24, 20, 0.08);
}
[data-theme="premium"][data-mode="dark"] {
    --bg: #0f0d0a; --bg-alt: #1a1713; --bg-elev: #24201b; --surface: #24201b;
    --border: #332d25; --border-strong: #4a4236;
    --text: #faf7f0; --text-soft: #d4c9b3; --text-muted: #8a7f6a;
    --accent: #d4a017; --accent-hover: #b8860b;
    --sh-soft: 0 14px 40px rgba(0, 0, 0, 0.5);
}

/* THEME 4: SOFT */
[data-theme="soft"] {
    --bg: #fafbfc; --bg-alt: #f0f4f9; --bg-elev: #ffffff; --surface: #ffffff;
    --border: #e4eaf2; --border-strong: #cdd5e1;
    --text: #1e293b; --text-soft: #475569; --text-muted: #94a3b8;
    --accent: var(--pac-blue); --accent-hover: var(--pac-blue-600);
    --ff-display: 'DM Sans', sans-serif; --ff-body: 'DM Sans', sans-serif;
    --r-xs: 8px; --r-sm: 14px; --r-md: 20px; --r-lg: 28px; --r-xl: 40px;
    --sh-sm: 0 2px 8px rgba(15,23,42,0.04);
    --sh-md: 0 8px 24px rgba(15,23,42,0.06);
    --sh-lg: 0 20px 48px rgba(15,23,42,0.08);
    --sh-soft: 0 16px 40px rgba(15, 23, 42, 0.08);
}
[data-theme="soft"][data-mode="dark"] {
    --bg: #0f1620; --bg-alt: #18212d; --bg-elev: #1f2a38; --surface: #1f2a38;
    --border: #2d3a4a; --border-strong: #475569;
    --text: #f1f5f9; --text-soft: #cbd5e1; --text-muted: #64748b;
    --sh-soft: 0 18px 48px rgba(0, 0, 0, 0.5);
}

/* THEME 5: EDITORIAL PREMIUM (V4.5) — modern dark-first hero, gradient washes,
   Space Grotesk + Inter, glassmorphism, animated drops/waves, SVG coverage map.
   Designed for high-impact landing presentation. */
[data-theme="editorial-premium"] {
    --pac-sky: 45 156 219;        /* #2D9CDB — used in rgb(var(...) / a) calls */
    --pac-corp: 30 64 175;        /* #1E40AF — corporate blue */
    --pac-corp-deep: 20 45 130;
    --pac-lime: 141 198 63;       /* #8DC63F — accent lime */
    --pac-lime-deep: 110 165 40;

    --bg: #fafbfd; --bg-alt: #f3f6fb; --bg-elev: #ffffff; --surface: #ffffff;
    --border: #e2e8f0; --border-strong: #cbd5e1;
    --text: #0f172a; --text-soft: #475569; --text-muted: #94a3b8;
    --accent: rgb(var(--pac-corp)); --accent-hover: rgb(var(--pac-corp-deep)); --accent-contrast: #ffffff;
    --ff-display: 'Space Grotesk', system-ui, sans-serif;
    --ff-body: 'Inter', system-ui, sans-serif;
    --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px;
    --sh-soft: 0 10px 30px rgba(2, 6, 23, 0.08);
    --noise-opacity: 0.04;
}
[data-theme="editorial-premium"][data-mode="dark"] {
    --bg: #060b14; --bg-alt: #0c1322; --bg-elev: #111a2b; --surface: #111a2b;
    --border: #1e293b; --border-strong: #334155;
    --text: #f1f5f9; --text-soft: #cbd5e1; --text-muted: #94a3b8;
    --accent: rgb(var(--pac-sky)); --accent-hover: rgb(var(--pac-corp));
    --sh-soft: 0 14px 40px rgba(0, 0, 0, 0.45);
    --noise-opacity: 0.06;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; transition: background-color 0.3s var(--ease); }
body { font-family: var(--ff-body); color: var(--text); background: var(--bg); line-height: 1.65; overflow-x: hidden; transition: background-color 0.3s var(--ease), color 0.3s var(--ease); }
h1, h2, h3, h4, h5, h6 { font-family: var(--ff-display); line-height: 1.12; color: var(--text); font-weight: 700; letter-spacing: -0.01em; }
[data-theme="editorial"] h1, [data-theme="editorial"] h2, [data-theme="premium"] h1, [data-theme="premium"] h2 { letter-spacing: -0.02em; font-weight: 600; }
a { text-decoration: none; color: inherit; transition: color 0.2s var(--ease), opacity 0.2s var(--ease); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
*:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(1rem, 3vw, 2rem); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
button, a, [role="button"], [onclick], .clickable, label[for], select { cursor: pointer; }
input[disabled], button[disabled] { cursor: not-allowed; opacity: 0.6; }

/* ============================================================
   V4.6.10 — UNIVERSAL CONTAINMENT NORMALIZATION
   Applies across ALL themes (industrial, editorial, premium, soft, editorial-premium)
   to prevent elements from spilling out of their containers.
   This was a major source of visual breakage on themes other than EP.
   ============================================================ */

/* 1. Cards/panels: never spill content. Force overflow control + radius inheritance. */
.card,
.product-card,
.industria-card,
.categoria-card,
.marca-card,
.blog-card,
.ciudad-card,
.feature-card,
.stat-card,
.pricing-card,
.testimonial-card,
.coverage-card,
.benefit-card {
    overflow: hidden;
    border-radius: var(--r-lg);
    background: var(--bg-elev);
    border: 1px solid var(--border);
    box-shadow: var(--sh-sm);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
    min-width: 0; /* allow grid items to shrink below content width */
}

/* 2. Grids never overflow their parent — always 100% wide and consistent gap. */
.grid,
[class*="-grid"]:not(.no-default-grid),
.cards-grid,
.products-grid,
.industries-grid,
.categories-grid,
.brands-grid,
.cities-grid,
.coverage-grid {
    display: grid;
    gap: var(--grid-gap);
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/* 3. Images inside cards: object-fit + max constraints */
.card img,
[class*="-card"] img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 4. Long text never breaks layout — wrap consistently */
.card h1, .card h2, .card h3, .card h4, .card p,
[class*="-card"] h1, [class*="-card"] h2, [class*="-card"] h3, [class*="-card"] h4, [class*="-card"] p,
.product-name, .industria-name, .categoria-name, .marca-name, .ciudad-name {
    overflow-wrap: anywhere;
    word-wrap: break-word;
    hyphens: auto;
}

/* 5. Section padding consistent across themes */
section { padding-block: var(--section-pad-y); }
section:first-child { padding-top: 0; }

/* 6. Footer/header: ensure they never let content escape horizontally */
.header, .footer, header, footer, nav { max-width: 100%; overflow-x: clip; }

/* 7. Tables get horizontal scroll instead of breaking the layout */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
table { min-width: 100%; border-collapse: collapse; }

/* 8. Pre/code blocks: scroll horizontally if too long */
pre, code { overflow-x: auto; word-wrap: normal; max-width: 100%; }

/* 9. Iframe/embed responsive containment */
iframe, embed, object, video {
    max-width: 100%;
    height: auto;
}

/* 10. Card hover effect uniform across themes */
.card:hover,
[class*="-card"]:hover {
    transform: translateY(-2px);
    box-shadow: var(--sh-md);
    border-color: var(--border-strong);
}
@media (prefers-reduced-motion: reduce) {
    .card:hover, [class*="-card"]:hover { transform: none; }
}

/* ICONS - 3 PACKS SWITCHABLE SYSTEM */
.icn-wrap {
    display: inline-block;
    width: 1em;
    height: 1em;
    line-height: 1;
    vertical-align: -0.125em;
    position: relative;
    flex-shrink: 0;
}
.icn-wrap.icon--sm { width: 1rem; height: 1rem; font-size: 1rem; }
.icn-wrap.icon--md { width: 1.25rem; height: 1.25rem; font-size: 1.25rem; }
.icn-wrap.icon--lg { width: 1.75rem; height: 1.75rem; font-size: 1.75rem; }
.icn-wrap.icon--xl { width: 2.5rem; height: 2.5rem; font-size: 2.5rem; }
.icn-wrap.icon--2xl { width: 3.5rem; height: 3.5rem; font-size: 3.5rem; }

.icn { display: none; width: 100%; height: 100%; line-height: 1; }
.icn svg { width: 100%; height: 100%; display: block; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.icn--emoji {
    display: none;
    font-size: inherit;
    line-height: 1;
    text-align: center;
    font-style: normal;
    font-family: 'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji','Android Emoji',sans-serif;
}

/* Default pack: outline */
html[data-iconpack="outline"] .icn--outline,
html:not([data-iconpack]) .icn--outline { display: inline-block; }

html[data-iconpack="filled"] .icn--filled { display: inline-block; }
html[data-iconpack="emoji"] .icn--emoji { display: inline-flex; align-items: center; justify-content: center; }

/* Emoji sizing fix */
html[data-iconpack="emoji"] .icn-wrap { font-size: 1.1em; }
html[data-iconpack="emoji"] .icn-wrap.icon--sm { font-size: 1rem; }
html[data-iconpack="emoji"] .icn-wrap.icon--md { font-size: 1.3rem; }
html[data-iconpack="emoji"] .icn-wrap.icon--lg { font-size: 1.8rem; }
html[data-iconpack="emoji"] .icn-wrap.icon--xl { font-size: 2.6rem; }
html[data-iconpack="emoji"] .icn-wrap.icon--2xl { font-size: 3.6rem; }

/* Backward compat: legacy .icon class still works */
.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
    vertical-align: -0.125em;
}
.icon--sm { width: 1rem; height: 1rem; }
.icon--md { width: 1.25rem; height: 1.25rem; }
.icon--lg { width: 1.75rem; height: 1.75rem; }
.icon--xl { width: 2.5rem; height: 2.5rem; }
.icon--2xl { width: 3.5rem; height: 3.5rem; stroke-width: 1.5; }

/* TOP BAR */
.top-bar { background: var(--text); color: var(--bg); font-size: 0.78rem; padding: 0.45rem 0; border-bottom: 1px solid var(--border); }
[data-mode="dark"] .top-bar { background: #000; color: var(--text-soft); }
.top-bar__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.top-bar__contact { display: flex; gap: 1.5rem; align-items: center; }
.top-bar__contact a { color: inherit; opacity: 0.8; display: inline-flex; align-items: center; gap: 0.35rem; transition: opacity 0.2s; }
.top-bar__contact a:hover { opacity: 1; color: var(--wa); }
.top-bar__hours { opacity: 0.6; }
@media (max-width: 640px) { .top-bar__hours { display: none; } .top-bar__contact { gap: 0.75rem; font-size: 0.72rem; } }
@media (max-width: 900px) { .top-bar { display: none; } }

/* HEADER */
.header { background: var(--bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1000; transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease); height: var(--header-h); }
@media (max-width: 900px) { .header { height: 68px; } :root { --header-h: 68px; } }
.header--scrolled { box-shadow: var(--sh-md); backdrop-filter: blur(12px); background: color-mix(in srgb, var(--bg) 88%, transparent); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 1.25rem; }
@media (max-width: 900px) { .header__inner { gap: 0.5rem; } .container { padding: 0 1rem; } }

.header__logo { font-family: var(--ff-display); font-size: 1.5rem; font-weight: 800; color: var(--pac-blue); display: inline-flex; align-items: center; gap: 0.55rem; white-space: nowrap; letter-spacing: -0.02em; text-decoration: none; flex-shrink: 0; }

/* Logo image — BULLETPROOF sizing (wins over any HTML attrs or external CSS) */
.header .header__logo-img,
a.header__logo img.header__logo-img,
.header__logo-img {
    width: var(--logo-size-header, 1.5cm) !important;
    height: var(--logo-size-header, 1.5cm) !important;
    max-width: var(--logo-size-header, 1.5cm) !important;
    max-height: var(--logo-size-header, 1.5cm) !important;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    transition: transform 0.2s var(--ease);
}
.header__logo:hover .header__logo-img { transform: scale(1.05); }
.header__logo-text { display: none; }
.header__logo-text em { color: var(--pac-green); font-style: normal; }
@media (max-width: 480px) {
    .header .header__logo-img,
    a.header__logo img.header__logo-img,
    .header__logo-img {
        width: var(--logo-size-mobile, 1.5cm) !important;
        height: var(--logo-size-mobile, 1.5cm) !important;
        max-width: var(--logo-size-mobile, 1.5cm) !important;
        max-height: var(--logo-size-mobile, 1.5cm) !important;
    }
}
[data-mode="dark"] .header__logo-img { filter: brightness(1.15) drop-shadow(0 0 2px rgba(255,255,255,0.1)); }
[data-theme="editorial"] .header__logo, [data-theme="premium"] .header__logo { font-weight: 600; }

/* ============================================================
   NAV — Desktop (default) + Mobile drawer card
   ============================================================ */
.nav { display: flex; align-items: center; gap: 0.5rem; }
.nav__list { display: flex; align-items: center; gap: 0.125rem; list-style: none; padding: 0; margin: 0; }
.nav__item { position: relative; }

/* ============================================================
   INTERACTIVE SEARCH POPOVER
   ============================================================ */
.nav__search-btn {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-alt);
    color: var(--text-soft);
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.18s var(--ease);
    min-width: 140px;
    justify-content: flex-start;
}
.nav__search-btn:hover { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--bg-alt)); }
.nav__search-btn .icn-wrap { width: 1rem; height: 1rem; }
.nav__search-btn-label { opacity: 0.75; font-weight: 500; }

.search-popover {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(480px, calc(100vw - 2rem));
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15), 0 3px 8px rgba(0, 0, 0, 0.06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
    z-index: 200;
    overflow: hidden;
}
.nav__item--search.open .search-popover {
    opacity: 1; visibility: visible; transform: translateY(0) scale(1);
}
.search-popover__inner { display: flex; flex-direction: column; max-height: 75vh; max-height: 75dvh; }

.search-popover__input-wrap {
    display: flex; align-items: center; gap: 0.55rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    flex-shrink: 0;
}
.search-popover__input-wrap .icn-wrap { width: 1.1rem; height: 1.1rem; flex-shrink: 0; }
.search-popover__input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    padding: 0.2rem 0;
}
.search-popover__input::placeholder { color: var(--text-muted); }
.search-popover__clear {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px;
    background: var(--bg-alt);
    border: none;
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}
.search-popover__clear:hover { color: var(--text); background: var(--border); }
.search-popover__clear .icn-wrap { width: 0.85rem; height: 0.85rem; }

.search-popover__results {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.search-popover__hint {
    padding: 2rem 1.2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.search-popover__hint-chips { display: flex; gap: 0.4rem; justify-content: center; flex-wrap: wrap; margin-top: 0.75rem; }
.search-popover__chip {
    padding: 0.3rem 0.75rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-soft);
}

/* Search result group */
.search-group { padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.search-group:last-child { border-bottom: none; }
.search-group__label {
    display: flex; align-items: center; gap: 0.4rem;
    padding: 0.5rem 1rem 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}
.search-group__label .icn-wrap { width: 0.85rem; height: 0.85rem; }
.search-result {
    display: flex; align-items: flex-start; gap: 0.7rem;
    padding: 0.65rem 1rem;
    color: var(--text);
    text-decoration: none;
    transition: background 0.12s;
    border-left: 2px solid transparent;
}
.search-result:hover,
.search-result.active {
    background: var(--bg-alt);
    border-left-color: var(--accent);
}
.search-result__icon {
    width: 32px; height: 32px;
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    color: var(--accent);
    border-radius: var(--r-sm);
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.search-result__icon .icn-wrap { width: 1rem; height: 1rem; }
.search-result__body { flex: 1; min-width: 0; }
.search-result__title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 0.1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.search-result__desc {
    font-size: 0.76rem;
    color: var(--text-soft);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    margin: 0;
}
.search-result mark {
    background: color-mix(in srgb, var(--accent) 22%, transparent);
    color: inherit;
    padding: 0 2px;
    border-radius: 3px;
    font-weight: 700;
}

.search-popover__see-all {
    display: flex; align-items: center; justify-content: center; gap: 0.4rem;
    padding: 0.8rem 1rem;
    background: var(--bg-alt);
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    border-top: 1px solid var(--border);
    transition: background 0.15s;
}
.search-popover__see-all:hover { background: color-mix(in srgb, var(--accent) 8%, var(--bg-alt)); }

.search-popover__empty {
    padding: 2rem 1.2rem;
    text-align: center;
    color: var(--text-muted);
}
.search-popover__empty-icon { width: 48px; height: 48px; background: var(--bg-alt); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 0.65rem; color: var(--text-muted); }
.search-popover__empty-icon .icn-wrap { width: 1.4rem; height: 1.4rem; }
.search-popover__empty strong { display: block; color: var(--text); font-size: 0.92rem; margin-bottom: 0.3rem; }
.search-popover__empty p { font-size: 0.82rem; margin: 0; }

/* ============================================================
   CITY SELECTOR
   ============================================================ */
.city-btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.45rem 0.75rem 0.45rem 0.65rem;
    background: transparent;
    color: var(--text-soft);
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.18s var(--ease);
    max-width: 160px;
}
.city-btn:hover { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.city-btn .icn-wrap { width: 0.95rem; height: 0.95rem; flex-shrink: 0; }
.city-btn__label {
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.city-btn__chevron { display: inline-flex; align-items: center; transition: transform 0.2s; flex-shrink: 0; }
.city-btn__chevron .icn-wrap { width: 0.8rem; height: 0.8rem; }
.nav__item--city.open .city-btn__chevron { transform: rotate(180deg); }
.nav__item--city.open .city-btn { border-color: var(--accent); color: var(--accent); }

.city-popover {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(360px, calc(100vw - 2rem));
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15), 0 3px 8px rgba(0, 0, 0, 0.06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
    z-index: 200;
    max-height: 75vh; max-height: 75dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.nav__item--city.open .city-popover { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.city-popover__header { padding: 1rem 1.1rem 0.8rem; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.city-popover__header strong { display: block; font-size: 0.95rem; color: var(--text); margin-bottom: 0.2rem; }
.city-popover__header p { font-size: 0.78rem; color: var(--text-soft); margin: 0; line-height: 1.4; }
.city-popover__detect {
    display: flex; align-items: center; gap: 0.55rem;
    padding: 0.75rem 1.1rem;
    background: color-mix(in srgb, var(--accent) 8%, var(--bg-alt));
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.city-popover__detect--success { color: var(--pac-green); background: color-mix(in srgb, var(--pac-green) 8%, var(--bg-alt)); }
.city-popover__detect--failed { color: var(--text-muted); background: var(--bg-alt); }
.city-popover__detect .icn-wrap { width: 1rem; height: 1rem; flex-shrink: 0; }
.city-popover__detect a { color: var(--accent); font-weight: 600; margin-left: auto; text-decoration: none; }
.city-popover__detect a:hover { text-decoration: underline; }

.city-popover__list {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 0.3rem 0;
}
.city-popover__state-label {
    padding: 0.55rem 1.1rem 0.3rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}
.city-popover__item {
    display: flex; align-items: center; gap: 0.55rem;
    width: 100%;
    padding: 0.6rem 1.1rem;
    background: transparent;
    border: none;
    color: var(--text);
    font-family: inherit;
    font-size: 0.88rem;
    text-align: left;
    cursor: pointer;
    transition: background 0.12s;
    text-decoration: none;
}
.city-popover__item:hover { background: var(--bg-alt); color: var(--accent); }
.city-popover__item.active {
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    color: var(--accent);
    font-weight: 600;
}
.city-popover__item-check { margin-left: auto; color: var(--accent); opacity: 0; transition: opacity 0.15s; }
.city-popover__item-check .icn-wrap { width: 1rem; height: 1rem; }
.city-popover__item.active .city-popover__item-check { opacity: 1; }

/* Nav primary link styles */
.nav__link { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.55rem 0.85rem; font-size: 0.875rem; font-weight: 500; color: var(--text-soft); border-radius: var(--r-sm); transition: color 0.15s, background 0.15s; background: transparent; border: none; font-family: inherit; cursor: pointer; text-decoration: none; }
button.nav__link, .nav__dd-toggle { background: transparent; border: none; font-family: inherit; cursor: pointer; }
.nav__link:hover { color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }

/* Desktop dropdown — floating card with soft borders */
.nav__dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
    min-width: 260px;
    padding: 0.45rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.98);
    transform-origin: top left;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
    z-index: 100;
    list-style: none;
    margin: 0;
}
.nav__item:hover .nav__dropdown,
.nav__item.open .nav__dropdown,
.nav__item:focus-within .nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.nav__dropdown a { display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 0.75rem; font-size: 0.85rem; color: var(--text); border-radius: var(--r-sm); transition: background 0.15s, color 0.15s; text-decoration: none; }
.nav__dropdown a:hover { background: var(--bg-alt); color: var(--accent); }
.nav__dropdown a:hover .nav__dd-icon { color: var(--accent); }
.nav__dd-icon { display: inline-flex; align-items: center; justify-content: center; color: var(--text-muted); flex-shrink: 0; transition: color 0.15s; }
.nav__dd-icon .icon { width: 1.15rem; height: 1.15rem; }

.nav__cta {
    background: var(--wa) !important;
    color: #fff !important;
    padding: 0.55rem 1.1rem !important;
    border-radius: var(--r-pill) !important;
    font-weight: 600 !important;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: 0.5rem;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25);
    font-size: 0.82rem !important;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.nav__cta:hover { background: var(--wa-600) !important; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35); }

/* Mobile-only elements — BULLETPROOF hidden on desktop */
.nav .nav__mobile-header,
.nav .nav__close,
.nav__mobile-header,
.nav__close { display: none !important; }

.theme-btn .theme-btn__label,
.theme-btn .theme-btn__chevron,
.theme-btn__label,
.theme-btn__chevron { display: none !important; }

/* Hamburger button */
.hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; background: transparent; border: 1px solid var(--border); border-radius: var(--r-sm); padding: 0; margin-left: 0.5rem; cursor: pointer; transition: background 0.18s, border-color 0.18s; }
.hamburger:hover { background: var(--bg-alt); border-color: var(--accent); }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; margin: 0 auto; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Overlay — subtle, not overpowering */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(3px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s var(--ease);
    pointer-events: none;
}
.nav-overlay.active { opacity: 1; pointer-events: auto; }

/* ============================================================
   MOBILE NAV (≤ 1024px) — Floating card drawer, NOT full-screen
   ============================================================ */
@media (max-width: 1024px) {
    .hamburger { display: inline-flex; }
    .nav-overlay { display: block; }

    /* Drawer as a floating card from the right, with rounded corners */
    .nav {
        position: fixed;
        top: calc(var(--header-h) + 0.75rem);
        right: 0.75rem;
        bottom: auto;
        max-height: calc(100vh - var(--header-h) - 1.5rem);
        max-height: calc(100dvh - var(--header-h) - 1.5rem);
        width: min(92vw, 360px);
        background: var(--bg-elev);
        flex-direction: column;
        padding: 0.5rem;
        margin: 0;
        gap: 0;
        border: 1px solid var(--border);
        border-radius: var(--r-lg);
        transform: translateX(calc(100% + 1rem)) scale(0.96);
        opacity: 0;
        transform-origin: top right;
        transition: transform 0.3s var(--ease), opacity 0.25s var(--ease);
        z-index: 999;
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.25), 0 10px 20px -5px rgba(0, 0, 0, 0.1);
        align-items: stretch;
        visibility: hidden;
    }
    .nav.active {
        transform: translateX(0) scale(1);
        opacity: 1;
        visibility: visible;
    }

    /* Small mobile header strip inside the drawer */
    .nav .nav__mobile-header,
    .nav__mobile-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 0.75rem 0.85rem 0.8rem;
        border-bottom: 1px solid var(--border);
        flex-shrink: 0;
        margin-bottom: 0.4rem;
    }
    .nav__mobile-brand { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; font-weight: 700; color: var(--pac-blue); font-size: 0.85rem; }
    .nav__mobile-logo { width: 26px; height: 26px; object-fit: contain; }
    .nav .nav__close,
    .nav__close { display: inline-flex !important; width: 34px; height: 34px; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--border); border-radius: var(--r-sm); color: var(--text-soft); cursor: pointer; transition: all 0.18s; font-family: inherit; }
    .nav__close:hover { background: var(--bg-alt); color: var(--pac-blue); border-color: var(--pac-blue); }
    .nav__close .icn-wrap { width: 1.05rem; height: 1.05rem; }

    /* Nav list inside drawer */
    .nav__list {
        flex-direction: column;
        width: 100%;
        gap: 0.1rem;
        padding: 0 0.25rem;
        align-items: stretch;
    }
    .nav__item { width: 100%; position: static; }
    .nav__link {
        width: 100%;
        padding: 0.75rem 0.85rem;
        font-size: 0.95rem;
        font-weight: 500;
        justify-content: flex-start;
        border-radius: var(--r-sm);
        min-height: 44px;
        color: var(--text);
    }
    .nav__link:hover { background: var(--bg-alt); }

    /* Dropdown toggle → show chevron, rotate when open */
    .nav__dd-toggle { justify-content: space-between !important; width: 100%; }
    .nav__dd-toggle > .icon:last-child {
        transition: transform 0.25s var(--ease);
        margin-left: auto;
        flex-shrink: 0;
    }
    .nav__item.open > .nav__dd-toggle > .icon:last-child { transform: rotate(180deg); }

    /* Dropdown as accordion */
    .nav__dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--bg-alt);
        border-radius: var(--r-sm);
        margin: 0.15rem 0 0.35rem;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s var(--ease), padding 0.3s var(--ease);
        min-width: 0;
        width: 100%;
    }
    .nav__item.open .nav__dropdown {
        max-height: 900px;
        padding: 0.25rem 0.4rem;
    }
    .nav__dropdown a {
        padding: 0.65rem 0.75rem;
        min-height: 40px;
        font-size: 0.875rem;
    }

    /* CTA WhatsApp destacado */
    .nav__cta {
        width: auto !important;
        justify-content: center !important;
        margin: 0.6rem 0.4rem 0.4rem !important;
        padding: 0.8rem 1rem !important;
        font-size: 0.88rem !important;
        min-height: 44px;
    }

    /* Body scroll lock */
    body.nav-open { overflow: hidden; touch-action: none; }

    /* Search & city buttons inside the drawer */
    .nav__item--search,
    .nav__item--city { width: 100%; }
    .nav__search-btn,
    .city-btn {
        width: 100%;
        max-width: none;
        min-height: 44px;
        padding: 0.75rem 0.85rem;
        border-radius: var(--r-sm);
        justify-content: flex-start;
        font-size: 0.9rem;
    }
    .city-btn__label { max-width: none; flex: 1; }
    .nav__search-btn-label { flex: 1; }

    /* Search popover on mobile: full-width inside drawer */
    .search-popover,
    .city-popover {
        position: fixed;
        top: auto;
        right: 0.75rem;
        left: 0.75rem;
        bottom: 0.75rem;
        width: auto;
        max-width: none;
        max-height: 70vh;
        max-height: 70dvh;
        transform-origin: center bottom;
        transform: translateY(20px) scale(0.98);
    }
    .nav__item--search.open .search-popover,
    .nav__item--city.open .city-popover {
        transform: translateY(0) scale(1);
    }
}

/* Small phones — tighten spacing and position closer to edge */
@media (max-width: 480px) {
    .nav {
        right: 0.5rem;
        top: calc(var(--header-h) + 0.5rem);
        width: min(94vw, 340px);
        max-height: calc(100vh - var(--header-h) - 1rem);
        max-height: calc(100dvh - var(--header-h) - 1rem);
    }
}

/* ============================================================
   USER MENU (replaces theme-switcher) — theme is nested inside
   ============================================================ */

/* Icon-only nav buttons (favoritos, cart) */
.nav__item--icon { position: relative; }
.nav__icon-btn {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--bg-alt);
    color: var(--text-soft);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.18s var(--ease);
    position: relative;
}
.nav__icon-btn:hover { color: var(--accent); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.nav__icon-btn .icn-wrap { width: 1.05rem; height: 1.05rem; }
.nav__icon-badge {
    position: absolute;
    top: -4px; right: -4px;
    background: #dc2626;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 999px;
    min-width: 16px;
    height: 16px;
    line-height: 14px;
    text-align: center;
    border: 2px solid var(--bg);
}

/* Main user button */
.nav__item--user { position: relative; }
.user-btn {
    display: inline-flex; align-items: center;
    gap: 0.4rem;
    padding: 0;
    background: var(--bg-alt);
    color: var(--text-soft);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.18s var(--ease);
    height: 40px;
    width: 40px;
    justify-content: center;
}
.user-btn:hover { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.user-btn .icn-wrap { width: 1.05rem; height: 1.05rem; }

/* Login button variant (when anonymous): show "Iniciar Sesión" label */
.user-btn--login {
    width: auto;
    padding: 0 1rem;
    gap: 0.5rem;
    background: var(--bg);
    border-color: var(--border);
}
.user-btn--login:hover { background: var(--pac-blue); color: #fff; border-color: var(--pac-blue); }
.user-btn__label { font-weight: 600; white-space: nowrap; }

/* Avatar circle for logged-in user */
.user-btn__avatar {
    width: 28px; height: 28px;
    background: linear-gradient(135deg, var(--pac-blue), #005a8c);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.01em;
}
.nav__item--user.open .user-btn { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }

/* ----- User popover ----- */
.user-popover {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 280px;
    max-width: 320px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15), 0 3px 8px rgba(0, 0, 0, 0.06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
    z-index: 200;
    overflow: hidden;
    padding: 0.5rem;
}
.nav__item--user.open .user-popover { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

/* Header with avatar + info */
.user-popover__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem 0.85rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.4rem;
}
.user-popover__avatar {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--pac-blue), #005a8c);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.05rem;
    flex-shrink: 0;
}
.user-popover__info { min-width: 0; flex: 1; }
.user-popover__info strong { display: block; font-size: 0.92rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-popover__info small { font-size: 0.76rem; color: var(--text-muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Welcome (anonymous) */
.user-popover__welcome {
    padding: 0.9rem 0.9rem 1rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.4rem;
}
.user-popover__welcome strong { display: block; color: var(--text); font-size: 0.92rem; margin-bottom: 0.25rem; }
.user-popover__welcome p { font-size: 0.78rem; color: var(--text-soft); margin: 0; line-height: 1.45; }

/* Sections & items */
.user-popover__section { display: flex; flex-direction: column; gap: 0.05rem; }
.user-popover__section + .user-popover__section { border-top: 1px solid var(--border); padding-top: 0.4rem; margin-top: 0.4rem; }
.user-popover__item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 0.75rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text);
    border-radius: var(--r-sm);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    font-family: inherit;
}
.user-popover__item .icn-wrap { width: 1.05rem; height: 1.05rem; color: var(--text-muted); flex-shrink: 0; }
.user-popover__item:hover { background: var(--bg-alt); color: var(--accent); }
.user-popover__item:hover .icn-wrap { color: var(--accent); }
.user-popover__item span { flex: 1; }
.user-popover__item--primary {
    background: color-mix(in srgb, var(--pac-blue) 8%, transparent);
    color: var(--pac-blue);
    font-weight: 600;
    margin-bottom: 0.15rem;
}
.user-popover__item--primary:hover { background: var(--pac-blue); color: #fff; }
.user-popover__item--primary:hover .icn-wrap { color: #fff; }
.user-popover__item--primary .icn-wrap { color: var(--pac-blue); }
.user-popover__item--danger { color: #dc2626; }
.user-popover__item--danger .icn-wrap { color: #dc2626; }
.user-popover__item--danger:hover { background: color-mix(in srgb, #dc2626 10%, transparent); color: #dc2626; }
.user-popover__item--danger:hover .icn-wrap { color: #dc2626; }
.user-popover__item--disabled { opacity: 0.55; cursor: not-allowed; pointer-events: none; }
.user-popover__badge { margin-left: auto; font-size: 0.62rem; padding: 0.12rem 0.45rem; background: var(--bg-alt); color: var(--text-muted); border-radius: var(--r-pill); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; flex: none; }

.user-popover__logout-form { margin: 0; }

/* ----- Collapsible theme section inside user popover ----- */
.user-popover__section--collapsible .user-popover__toggle {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 0.75rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text);
    border-radius: var(--r-sm);
    background: transparent;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    font-family: inherit;
    transition: background 0.15s;
}
.user-popover__toggle .icn-wrap { width: 1.05rem; height: 1.05rem; color: var(--text-muted); flex-shrink: 0; }
.user-popover__toggle:hover { background: var(--bg-alt); }
.user-popover__toggle:hover .icn-wrap { color: var(--accent); }
.user-popover__toggle span:not(.user-popover__chevron) { flex: 1; }
.user-popover__chevron {
    display: inline-flex;
    align-items: center;
    transition: transform 0.25s var(--ease);
    color: var(--text-muted);
}
.user-popover__chevron .icn-wrap { width: 0.9rem; height: 0.9rem; }
#themeSwitcher.open .user-popover__chevron { transform: rotate(180deg); }

.user-popover__collapse {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s var(--ease), opacity 0.2s, padding 0.25s, margin 0.25s;
    padding: 0 0.25rem;
    margin: 0;
}
#themeSwitcher.open .user-popover__collapse {
    max-height: 720px;
    opacity: 1;
    padding: 0.65rem 0.5rem 0.5rem;
    margin-top: 0.2rem;
}

/* Theme options (inherited look, compact inside popover) */
.theme-panel__title { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 0.5rem; padding: 0 0.25rem; }
.theme-panel__title:not(:first-child) { margin-top: 0.75rem; }

/* Reset-to-default button (clears user's local theme override) */
.theme-reset-btn {
    width: 100%;
    padding: 0.55rem 0.75rem;
    background: transparent;
    border: 1px dashed var(--border);
    border-radius: 0.5rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.18s ease;
    text-align: center;
}
.theme-reset-btn:hover {
    background: color-mix(in srgb, var(--accent) 6%, transparent);
    border-color: var(--accent);
    color: var(--accent);
}
.theme-options { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; margin-bottom: 0.5rem; }
.theme-option { display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem; padding: 0.55rem 0.6rem; background: var(--bg-alt); border: 1.5px solid var(--border); border-radius: var(--r-sm); text-align: left; transition: all 0.2s var(--ease); cursor: pointer; font-family: inherit; }
.theme-option:hover { border-color: var(--accent); }
.theme-option.active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.theme-option__swatches { display: flex; gap: 3px; }
.theme-option__swatch { width: 11px; height: 11px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.08); }
.theme-option__name { font-size: 0.76rem; font-weight: 600; color: var(--text); }
.theme-option__desc { font-size: 0.66rem; color: var(--text-muted); line-height: 1.3; }
.mode-toggle { display: flex; padding: 3px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--r-sm); }
.mode-toggle__btn { flex: 1; padding: 0.4rem; font-size: 0.75rem; font-weight: 600; color: var(--text-muted); background: transparent; border: none; border-radius: calc(var(--r-sm) - 2px); display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; transition: all 0.2s var(--ease); cursor: pointer; font-family: inherit; }
.mode-toggle__btn.active { background: var(--bg-elev); color: var(--text); box-shadow: var(--sh-sm); }
.iconpack-options { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.35rem; }
.iconpack-option {
    display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
    padding: 0.5rem 0.3rem; background: var(--bg-alt); border: 1.5px solid var(--border);
    border-radius: var(--r-sm); cursor: pointer; transition: all 0.2s var(--ease);
    font-family: inherit;
}
.iconpack-option:hover { border-color: var(--accent); }
.iconpack-option.active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.iconpack-option__preview {
    width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center;
    color: var(--accent);
}
.iconpack-option__preview svg { width: 18px; height: 18px; }
.iconpack-option__label { font-size: 0.66rem; font-weight: 600; color: var(--text-soft); }
.iconpack-option.active .iconpack-option__label { color: var(--text); }

/* ========== USER MENU — MOBILE (inside drawer) ========== */
@media (max-width: 1024px) {
    /* Icon buttons stack in drawer as rows */
    .nav__item--icon { width: 100%; }
    .nav__icon-btn {
        width: 100%;
        height: auto;
        padding: 0.75rem 0.85rem;
        justify-content: flex-start;
        gap: 0.7rem;
        border-radius: var(--r-sm);
        min-height: 44px;
        font-size: 0.92rem;
    }
    .nav__icon-btn::after {
        content: attr(aria-label);
        font-weight: 500;
        color: var(--text);
    }
    .nav__icon-btn:hover::after { color: var(--accent); }
    .nav__icon-badge { position: relative; top: 0; right: 0; margin-left: auto; border-color: var(--bg); }

    /* User button becomes full-width */
    .nav__item--user { width: 100%; }
    .user-btn {
        width: 100%;
        height: auto;
        padding: 0.75rem 0.85rem;
        justify-content: flex-start;
        gap: 0.7rem;
        border-radius: var(--r-sm);
        min-height: 44px;
        font-size: 0.92rem;
    }
    .user-btn--login { width: 100%; }
    .user-btn__avatar { width: 28px; height: 28px; font-size: 0.8rem; }
    .user-btn__label { flex: 1; text-align: left; }

    /* Popover becomes static accordion */
    .user-popover {
        position: static;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transform: none;
        padding: 0;
        margin: 0;
        background: var(--bg-alt);
        border: none;
        box-shadow: none;
        border-radius: var(--r-sm);
        transition: max-height 0.35s var(--ease), opacity 0.2s, padding 0.3s, margin 0.3s;
        min-width: 0;
        width: 100%;
        max-width: none;
    }
    .nav__item--user.open .user-popover {
        opacity: 1;
        visibility: visible;
        max-height: 1600px;
        padding: 0.6rem;
        margin-top: 0.35rem;
    }

    /* Compact header inside drawer */
    .user-popover__header { padding: 0.5rem 0.6rem 0.7rem; }
    .user-popover__avatar { width: 40px; height: 40px; font-size: 0.95rem; }
    .user-popover__welcome { padding: 0.7rem 0.6rem 0.85rem; }

    /* Theme options mobile — keep 2 col */
    .theme-options { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
    .theme-option { padding: 0.7rem 0.65rem; min-height: 76px; }
    .theme-option__swatch { width: 12px; height: 12px; }
    .theme-option__name { font-size: 0.82rem; }
    .theme-option__desc { font-size: 0.7rem; }
    .mode-toggle__btn { min-height: 38px; padding: 0.45rem; font-size: 0.78rem; }
    .iconpack-option { min-height: 58px; padding: 0.55rem 0.4rem; }
    .iconpack-option__label { font-size: 0.68rem; }
}

/* ============================================================
   SHOP POPOVERS (favs + cart)
   ============================================================ */
.shop-popover {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 340px;
    max-width: 90vw;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15), 0 3px 8px rgba(0, 0, 0, 0.06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
    z-index: 200;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 70vh;
}
.nav__item--favs.open .shop-popover,
.nav__item--cart.open .shop-popover { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.shop-popover__header {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}
.shop-popover__header strong { font-size: 0.94rem; color: var(--text); font-weight: 700; }
.shop-popover__header small { font-size: 0.75rem; color: var(--text-muted); }

.shop-popover__body {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.5rem;
    min-height: 120px;
    max-height: 420px;
}

.shop-popover__empty {
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
    padding: 2rem 1rem;
    text-align: center;
}
.shop-popover__empty svg { width: 40px; height: 40px; color: var(--text-muted); opacity: 0.5; }
.shop-popover__empty p { font-size: 0.92rem; font-weight: 600; color: var(--text); margin: 0; }
.shop-popover__empty small { font-size: 0.8rem; color: var(--text-muted); line-height: 1.4; }

/* Items */
.shop-popover__item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem;
    border-radius: var(--r-sm);
    transition: background 0.15s;
    position: relative;
}
.shop-popover__item:hover { background: var(--bg-alt); }
.shop-popover__item + .shop-popover__item { margin-top: 0.2rem; }
.shop-popover__item-link {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}
.shop-popover__item-img {
    width: 44px; height: 44px;
    object-fit: cover;
    border-radius: var(--r-sm);
    flex-shrink: 0;
    background: var(--bg-alt);
}
.shop-popover__item-info { flex: 1; min-width: 0; }
.shop-popover__item-info strong {
    display: block;
    font-size: 0.84rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}
.shop-popover__item-qty {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-top: 0.25rem;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    overflow: hidden;
    background: var(--bg);
}
.shop-popover__item-qty button {
    width: 22px; height: 22px;
    background: transparent;
    border: none;
    color: var(--text-soft);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: inherit;
    padding: 0;
}
.shop-popover__item-qty button:hover { background: var(--bg-alt); color: var(--pac-blue); }
.shop-popover__item-qty input {
    width: 36px;
    text-align: center;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
    -moz-appearance: textfield;
}
.shop-popover__item-qty input::-webkit-inner-spin-button,
.shop-popover__item-qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.shop-popover__item-remove {
    width: 24px; height: 24px;
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.15s;
    padding: 0;
}
.shop-popover__item-remove:hover { background: color-mix(in srgb, #dc2626 12%, transparent); color: #dc2626; }

/* Footer (cart only) */
.shop-popover__footer {
    padding: 0.75rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex-shrink: 0;
    background: var(--bg);
}
.shop-popover__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--wa, #25d366);
    color: #fff;
    border: none;
    border-radius: var(--r-sm);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}
.shop-popover__cta:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35); }
.shop-popover__cta .icn-wrap { width: 16px; height: 16px; }

.shop-popover__clear {
    padding: 0.55rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.15s;
}
.shop-popover__clear:hover { color: #dc2626; border-color: #dc2626; }

/* Mobile: shop popover inside drawer */
@media (max-width: 1024px) {
    .shop-popover {
        position: static;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transform: none;
        padding: 0;
        margin: 0;
        background: var(--bg-alt);
        border: none;
        box-shadow: none;
        width: 100%;
        max-width: none;
        transition: max-height 0.35s var(--ease), opacity 0.2s, padding 0.3s, margin 0.3s;
    }
    .nav__item--favs.open .shop-popover,
    .nav__item--cart.open .shop-popover {
        opacity: 1;
        visibility: visible;
        max-height: 60vh;
        padding: 0.5rem;
        margin-top: 0.35rem;
    }
}

/* ============================================================
   TOAST (temporary notification on cart add)
   ============================================================ */
.pac-toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(24px);
    background: var(--text);
    color: var(--bg);
    padding: 0.75rem 1.25rem;
    border-radius: var(--r-pill);
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease);
    z-index: 9999;
    max-width: 90vw;
}
.pac-toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* ============================================================
   PRODUCT CARD ACTION BUTTONS (fav + cart on product cards)
   ============================================================ */
.product-card__actions {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.65rem;
}
.product-cart-btn,
.product-fav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}
.product-cart-btn {
    flex: 1;
    background: var(--pac-blue);
    color: #fff;
    border-color: var(--pac-blue);
}
.product-cart-btn:hover { background: #005a8c; border-color: #005a8c; }
.product-cart-btn .icn-wrap { width: 14px; height: 14px; }

.product-fav-btn {
    width: 38px;
    flex-shrink: 0;
    color: var(--text-muted);
}
.product-fav-btn .icn-wrap { width: 15px; height: 15px; }
.product-fav-btn:hover { color: #dc2626; border-color: #dc2626; }
.product-fav-btn.is-active { color: #dc2626; border-color: #dc2626; background: color-mix(in srgb, #dc2626 6%, transparent); }
.product-fav-btn.is-active svg { fill: #dc2626; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.8rem 1.6rem; font-family: var(--ff-body); font-size: 0.9rem; font-weight: 600; border: none; border-radius: var(--r-pill); cursor: pointer; transition: all 0.2s var(--ease); white-space: nowrap; letter-spacing: -0.01em; position: relative; }
.btn:focus-visible { box-shadow: var(--sh-focus); outline: none; }
.btn--wa { background: var(--wa); color: #fff; box-shadow: 0 4px 14px rgba(37,211,102,0.28); }
.btn--wa:hover { background: var(--wa-600); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,211,102,0.38); }
.btn--primary { background: var(--accent); color: var(--accent-contrast); box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn--ghost { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.25); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.4); }
.btn--outline { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn--outline:hover { background: var(--accent); color: var(--accent-contrast); }
.btn--dark { background: var(--text); color: var(--bg); }
.btn--dark:hover { opacity: 0.88; transform: translateY(-2px); }
.btn--sm { padding: 0.55rem 1.1rem; font-size: 0.8rem; }
.btn--lg { padding: 0.95rem 2rem; font-size: 1rem; }
.btn--block { width: 100%; }

/* HERO */
.hero { position: relative; color: #fff; padding: clamp(3rem, 7vw, 5.5rem) 0; overflow: hidden; background: linear-gradient(135deg, var(--pac-blue-700) 0%, var(--pac-blue) 55%, #004a82 100%); }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 78% 18%, rgba(116,187,32,0.18) 0%, transparent 50%), radial-gradient(circle at 12% 82%, rgba(255,255,255,0.06) 0%, transparent 45%); pointer-events: none; }
.hero::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px); background-size: 80px 80px; pointer-events: none; mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 80%); }
.hero__inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; position: relative; z-index: 1; }
.hero__badge { display: inline-flex; align-items: center; gap: 0.45rem; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); border-radius: var(--r-pill); padding: 0.4rem 1rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 1.2rem; backdrop-filter: blur(4px); animation: fadeUp 0.5s var(--ease) both; }
.hero__badge .icon { width: 0.9rem; height: 0.9rem; }
.hero__title { font-size: clamp(1.9rem, 4.5vw, 3.4rem); font-weight: 800; line-height: 1.05; margin-bottom: 1rem; letter-spacing: -0.025em; animation: fadeUp 0.5s 0.08s var(--ease) both; color: #fff; }
[data-theme="editorial"] .hero__title, [data-theme="premium"] .hero__title { font-weight: 600; letter-spacing: -0.035em; }
.hero__title em { font-style: normal; color: var(--pac-green); position: relative; }
[data-theme="editorial"] .hero__title em, [data-theme="premium"] .hero__title em { font-family: var(--ff-serif); font-style: italic; color: var(--pac-green); }
.hero__sub { font-size: clamp(0.95rem, 1.4vw, 1.1rem); color: rgba(255,255,255,0.82); margin-bottom: 1.8rem; max-width: 540px; line-height: 1.65; animation: fadeUp 0.5s 0.15s var(--ease) both; }
.hero__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; animation: fadeUp 0.5s 0.22s var(--ease) both; }
.hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.2rem; padding-top: 1.8rem; border-top: 1px solid rgba(255,255,255,0.14); animation: fadeUp 0.5s 0.3s var(--ease) both; }
.hero__stat-n { font-family: var(--ff-display); font-size: 2rem; font-weight: 700; color: var(--pac-green); line-height: 1; letter-spacing: -0.02em; }
.hero__stat-l { font-size: 0.78rem; color: rgba(255,255,255,0.62); margin-top: 0.35rem; }
.hero__visual { animation: fadeUp 0.5s 0.2s var(--ease) both; }
.hero__card { background: rgba(255,255,255,0.07); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--r-lg); padding: 1.75rem; }
.hero__card-title { font-size: 1rem; font-weight: 700; margin-bottom: 1.1rem; display: flex; align-items: center; gap: 0.5rem; color: #fff; }
.hero__ind-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; }
.hero__ind-item { display: flex; align-items: center; gap: 0.65rem; padding: 0.75rem 0.85rem; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--r-md); font-size: 0.8rem; color: #fff; transition: all 0.25s var(--ease); }
.hero__ind-item:hover { background: rgba(255,255,255,0.13); border-color: rgba(255,255,255,0.22); transform: translateY(-2px); }
.hero__ind-icon { width: 1.75rem; height: 1.75rem; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.1); border-radius: var(--r-sm); flex-shrink: 0; }
.hero__ind-icon .icon { width: 1rem; height: 1rem; }

@media (max-width: 768px) { .hero__inner { grid-template-columns: 1fr; } .hero__visual { display: none; } }

/* TRUST BAR */
.trust-bar { background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: 1.1rem 0; }
.trust-bar__inner { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 2rem; }
.trust-bar__item { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 0.82rem; font-weight: 500; color: var(--text-soft); }
.trust-bar__icon { width: 2rem; height: 2rem; display: inline-flex; align-items: center; justify-content: center; background: var(--pac-blue-100); color: var(--pac-blue); border-radius: var(--r-sm); }
[data-mode="dark"] .trust-bar__icon { background: color-mix(in srgb, var(--pac-blue) 18%, transparent); }
.trust-bar__icon .icon { width: 1rem; height: 1rem; }
@media (max-width: 640px) { .trust-bar__inner { gap: 1rem; } .trust-bar__item { font-size: 0.72rem; } }

/* SECTIONS */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--text); color: var(--bg); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section__header { text-align: center; max-width: 680px; margin: 0 auto 2.5rem; }
.section__eye { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 0.8rem; padding: 0.35rem 0.8rem; background: color-mix(in srgb, var(--accent) 10%, transparent); border-radius: var(--r-pill); }
.section--dark .section__eye { background: rgba(116,187,32,0.15); color: var(--pac-green); }
.section__title { font-size: clamp(1.65rem, 3vw, 2.35rem); font-weight: 800; margin-bottom: 0.65rem; letter-spacing: -0.025em; }
[data-theme="editorial"] .section__title, [data-theme="premium"] .section__title { font-weight: 600; letter-spacing: -0.035em; }
.section__sub { font-size: 1rem; color: var(--text-soft); line-height: 1.65; max-width: 560px; margin: 0 auto; }
.section--dark .section__sub { color: rgba(255,255,255,0.72); }

/* INDUSTRY CARDS */
.ind-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.1rem; }
.ind-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.75rem; transition: all 0.3s var(--ease); position: relative; overflow: hidden; display: flex; flex-direction: column; }
.ind-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--pac-blue-700), var(--pac-blue)); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.ind-card:hover { border-color: var(--accent); box-shadow: var(--sh-lg); transform: translateY(-3px); }
.ind-card:hover::before { transform: scaleX(1); }
.ind-card__icon { width: 3rem; height: 3rem; display: inline-flex; align-items: center; justify-content: center; background: var(--pac-blue-100); color: var(--pac-blue); border-radius: var(--r-md); margin-bottom: 1rem; }
[data-mode="dark"] .ind-card__icon { background: color-mix(in srgb, var(--pac-blue) 18%, transparent); }
.ind-card__icon .icon { width: 1.5rem; height: 1.5rem; }
.ind-card__title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--text); }
.ind-card__desc { font-size: 0.87rem; color: var(--text-soft); margin-bottom: 1rem; line-height: 1.6; flex: 1; }
.ind-card__link { font-size: 0.85rem; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 0.35rem; transition: gap 0.2s; }
.ind-card__link:hover { gap: 0.6rem; }

/* CATEGORY CARDS */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0.85rem; }
.cat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 1.4rem 1.1rem; text-align: center; transition: all 0.25s var(--ease); }
.cat-card:hover { border-color: var(--pac-green); box-shadow: var(--sh-md); transform: translateY(-2px); }
.cat-card__icon { width: 2.75rem; height: 2.75rem; margin: 0 auto 0.6rem; display: inline-flex; align-items: center; justify-content: center; background: var(--pac-green-100); color: var(--pac-green-700); border-radius: var(--r-md); }
[data-mode="dark"] .cat-card__icon { background: color-mix(in srgb, var(--pac-green) 18%, transparent); color: var(--pac-green); }
.cat-card__icon .icon { width: 1.4rem; height: 1.4rem; }
.cat-card__name { font-size: 0.88rem; font-weight: 600; color: var(--text); }

/* VALUE PROPS */
.val-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.val-card { text-align: center; padding: 1.6rem 1.2rem; }
.val-card__icon { width: 3.5rem; height: 3.5rem; margin: 0 auto 1rem; display: inline-flex; align-items: center; justify-content: center; background: var(--pac-blue-100); color: var(--pac-blue); border-radius: var(--r-md); }
.section--dark .val-card__icon { background: rgba(116,187,32,0.18); color: var(--pac-green); }
.val-card__icon .icon { width: 1.6rem; height: 1.6rem; }
.val-card__title { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--text); }
.section--dark .val-card__title { color: #fff; }
.val-card__desc { font-size: 0.85rem; color: var(--text-soft); line-height: 1.65; }
.section--dark .val-card__desc { color: rgba(255,255,255,0.72); }

/* CTA BAND */
.cta-band { background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); color: #fff; padding: 2.75rem 0; text-align: center; position: relative; overflow: hidden; }
[data-mode="dark"] .cta-band { background: linear-gradient(135deg, #0f172a 0%, #020617 100%); }
.cta-band--blue { background: linear-gradient(135deg, var(--pac-blue) 0%, var(--pac-blue-700) 100%); }
.cta-band--green { background: linear-gradient(135deg, var(--pac-green) 0%, var(--pac-green-700) 100%); }
.cta-band::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 85% 50%, rgba(255,255,255,0.1) 0%, transparent 50%); pointer-events: none; }
.cta-band__inner { position: relative; z-index: 1; }
.cta-band__title { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; margin-bottom: 0.55rem; color: #fff; letter-spacing: -0.025em; }
[data-theme="editorial"] .cta-band__title, [data-theme="premium"] .cta-band__title { font-weight: 600; }
.cta-band__sub { font-size: 1rem; opacity: 0.9; margin: 0 auto 1.5rem; max-width: 580px; color: #fff; }
.cta-band__actions { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; }

/* MICRO BADGES */
.micro-badges { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.micro-badge { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.78rem; font-weight: 500; color: var(--text-soft); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-pill); padding: 0.35rem 0.85rem; }
.micro-badge .icon { width: 0.9rem; height: 0.9rem; color: var(--accent); }

/* GEO */
.geo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; }
.geo-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.3rem; transition: all 0.25s var(--ease); }
.geo-card:hover { box-shadow: var(--sh-md); border-color: var(--border-strong); }
.geo-card__state { font-size: 1rem; font-weight: 700; color: var(--pac-blue); margin-bottom: 0.8rem; padding-bottom: 0.6rem; border-bottom: 2px solid var(--pac-blue-100); display: flex; align-items: center; gap: 0.5rem; }
[data-mode="dark"] .geo-card__state { border-bottom-color: color-mix(in srgb, var(--pac-blue) 25%, transparent); }
.geo-card__cities { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.geo-card__city { font-size: 0.78rem; padding: 0.32rem 0.75rem; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--r-pill); color: var(--text-soft); transition: all 0.2s; }
.geo-card__city:hover { background: var(--pac-blue-100); color: var(--pac-blue); border-color: var(--pac-blue); }
[data-mode="dark"] .geo-card__city:hover { background: color-mix(in srgb, var(--pac-blue) 20%, transparent); }
.geo-card__city--main { background: var(--pac-blue-100); color: var(--pac-blue); font-weight: 600; border-color: var(--pac-blue); }
[data-mode="dark"] .geo-card__city--main { background: color-mix(in srgb, var(--pac-blue) 25%, transparent); }

/* BLOG */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.blog-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; transition: all 0.25s var(--ease); display: flex; flex-direction: column; }
.blog-card:hover { box-shadow: var(--sh-lg); transform: translateY(-3px); border-color: var(--border-strong); }
.blog-card__img { height: 160px; background: linear-gradient(135deg, var(--pac-blue-100), var(--pac-green-100)); display: flex; align-items: center; justify-content: center; color: var(--pac-blue); }
[data-mode="dark"] .blog-card__img { background: linear-gradient(135deg, color-mix(in srgb, var(--pac-blue) 20%, transparent), color-mix(in srgb, var(--pac-green) 20%, transparent)); }
.blog-card__img .icon { width: 3rem; height: 3rem; stroke-width: 1.5; }
.blog-card__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.blog-card__cat { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 0.5rem; }
.blog-card__title { font-size: 0.98rem; font-weight: 700; margin-bottom: 0.5rem; line-height: 1.35; color: var(--text); }
.blog-card__excerpt { font-size: 0.84rem; color: var(--text-soft); line-height: 1.6; margin-bottom: 0.9rem; flex: 1; }
.blog-card__date { font-size: 0.72rem; color: var(--text-muted); }

/* PAGE HERO */
.page-hero { background: linear-gradient(135deg, var(--pac-blue-700) 0%, var(--pac-blue) 100%); color: #fff; padding: clamp(2.5rem, 5vw, 4rem) 0; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(116,187,32,0.15) 0%, transparent 50%); pointer-events: none; }
.page-hero__inner { position: relative; z-index: 1; }
.page-hero__icon { width: 3rem; height: 3rem; margin-bottom: 0.9rem; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.12); border-radius: var(--r-md); color: #fff; }
.page-hero__icon .icon { width: 1.5rem; height: 1.5rem; }
.page-hero__title { font-size: clamp(1.6rem, 3.2vw, 2.5rem); font-weight: 800; margin-bottom: 0.65rem; color: #fff; letter-spacing: -0.025em; line-height: 1.1; }
[data-theme="editorial"] .page-hero__title, [data-theme="premium"] .page-hero__title { font-weight: 600; }
.page-hero__desc { font-size: 1rem; color: rgba(255,255,255,0.85); max-width: 680px; line-height: 1.65; }
.page-hero__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* BREADCRUMBS */
.breadcrumbs { padding: 0.8rem 0; font-size: 0.78rem; color: var(--text-muted); background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.breadcrumbs a { color: var(--text-soft); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { margin: 0 0.4rem; opacity: 0.5; }

/* BENEFITS */
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0.9rem; }
.benefit { display: flex; gap: 0.75rem; align-items: flex-start; padding: 1.05rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); transition: border-color 0.2s; }
.benefit:hover { border-color: var(--pac-green); }
.benefit__check { width: 1.5rem; height: 1.5rem; flex-shrink: 0; background: var(--pac-green-100); color: var(--pac-green-700); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
[data-mode="dark"] .benefit__check { background: color-mix(in srgb, var(--pac-green) 22%, transparent); color: var(--pac-green); }
.benefit__check .icon { width: 0.9rem; height: 0.9rem; stroke-width: 2.5; }
.benefit__text { font-size: 0.88rem; color: var(--text); line-height: 1.5; }

/* CHIPS */
.chips { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.chip { padding: 0.5rem 1rem; background: var(--pac-blue-100); color: var(--pac-blue); border-radius: var(--r-pill); font-size: 0.82rem; font-weight: 500; border: 1px solid transparent; transition: all 0.2s; }
[data-mode="dark"] .chip { background: color-mix(in srgb, var(--pac-blue) 20%, transparent); color: var(--pac-blue-100); }
.chip:hover { border-color: var(--pac-blue); }

/* SOL CARDS */
.sol-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.1rem; }
.sol-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.4rem; transition: all 0.25s var(--ease); }
.sol-card__link { display: block; text-decoration: none; color: inherit; }
.sol-card__link:hover .sol-card__title { color: var(--pac-blue); }
.sol-card__clave {
    display: inline-block;
    font-family: monospace;
    font-size: 0.66rem;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: var(--bg-alt);
    padding: 0.12rem 0.5rem;
    border-radius: var(--r-pill);
    margin-bottom: 0.4rem;
}

.sort-selector {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.sort-selector select {
    padding: 0.45rem 0.75rem;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
}
.sort-selector select:hover { border-color: var(--pac-blue); }
.sol-card:hover { border-color: var(--pac-green); box-shadow: var(--sh-md); transform: translateY(-2px); }
.sol-card__title { font-size: 1rem; font-weight: 700; margin-bottom: 0.35rem; color: var(--text); }
.sol-card__desc { font-size: 0.85rem; color: var(--text-soft); line-height: 1.55; margin-bottom: 0.9rem; }

/* FAQ */
.faq-list { max-width: 740px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 0; font-size: 0.95rem; font-weight: 600; color: var(--text); cursor: pointer; gap: 1rem; transition: color 0.2s; }
.faq-q:hover { color: var(--accent); }
.faq-q__toggle { width: 1.5rem; height: 1.5rem; flex-shrink: 0; transition: transform 0.3s var(--ease); color: var(--text-muted); }
.faq-item.open .faq-q__toggle { transform: rotate(45deg); color: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
.faq-a__inner { padding: 0 0 1.1rem; font-size: 0.88rem; color: var(--text-soft); line-height: 1.7; }
.faq-item.open .faq-a { max-height: 400px; }

/* FORMS */
.cotizador { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-lg); padding: 2rem; max-width: 680px; margin: 0 auto; }
.cotizador__title { font-size: 1.3rem; font-weight: 800; text-align: center; margin-bottom: 0.4rem; color: var(--text); letter-spacing: -0.02em; }
.cotizador__sub { text-align: center; color: var(--text-soft); margin-bottom: 1.8rem; font-size: 0.88rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text); margin-bottom: 0.4rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.75rem 0.9rem; font-family: var(--ff-body); font-size: 0.9rem; border: 1.5px solid var(--border); border-radius: var(--r-sm); background: var(--bg); color: var(--text); transition: border-color 0.15s, box-shadow 0.15s; outline: none; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent); box-shadow: var(--sh-focus); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

/* CALC */
.calc { background: var(--pac-blue-50); border: 2px solid var(--pac-blue); border-radius: var(--r-lg); padding: 1.8rem; max-width: 500px; margin: 0 auto; }
[data-mode="dark"] .calc { background: color-mix(in srgb, var(--pac-blue) 12%, var(--bg-alt)); }
.calc__title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.3rem; color: var(--pac-blue); text-align: center; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
[data-mode="dark"] .calc__title { color: var(--pac-blue-100); }
.calc__sub { font-size: 0.82rem; color: var(--text-soft); text-align: center; margin-bottom: 1.2rem; }
.calc__result { text-align: center; padding: 1.1rem; background: var(--surface); border-radius: var(--r-md); margin-top: 1rem; border: 1px solid var(--border); }
.calc__result-n { font-family: var(--ff-display); font-size: 1.9rem; font-weight: 800; color: var(--pac-green); letter-spacing: -0.02em; }
.calc__result-l { font-size: 0.82rem; color: var(--text-soft); margin-top: 0.2rem; }

/* MODAL */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 10000; display: none; align-items: center; justify-content: center; padding: 1rem; backdrop-filter: blur(4px); }
.modal-overlay.active { display: flex; animation: fadeIn 0.2s var(--ease); }
.modal { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 2rem; max-width: 480px; width: 100%; position: relative; animation: modalIn 0.25s var(--ease); }
.modal__close { position: absolute; top: 0.85rem; right: 0.85rem; width: 2rem; height: 2rem; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--r-sm); color: var(--text-soft); display: inline-flex; align-items: center; justify-content: center; transition: all 0.2s; }
.modal__close:hover { color: var(--text); background: var(--border); }
.modal__close .icon { width: 1rem; height: 1rem; }
.modal__title { font-size: 1.3rem; font-weight: 800; margin-bottom: 0.4rem; color: var(--text); letter-spacing: -0.02em; }
.modal__sub { font-size: 0.88rem; color: var(--text-soft); margin-bottom: 1.4rem; line-height: 1.55; }

/* FOOTER */
.footer { background: var(--text); color: rgba(255,255,255,0.72); padding: 3.5rem 0 0; }
[data-mode="dark"] .footer { background: #000; }
.footer__grid { display: grid; grid-template-columns: 1.5fr repeat(5, 1fr); gap: 1.8rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
@media (max-width: 1200px) { .footer__grid { grid-template-columns: 1fr 1fr 1fr; gap: 2rem; } }
@media (max-width: 768px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 1.8rem; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand { font-family: var(--ff-display); font-size: 1.4rem; font-weight: 800; color: #fff; margin-bottom: 0.55rem; letter-spacing: -0.02em; }
.footer__brand span { color: var(--pac-green); }
.footer__logo-img { width: var(--logo-size-footer, 1.5cm); height: var(--logo-size-footer, 1.5cm); object-fit: contain; margin-bottom: 1rem; filter: brightness(1.05); }
.footer__desc { font-size: 0.82rem; line-height: 1.7; margin-bottom: 1.2rem; }
.footer__heading { font-family: var(--ff-display); font-size: 0.85rem; font-weight: 700; color: #fff; margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
.footer__links a { display: flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; color: rgba(255,255,255,0.72); padding: 0.28rem 0; transition: color 0.15s; }
.footer__links a:hover { color: var(--wa); }
.footer__bottom { padding: 1.2rem 0; font-size: 0.78rem; color: rgba(255,255,255,0.5); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.6rem; }
.footer__copy { flex: 1; min-width: 240px; }
.footer__attribution { display: inline-flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; font-size: 0.72rem; color: rgba(255,255,255,0.42); }
.footer__w3c { display: inline-flex; align-items: center; gap: 0.3rem; color: rgba(116,187,32,0.7); }
.footer__sep { opacity: 0.35; }
.footer__pwrd strong { color: rgba(0,130,204,0.85); font-weight: 600; }
@media (max-width: 640px) {
    .footer__bottom { flex-direction: column; text-align: center; }
    .footer__attribution { justify-content: center; }
}

/* WA FLOAT */
.wa-float { position: fixed; bottom: 1.2rem; right: 1.2rem; z-index: 997; display: inline-flex; align-items: center; gap: 0.55rem; background: var(--wa); color: #fff; padding: 0.8rem 1.3rem; border-radius: var(--r-pill); font-weight: 600; font-size: 0.88rem; box-shadow: 0 8px 28px rgba(37,211,102,0.4); transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), opacity 0.25s; animation: pulse-wa 2s infinite; }
.wa-float:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 12px 40px rgba(37,211,102,0.5); }
.wa-float .icon { width: 1.25rem; height: 1.25rem; }
body.nav-open .wa-float { opacity: 0; pointer-events: none; transform: translateY(20px); animation: none; }
@media (max-width: 600px) {
    .wa-float { padding: 0.7rem 1rem; font-size: 0.8rem; bottom: 1rem; right: 1rem; }
    .wa-float__label { display: none; }
}
@keyframes pulse-wa { 0%, 100% { box-shadow: 0 8px 28px rgba(37,211,102,0.4); } 50% { box-shadow: 0 8px 28px rgba(37,211,102,0.55), 0 0 0 8px rgba(37,211,102,0.08); } }

/* ANIMATIONS */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.fade-in { opacity: 0; transform: translateY(14px); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* PROBLEM/SOLUTION */
.ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 600px) { .ps-grid { grid-template-columns: 1fr; } }
.ps-card { padding: 1.5rem; border-radius: var(--r-lg); border: 1px solid; }
.ps-card--problem { background: var(--danger-100); border-color: color-mix(in srgb, var(--danger) 20%, transparent); }
[data-mode="dark"] .ps-card--problem { background: color-mix(in srgb, var(--danger) 12%, var(--bg-alt)); }
.ps-card--solution { background: var(--pac-green-100); border-color: color-mix(in srgb, var(--pac-green) 25%, transparent); }
[data-mode="dark"] .ps-card--solution { background: color-mix(in srgb, var(--pac-green) 12%, var(--bg-alt)); }
.ps-card__title { font-size: 1rem; font-weight: 700; margin-bottom: 0.55rem; display: flex; align-items: center; gap: 0.5rem; }
.ps-card--problem .ps-card__title { color: var(--danger); }
.ps-card--solution .ps-card__title { color: var(--pac-green-700); }
[data-mode="dark"] .ps-card--solution .ps-card__title { color: var(--pac-green); }
.ps-card__text { font-size: 0.88rem; color: var(--text-soft); line-height: 1.65; }

/* PRINT */
@media print { .header, .footer, .wa-float, .top-bar, .cta-band, .theme-switcher, .cookie-banner, .legal-sidebar, .hamburger { display: none !important; } body { background: white; color: black; } .legal-layout { grid-template-columns: 1fr !important; } .legal-main { max-width: none !important; box-shadow: none !important; } }

/* ============================================================
   LEGAL — usa page-hero del sistema + componentes nativos
   ============================================================ */

/* Page hero: chips y action usados en legal hero */
.page-hero__meta { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.2rem; align-items: center; }
.page-hero__chip { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.4rem 0.85rem; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.22); border-radius: var(--r-pill); font-size: 0.78rem; font-weight: 500; color: rgba(255,255,255,0.95); backdrop-filter: blur(6px); }
.page-hero__chip strong { color: #fff; font-weight: 700; }
.page-hero__action { margin-left: auto; display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.55rem 1rem; background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.28); border-radius: var(--r-pill); color: #fff; font-size: 0.82rem; font-weight: 600; transition: background 0.2s, transform 0.2s; }
.page-hero__action:hover { background: rgba(255,255,255,0.28); transform: translateY(-1px); }
@media (max-width: 640px) {
    .page-hero__meta { gap: 0.4rem; }
    .page-hero__action { margin-left: 0; margin-top: 0.5rem; width: 100%; justify-content: center; }
}

/* Layout 2-column: sidebar + main */
.legal-layout { display: grid; grid-template-columns: 280px 1fr; gap: 2.2rem; align-items: flex-start; }
@media (max-width: 960px) { .legal-layout { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ===== SIDEBAR ===== */
.legal-sidebar { position: sticky; top: calc(var(--header-h) + 1rem); display: flex; flex-direction: column; gap: 1rem; max-height: calc(100vh - var(--header-h) - 2rem); overflow-y: auto; padding-right: 0.4rem; }
@media (max-width: 960px) { .legal-sidebar { position: static; max-height: none; overflow: visible; padding-right: 0; } }
.legal-sidebar::-webkit-scrollbar { width: 6px; }
.legal-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.legal-sidebar__block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 1.1rem 1.2rem; }
.legal-sidebar__block--cta { background: linear-gradient(135deg, var(--pac-blue-100), var(--bg-alt)); border-color: color-mix(in srgb, var(--pac-blue) 25%, transparent); }
[data-mode="dark"] .legal-sidebar__block--cta { background: linear-gradient(135deg, color-mix(in srgb, var(--pac-blue) 15%, var(--surface)), var(--surface)); }

/* TOC list — estilo clean con border-left accent */
.legal-toc-list { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.legal-toc-list li { counter-increment: toc; margin: 0 0 0.3rem; }
.legal-toc-list a { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.5rem 0.6rem; font-size: 0.82rem; color: var(--text-soft); border-radius: var(--r-sm); line-height: 1.4; transition: all 0.18s var(--ease); border-left: 2px solid transparent; }
.legal-toc-list a::before { content: counter(toc, decimal-leading-zero); font-size: 0.68rem; font-weight: 700; color: var(--text-muted); flex-shrink: 0; font-variant-numeric: tabular-nums; padding-top: 0.1rem; }
.legal-toc-list a:hover { background: var(--bg-alt); color: var(--pac-blue); border-left-color: var(--pac-blue); transform: translateX(2px); }
.legal-toc-list a:hover::before { color: var(--pac-blue); }

/* Otros documentos — tarjetitas */
.legal-related { display: flex; flex-direction: column; gap: 0.4rem; }
.legal-related__item { display: flex; align-items: center; gap: 0.7rem; padding: 0.65rem 0.75rem; background: var(--bg-alt); border-radius: var(--r-sm); transition: all 0.18s var(--ease); border: 1px solid transparent; }
.legal-related__item:hover { background: var(--surface); border-color: var(--pac-blue); transform: translateX(2px); }
.legal-related__icon { width: 2rem; height: 2rem; background: color-mix(in srgb, var(--pac-blue) 12%, transparent); color: var(--pac-blue); border-radius: var(--r-sm); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.legal-related__text { display: flex; flex-direction: column; gap: 0.1rem; line-height: 1.25; min-width: 0; }
.legal-related__text strong { font-size: 0.82rem; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legal-related__text small { font-size: 0.72rem; color: var(--text-muted); }

/* Sidebar CTA */
.legal-cta__title { display: flex; align-items: center; gap: 0.45rem; font-size: 0.88rem; font-weight: 700; color: var(--text); margin: 0 0 0.5rem; }
.legal-cta__text { font-size: 0.8rem; color: var(--text-soft); line-height: 1.5; margin: 0 0 0.9rem; }

/* ===== MAIN CONTENT ===== */
.legal-main { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.6rem); box-shadow: var(--shadow-sm); }

/* Intro destacada con mark */
.legal-intro { display: flex; gap: 1.1rem; padding: 1.3rem 1.4rem; background: linear-gradient(135deg, var(--pac-blue-100), var(--bg-alt)); border-left: 4px solid var(--pac-blue); border-radius: var(--r-md); margin-bottom: 2.2rem; align-items: flex-start; }
[data-mode="dark"] .legal-intro { background: linear-gradient(135deg, color-mix(in srgb, var(--pac-blue) 15%, var(--surface)), var(--bg-alt)); }
.legal-intro__mark { width: 2.4rem; height: 2.4rem; background: var(--pac-blue); color: #fff; border-radius: var(--r-md); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.legal-intro__mark .icn-wrap { width: 1.3rem; height: 1.3rem; }
.legal-intro__content { font-size: 0.95rem; line-height: 1.75; color: var(--text-soft); }
.legal-intro__content strong { color: var(--text); font-weight: 600; }

/* Sección numerada */
.legal-section { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; margin: 2.2rem 0; scroll-margin-top: calc(var(--header-h) + 1rem); padding-bottom: 2rem; border-bottom: 1px dashed var(--border); }
.legal-section:last-of-type { border-bottom: none; padding-bottom: 0; }
.legal-section__num { width: 2.6rem; height: 2.6rem; background: var(--pac-blue); color: #fff; border-radius: var(--r-md); display: inline-flex; align-items: center; justify-content: center; font-size: 0.82rem; font-weight: 800; font-variant-numeric: tabular-nums; box-shadow: 0 4px 14px color-mix(in srgb, var(--pac-blue) 35%, transparent); flex-shrink: 0; }
.legal-section__title { font-size: clamp(1.05rem, 2vw, 1.2rem); font-weight: 700; color: var(--text); margin: 0.2rem 0 0.75rem; letter-spacing: -0.015em; }
.legal-section__content { font-size: 0.93rem; line-height: 1.8; color: var(--text-soft); }
.legal-section__content p { margin-bottom: 0.9rem; }
.legal-section__content p:last-child { margin-bottom: 0; }
.legal-section__content ul, .legal-section__content ol { margin: 0.6rem 0 1rem 1.4rem; }
.legal-section__content li { margin-bottom: 0.45rem; }
.legal-section__content strong { color: var(--text); font-weight: 600; }
.legal-section__content a { color: var(--pac-blue); text-decoration: underline; text-underline-offset: 2px; transition: color 0.15s; }
.legal-section__content a:hover { color: var(--pac-blue-700); }
[data-mode="dark"] .legal-section__content a { color: #4db5f0; }
.legal-section__content div[style*="border-left"] { border-radius: var(--r-sm); margin: 0.85rem 0; }

@media (max-width: 640px) {
    .legal-section { grid-template-columns: 1fr; gap: 0.7rem; }
    .legal-section__num { width: 2.2rem; height: 2.2rem; font-size: 0.75rem; }
}

/* Firma legal al final */
.legal-signature { margin-top: 2.5rem; padding: 1.6rem; background: linear-gradient(135deg, var(--bg-alt), var(--surface)); border: 1px solid var(--border); border-radius: var(--r-md); display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; }
.legal-signature__brand { display: flex; align-items: center; gap: 0.9rem; }
.legal-signature__logo { width: 48px; height: 48px; object-fit: contain; flex-shrink: 0; }
.legal-signature__brand strong { display: block; font-size: 0.9rem; color: var(--text); font-weight: 700; }
.legal-signature__brand small { display: block; font-size: 0.74rem; color: var(--text-muted); margin-top: 0.15rem; }
.legal-signature__info { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.78rem; }
.legal-signature__row { display: flex; gap: 0.6rem; justify-content: flex-end; }
.legal-signature__label { color: var(--text-muted); min-width: 92px; text-align: right; }
.legal-signature__value { color: var(--text); font-weight: 500; }
.legal-signature__value a { color: var(--pac-blue); }
[data-mode="dark"] .legal-signature__value a { color: #4db5f0; }

@media (max-width: 640px) {
    .legal-signature { grid-template-columns: 1fr; gap: 1.1rem; }
    .legal-signature__info { align-items: flex-start; }
    .legal-signature__row { justify-content: flex-start; }
    .legal-signature__label { text-align: left; }
}

/* ===== LEGAL INDEX ===== */
.legal-card__meta { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.7rem 0 0.9rem; }
.legal-card__chip { padding: 0.22rem 0.6rem; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--r-pill); font-size: 0.7rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* ===== ARCO SHOWCASE (4 derechos) ===== */
.arco-showcase { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.1rem; }
.arco-showcase__item { padding: 1.6rem 1.3rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); text-align: center; transition: all 0.25s var(--ease); position: relative; overflow: hidden; }
.arco-showcase__item::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--pac-blue), var(--pac-green)); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.arco-showcase__item:hover { transform: translateY(-4px); border-color: var(--pac-blue); box-shadow: var(--shadow-md); }
.arco-showcase__item:hover::before { transform: scaleX(1); }
.arco-showcase__letter { width: 3rem; height: 3rem; margin: 0 auto 0.85rem; background: linear-gradient(135deg, var(--pac-blue), var(--pac-blue-700)); color: #fff; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--ff-display); font-weight: 800; font-size: 1.4rem; box-shadow: 0 6px 18px color-mix(in srgb, var(--pac-blue) 35%, transparent); }
.arco-showcase__title { font-size: 0.98rem; font-weight: 700; color: var(--text); margin: 0 0 0.45rem; }
.arco-showcase__text { font-size: 0.82rem; color: var(--text-soft); line-height: 1.55; margin: 0; }

/* ===== LEGAL NOTICE (aviso con icono) ===== */
.legal-notice { display: flex; gap: 0.9rem; padding: 1.1rem 1.2rem; border-radius: var(--r-md); margin: 1.2rem 0; align-items: flex-start; }
.legal-notice--warning { background: color-mix(in srgb, var(--warning) 10%, var(--bg-alt)); border-left: 3px solid var(--warning); }
.legal-notice--info { background: var(--pac-blue-100); border-left: 3px solid var(--pac-blue); }
[data-mode="dark"] .legal-notice--info { background: color-mix(in srgb, var(--pac-blue) 15%, var(--bg-alt)); }
.legal-notice__icon { width: 2.2rem; height: 2.2rem; background: var(--warning); color: #fff; border-radius: var(--r-sm); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.legal-notice--info .legal-notice__icon { background: var(--pac-blue); }
.legal-notice__icon .icn-wrap { width: 1.1rem; height: 1.1rem; }
.legal-notice__body { flex: 1; }
.legal-notice__title { display: block; color: var(--text); font-size: 0.88rem; font-weight: 700; margin-bottom: 0.3rem; }
.legal-notice__text { font-size: 0.83rem; color: var(--text-soft); line-height: 1.6; margin: 0; }
.legal-notice__text strong { color: var(--text); font-weight: 600; }

/* ===== FORM CHECKBOX (ARCO + otros) ===== */
.form-checkbox { display: flex; align-items: flex-start; gap: 0.65rem; font-size: 0.85rem; font-weight: 400; line-height: 1.55; color: var(--text-soft); cursor: pointer; }
.form-checkbox input[type="checkbox"] { margin-top: 0.25rem; width: 1.1rem; height: 1.1rem; flex-shrink: 0; accent-color: var(--pac-blue); cursor: pointer; }
.form-checkbox a { color: var(--pac-blue); text-decoration: underline; }
[data-mode="dark"] .form-checkbox a { color: #4db5f0; }

/* ============================================================
   COOKIE BANNER (LFPDPPP)
   ============================================================ */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 9998; background: var(--bg-elev); border-top: 2px solid var(--pac-blue); box-shadow: 0 -8px 32px rgba(0,0,0,0.15); padding: 1rem 0; animation: slideUpCookie 0.45s var(--ease); }
[data-mode="dark"] .cookie-banner { border-top-color: var(--pac-blue); }
.cookie-banner__inner { max-width: 1200px; margin: 0 auto; padding: 0 1.2rem; display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; }
.cookie-banner__title { display: flex; align-items: center; gap: 0.5rem; font-size: 0.92rem; font-weight: 700; color: var(--text); margin-bottom: 0.3rem; }
.cookie-banner__text { font-size: 0.82rem; color: var(--text-soft); line-height: 1.5; margin: 0; }
.cookie-banner__text a { color: var(--pac-blue); text-decoration: underline; font-weight: 500; }
[data-mode="dark"] .cookie-banner__text a { color: #4db5f0; }
.cookie-banner__actions { display: flex; gap: 0.6rem; flex-shrink: 0; }
@media (max-width: 700px) {
    .cookie-banner { padding: 0.85rem 0; }
    .cookie-banner__inner { grid-template-columns: 1fr; gap: 0.75rem; padding: 0 1rem; }
    .cookie-banner__title { font-size: 0.85rem; }
    .cookie-banner__text { font-size: 0.76rem; line-height: 1.45; }
    .cookie-banner__actions { flex-direction: row; width: 100%; }
    .cookie-banner__actions .btn { flex: 1; min-height: 44px; font-size: 0.82rem; padding: 0.65rem 0.75rem; }
}
@media (max-width: 380px) {
    .cookie-banner__actions { flex-direction: column-reverse; }
}
@keyframes slideUpCookie { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* ========================================================================
   V4.5 — EDITORIAL PREMIUM (only applies when [data-theme="editorial-premium"])
   Hero with gradient washes, animated drops, glassmorphism right cluster.
   Coverage section with realistic 2-origin logistics map.
   ======================================================================== */

.ep-hero {
    position: relative;
    overflow: hidden;
    padding: 5rem 0 7rem;
    background:
        radial-gradient(1200px 600px at 12% 0%, rgb(var(--pac-sky) / 0.18), transparent 55%),
        radial-gradient(900px 500px at 88% 8%, rgb(var(--pac-lime) / 0.15), transparent 60%),
        radial-gradient(700px 400px at 60% 90%, rgb(var(--pac-corp) / 0.12), transparent 60%);
}
[data-mode="dark"] .ep-hero {
    background:
        radial-gradient(1100px 600px at 10% 0%, rgb(var(--pac-sky) / 0.22), transparent 60%),
        radial-gradient(900px 500px at 90% 8%, rgb(var(--pac-corp) / 0.30), transparent 62%),
        radial-gradient(700px 400px at 60% 95%, rgb(var(--pac-lime) / 0.10), transparent 60%);
}

/* Grid pattern with radial mask */
.ep-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, color-mix(in srgb, var(--border) 60%, transparent) 1px, transparent 1px),
        linear-gradient(to bottom, color-mix(in srgb, var(--border) 60%, transparent) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 35%, transparent 80%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 35%, transparent 80%);
    opacity: 0.6;
    pointer-events: none;
}
[data-mode="dark"] .ep-hero::before { opacity: 0.3; }

/* Subtle noise overlay */
.ep-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='0.55'/></svg>");
    opacity: var(--noise-opacity);
    mix-blend-mode: overlay;
}

.ep-hero__inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    z-index: 1;
}
@media (min-width: 1024px) {
    .ep-hero__inner {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

.ep-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: 9999px;
    border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
    background: color-mix(in srgb, var(--bg-elev) 60%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-soft);
    margin-bottom: 1.25rem;
}
.ep-pill__dot {
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgb(var(--pac-lime));
}

.ep-hero__title {
    font-family: var(--ff-display);
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0;
}
.ep-hero__highlight {
    position: relative;
    display: inline-block;
    color: rgb(var(--pac-corp));
}
[data-mode="dark"] .ep-hero__highlight {
    color: rgb(var(--pac-sky));
}
.ep-hero__highlight::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0.15em;
    height: 0.35em;
    background: rgb(var(--pac-lime) / 0.4);
    border-radius: 0.4em;
    z-index: -1;
    transform-origin: 0 50%;
    animation: ep-underline 0.9s 0.5s ease-out both;
}
@keyframes ep-underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.ep-hero__subtitle {
    margin-top: 1.25rem;
    font-size: 1.05rem;
    color: var(--text-soft);
    max-width: 36rem;
    line-height: 1.65;
}
.ep-hero__subtitle strong { color: var(--text); font-weight: 600; }

.ep-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}
.ep-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.25rem;
    border-radius: var(--r-md);
    font-weight: 500;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}
.ep-cta--primary {
    background: rgb(var(--pac-corp));
    color: #fff;
    box-shadow: var(--sh-soft);
}
.ep-cta--primary:hover {
    background: rgb(var(--pac-corp-deep));
    transform: translateY(-1px);
}
.ep-cta--secondary {
    background: var(--bg-elev);
    color: var(--text);
    border-color: var(--border);
}
.ep-cta--secondary:hover {
    border-color: rgb(var(--pac-sky));
}
.ep-cta--whatsapp {
    background: rgb(var(--pac-lime) / 0.1);
    color: rgb(var(--pac-lime));
    border-color: rgb(var(--pac-lime) / 0.6);
}
.ep-cta--whatsapp:hover {
    background: rgb(var(--pac-lime) / 0.2);
}

.ep-hero__pillars {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 2.5rem;
    max-width: 36rem;
}
@media (min-width: 640px) {
    .ep-hero__pillars { grid-template-columns: repeat(3, 1fr); }
}
.ep-pillar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg-elev) 60%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.ep-pillar__icon {
    width: 36px; height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgb(var(--pac-sky) / 0.12);
    color: rgb(var(--pac-sky));
}
.ep-pillar__label { font-size: 0.88rem; font-weight: 500; color: var(--text); }

/* Right floating visual cluster — the big drop */
.ep-hero__visual {
    position: relative;
    height: 420px;
    display: none;
}
@media (min-width: 1024px) {
    .ep-hero__visual { display: block; }
}
.ep-blob {
    position: absolute;
    inset: 0;
    border-radius: 40% 60% 55% 45% / 45% 55% 45% 55%;
    background: linear-gradient(135deg,
        rgb(var(--pac-sky) / 0.18),
        rgb(var(--pac-lime) / 0.12),
        transparent);
    filter: blur(20px);
}
.ep-blob--inner {
    inset: 1.5rem;
    border-radius: 55% 45% 60% 40% / 40% 60% 40% 60%;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg-elev) 50%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    filter: none;
}
.ep-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(20px);
}
.ep-orb--lime {
    left: 2.5rem; top: 2.5rem;
    width: 96px; height: 96px;
    background: rgb(var(--pac-lime) / 0.3);
    animation: ep-float 6s ease-in-out infinite;
}
.ep-orb--sky {
    right: 3rem; bottom: 3.5rem;
    width: 128px; height: 128px;
    background: rgb(var(--pac-sky) / 0.3);
    animation: ep-float 6s ease-in-out infinite 1.5s;
}
.ep-center {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    text-align: center;
}
.ep-center__card {
    width: 96px; height: 96px;
    margin: 0 auto;
    border-radius: 1.25rem;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    box-shadow: var(--sh-soft);
    padding: 0.65rem;
    position: relative;
    overflow: hidden;
}
.ep-center__logo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: opacity 0.25s ease;
}
/* Show light-version logo in light mode, dark-version logo in dark mode */
.ep-center__logo--dark { display: none; }
[data-mode="dark"] .ep-center__logo--light { display: none; }
[data-mode="dark"] .ep-center__logo--dark { display: block; }

.ep-center__label {
    margin-top: 1rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
}

/* Floating decorative drops over the hero */
.ep-drop {
    position: absolute;
    width: 28px; height: 36px;
    pointer-events: none;
    animation: ep-drop-float 5s ease-in-out infinite;
}
@keyframes ep-drop-float {
    0%, 100% { opacity: 0.6; transform: translateY(8px) scale(0.95); }
    50% { opacity: 1; transform: translateY(-2px) scale(1); }
}
@keyframes ep-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Wave at bottom */
.ep-wave {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.ep-wave svg { width: 100%; height: 100%; }

/* ========================================================================
   COVERAGE SECTION — realistic 2-origin map (Mérida + Playa del Carmen)
   ======================================================================== */
.ep-coverage {
    position: relative;
    padding: 5rem 0 7rem;
}
.ep-coverage__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.ep-coverage__head { max-width: 36rem; margin-bottom: 2.5rem; }
.ep-coverage__title {
    font-family: var(--ff-display);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-top: 1rem;
    color: var(--text);
}
.ep-coverage__title-em { color: rgb(var(--pac-corp)); }
[data-mode="dark"] .ep-coverage__title-em { color: rgb(var(--pac-sky)); }
.ep-coverage__sub {
    margin-top: 0.75rem;
    color: var(--text-soft);
    line-height: 1.65;
}

.ep-coverage__grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}
/* V4.7.15 — single-column stack: map full-width on top, branches in row below.
   This makes the map bigger and prevents the cramped two-column layout. */
.ep-branches {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 720px) {
    .ep-branches {
        grid-template-columns: repeat(3, 1fr);
    }
}

.ep-map {
    position: relative;
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    background: var(--bg-elev);
    /* V4.7.23: REMOVED overflow:hidden — was clipping the 3rd branch card
       (and any beyond) when ep-branches--in-map lives inside .ep-map.
       The Leaflet map itself has its own overflow handling. */
    box-shadow: var(--sh-soft);
}
.ep-map__leaflet,
.ep-map__svg {
    /* Round the top corners so the map respects the .ep-map border-radius
       (we lost that visual when removing overflow:hidden above). */
    border-top-left-radius: var(--r-lg);
    border-top-right-radius: var(--r-lg);
}
.ep-map__svg {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 100 / 84; /* matches viewBox of the SE Mexico geography */
    min-height: 420px;
}
@media (min-width: 1024px) {
    .ep-map__svg {
        min-height: 600px;
    }
}
@media (min-width: 1280px) {
    .ep-map__svg {
        min-height: 680px;
    }
}
.ep-map__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    border-top: 1px solid var(--border);
    background: var(--bg-alt);
}
.ep-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--text-soft);
}
.ep-legend-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
}
.ep-legend-dot--blue { background: rgb(var(--pac-corp)); }
[data-mode="dark"] .ep-legend-dot--blue { background: rgb(var(--pac-sky)); }
.ep-legend-dot--lime { background: rgb(var(--pac-lime)); }

.ep-branches {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.ep-branch {
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    background: var(--bg-elev);
    padding: 1.25rem;
    box-shadow: var(--sh-soft);
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.ep-branch:hover {
    border-color: rgb(var(--pac-sky) / 0.6);
    transform: translateY(-2px);
}
.ep-branch__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}
.ep-branch__type {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgb(var(--pac-lime));
}
.ep-branch__name {
    margin-top: 0.25rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text);
}
.ep-branch__city {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    color: var(--text-soft);
}
.ep-branch__list {
    margin: 0.85rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.ep-branch__list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-soft);
}
.ep-branch__list svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: rgb(var(--pac-sky));
}
.ep-branch__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.85rem;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    background: rgb(var(--pac-lime) / 0.15);
    color: rgb(var(--pac-lime));
    border: 1px solid rgb(var(--pac-lime) / 0.3);
    transition: background 0.15s ease;
    cursor: pointer;
}
.ep-branch__cta:hover {
    background: rgb(var(--pac-lime) / 0.25);
}

/* Map pulse rings */
@keyframes ep-pulse-ring {
    0% { r: 1.5; opacity: 0.7; }
    100% { r: 6; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .ep-orb--lime,
    .ep-orb--sky,
    .ep-drop { animation: none; }
}


/* ============================================================
   V4.6.11 — PUBLIC PRODUCTS CATALOG
   Editorial Premium aligned. Sticky filter sidebar + responsive grid.
   Works across all 5 themes thanks to the universal containment layer.
   ============================================================ */

.cat-hero {
    padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
    background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
[data-theme="editorial-premium"] .cat-hero {
    background: radial-gradient(ellipse at top right, rgb(var(--pac-sky) / 0.08) 0%, transparent 60%),
                radial-gradient(ellipse at top left, rgb(var(--pac-lime) / 0.06) 0%, transparent 50%),
                var(--bg);
}
[data-theme="editorial-premium"][data-mode="dark"] .cat-hero {
    background: radial-gradient(ellipse at top right, rgb(var(--pac-sky) / 0.15) 0%, transparent 60%),
                radial-gradient(ellipse at top left, rgb(var(--pac-lime) / 0.10) 0%, transparent 50%),
                var(--bg);
}

.cat-hero__inner {
    max-width: 880px;
    text-align: center;
}
.cat-hero__inner .ep-pill { margin-bottom: 1.25rem; }

.cat-hero__title {
    font-family: var(--ff-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 1rem;
    color: var(--text);
}
.cat-hero__title em {
    font-style: normal;
    color: var(--accent);
    background: linear-gradient(120deg, var(--accent), var(--pac-green));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cat-hero__sub {
    font-size: clamp(1rem, 1.4vw, 1.125rem);
    color: var(--text-soft);
    max-width: 640px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* Search bar */
.cat-search {
    display: flex;
    gap: 0.5rem;
    max-width: 640px;
    margin: 0 auto;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    padding: 0.375rem 0.375rem 0.375rem 1rem;
    box-shadow: var(--sh-soft);
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.cat-search:focus-within {
    border-color: var(--accent);
    box-shadow: var(--sh-soft), 0 0 0 4px rgb(0 130 204 / 0.15);
}
.cat-search__field {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex: 1;
    color: var(--text-muted);
    min-width: 0;
}
.cat-search__field input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 0.9375rem;
    padding: 0.625rem 0;
    min-width: 0;
}
.cat-search__btn {
    background: var(--accent);
    color: var(--accent-contrast, #fff);
    border: none;
    border-radius: var(--r-pill);
    padding: 0.625rem 1.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: background 0.2s var(--ease), transform 0.15s var(--ease);
    white-space: nowrap;
}
.cat-search__btn:hover { background: var(--accent-hover); transform: translateY(-1px); }

/* ==== Layout ==== */
.cat-section { padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(3rem, 6vw, 5rem); }

.cat-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: start;
}
@media (max-width: 900px) {
    .cat-layout { grid-template-columns: 1fr; }
}

/* ==== Filters sidebar ==== */
.cat-filters {
    min-width: 0;
}
.cat-filters__sticky {
    position: sticky;
    top: calc(var(--header-h, 84px) + 1rem);
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.25rem;
    box-shadow: var(--sh-sm);
    max-height: calc(100vh - var(--header-h, 84px) - 2rem);
    overflow-y: auto;
}
@media (max-width: 900px) {
    .cat-filters__sticky { position: static; max-height: none; }
}

/* Active filters chips */
.cat-filters__active {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}
.cat-filters__active-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.625rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.cat-filters__clear {
    color: var(--accent);
    font-size: 0.8125rem;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-transform: none;
    letter-spacing: normal;
}
.cat-filters__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}
.cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: rgb(0 130 204 / 0.08);
    border: 1px solid rgb(0 130 204 / 0.2);
    color: var(--accent);
    border-radius: var(--r-pill);
    font-size: 0.8125rem;
    font-weight: 500;
    transition: background 0.15s var(--ease);
}
.cat-chip:hover { background: rgb(0 130 204 / 0.15); }
.cat-chip span { opacity: 0.6; font-size: 1rem; line-height: 0.9; }

/* Filter groups */
.cat-filter-group { margin-bottom: 1.25rem; }
.cat-filter-group:last-child { margin-bottom: 0; }
.cat-filter__title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.625rem;
    font-family: var(--ff-body);
}
.cat-filter__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}
.cat-filter__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: var(--r-sm);
    font-size: 0.9375rem;
    color: var(--text-soft);
    transition: background 0.15s var(--ease), color 0.15s var(--ease);
    text-decoration: none;
}
.cat-filter__item:hover {
    background: var(--bg-alt);
    color: var(--text);
}
.cat-filter__item.is-active {
    background: rgb(0 130 204 / 0.1);
    color: var(--accent);
    font-weight: 600;
}
[data-theme="editorial-premium"][data-mode="dark"] .cat-filter__item.is-active {
    background: rgb(45 156 219 / 0.18);
}
.cat-filter__count {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ==== Results ==== */
.cat-results { min-width: 0; }
.cat-results__head {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.cat-results__count {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-soft);
    font-family: var(--ff-body);
    letter-spacing: 0;
}
.cat-results__count strong { color: var(--text); font-weight: 700; }

.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--grid-gap);
}

.cat-card {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
    min-width: 0;
}
.cat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--sh-md);
    border-color: var(--accent);
}

.cat-card__media {
    display: block;
    position: relative;
    aspect-ratio: 1;
    background: var(--bg-alt);
    overflow: hidden;
}
.cat-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: transform 0.4s var(--ease);
}
.cat-card:hover .cat-card__media img { transform: scale(1.04); }
.cat-card__placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--text-muted);
    opacity: 0.4;
}
.cat-card__badge {
    position: absolute;
    top: 0.625rem;
    left: 0.625rem;
    background: var(--pac-green);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.25rem 0.625rem;
    border-radius: var(--r-pill);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(116, 187, 32, 0.35);
}

.cat-card__body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    flex: 1;
}
.cat-card__category {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.cat-card__title {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    overflow-wrap: anywhere;
}
.cat-card__title a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.15s var(--ease);
}
.cat-card__title a:hover { color: var(--accent); }
.cat-card__sku {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: 'Space Grotesk', monospace;
    letter-spacing: 0.02em;
}
.cat-card__cta {
    margin-top: auto;
    padding-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    transition: gap 0.2s var(--ease);
}
.cat-card__cta:hover { gap: 0.5rem; }

/* ==== Pagination ==== */
.cat-pagination {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: wrap;
}
.cat-page,
.cat-page-sep {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    background: var(--bg-elev);
    color: var(--text-soft);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.cat-page:hover {
    background: var(--bg-alt);
    color: var(--text);
    border-color: var(--border-strong);
}
.cat-page.is-current {
    background: var(--accent);
    color: var(--accent-contrast, #fff);
    border-color: var(--accent);
    font-weight: 700;
}
.cat-page-sep { border: none; background: transparent; color: var(--text-muted); }

/* ==== Empty state ==== */
.cat-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-soft);
}
.cat-empty svg { color: var(--text-muted); margin-bottom: 1rem; }
.cat-empty h3 {
    font-family: var(--ff-display);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}
.cat-empty p { margin-bottom: 1.5rem; }
.cat-empty .btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: #fff;
    border-radius: var(--r-pill);
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s var(--ease);
}
.cat-empty .btn:hover { background: var(--accent-hover); }

/* ============================================================
   V4.6.13 — CITY PICKER (location-based availability)
   ============================================================ */

.nav__item--city { display: flex; align-items: center; }

.city-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.85rem;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    color: var(--text-soft);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.18s var(--ease);
    white-space: nowrap;
    max-width: 200px;
}
.city-pill:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--bg-alt);
}
.city-pill svg { flex-shrink: 0; color: var(--accent); }
.city-pill__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 130px;
}

@media (max-width: 760px) {
    .city-pill__label { max-width: 90px; font-size: 0.75rem; }
    .city-pill { padding: 0.4rem 0.6rem; }
}

/* === Modal === */
.city-modal {
    position: fixed; inset: 0; z-index: 9000;
    display: grid; place-items: center;
    padding: 1rem;
    animation: cm-fade 0.22s var(--ease);
}
@keyframes cm-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}
.city-modal[hidden] { display: none; }

.city-modal__backdrop {
    position: absolute; inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.city-modal__panel {
    position: relative;
    background: var(--bg-elev);
    color: var(--text);
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: cm-pop 0.28s var(--ease) both;
}
@keyframes cm-pop {
    from { transform: translateY(20px) scale(0.96); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

.city-modal__head {
    position: sticky; top: 0;
    background: var(--bg-elev);
    padding: 1.5rem 1.5rem 0.5rem;
    display: flex; align-items: flex-start; justify-content: space-between;
    border-bottom: 1px solid var(--border);
    z-index: 1;
}
.city-modal__head h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    color: var(--text);
    font-family: var(--ff-display);
}
.city-modal__close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--r-sm);
    transition: all 0.15s var(--ease);
    flex-shrink: 0;
    margin-left: 1rem;
}
.city-modal__close:hover {
    color: var(--text);
    background: var(--bg-alt);
}

.city-modal__sub {
    padding: 0.75rem 1.5rem 0;
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.5;
}

.city-modal__body { padding: 1rem 1.5rem 1.5rem; }
.city-modal__loading { text-align: center; padding: 2rem; color: var(--text-muted); }

.city-modal__group { margin-top: 1.25rem; }
.city-modal__group:first-child { margin-top: 0; }
.city-modal__group h3 {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: var(--text-muted);
    margin: 0 0 0.6rem;
    font-family: var(--ff-body);
}

.city-modal__chips {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.city-chip {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.55rem 0.95rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--r-pill);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.18s var(--ease);
}
.city-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
    box-shadow: var(--sh-sm);
}
.city-chip.is-active {
    background: var(--accent);
    color: var(--accent-contrast, #fff);
    border-color: var(--accent);
    font-weight: 600;
}
.city-chip__star {
    color: #f59e0b;
    font-size: 0.78rem;
}
.city-chip.is-active .city-chip__star { color: #fff; }
.city-modal__clear {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px dashed var(--border);
    text-align: center;
}
.city-chip--clear {
    background: transparent !important;
    color: var(--text-soft) !important;
    border-style: dashed !important;
}

/* ============================================================
   V4.6.13 — CATALOG CARD ANIMATIONS (subtle, non-distracting)
   ============================================================ */

@keyframes cat-card-rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
.cat-card {
    animation: cat-card-rise 0.45s var(--ease-out) both;
}
.cat-card:nth-child(2)  { animation-delay: 0.04s; }
.cat-card:nth-child(3)  { animation-delay: 0.08s; }
.cat-card:nth-child(4)  { animation-delay: 0.12s; }
.cat-card:nth-child(5)  { animation-delay: 0.16s; }
.cat-card:nth-child(6)  { animation-delay: 0.20s; }
.cat-card:nth-child(7)  { animation-delay: 0.24s; }
.cat-card:nth-child(8)  { animation-delay: 0.28s; }
.cat-card:nth-child(9)  { animation-delay: 0.32s; }
.cat-card:nth-child(10) { animation-delay: 0.36s; }
.cat-card:nth-child(n+11) { animation-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
    .cat-card { animation: none; }
}

/* Dynamic image effects on hover */
.cat-card__media {
    position: relative;
}
.cat-card__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(0, 130, 204, 0) 0%,
        rgba(0, 130, 204, 0) 50%,
        rgba(116, 187, 32, 0.08) 100%);
    opacity: 0;
    transition: opacity 0.3s var(--ease);
    pointer-events: none;
    z-index: 1;
}
.cat-card:hover .cat-card__media::after { opacity: 1; }
.cat-card__media img {
    transition: transform 0.45s var(--ease-out), filter 0.3s var(--ease);
}
.cat-card:hover .cat-card__media img {
    transform: scale(1.08) rotate(-1deg);
    filter: drop-shadow(0 6px 14px rgba(0, 130, 204, 0.18));
}

/* Out-of-stock state for products not available in user's branch */
.cat-card--unavailable {
    opacity: 0.78;
}
.cat-card--unavailable .cat-card__media img {
    filter: grayscale(40%) opacity(0.85);
}
.cat-card--unavailable .cat-card__media::before {
    content: '⚠ Cotiza por WhatsApp';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(180deg, transparent, rgba(245, 158, 11, 0.95) 70%);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
    padding: 1.5rem 0.5rem 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    z-index: 2;
}

/* Floating shimmer effect on featured cards */
.cat-card .cat-card__badge {
    animation: cat-shimmer 3s var(--ease) infinite;
}
@keyframes cat-shimmer {
    0%, 100% { transform: scale(1); box-shadow: 0 2px 6px rgba(116, 187, 32, 0.35); }
    50% { transform: scale(1.04); box-shadow: 0 4px 12px rgba(116, 187, 32, 0.55); }
}
@media (prefers-reduced-motion: reduce) {
    .cat-card .cat-card__badge { animation: none; }
}

/* ============================================================
   V4.6.13 — UNAVAILABLE PRODUCT CTA on detail page
   ============================================================ */

.prod-availability {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.1rem;
    border-radius: var(--r-md);
    font-size: 0.92rem;
    margin-bottom: 1.25rem;
    border: 1px solid;
    line-height: 1.4;
}
.prod-availability--ok {
    background: rgba(116, 187, 32, 0.10);
    border-color: rgba(116, 187, 32, 0.35);
    color: var(--pac-green-700, #4a8212);
}
[data-mode="dark"] .prod-availability--ok {
    color: #aedc6e;
}
.prod-availability--no {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.4);
    color: #b45309;
}
[data-mode="dark"] .prod-availability--no {
    color: #fcd34d;
}
.prod-availability svg {
    flex-shrink: 0;
}

/* Pulse on the WhatsApp button when product is unavailable */
.btn--wa.btn--pulse {
    animation: wa-pulse 2.4s var(--ease) infinite;
}
@keyframes wa-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
    50%      { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .btn--wa.btn--pulse { animation: none; }
}

/* ============================================================
   V4.7.25 — City banner state machine (single element, 3 states)
   States: prompt (orange) / confirmed (green) / lead (green w/ greeting)
   The parent's class controls which message + icon + button is visible.
   ============================================================ */
.cat-city-banner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.625rem 0.95rem;
    color: var(--text-soft);
    border-radius: var(--r-md);
    font-size: 0.85rem;
    line-height: 1.4;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.cat-city-banner strong { color: var(--text); font-weight: 700; }

/* Hide ALL state-specific bits by default; CSS reveals only the active state's */
.cat-city-banner__icon-prompt,
.cat-city-banner__icon-confirmed,
.cat-city-banner__msg,
.cat-city-banner__btn--prompt,
.cat-city-banner__btn--confirmed,
.cat-city-banner__btn--lead {
    display: none;
}
.cat-city-banner svg { flex-shrink: 0; }

/* === STATE: prompt (orange) — no city selected === */
.cat-city-banner--prompt {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.30);
}
.cat-city-banner--prompt .cat-city-banner__icon-prompt   { display: inline-block; color: #d97706; }
.cat-city-banner--prompt .cat-city-banner__msg--prompt   { display: inline; }
.cat-city-banner--prompt .cat-city-banner__btn--prompt   { display: inline-flex; }

/* === STATE: confirmed (green) — city selected, lead NOT yet captured === */
.cat-city-banner--confirmed {
    background: rgba(116, 187, 32, 0.10);
    border: 1px solid rgba(116, 187, 32, 0.35);
}
.cat-city-banner--confirmed .cat-city-banner__icon-confirmed { display: inline-block; color: rgb(var(--pac-lime, 116 187 32)); }
.cat-city-banner--confirmed .cat-city-banner__msg--confirmed { display: inline; }
.cat-city-banner--confirmed .cat-city-banner__btn--confirmed { display: inline-flex; }

/* === STATE: lead (green, brighter) — city + lead registered === */
.cat-city-banner--lead {
    background: rgba(116, 187, 32, 0.14);
    border: 1px solid rgba(116, 187, 32, 0.50);
    box-shadow: 0 0 0 1px rgba(116, 187, 32, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.cat-city-banner--lead .cat-city-banner__icon-confirmed { display: inline-block; color: rgb(var(--pac-lime, 116 187 32)); }
.cat-city-banner--lead .cat-city-banner__msg--lead      { display: inline; }
.cat-city-banner--lead .cat-city-banner__btn--lead      { display: inline-flex; }

/* === Buttons (shared base) === */
.cat-city-banner__change {
    margin-left: auto;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--accent);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.3rem 0.7rem;
    border-radius: var(--r-pill);
    cursor: pointer;
    transition: all 0.15s var(--ease);
    flex-shrink: 0;
    align-items: center;
}
.cat-city-banner__change:hover {
    background: var(--accent);
    color: var(--accent-contrast, #fff);
    border-color: var(--accent);
}
/* "Editar datos" — softer styling because it's secondary info */
.cat-city-banner__btn--lead {
    border-color: rgba(116, 187, 32, 0.40);
    color: rgb(var(--pac-lime, 116 187 32));
}
.cat-city-banner__btn--lead:hover {
    background: rgb(var(--pac-lime, 116 187 32));
    color: #fff;
    border-color: rgb(var(--pac-lime, 116 187 32));
}

@media (max-width: 600px) {
    .cat-city-banner { flex-wrap: wrap; }
    .cat-city-banner__change { margin-left: 0; margin-top: 0.4rem; }
}

/* ============================================================
   V4.7 — AVAILABILITY TOGGLE (catalog sidebar)
   ============================================================ */
.cat-filter-availability {
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.cat-toggle {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    cursor: pointer;
    padding: 0.5rem 0.25rem;
    border-radius: var(--r-sm);
    transition: background 0.15s var(--ease);
}
.cat-toggle:hover { background: var(--bg-alt); }
.cat-toggle input { position: absolute; opacity: 0; pointer-events: none; }

.cat-toggle__track {
    flex-shrink: 0;
    position: relative;
    width: 36px;
    height: 20px;
    background: var(--border-strong);
    border-radius: 999px;
    transition: background 0.2s var(--ease);
    margin-top: 2px;
}
.cat-toggle__thumb {
    position: absolute;
    top: 2px; left: 2px;
    width: 16px; height: 16px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: transform 0.22s var(--ease);
}
.cat-toggle input:checked ~ .cat-toggle__track {
    background: var(--accent);
}
.cat-toggle input:checked ~ .cat-toggle__track .cat-toggle__thumb {
    transform: translateX(16px);
}
.cat-toggle__label {
    flex: 1;
    line-height: 1.3;
    min-width: 0;
}
.cat-toggle__label strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 0.1rem;
}
.cat-toggle__label small {
    display: block;
    font-size: 0.74rem;
    color: var(--text-muted);
    line-height: 1.35;
}

/* ============================================================
   V4.7.1 — PRODUCT HERO (Editorial Premium style for ALL themes)
   The product detail page uses the same hero design as the index,
   regardless of which theme is active. We re-declare the EP hero
   styles, scoped to .ep-hero--product so they always apply.
   ============================================================ */

.ep-hero--product {
    position: relative;
    overflow: hidden;
    padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 6rem);
    background:
        radial-gradient(ellipse at 8% 12%, rgba(45, 156, 219, 0.10), transparent 55%),
        radial-gradient(ellipse at 92% 18%, rgba(141, 198, 63, 0.10), transparent 60%),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    color: var(--text);
    isolation: isolate;
}
[data-mode="dark"] .ep-hero--product {
    background:
        radial-gradient(ellipse at 8% 12%, rgba(45, 156, 219, 0.18), transparent 55%),
        radial-gradient(ellipse at 92% 18%, rgba(141, 198, 63, 0.14), transparent 60%),
        linear-gradient(180deg, #0a1422 0%, var(--bg) 100%);
}

/* Subtle dot grid background overlay */
.ep-hero--product::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(15,23,42,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15,23,42,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    z-index: 0;
    pointer-events: none;
}
[data-mode="dark"] .ep-hero--product::before {
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
}

.ep-hero--product .ep-hero__inner {
    position: relative;
    z-index: 2;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
@media (max-width: 880px) {
    .ep-hero--product .ep-hero__inner {
        grid-template-columns: 1fr;
        text-align: left;
    }
}

/* Floating drops animation */
.ep-hero--product .ep-drop {
    position: absolute;
    z-index: 1;
    animation: ep-drop-float 5s ease-in-out infinite;
    pointer-events: none;
}
@keyframes ep-drop-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

/* Bottom wave decoration */
.ep-hero--product .ep-wave {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 240px;
    z-index: 1;
    pointer-events: none;
}
.ep-hero--product .ep-wave svg {
    width: 100%; height: 100%;
}

/* Pills */
.ep-hero--product .ep-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.95rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(45, 156, 219, 0.25);
    border-radius: var(--r-pill);
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 600;
    backdrop-filter: blur(6px);
    text-decoration: none;
}
[data-mode="dark"] .ep-hero--product .ep-pill {
    background: rgba(20, 30, 50, 0.7);
    color: var(--text);
}
.ep-hero--product .ep-pill__dot {
    width: 7px; height: 7px;
    background: var(--pac-green);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(116, 187, 32, 0.18);
}
.ep-pill--breadcrumb {
    font-size: 0.78rem;
    font-weight: 500;
    gap: 0.4rem;
}
.ep-pill--breadcrumb a {
    color: var(--text-soft);
    text-decoration: none;
    transition: color 0.15s var(--ease);
}
.ep-pill--breadcrumb a:hover { color: var(--accent); }
.ep-pill--breadcrumb svg { color: var(--text-muted); opacity: 0.6; }

/* Title */
.ep-hero--product .ep-hero__title {
    font-family: var(--ff-display);
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 1rem 0 0.6rem;
}

/* Meta line */
.ep-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-bottom: 1rem;
    font-family: 'Space Grotesk', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.03em;
}
.ep-hero__meta strong {
    color: var(--text-soft);
    font-weight: 600;
}
.ep-hero__meta-label {
    text-transform: uppercase;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-right: 0.25rem;
}

/* Subtitle */
.ep-hero--product .ep-hero__subtitle {
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    color: var(--text-soft);
    line-height: 1.6;
    max-width: 540px;
    margin: 0 0 1.5rem;
}

/* CTAs */
.ep-hero--product .ep-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-bottom: 1.75rem;
}
.ep-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.78rem 1.4rem;
    border-radius: var(--r-pill);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    transition: all 0.18s var(--ease);
    white-space: nowrap;
}
.ep-hero--product .ep-cta--primary {
    background: #1e40af;
    color: #fff;
    border-color: #1e40af;
}
.ep-hero--product .ep-cta--primary:hover {
    background: #1d3a9d;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(30, 64, 175, 0.3);
}
.ep-hero--product .ep-cta--secondary {
    background: #fff;
    color: var(--text);
    border-color: var(--border-strong);
}
.ep-hero--product .ep-cta--secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--sh-md);
}
[data-mode="dark"] .ep-hero--product .ep-cta--secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border-color: var(--border);
}
.ep-hero--product .ep-cta--whatsapp {
    background: rgba(116, 187, 32, 0.12);
    color: #4a8212;
    border-color: rgba(116, 187, 32, 0.4);
}
.ep-hero--product .ep-cta--whatsapp:hover {
    background: var(--pac-green);
    color: #fff;
    border-color: var(--pac-green);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(116, 187, 32, 0.35);
}
[data-mode="dark"] .ep-hero--product .ep-cta--whatsapp {
    color: #aedc6e;
}
.ep-cta--pulse {
    animation: ep-cta-pulse 2.4s var(--ease) infinite;
}
@keyframes ep-cta-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(116, 187, 32, 0.55); }
    50%      { box-shadow: 0 0 0 12px rgba(116, 187, 32, 0); }
}

/* Pillars (info badges below CTAs) */
.ep-hero--product .ep-hero__pillars {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.4rem;
}
.ep-hero--product .ep-pillar {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 1rem;
    background: rgba(0, 130, 204, 0.06);
    border: 1px solid rgba(0, 130, 204, 0.18);
    border-radius: var(--r-md);
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 500;
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
}
[data-mode="dark"] .ep-hero--product .ep-pillar {
    background: rgba(0, 130, 204, 0.12);
}
.ep-hero--product .ep-pillar__icon {
    color: var(--accent);
    display: flex;
    flex-shrink: 0;
}
.ep-hero--product .ep-pillar__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* RIGHT VISUAL: drop-shaped container with product image */
.ep-hero--product .ep-hero__visual {
    position: relative;
    aspect-ratio: 1;
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    place-items: center;
}

/* Background blob (the soft droplet shape) */
.ep-hero--product .ep-blob {
    position: absolute;
    inset: 5%;
    background: radial-gradient(circle at 35% 35%,
        rgba(141, 198, 63, 0.22) 0%,
        rgba(45, 156, 219, 0.18) 45%,
        transparent 70%);
    border-radius: 53% 47% 50% 50% / 50% 50% 50% 50%;
    filter: blur(20px);
    animation: ep-blob-morph 18s ease-in-out infinite;
}
.ep-hero--product .ep-blob--inner {
    inset: 18%;
    background: radial-gradient(circle at 65% 65%,
        rgba(45, 156, 219, 0.18) 0%,
        rgba(141, 198, 63, 0.10) 50%,
        transparent 75%);
    border-radius: 47% 53% 52% 48% / 48% 50% 50% 52%;
    animation: ep-blob-morph 22s ease-in-out infinite reverse;
}
@keyframes ep-blob-morph {
    0%, 100% { border-radius: 53% 47% 50% 50% / 50% 50% 50% 50%; }
    33%      { border-radius: 47% 53% 60% 40% / 55% 45% 55% 45%; }
    66%      { border-radius: 60% 40% 47% 53% / 45% 55% 45% 55%; }
}

/* Floating decorative orbs */
.ep-hero--product .ep-orb {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    animation: ep-orb-float 6s ease-in-out infinite;
}
.ep-hero--product .ep-orb--lime {
    top: 18%; right: 22%;
    background: radial-gradient(circle, var(--pac-green) 0%, rgba(116, 187, 32, 0.4) 70%);
    box-shadow: 0 0 24px rgba(116, 187, 32, 0.4);
}
.ep-hero--product .ep-orb--sky {
    bottom: 22%; left: 18%;
    background: radial-gradient(circle, #2d9cdb 0%, rgba(45, 156, 219, 0.4) 70%);
    box-shadow: 0 0 24px rgba(45, 156, 219, 0.4);
    animation-delay: 1.5s;
}
@keyframes ep-orb-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50%      { transform: translateY(-15px) scale(1.15); }
}

/* Center: product image card */
.ep-hero--product .ep-center {
    position: relative;
    z-index: 3;
    text-align: center;
}
.ep-hero--product .ep-center__card {
    width: clamp(180px, 32vw, 260px);
    height: clamp(180px, 32vw, 260px);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-radius: 28px;
    box-shadow:
        0 20px 60px rgba(15, 23, 42, 0.12),
        0 4px 16px rgba(15, 23, 42, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.8);
    display: grid;
    place-items: center;
    padding: 1.5rem;
    margin: 0 auto 0.75rem;
    animation: ep-card-breathe 6s ease-in-out infinite;
}
[data-mode="dark"] .ep-hero--product .ep-center__card {
    background: rgba(20, 30, 50, 0.85);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 4px 16px rgba(0, 0, 0, 0.2);
}
@keyframes ep-card-breathe {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}
.ep-hero--product .ep-center__product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s var(--ease);
}
.ep-hero--product .ep-center__card:hover .ep-center__product-img {
    transform: scale(1.06);
}
.ep-hero--product .ep-center__product-fallback {
    color: var(--text-muted);
    opacity: 0.4;
    font-size: 4rem;
    display: grid;
    place-items: center;
}
.ep-hero--product .ep-center__product-fallback svg {
    width: 80px; height: 80px;
}
.ep-hero--product .ep-center__label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin: 0;
}

/* Mobile tweaks */
@media (max-width: 880px) {
    .ep-hero--product .ep-hero__visual {
        max-width: 320px;
        margin-top: 1rem;
    }
    .ep-hero--product .ep-hero__pillars {
        justify-content: flex-start;
    }
}
@media (prefers-reduced-motion: reduce) {
    .ep-hero--product .ep-drop,
    .ep-hero--product .ep-blob,
    .ep-hero--product .ep-blob--inner,
    .ep-hero--product .ep-orb,
    .ep-hero--product .ep-center__card,
    .ep-cta--pulse {
        animation: none;
    }
}

/* ============================================================
   V4.7.2 — Icon-only CTA (favorite heart button)
   ============================================================ */
.ep-cta--icon {
    background: #fff;
    color: var(--text-soft);
    border: 1px solid var(--border-strong);
    width: 44px;
    height: 44px;
    padding: 0 !important;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ep-cta--icon:hover {
    color: #e11d48;
    border-color: #e11d48;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(225, 29, 72, 0.18);
}
.ep-cta--icon:active {
    transform: scale(0.94);
}
[data-mode="dark"] .ep-cta--icon {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border);
}
.ep-cta--icon.is-active {
    color: #fff;
    background: #e11d48;
    border-color: #e11d48;
}
.ep-cta--icon.is-active svg {
    fill: currentColor;
}

/* ============================================================
   V4.7.4 — Iniciar Sesión button + popover fixes
   ============================================================ */

/* Make sure user popover NEVER overflows viewport on the right.
   The popover is anchored to the right of the button; on narrow
   screens that pushes it off-screen. We clamp with max-width and
   use viewport-aware positioning. */
.user-popover {
    /* Override hardcoded min-width that forced overflow */
    min-width: min(280px, calc(100vw - 2rem));
    max-width: min(320px, calc(100vw - 2rem));
    /* Anchor within nav: prefer right of button, but clamp */
    right: 0;
    /* On very narrow screens, allow popover to extend leftward */
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    overflow-x: hidden;
}

/* On mid-size screens (1024px and below) hide the "Iniciar Sesión"
   text label and keep only the icon to save space — the button
   becomes a circular avatar like when logged in. */
@media (max-width: 1180px) and (min-width: 901px) {
    .user-btn--login .user-btn__label { display: none; }
    .user-btn--login {
        width: 38px;
        height: 38px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
    }
    .user-btn--login .icn-wrap { width: 1.1rem; height: 1.1rem; }
}

/* The "Iniciar Sesión" pill should never get truncated when shown */
.user-btn--login {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Account for variable login button placement: ensure popover anchors
   to the visual edge of the navbar, not off-canvas */
.nav__item--user {
    position: relative;
}
@media (min-width: 901px) {
    .user-popover {
        /* Use fixed-style anchor: position right edge to the button */
        position: absolute;
        right: 0;
        left: auto;
    }
}

/* ============================================================
   V4.7.5 — UNIVERSAL EDITORIAL PREMIUM PAGE HERO
   ============================================================
   Override the legacy .page-hero with the same Editorial Premium
   design used in /productos/{slug}. Applied to ALL public pages
   automatically (cobertura, contacto, cotizar, mis_pedidos, etc.).
   No template changes required — pure CSS upgrade.
   ============================================================ */

.page-hero {
    /* Reset legacy dark blue gradient → light Editorial Premium */
    position: relative;
    overflow: hidden;
    color: var(--text);
    padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 7vw, 5.5rem);
    background:
        radial-gradient(ellipse at 8% 12%, rgba(45, 156, 219, 0.10), transparent 55%),
        radial-gradient(ellipse at 92% 18%, rgba(141, 198, 63, 0.10), transparent 60%),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    isolation: isolate;
}
[data-mode="dark"] .page-hero {
    background:
        radial-gradient(ellipse at 8% 12%, rgba(45, 156, 219, 0.18), transparent 55%),
        radial-gradient(ellipse at 92% 18%, rgba(141, 198, 63, 0.14), transparent 60%),
        linear-gradient(180deg, #0a1422 0%, var(--bg) 100%);
}

/* Subtle dot grid background overlay (pseudo-element) */
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(15,23,42,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15,23,42,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    z-index: 0;
    pointer-events: none;
}
[data-mode="dark"] .page-hero::before {
    background:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
}

/* Floating water-drop decorations (CSS-only, no HTML needed) */
.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='36' viewBox='0 0 28 36' fill='none'><path d='M14 1.5C14 1.5 26.5 16 26.5 24.2C26.5 30.7 20.9 35 14 35C7.1 35 1.5 30.7 1.5 24.2C1.5 16 14 1.5 14 1.5Z' stroke='rgb(45 156 219)' stroke-opacity='0.45' stroke-width='1.5'/></svg>"),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='28' viewBox='0 0 28 36' fill='none'><path d='M14 1.5C14 1.5 26.5 16 26.5 24.2C26.5 30.7 20.9 35 14 35C7.1 35 1.5 30.7 1.5 24.2C1.5 16 14 1.5 14 1.5Z' stroke='rgb(141 198 63)' stroke-opacity='0.45' stroke-width='1.5'/></svg>"),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='24' viewBox='0 0 28 36' fill='none'><path d='M14 1.5C14 1.5 26.5 16 26.5 24.2C26.5 30.7 20.9 35 14 35C7.1 35 1.5 30.7 1.5 24.2C1.5 16 14 1.5 14 1.5Z' stroke='rgb(45 156 219)' stroke-opacity='0.40' stroke-width='1.5'/></svg>");
    background-position:
        8% 25%,
        90% 30%,
        45% 12%;
    background-repeat: no-repeat;
    animation: page-hero-drops-float 6s ease-in-out infinite;
}
@keyframes page-hero-drops-float {
    0%, 100% { background-position: 8% 25%, 90% 30%, 45% 12%; }
    50%      { background-position: 8% 22%, 90% 27%, 45% 9%; }
}
@media (prefers-reduced-motion: reduce) {
    .page-hero::after { animation: none; }
}

.page-hero__inner {
    position: relative;
    z-index: 2;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
}

/* Icon (kept from legacy) */
.page-hero__icon {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 130, 204, 0.10);
    border: 1px solid rgba(0, 130, 204, 0.20);
    border-radius: var(--r-md);
    color: var(--accent);
}
[data-mode="dark"] .page-hero__icon {
    background: rgba(0, 130, 204, 0.18);
}
.page-hero__icon .icon { width: 1.5rem; height: 1.5rem; }

/* Title — large display font, dark on light */
.page-hero__title {
    font-family: var(--ff-display, inherit);
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 700;
    margin: 0 0 0.7rem;
    color: var(--text) !important;
    letter-spacing: -0.02em;
    line-height: 1.08;
}

/* Description */
.page-hero__desc {
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    color: var(--text-soft) !important;
    max-width: 680px;
    line-height: 1.6;
    margin: 0;
}

/* Actions row */
.page-hero__actions {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin-top: 1.6rem;
}

/* Buttons inside the hero — use the same ep-cta system */
.page-hero .btn {
    border-radius: var(--r-pill);
    font-weight: 600;
    transition: all 0.18s var(--ease);
}
.page-hero .btn--primary,
.page-hero .btn--blue,
.page-hero .btn--accent {
    background: #1e40af;
    color: #fff;
    border: 1px solid #1e40af;
}
.page-hero .btn--primary:hover {
    background: #1d3a9d;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(30, 64, 175, 0.30);
}
.page-hero .btn--ghost,
.page-hero .btn--secondary {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border-strong);
}
[data-mode="dark"] .page-hero .btn--ghost,
[data-mode="dark"] .page-hero .btn--secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border-color: var(--border);
}
.page-hero .btn--ghost:hover,
.page-hero .btn--secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--sh-md);
}
.page-hero .btn--wa {
    background: rgba(116, 187, 32, 0.12);
    color: #4a8212;
    border: 1px solid rgba(116, 187, 32, 0.4);
}
[data-mode="dark"] .page-hero .btn--wa { color: #aedc6e; }
.page-hero .btn--wa:hover {
    background: var(--pac-green);
    color: #fff;
    border-color: var(--pac-green);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(116, 187, 32, 0.35);
}

/* Meta chips — pills with subtle bg */
.page-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.4rem;
    align-items: center;
}
.page-hero__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.95rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(45, 156, 219, 0.25);
    border-radius: var(--r-pill);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-soft);
    backdrop-filter: blur(6px);
}
[data-mode="dark"] .page-hero__chip {
    background: rgba(20, 30, 50, 0.7);
    color: var(--text);
}

/* Breadcrumbs above page-hero (some templates have a separate <div class="breadcrumbs">) */
.breadcrumbs {
    background: transparent;
    color: var(--text-muted);
    padding: 1rem 0 0;
}
.breadcrumbs .container {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
}
.breadcrumbs a {
    color: var(--text-soft);
    text-decoration: none;
    transition: color 0.15s var(--ease);
}
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { color: var(--text-muted); opacity: 0.5; }

/* ============================================================
   V4.7.5 — UNIVERSAL CARD UPGRADE
   Cards & panels in public pages now match Editorial Premium
   ============================================================ */

/* Cards on public pages (sol-card, info-card, contact-card, etc.) */
.sol-card,
.info-card,
.contact-card,
.coverage-card,
.legal-card {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 1.4rem 1.5rem;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.sol-card:hover,
.info-card:hover,
.contact-card:hover,
.coverage-card:hover,
.legal-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    border-color: rgba(0, 130, 204, 0.25);
}

/* Section eyebrow labels */
.section__eye {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    background: rgba(0, 130, 204, 0.08);
    padding: 0.3rem 0.8rem;
    border-radius: var(--r-pill);
    margin-bottom: 0.85rem;
}

/* Section titles — ensure consistent typography */
.section__title {
    font-family: var(--ff-display, inherit);
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0 0 0.65rem;
}
.section__sub {
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    color: var(--text-soft);
    line-height: 1.6;
    max-width: 680px;
    margin: 0 0 2rem;
}

/* ============================================================
   V4.7.5b — Section polishing
   Smooth visual transitions between sections to avoid harsh jumps
   ============================================================ */

/* Soft gradient for alt sections instead of flat color */
.section--alt {
    background:
        linear-gradient(180deg,
            var(--bg-alt) 0%,
            color-mix(in srgb, var(--bg-alt) 70%, var(--bg)) 100%);
    position: relative;
}

/* Subtle separator between consecutive sections */
.section + .section--alt::before,
.section--alt + .section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        var(--border) 30%,
        var(--border) 70%,
        transparent);
}

/* Section header polish — center align with breathing room */
.section__header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2.5rem;
}
.section__header .section__title {
    margin-left: auto;
    margin-right: auto;
}
.section__header .section__sub {
    margin-left: auto;
    margin-right: auto;
}

/* Better default card animations — subtle entrance */
.sol-card,
.info-card,
.contact-card,
.coverage-card,
.legal-card,
.val-card,
.industria-card {
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.22s var(--ease),
                border-color 0.22s var(--ease);
}

/* Page-hero connection: ensure no harsh edge between hero and first section */
.page-hero + .section {
    position: relative;
    z-index: 2;
}

/* Form fields on public pages match Editorial Premium aesthetic */
.section input[type="text"],
.section input[type="email"],
.section input[type="tel"],
.section input[type="url"],
.section input[type="number"],
.section input[type="search"],
.section select,
.section textarea {
    border-radius: var(--r-md);
    transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.section input:focus,
.section select:focus,
.section textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 130, 204, 0.15);
    outline: none;
}

/* Buttons on public pages — pill default with smooth hover */
.section .btn--primary,
.section .btn--blue {
    border-radius: var(--r-pill);
    font-weight: 600;
    transition: all 0.18s var(--ease);
}
.section .btn--primary:hover,
.section .btn--blue:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 130, 204, 0.30);
}

.section .btn--wa {
    border-radius: var(--r-pill);
    font-weight: 600;
}
.section .btn--wa:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(116, 187, 32, 0.30);
}

/* 404 / unavailable pages — make them feel coherent */
.error-page,
.unavailable-page {
    min-height: 60vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 3rem 1rem;
    background:
        radial-gradient(ellipse at 8% 12%, rgba(45, 156, 219, 0.08), transparent 55%),
        radial-gradient(ellipse at 92% 18%, rgba(141, 198, 63, 0.08), transparent 60%),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}
[data-mode="dark"] .error-page,
[data-mode="dark"] .unavailable-page {
    background:
        radial-gradient(ellipse at 8% 12%, rgba(45, 156, 219, 0.18), transparent 55%),
        radial-gradient(ellipse at 92% 18%, rgba(141, 198, 63, 0.12), transparent 60%),
        linear-gradient(180deg, #0a1422 0%, var(--bg) 100%);
}

/* Tables on public pages (e.g. mis_pedidos history) */
.section table:not(.admin-table) {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
}
.section table:not(.admin-table) th {
    background: var(--bg-alt);
    color: var(--text-soft);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================================
   V4.7.6 — Fix: section--dark inversion bug + popover overflow
   ============================================================ */

/* The legacy .section--dark used var(--text)/var(--bg), which in dark
   mode resolves to white-on-white (text becomes the background). Use
   explicit dark colors that work in both light and dark modes. */
.section--dark {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%) !important;
    color: rgba(255, 255, 255, 0.92) !important;
    position: relative;
    overflow: hidden;
}
.section--dark::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 12% 30%, rgba(45, 156, 219, 0.18), transparent 55%),
        radial-gradient(ellipse at 88% 70%, rgba(141, 198, 63, 0.12), transparent 55%);
    pointer-events: none;
}
.section--dark > .container { position: relative; z-index: 1; }
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark .section__title {
    color: #fff !important;
}
.section--dark .section__sub {
    color: rgba(255, 255, 255, 0.72) !important;
}
.section--dark .section__eye {
    background: rgba(116, 187, 32, 0.18) !important;
    color: #aedc6e !important;
}

/* Value cards inside dark section — translucent panels */
.section--dark .val-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--r-md);
    padding: 1.5rem;
    transition: transform 0.22s var(--ease), background 0.22s var(--ease), border-color 0.22s var(--ease);
}
.section--dark .val-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(141, 198, 63, 0.30);
}
.section--dark .val-card__icon {
    background: rgba(141, 198, 63, 0.18) !important;
    color: #aedc6e !important;
    width: 3rem;
    height: 3rem;
    border-radius: var(--r-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.section--dark .val-card__title {
    color: #fff !important;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}
.section--dark .val-card__desc {
    color: rgba(255, 255, 255, 0.72) !important;
    line-height: 1.55;
    margin: 0;
}

/* ============================================================
   V4.7.6 — User popover overflow fix on small/mid screens
   ============================================================ */

/* The user popover anchored right:0 to its button can clip past the
   viewport when the button itself sits near the right edge. Use
   right:max(0px, ...) to keep it inside the viewport. */
.user-popover {
    /* Cap inner reach to viewport with a small gutter */
    right: 0;
    /* When the popover's natural right edge would overflow, push it back */
    margin-right: 0;
    width: min(320px, calc(100vw - 2rem));
}

/* If the user button is in the rightmost area of the navbar, the popover's
   transform-origin is top-right which is correct. But we also want a hard
   left guard so it never extends past the left side of the viewport. */
@media (max-width: 1100px) {
    .user-popover {
        /* Slide it in slightly from the right edge */
        right: -0.5rem;
        max-width: min(300px, calc(100vw - 1rem));
    }
}
@media (max-width: 720px) {
    /* On phones the popover already takes full row in the open menu */
    .user-popover {
        right: 0;
        max-width: 100%;
        width: 100%;
    }
}

/* ============================================================
   V4.7.7 — Navbar slim + soft CTA
   ============================================================ */

/* Single CTA "Cotizar" link in navbar — pill style with subtle bg */
.nav__link--cta-soft {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    background: rgba(0, 130, 204, 0.10);
    border: 1px solid rgba(0, 130, 204, 0.25);
    border-radius: var(--r-pill);
    color: var(--accent);
    font-weight: 600;
    font-size: 0.86rem;
    transition: all 0.18s var(--ease);
}
.nav__link--cta-soft:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 130, 204, 0.25);
}
[data-mode="dark"] .nav__link--cta-soft {
    background: rgba(45, 156, 219, 0.15);
    color: #5fbef0;
}

/* Adjust footer grid to fit 6 columns now (Industrias / Categorías / Marcas / Empresa / Contacto / Legal) */
.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(5, 1fr);
    gap: 2rem;
}
@media (max-width: 1100px) {
    .footer__grid {
        grid-template-columns: 1.4fr 1fr 1fr 1fr;
    }
}
@media (max-width: 720px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer__grid > div:first-child {
        grid-column: 1 / -1;
    }
}

/* ============================================================
   V4.7.8 — Footer 5-column layout + Empresa/Contacto stacking
   ============================================================ */

/* Footer is now 5 columns: brand | Industrias | Categorías | Marcas | Empresa+Contacto stacked | Legal */
.footer__grid {
    grid-template-columns: 1.4fr repeat(4, 1fr);
}
@media (max-width: 1100px) {
    .footer__grid {
        grid-template-columns: 1.4fr 1fr 1fr 1fr;
    }
}
@media (max-width: 720px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer__grid > div:first-child {
        grid-column: 1 / -1;
    }
}

/* Spacing between Empresa and Contacto sub-headings */
.footer__heading--spaced {
    margin-top: 1.5rem;
}

/* ============================================================
   V4.7.9 — LOGO ANIMATIONS
   ============================================================ */

/* Header logo with 3D flip card (logo ↔ "Inicio") */
.header__logo--flip {
    perspective: 800px;
    text-decoration: none;
    color: inherit;
    display: inline-flex;
    align-items: center;
}
.header__logo-flipper {
    position: relative;
    display: inline-flex;
    align-items: center;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.5, 0, 0.3, 1);
    /* Entire flipper width matches the front face */
    min-height: 1.5cm;
}
.header__logo-face {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: opacity 0.4s ease;
}
.header__logo-face--front {
    /* In the same flow */
}
.header__logo-face--back {
    position: absolute;
    inset: 0;
    transform: rotateY(180deg);
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
}
.header__logo-home {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--accent);
    font-family: var(--ff-display, inherit);
    font-size: clamp(0.95rem, 1.6vw, 1.15rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, var(--accent), var(--pac-green, #74bb20));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}
.header__logo-home svg {
    color: var(--accent);
    -webkit-text-fill-color: var(--accent);
    margin-left: 0.05rem;
    flex-shrink: 0;
    animation: logo-home-bounce 1.6s ease-in-out infinite;
}
@keyframes logo-home-bounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-2px); }
}

/* Auto-flip every ~7s — show "Inicio" briefly (1.2s window) */
@keyframes header-logo-flip {
    0%, 82%   { transform: rotateY(0deg); }     /* 5.7s logo */
    88%, 95%  { transform: rotateY(180deg); }   /* 0.5s flip + 0.5s show */
    100%      { transform: rotateY(360deg); }   /* 0.5s flip back to logo */
}
.header__logo--flip .header__logo-flipper {
    animation: header-logo-flip 7s cubic-bezier(0.55, 0, 0.3, 1) infinite;
    animation-delay: 3s; /* let the user see the logo first */
}

/* Pause flip on hover so the user can read whatever face is showing */
.header__logo--flip:hover .header__logo-flipper {
    animation-play-state: paused;
    transform: rotateY(0deg);
}

/* Logo image inside flipper — gentle gentle drop-shadow on hover */
.header__logo--flip .header__logo-img {
    transition: filter 0.3s var(--ease), transform 0.3s var(--ease);
}
.header__logo--flip:hover .header__logo-img {
    filter: drop-shadow(0 4px 10px rgba(0, 130, 204, 0.4));
    transform: scale(1.02);
}

@media (prefers-reduced-motion: reduce) {
    .header__logo--flip .header__logo-flipper {
        animation: none;
    }
    .header__logo-home svg {
        animation: none;
    }
}

/* Footer logo — gentle floating breath */
.footer__logo-img--breath {
    animation: footer-logo-breath 4s ease-in-out infinite;
    transition: filter 0.3s var(--ease);
}
@keyframes footer-logo-breath {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25%      { transform: translateY(-3px) rotate(-1.5deg); }
    50%      { transform: translateY(0) rotate(0deg); }
    75%      { transform: translateY(-2px) rotate(1.5deg); }
}
.footer__logo-img--breath:hover {
    filter: drop-shadow(0 6px 16px rgba(116, 187, 32, 0.4));
    animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
    .footer__logo-img--breath { animation: none; }
}

/* ============================================================
   V4.7.9 — REAL SE MEXICO MAP polish
   ============================================================ */
.ep-map__land path {
    transition: fill 0.4s ease, stroke 0.4s ease;
}
.ep-map__land:hover path {
    stroke: rgb(45 156 219 / 0.8);
}

/* Animated route lines: subtle dash flow toward destinations */
.ep-map__route {
    animation: route-dash-flow 12s linear infinite;
}
.ep-map__route--playa {
    animation-direction: normal;
}
.ep-map__route--merida {
    animation-direction: reverse;
}
@keyframes route-dash-flow {
    to { stroke-dashoffset: -20; }
}
@media (prefers-reduced-motion: reduce) {
    .ep-map__route { animation: none; }
}

/* City origin labels glow softly in hover */
.ep-map__city-origin text,
.ep-map__city-dest text {
    transition: filter 0.25s ease;
}
.ep-map__city-origin:hover text,
.ep-map__city-dest:hover text {
    filter: drop-shadow(0 0 4px currentColor);
}

/* Slight responsive tweak: increase map height slightly to fit new geography */
.ep-map {
    aspect-ratio: 100 / 84;
    width: 100%;
    overflow: visible;
}
.ep-map__svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* ============================================================
   V4.7.10 — REAL SE MEXICO MAP — satellite-style polish
   ============================================================ */

/* Override the map container to look like a satellite map widget
   (dark frame matching the SVG's deep ocean) */
.ep-map {
    position: relative;
    border-radius: 14px;
    border: 1px solid rgba(45, 156, 219, 0.25);
    background: #0a1f3d; /* matches SVG ocean for seamless edges */
    /* V4.7.23: removed overflow:hidden — was clipping the 3rd sucursal card.
       The Leaflet container handles its own overflow internally. */
    box-shadow:
        0 12px 32px rgba(10, 31, 61, 0.25),
        0 4px 12px rgba(10, 31, 61, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.ep-map {
    background: #0a1f3d;
    border-color: rgba(45, 156, 219, 0.30);
}

.ep-map__svg {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 100 / 84;
}

/* Subtle glow effect around the map widget */
.ep-map::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 14px;
    pointer-events: none;
    background: linear-gradient(135deg,
        rgba(45, 156, 219, 0.35) 0%,
        transparent 30%,
        transparent 70%,
        rgba(141, 198, 63, 0.30) 100%);
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    padding: 1px;
    z-index: 1;
}

/* Map legend below the SVG */
.ep-map__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    padding: 0.95rem 1.1rem;
    border-top: 1px solid rgba(45, 156, 219, 0.20);
    background: linear-gradient(180deg, #0e2748 0%, #0a1f3d 100%);
    color: rgba(255, 255, 255, 0.88);
}
.ep-map__legend .ep-legend-item {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}
.ep-map__legend .ep-legend-dot {
    box-shadow: 0 0 8px currentColor;
}

/* State labels on the map — improve readability with stroke order */
.ep-map__state-labels text {
    paint-order: stroke;
    stroke: rgba(0, 0, 0, 0.5);
    stroke-width: 0.18;
}

/* Land paths get hover micro-interaction */
.ep-map__land path {
    transition: filter 0.4s ease;
}
.ep-map__land:hover path {
    filter: brightness(1.15);
}

/* Better mobile sizing */
@media (max-width: 720px) {
    .ep-map {
        margin: 0 -0.5rem;
    }
    .ep-map__state-labels text {
        font-size: 1.6px !important;
    }
}

/* ============================================================
   V4.7.13 — Live autocomplete dropdown for /productos catalog
   ============================================================ */

.cat-search { position: relative; }

.cat-search__field {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cat-search__clear {
    position: absolute;
    right: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: var(--text-muted, #94a3b8);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
}
.cat-search__clear:hover {
    background: rgba(100, 116, 139, 0.18);
    color: var(--text, #e2e8f0);
}

/* V4.7.14 — dropdown uses fixed positioning to escape .cat-hero overflow:hidden.
   Coordinates set via JS on open, recalculated on scroll/resize. */
.cat-search__dropdown {
    position: fixed;
    z-index: 9999;
    background: var(--bg-elev, #0f172a);
    border: 1px solid var(--border, rgba(45, 156, 219, 0.25));
    border-radius: 14px;
    box-shadow:
        0 18px 48px rgba(10, 31, 61, 0.55),
        0 4px 12px rgba(10, 31, 61, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    max-height: 60vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.45rem;
}
[data-mode="light"] .cat-search__dropdown {
    background: #fff;
    border-color: rgba(0, 130, 204, 0.18);
    box-shadow:
        0 18px 48px rgba(0, 51, 102, 0.18),
        0 4px 12px rgba(0, 51, 102, 0.10);
}

.cat-search__group {
    padding: 0.35rem 0;
}
.cat-search__group + .cat-search__group {
    border-top: 1px solid var(--border, rgba(45, 156, 219, 0.12));
    margin-top: 0.25rem;
}

.cat-search__group-label {
    padding: 0.4rem 0.75rem 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted, #94a3b8);
}

.cat-search__result {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    color: var(--text, #e2e8f0);
    text-decoration: none;
    transition: background 0.12s ease;
    cursor: pointer;
}
.cat-search__result:hover,
.cat-search__result.is-active,
.cat-search__result:focus-visible {
    background: rgba(45, 156, 219, 0.14);
    outline: none;
}
[data-mode="light"] .cat-search__result:hover,
[data-mode="light"] .cat-search__result.is-active {
    background: rgba(0, 130, 204, 0.08);
}

.cat-search__result-title {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.3;
}
.cat-search__result-desc {
    font-size: 0.78rem;
    color: var(--text-muted, #94a3b8);
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}
.cat-search__result mark {
    background: rgba(116, 187, 32, 0.28);
    color: inherit;
    padding: 0 0.1em;
    border-radius: 3px;
    font-weight: 700;
}

.cat-search__see-all {
    display: block;
    margin-top: 0.35rem;
    padding: 0.7rem 0.9rem;
    border-top: 1px solid var(--border, rgba(45, 156, 219, 0.18));
    color: var(--accent, #0082cc);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    border-radius: 0 0 12px 12px;
    transition: background 0.12s ease;
}
.cat-search__see-all:hover {
    background: rgba(0, 130, 204, 0.10);
}

.cat-search__empty {
    padding: 1.2rem 1rem;
    text-align: center;
    color: var(--text-muted, #94a3b8);
    font-size: 0.88rem;
}

/* Mobile: full-width dropdown */
@media (max-width: 720px) {
    .cat-search__dropdown {
        max-height: 50vh;
    }
}

/* ============================================================
   V4.7.14 — Quick action buttons on product cards
   ============================================================ */

.cat-card__actions {
    display: flex;
    gap: 0.4rem;
    margin: 0.6rem 0 0.4rem;
    align-items: stretch;
}

.cat-card__action {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 0.65rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.16s var(--ease);
    line-height: 1;
}
.cat-card__action svg {
    flex-shrink: 0;
    transition: transform 0.16s var(--ease);
}
.cat-card__action:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}
.cat-card__action:active { transform: translateY(0); }

/* Cart action — primary action, takes more horizontal space */
.cat-card__action--cart {
    flex: 1 1 auto;
    background: rgba(0, 130, 204, 0.08);
    border-color: rgba(0, 130, 204, 0.25);
    color: var(--accent);
}
.cat-card__action--cart:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.cat-card__action--cart.is-added {
    background: var(--pac-green, #74bb20);
    color: #fff;
    border-color: var(--pac-green, #74bb20);
    animation: cat-card-pulse 0.6s ease;
}
.cat-card__action--cart.is-added::before {
    content: "✓ ";
    font-weight: 800;
}
@keyframes cat-card-pulse {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.06); }
    100% { transform: scale(1); }
}

/* Favorites action — heart fills red when active */
.cat-card__action--fav {
    width: 38px;
    padding: 0.5rem;
}
.cat-card__action--fav:hover {
    color: #dc2626;
    border-color: rgba(220, 38, 38, 0.4);
    background: rgba(220, 38, 38, 0.06);
}
.cat-card__action--fav.is-fav {
    background: rgba(220, 38, 38, 0.10);
    border-color: rgba(220, 38, 38, 0.45);
    color: #dc2626;
}
.cat-card__action--fav.is-fav svg {
    fill: #dc2626;
    stroke: #dc2626;
    animation: cat-fav-pop 0.4s ease;
}
@keyframes cat-fav-pop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* WhatsApp action — green */
.cat-card__action--wa {
    width: 38px;
    padding: 0.5rem;
}
.cat-card__action--wa:hover {
    color: #fff;
    background: #25d366;
    border-color: #25d366;
}

/* Dark mode adjustments */
[data-mode="dark"] .cat-card__action {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text-soft);
}
[data-mode="dark"] .cat-card__action--cart {
    background: rgba(45, 156, 219, 0.16);
    border-color: rgba(45, 156, 219, 0.36);
    color: #5fbef0;
}
[data-mode="dark"] .cat-card__action--cart:hover {
    background: rgb(var(--pac-sky, 45 156 219));
    color: #fff;
}

/* sr-only utility (if not yet present) */
.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Mobile: tighter spacing on cards */
@media (max-width: 720px) {
    .cat-card__actions { gap: 0.3rem; }
    .cat-card__action {
        font-size: 0.72rem;
        padding: 0.45rem 0.5rem;
    }
    .cat-card__action--fav,
    .cat-card__action--wa {
        width: 34px;
        padding: 0.45rem;
    }
    .cat-card__action--cart span { display: inline; }
}
@media (max-width: 480px) {
    .cat-card__action--cart span { display: none; }
    .cat-card__action--cart { width: 38px; flex: 0 0 38px; padding: 0.5rem; }
}

/* ============================================================
   V4.7.15 — Bigger, more realistic SE Mexico map
   - Layout changed: map full-width on top, branches in 3-col row below
   - Aspect-ratio 100/84 matches real geography (lon -97..-86, lat 14..22.5)
   - State paths derived from denser sample points along real coastlines
   - Min-height responsive: 420 mobile, 600 desktop, 680 XL
   ============================================================ */

/* ============================================================
   V4.7.16 — Leaflet satellite coverage map
   Animated markers preserve the pulse + palpitation aesthetic
   from the previous SVG version.
   ============================================================ */

.ep-map__leaflet {
    width: 100%;
    height: 560px;
    min-height: 420px;
    border-radius: 14px;
    z-index: 0; /* keep below header dropdowns/popovers */
    background: #0a1f3d;
}
@media (min-width: 1024px) {
    .ep-map__leaflet { height: 640px; }
}
@media (min-width: 1280px) {
    .ep-map__leaflet { height: 720px; }
}

/* Override Leaflet defaults to match the dark Editorial Premium palette */
.leaflet-container {
    background: #0a1f3d !important;
    font-family: 'Inter', system-ui, sans-serif !important;
}
.leaflet-control-attribution {
    background: rgba(10, 31, 61, 0.78) !important;
    color: rgba(255, 255, 255, 0.62) !important;
    font-size: 10px !important;
    padding: 2px 6px !important;
}
.leaflet-control-attribution a {
    color: rgba(255, 255, 255, 0.85) !important;
}
.leaflet-control-zoom a {
    background: rgba(15, 23, 42, 0.92) !important;
    color: #fff !important;
    border-color: rgba(45, 156, 219, 0.35) !important;
}
.leaflet-control-zoom a:hover {
    background: rgba(0, 130, 204, 0.3) !important;
}

/* ============================================================
   ANIMATED MARKERS (divIcon-based)
   ============================================================ */
.ep-marker {
    position: relative;
    width: 12px;
    height: 12px;
    pointer-events: auto;
}

/* Solid dot in the center */
.ep-marker__dot {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #74bb20;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
    z-index: 2;
}
.ep-marker--blue .ep-marker__dot { background: #2d9cdb; }
.ep-marker--green .ep-marker__dot { background: #74bb20; }

/* Pulsing halo */
.ep-marker__pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    z-index: 1;
    background: rgba(116, 187, 32, 0.45);
    animation: ep-marker-pulse 2.4s ease-out infinite;
}
.ep-marker--blue .ep-marker__pulse {
    background: rgba(45, 156, 219, 0.45);
}
@keyframes ep-marker-pulse {
    0%   { transform: scale(1);   opacity: 0.75; }
    70%  { transform: scale(3.2); opacity: 0; }
    100% { transform: scale(3.2); opacity: 0; }
}

/* Origin (Mérida, Playa) — bigger + intense pulse */
.ep-marker--origin {
    width: 18px;
    height: 18px;
    margin-left: -3px;
    margin-top: -3px;
}
.ep-marker--origin .ep-marker__pulse {
    animation-duration: 2s;
}
.ep-marker--origin .ep-marker__pulse::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: inherit;
    opacity: 0.5;
    animation: ep-marker-pulse 2s ease-out infinite;
    animation-delay: 0.6s;
}

/* Primary cities (Cancún, Tulum) — same size as origins */
.ep-marker--primary {
    width: 16px;
    height: 16px;
    margin-left: -2px;
    margin-top: -2px;
}

/* Stagger pulse animations so they don't all sync */
.ep-marker--secondary:nth-child(2n) .ep-marker__pulse  { animation-delay: 0.4s; }
.ep-marker--secondary:nth-child(3n) .ep-marker__pulse  { animation-delay: 0.8s; }
.ep-marker--secondary:nth-child(4n) .ep-marker__pulse  { animation-delay: 1.2s; }

/* Marker labels */
.ep-marker__label {
    position: absolute;
    top: 50%;
    left: calc(100% + 8px);
    transform: translateY(-50%);
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-shadow:
        0 0 4px rgba(0, 0, 0, 0.95),
        0 0 8px rgba(0, 0, 0, 0.7),
        1px 1px 2px rgba(0, 0, 0, 0.9);
    pointer-events: none;
    letter-spacing: 0.01em;
}
.ep-marker__label--right { left: calc(100% + 10px); }

.ep-marker--origin .ep-marker__label,
.ep-marker--primary .ep-marker__label {
    font-size: 15px;
    font-weight: 800;
}
.ep-marker--secondary .ep-marker__label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}

/* PRINCIPAL star */
.ep-marker__star {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: #74bb20;
    letter-spacing: 0.08em;
    margin-top: 1px;
    text-shadow:
        0 0 4px rgba(0, 0, 0, 0.95),
        1px 1px 2px rgba(0, 0, 0, 0.9);
}

/* ============================================================
   ROUTES — dashed polylines with flow animation
   ============================================================ */
.leaflet-overlay-pane svg .ep-route {
    stroke-dasharray: 8 8;
    animation: ep-route-flow 14s linear infinite;
}
@keyframes ep-route-flow {
    to { stroke-dashoffset: -200; }
}

@media (prefers-reduced-motion: reduce) {
    .ep-marker__pulse,
    .leaflet-overlay-pane svg .ep-route { animation: none; }
}

/* Hide the old SVG-related rules if any leftover wrapper exists */
.ep-map__svg { display: none !important; }

/* ============================================================
   V4.7.18 — Sucursales dentro del contenedor del mapa
   - Aprovecha el espacio navy debajo del legend que antes quedaba vacío.
   - Grid adaptativo según número de sucursales activas.
   ============================================================ */

/* Reduce map heights slightly since branches now share the navy panel */
.ep-map__svg,
.ep-map__leaflet {
    min-height: 380px;
}
@media (min-width: 1024px) {
    .ep-map__svg,
    .ep-map__leaflet { min-height: 480px; height: 480px; }
}
@media (min-width: 1280px) {
    .ep-map__svg,
    .ep-map__leaflet { min-height: 520px; height: 520px; }
}

/* V4.7.20 — robust grid: even if the count-N class fails to apply,
   the parent rule guarantees a sensible multi-column layout via auto-fit. */
.ep-branches--in-map {
    display: grid;
    gap: 0.65rem;
    padding: 0.85rem 0.95rem 1rem;
    background: linear-gradient(180deg, rgba(10, 31, 61, 0) 0%, rgba(8, 23, 47, 0.55) 100%);
    border-top: 1px solid rgba(45, 156, 219, 0.18);
    /* Default fallback: auto-fit at least ~220px per card, max 4 cols */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Grid count classes override the auto-fit default with deterministic layouts */
.ep-branches--in-map.ep-branches--count-1 {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
}
.ep-branches--in-map.ep-branches--count-2 { grid-template-columns: repeat(2, 1fr); }
.ep-branches--in-map.ep-branches--count-3 { grid-template-columns: repeat(3, 1fr); }
.ep-branches--in-map.ep-branches--count-4 { grid-template-columns: repeat(2, 1fr); }   /* 2x2 matrix */
.ep-branches--in-map.ep-branches--count-5,
.ep-branches--in-map.ep-branches--count-6 { grid-template-columns: repeat(3, 1fr); }   /* 3x2 */
.ep-branches--in-map.ep-branches--count-7,
.ep-branches--in-map.ep-branches--count-8 { grid-template-columns: repeat(4, 1fr); }   /* 4x2 */
.ep-branches--in-map.ep-branches--count-many { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* V4.7.20 — modern :has() backup: if the browser supports :has() and there are
   exactly 3+ articles, force a 3-col grid even without count classes. Safari 15.4+,
   Firefox 121+, Chrome 105+ — covers >97% of real users in 2026. */
@supports selector(:has(*)) {
    .ep-branches--in-map:has(.ep-branch:nth-child(3)):not(:has(.ep-branch:nth-child(4))) {
        grid-template-columns: repeat(3, 1fr);
    }
    .ep-branches--in-map:has(.ep-branch:nth-child(4)):not(:has(.ep-branch:nth-child(5))) {
        grid-template-columns: repeat(2, 1fr); /* 2x2 */
    }
}

/* Mobile fallback: 1 column for any count, beats every other rule */
@media (max-width: 720px) {
    .ep-branches--in-map { grid-template-columns: 1fr !important; gap: 0.55rem; padding: 0.75rem; }
}

/* Compact card styling when inside map container — smaller everything */
.ep-branches--in-map .ep-branch {
    padding: 0.85rem 0.95rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(45, 156, 219, 0.22);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.ep-branches--in-map .ep-branch--principal {
    border-color: rgba(116, 187, 32, 0.55);
    box-shadow: 0 0 0 1px rgba(116, 187, 32, 0.25), 0 6px 18px rgba(116, 187, 32, 0.12);
}

.ep-branches--in-map .ep-branch__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.15rem;
}

.ep-branches--in-map .ep-branch__type {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 0.15rem;
    color: rgb(var(--pac-lime, 116 187 32));
}

.ep-branches--in-map .ep-branch__name {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
    color: #fff;
}

.ep-branches--in-map .ep-branch__city {
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.08);
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    flex-shrink: 0;
    white-space: nowrap;
}

.ep-branches--in-map .ep-branch__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
}
.ep-branches--in-map .ep-branch__list li {
    font-size: 0.74rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.82);
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 0;
    border: 0;
}
.ep-branches--in-map .ep-branch__list svg {
    flex-shrink: 0;
    margin-top: 1px;
    opacity: 0.7;
    color: rgb(var(--pac-sky, 45 156 219));
}

.ep-branches--in-map .ep-branch__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 0.7rem;
    background: rgba(37, 211, 102, 0.16);
    color: #25d366;
    border: 1px solid rgba(37, 211, 102, 0.5);
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.16s ease;
    margin-top: 0.15rem;
}
.ep-branches--in-map .ep-branch__cta:hover {
    background: #25d366;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

/* Hide the (now-unused) outer .ep-branches block IF it ever leaks to public site */
.ep-coverage__grid > .ep-branches:not(.ep-branches--in-map) { display: none; }

/* ============================================================
   V4.7.19 — FAQ section: modern animated accordion
   ============================================================ */

.faq-section {
    padding: clamp(3rem, 6vw, 5rem) 0;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}
[data-mode="dark"] .faq-section {
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(45, 156, 219, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 70% 50% at 50% 100%, rgba(116, 187, 32, 0.06) 0%, transparent 70%),
        var(--bg);
}
[data-mode="light"] .faq-section {
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 130, 204, 0.05) 0%, transparent 70%),
        var(--bg-alt);
}

.faq-section__inner {
    max-width: 880px;
    position: relative;
    z-index: 1;
}

.faq-section__header {
    text-align: center;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.faq-section__eye {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    background: rgba(0, 130, 204, 0.12);
    border: 1px solid rgba(0, 130, 204, 0.3);
    border-radius: 999px;
    color: var(--accent, #0082cc);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.faq-section__title {
    font-family: var(--ff-display, 'Inter', sans-serif);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--text);
    margin: 0 0 0.75rem;
    letter-spacing: -0.015em;
}
.faq-section__title em {
    font-style: italic;
    color: var(--accent, #0082cc);
    font-weight: 800;
}
[data-mode="dark"] .faq-section__title em {
    color: rgb(var(--pac-sky, 45 156 219));
}

.faq-section__sub {
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    color: var(--text-soft);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.55;
}

/* ============================================================
   FAQ List + items
   ============================================================ */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.faq-item {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease,
        opacity 0.5s ease;

    /* Initial state for scroll reveal */
    opacity: 0;
    transform: translateY(20px);
    transition-delay: var(--faq-delay, 0ms);
}
.faq-item--visible {
    opacity: 1;
    transform: translateY(0);
}

.faq-item:hover {
    border-color: rgba(0, 130, 204, 0.45);
    box-shadow:
        0 6px 18px rgba(0, 51, 102, 0.06),
        0 1px 3px rgba(0, 51, 102, 0.04);
}
[data-mode="dark"] .faq-item:hover {
    border-color: rgba(45, 156, 219, 0.55);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(45, 156, 219, 0.15);
}

.faq-item--featured {
    border-color: rgba(116, 187, 32, 0.45);
    background: linear-gradient(145deg, var(--bg-elev) 0%, rgba(116, 187, 32, 0.04) 100%);
    box-shadow: 0 0 0 1px rgba(116, 187, 32, 0.18);
}
[data-mode="dark"] .faq-item--featured {
    background: linear-gradient(145deg, var(--bg-elev) 0%, rgba(116, 187, 32, 0.07) 100%);
    box-shadow: 0 0 0 1px rgba(116, 187, 32, 0.30);
}

/* ============================================================
   Summary (the question + plus icon)
   ============================================================ */

.faq-item__summary {
    list-style: none;
    cursor: pointer;
    padding: 1.15rem 1.35rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s ease;
}
.faq-item__summary::-webkit-details-marker { display: none; }
.faq-item__summary::marker { display: none; }
.faq-item__summary:hover {
    background: rgba(0, 130, 204, 0.04);
}
[data-mode="dark"] .faq-item__summary:hover {
    background: rgba(45, 156, 219, 0.06);
}

.faq-item__q {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
    flex: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-item__star {
    color: rgb(var(--pac-lime, 116 187 32));
    font-size: 0.85rem;
    flex-shrink: 0;
    animation: faq-star-glow 2.6s ease-in-out infinite;
}
@keyframes faq-star-glow {
    0%, 100% { opacity: 0.85; transform: scale(1); }
    50%      { opacity: 1;    transform: scale(1.15); }
}

.faq-item__icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 130, 204, 0.08);
    border-radius: 50%;
    color: var(--accent, #0082cc);
    transition:
        transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        background 0.25s ease,
        color 0.25s ease;
}
[data-mode="dark"] .faq-item__icon {
    background: rgba(45, 156, 219, 0.14);
    color: rgb(var(--pac-sky, 45 156 219));
}

.faq-item[open] .faq-item__icon {
    transform: rotate(135deg);
    background: var(--accent, #0082cc);
    color: #fff;
}
[data-mode="dark"] .faq-item[open] .faq-item__icon {
    background: rgb(var(--pac-sky, 45 156 219));
}

.faq-item--featured .faq-item__icon {
    background: rgba(116, 187, 32, 0.16);
    color: rgb(var(--pac-lime, 116 187 32));
}
.faq-item--featured[open] .faq-item__icon {
    background: rgb(var(--pac-lime, 116 187 32));
    color: #fff;
}

/* ============================================================
   Answer content — modern grid-row trick for smooth height animation
   (works in all modern browsers — Chromium, Safari 17.4+, Firefox 117+)
   ============================================================ */

.faq-item__content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item[open] .faq-item__content {
    grid-template-rows: 1fr;
}

.faq-item__answer {
    overflow: hidden;
    min-height: 0;
    padding: 0 1.35rem 1.25rem;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-soft);
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.35s ease 0.05s, transform 0.35s ease 0.05s;
}
.faq-item[open] .faq-item__answer {
    opacity: 1;
    transform: translateY(0);
}

.faq-item__answer a {
    color: var(--accent, #0082cc);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}
.faq-item__answer a:hover {
    text-decoration-thickness: 2px;
}

/* ============================================================
   Footer CTA
   ============================================================ */

.faq-section__footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--border);
}
.faq-section__footer p {
    color: var(--text-soft);
    font-size: 0.95rem;
    margin: 0;
}
.faq-section__cta-link {
    color: var(--accent, #0082cc);
    font-weight: 700;
    text-decoration: none;
    margin-left: 0.3rem;
    position: relative;
    display: inline-block;
    transition: color 0.2s ease;
}
.faq-section__cta-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 0.3s ease;
}
.faq-section__cta-link:hover {
    color: rgb(var(--pac-lime, 116 187 32));
}
.faq-section__cta-link:hover::after {
    transform: scaleX(1);
    transform-origin: left center;
}

/* ============================================================
   Mobile + reduced motion
   ============================================================ */

@media (max-width: 640px) {
    .faq-item__summary { padding: 1rem 1.1rem; gap: 0.65rem; }
    .faq-item__answer { padding: 0 1.1rem 1.1rem; font-size: 0.9rem; }
    .faq-item__icon { width: 28px; height: 28px; }
    .faq-section__title { font-size: 1.65rem; }
}

@media (prefers-reduced-motion: reduce) {
    .faq-item,
    .faq-item__icon,
    .faq-item__content,
    .faq-item__answer,
    .faq-item__star,
    .faq-section__cta-link::after {
        transition: none !important;
        animation: none !important;
    }
    .faq-item { opacity: 1; transform: none; }
    .faq-item[open] .faq-item__icon { transform: rotate(135deg); }
}

/* ============================================================
   V4.7.24 — Soft lead capture sticky bar
   Positioned bottom-right (desktop) / bottom (mobile).
   Slides up after 30s or on exit-intent. Dismissible.
   ============================================================ */

.lead-capture {
    position: fixed;
    bottom: 16px;
    right: 16px;
    width: 360px;
    max-width: calc(100vw - 32px);
    background: var(--bg-elev);
    border: 1px solid rgba(116, 187, 32, 0.45);
    border-radius: 16px;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.35),
        0 8px 20px rgba(116, 187, 32, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    padding: 1.15rem 1.25rem;
    z-index: 9990;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    /* Slide-up entrance */
    transform: translateY(40px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1), opacity 0.3s ease;
    pointer-events: none;
}
.lead-capture--visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

[data-mode="dark"] .lead-capture {
    background: linear-gradient(155deg, #0f1f3d 0%, #0a1628 100%);
    border-color: rgba(116, 187, 32, 0.5);
}
[data-mode="light"] .lead-capture {
    background: #fff;
    border-color: rgba(116, 187, 32, 0.45);
}

.lead-capture__close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
}
.lead-capture__close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}
[data-mode="light"] .lead-capture__close:hover {
    background: rgba(0, 0, 0, 0.06);
}

.lead-capture__icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.18);
    color: #25d366;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.lead-capture__body { flex: 1; min-width: 0; }

.lead-capture__title {
    margin: 0 0 0.2rem;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.25;
    padding-right: 24px; /* leave space for close btn */
}
.lead-capture__sub {
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--text-soft);
}

.lead-capture__form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.4rem;
}
.lead-capture__form input {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font-size: 0.88rem;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.lead-capture__form input:focus {
    outline: none;
    border-color: rgb(var(--pac-lime, 116 187 32));
    box-shadow: 0 0 0 3px rgba(116, 187, 32, 0.15);
}

.lead-capture__submit {
    margin-top: 0.2rem;
    padding: 0.6rem 0.9rem;
    background: #25d366;
    color: #fff;
    border: 0;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}
.lead-capture__submit:hover {
    background: #1da851;
    transform: translateY(-1px);
}
.lead-capture__submit:active { transform: translateY(0); }
.lead-capture__submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.lead-capture__error {
    margin: 0.4rem 0 0;
    padding: 0.4rem 0.55rem;
    background: rgba(220, 38, 38, 0.10);
    border: 1px solid rgba(220, 38, 38, 0.30);
    color: #ef4444;
    border-radius: 6px;
    font-size: 0.78rem;
}

.lead-capture__success {
    flex: 1;
    text-align: center;
    padding: 0.5rem 0;
}
.lead-capture__success h3 {
    margin: 0.5rem 0 0.25rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
}
.lead-capture__success p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-soft);
    line-height: 1.4;
}
.lead-capture__success a {
    color: #25d366;
    font-weight: 700;
    text-decoration: none;
}
.lead-capture__success a:hover { text-decoration: underline; }

@media (max-width: 480px) {
    .lead-capture {
        bottom: 10px;
        right: 10px;
        left: 10px;
        width: auto;
        max-width: none;
        padding: 1rem 1.1rem;
    }
    .lead-capture__title { font-size: 0.95rem; }
}

@media (prefers-reduced-motion: reduce) {
    .lead-capture { transition: opacity 0.2s ease; }
}

/* ============================================================
   V4.7.28 — Paginated + searchable product grid
   Visual style mirrors the admin Editar Producto top nav-bar:
   sleek rounded toolbar with counter pill + inline search +
   prev/next icon buttons. The grid sits below; the pager echoes
   the same pill-button language as a single horizontal row.
   ============================================================ */

.paginated-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* === TOP TOOLBAR (mirrors admin .prod-nav-bar) === */
.pgrid-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.55rem 0.75rem 0.55rem 1.1rem;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.pgrid-bar:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 130, 204, 0.12);
}

.pgrid-bar__info {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex: 1;
    min-width: 0;
}

.pgrid-bar__count {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.32rem 0.7rem;
    background: rgba(0, 130, 204, 0.10);
    border: 1px solid rgba(0, 130, 204, 0.22);
    color: var(--accent);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    flex-shrink: 0;
}
.pgrid-bar__count strong { color: var(--accent); font-weight: 800; }
.pgrid-bar__count-sep { opacity: 0.55; font-weight: 500; }

.pgrid-bar__title-inline {
    color: var(--text-soft);
    font-size: 0.88rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pgrid-bar__actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

/* Inline search (the centerpiece — mirrors admin's "Buscar ⌘K" style) */
.pgrid-bar__search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    width: 280px;
    max-width: 38vw;
    padding: 0 0.85rem 0 0.7rem;
    height: 36px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, width 0.2s ease;
}
.pgrid-bar__search > svg:first-child {
    color: var(--text-muted);
    flex-shrink: 0;
}
.pgrid-bar__search:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 130, 204, 0.15);
}
.pgrid-bar__input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: 0;
    outline: none;
    color: var(--text);
    font-size: 0.85rem;
    font-family: inherit;
}
.pgrid-bar__input::placeholder { color: var(--text-muted); }
.pgrid-bar__input::-webkit-search-cancel-button { display: none; }

.pgrid-bar__clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--text-muted);
    color: var(--bg);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.15s ease;
}
.pgrid-bar__clear:hover { opacity: 1; }

/* === Pill buttons used everywhere (toolbar + pager) === */
.pgrid-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    height: 36px;
    padding: 0 0.85rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-soft);
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s var(--ease);
}
.pgrid-btn:hover:not(:disabled) {
    background: var(--accent);
    color: var(--accent-contrast, #fff);
    border-color: var(--accent);
}
.pgrid-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
/* Icon-only variant — perfect square */
.pgrid-btn--icon {
    width: 36px;
    padding: 0;
    flex-shrink: 0;
}
/* Text-only ghost variant */
.pgrid-btn--text {
    background: transparent;
}
.pgrid-btn--ghost {
    background: transparent;
    border-color: transparent;
    color: var(--accent);
}
.pgrid-btn--ghost:hover:not(:disabled) {
    background: rgba(0, 130, 204, 0.08);
    border-color: rgba(0, 130, 204, 0.20);
    color: var(--accent);
}

/* === Grid layout — 4 columns on desktop === */
.sol-grid--paginated {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
@media (max-width: 1100px) { .sol-grid--paginated { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .sol-grid--paginated { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .sol-grid--paginated { grid-template-columns: 1fr; } }

/* SKU label inside cards */
.sol-card__sku {
    display: inline-block;
    margin-top: 0.45rem;
    padding: 0.2rem 0.55rem;
    background: rgba(0, 130, 204, 0.10);
    border: 1px solid rgba(0, 130, 204, 0.20);
    border-radius: 4px;
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 600;
    font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
    letter-spacing: 0.02em;
}

/* === Empty state === */
.pgrid-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    padding: 3rem 1rem;
    text-align: center;
    color: var(--text-soft);
    background: var(--bg-elev);
    border: 1px dashed var(--border);
    border-radius: 14px;
}
.pgrid-empty > svg { color: var(--text-muted); opacity: 0.55; }
.pgrid-empty p { margin: 0; font-size: 0.95rem; }

/* === BOTTOM PAGER (single horizontal row) === */
.pgrid-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.4rem;
    flex-wrap: wrap;
}
.pgrid-pager__numbers {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0 0.4rem;
}
.pgrid-pager__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.55rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--text-soft);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    transition: all 0.15s var(--ease);
}
.pgrid-pager__page:hover {
    background: rgba(0, 130, 204, 0.08);
    color: var(--accent);
    border-color: rgba(0, 130, 204, 0.20);
}
.pgrid-pager__page--active {
    background: var(--accent);
    color: var(--accent-contrast, #fff);
    border-color: var(--accent);
    cursor: default;
    box-shadow: 0 2px 8px rgba(0, 130, 204, 0.25);
}
.pgrid-pager__page--active:hover {
    background: var(--accent);
    color: var(--accent-contrast, #fff);
}
.pgrid-pager__dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 36px;
    color: var(--text-muted);
    font-weight: 700;
    user-select: none;
}

/* === Responsive — toolbar collapses gracefully === */
@media (max-width: 880px) {
    .pgrid-bar {
        flex-direction: column;
        align-items: stretch;
        border-radius: 16px;
        padding: 0.75rem;
        gap: 0.65rem;
    }
    .pgrid-bar__info { justify-content: space-between; }
    .pgrid-bar__title-inline { display: none; }
    .pgrid-bar__actions {
        width: 100%;
        justify-content: space-between;
    }
    .pgrid-bar__search {
        width: auto;
        max-width: none;
        flex: 1;
    }
}

@media (max-width: 540px) {
    .pgrid-pager { gap: 0.3rem; padding: 0.3rem; }
    .pgrid-pager__numbers { margin: 0 0.2rem; gap: 0.18rem; }
    .pgrid-pager__page { min-width: 32px; height: 32px; font-size: 0.78rem; }
    .pgrid-btn--text { padding: 0 0.6rem; font-size: 0.78rem; }
    .pgrid-btn--text span { display: none; }
}
