/* Global color scheme - All customizable colors as CSS variables */
:root {
    /* === PRIMARY BRAND COLORS === */
    --color-primary: #de2029;           /* Main brand color (red) */
    --color-primary-dark: #b81820;      /* Darker shade for hover states */
    --color-primary-light: #ff4a52;     /* Lighter shade for accents */
    --color-primary-rgb: 222, 32, 41;   /* RGB values for rgba() usage */
    
    /* === SECONDARY/ACCENT COLORS === */
    --color-accent: #ffd700;            /* Accent color (yellow/gold) */
    --color-accent-dark: #e6c200;       /* Darker accent for hover */
    --color-accent-light: #fff7a6;      /* Light accent for backgrounds */
    
    /* === TEXT COLORS === */
    --color-text: #1a1a1a;              /* Primary text color */
    --color-text-light: #444444;        /* Secondary/muted text */
    --color-text-inverse: #ffffff;      /* Text on dark backgrounds */
    
    /* === BACKGROUND COLORS === */
    --color-bg: #ffffff;                /* Main background */
    --color-bg-alt: #f8f8f8;            /* Alternative background */
    --color-bg-card: rgba(255, 255, 255, 0.7);  /* Card backgrounds */
    
    /* === UI ELEMENT COLORS === */
    --color-border: #e0e0e0;            /* Default borders */
    --color-shadow: rgba(0, 0, 0, 0.1); /* Default shadows */
    
    /* === LEGACY VARIABLES (for compatibility) === */
    --bg-edge-1: var(--color-accent-light);
    --bg-accent-2: rgba(var(--color-primary-rgb), 0.18);
    --bg-main-3: var(--color-bg);
    --bg-accent-x: 72%;
    --bg-accent-y: 28%;
    --bg-accent-size: 720px;

    /* === NAV BAR CUSTOMIZATION (overridable by theme.js from admin settings) === */
    /* Black outline around nav button text (comic-style, matches the Indy brand).
       Set to `none` to disable. */
    --nav-text-outline: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 0 2px 3px rgba(0,0,0,0.45);
    /* Colour the navbar fades into for the trailing "business" group. */
    --nav-fade-color: #ffdf73;

    /* === FONT FAMILIES (overridable by theme.js custom fonts) === */
    --font-family-heading: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    --font-family-body: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    --font-family-nav: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}

/* ============================================
   PREMIUM NAV STYLES (A, B, C)
   ============================================ */

/* --- STYLE A: Glassmorphism --- */
body[data-nav-style="glass"] .nav-content {
    background: rgba(var(--color-primary-rgb), 0.75);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px var(--color-shadow), inset 0 1px 0 rgba(255,255,255,0.2);
}
body[data-nav-style="glass"] nav ul {
    gap: 8px;
}
body[data-nav-style="glass"] nav li a {
    position: relative;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 1.45rem;
    padding: 16px 34px;
    background: transparent;
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
body[data-nav-style="glass"] nav li a:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255,255,255,0.3);
    transform: translateY(-2px);
}
body[data-nav-style="glass"] nav li a[style*="yellow"] {
    background: rgba(255, 215, 0, 0.25);
    border: 1px solid rgba(255, 215, 0, 0.4);
}
body[data-nav-style="glass"] nav li a[style*="yellow"]:hover {
    background: rgba(255, 215, 0, 0.4);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}
/* The warm right-side fade is a solid overlay by default; in glass mode
   drop its opacity so the business group frosts like the red pill instead
   of reading as an opaque yellow block. */
body[data-nav-style="glass"] .nav-content::after {
    background: linear-gradient(90deg,
        transparent 0%,
        color-mix(in srgb, var(--nav-fade-color) 22%, transparent) 16%,
        color-mix(in srgb, var(--nav-fade-color) 45%, transparent) 28%,
        color-mix(in srgb, var(--nav-fade-color) 55%, transparent) 100%);
}

/* --- STYLE B: Minimal Luxury --- */
body[data-nav-style="minimal"] .nav-content {
    background: #1a1a1a;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
body[data-nav-style="minimal"] nav ul {
    gap: 8px;
}
body[data-nav-style="minimal"] nav li a {
    position: relative;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.85em;
    padding: 12px 16px;
    background: transparent;
    border-radius: 0;
    overflow: hidden;
    transition: color 0.3s ease;
}
body[data-nav-style="minimal"] nav li a::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 16px;
    right: 16px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
body[data-nav-style="minimal"] nav li a:hover {
    background: transparent;
}
body[data-nav-style="minimal"] nav li a:hover::after {
    transform: scaleX(1);
}
body[data-nav-style="minimal"] nav li a[style*="yellow"] {
    color: #ffd700 !important;
    font-weight: 400;
}
body[data-nav-style="minimal"] nav li a[style*="yellow"]::after {
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
}

/* --- STYLE C: Bold Premium (Enhanced Current) --- */
body[data-nav-style="bold"] .nav-content {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    box-shadow: 0 4px 20px rgba(var(--color-primary-rgb), 0.4);
}
body[data-nav-style="bold"] nav ul {
    gap: 6px;
}
body[data-nav-style="bold"] nav li a {
    position: relative;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 1.1em;
    padding: 10px 22px;
    background: transparent;
    border-radius: 25px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}
body[data-nav-style="bold"] nav li a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 100%);
    border-radius: 25px;
    opacity: 0;
    transition: opacity 0.25s ease;
}
body[data-nav-style="bold"] nav li a:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
body[data-nav-style="bold"] nav li a:hover::before {
    opacity: 1;
}
body[data-nav-style="bold"] nav li a:active {
    transform: scale(0.98);
}
body[data-nav-style="bold"] nav li a[style*="yellow"] {
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
    color: #1a1a1a !important;
    font-weight: 800;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.4);
}
body[data-nav-style="bold"] nav li a[style*="yellow"]:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.5);
}

/* ============================================ */

body {
    /* Layered background: halftone dots, accent edges, primary blobs, base gradient */
    background:
        /* 0) halftone dot pattern overlay */
        radial-gradient(circle, rgba(0,0,0,0.08) 30%, transparent 31%) 0 0 / 12px 12px,
        radial-gradient(circle, rgba(0,0,0,0.08) 30%, transparent 31%) 6px 6px / 12px 12px,
        /* 1) accent edges left/right */
        linear-gradient(to right, var(--bg-edge-1) 0%, rgba(255,255,255,0) 18%, rgba(255,255,255,0) 82%, var(--bg-edge-1) 100%),
        /* 2) primary color accents (injected by JS) */
        var(--bg-accents, radial-gradient(var(--bg-accent-size) var(--bg-accent-size) at var(--bg-accent-x) var(--bg-accent-y), var(--bg-accent-2) 0%, rgba(0,0,0,0) 70%)),
        /* 3) warm golden-to-amber gradient base (like Cerillos poster) */
        linear-gradient(180deg, #f5b731 0%, #e8961e 40%, #d97b18 100%);
    color: var(--color-text);
    margin: 0;
    font-family: var(--font-family-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Heading font family (overridable via custom fonts) */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
}

/* --- Animation utilities ------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
    [data-animate]{
        will-change:opacity,transform;
        /* Faster animation (.55s) for snappier feel */
        transition:opacity .55s cubic-bezier(.25,.6,.3,1), transform .55s cubic-bezier(.25,.6,.3,1);
    }
  /* Only hide once the element has been bound by the JS (prevents invisible late injected nodes)
      Add a small base delay so entrance is slightly more noticeable */
    /* Slightly smaller offset & shorter base delay (was 120ms) */
    [data-animate][data-anim-bound]{ opacity:0; transform:translateY(24px); transition-delay:40ms; }
  /* If a custom delay is provided via data-delay (e.g. data-delay="300ms"), prefer it */
  [data-animate][data-delay]{ transition-delay:attr(data-delay); }
    [data-animate].in-view{ opacity:1; transform:translateY(0); }
    [data-animate][data-delay]{ transition-delay: var(--delay, 0ms); }
    .stagger-parent > [data-animate]{ transition-delay: calc(var(--stagger-base, 60ms) * var(--i, 0)); }
    .main-banner{ position:relative; overflow:hidden; }
    .main-banner::after{ content:""; position:absolute; inset:0; background:radial-gradient(circle at 30% 40%,rgba(255,255,255,.35),rgba(255,255,255,0) 60%); opacity:0; transition:opacity 1.6s ease; pointer-events:none; }
    .main-banner.loaded::after{ opacity:1; }
    /* Shared rise-on-hover effect for anchor and button styled actions */
    a.button-hover-rise, .btn-hover-rise{ transition:background .3s, transform .4s cubic-bezier(.16,.84,.44,1), box-shadow .4s; }
    a.button-hover-rise:hover, .btn-hover-rise:hover{ transform:translateY(-4px); box-shadow:0 10px 26px -6px rgba(0,0,0,.25); }
    a.button-hover-rise:active, .btn-hover-rise:active{ transform:translateY(-1px); box-shadow:0 6px 18px -6px rgba(0,0,0,.30); }
    .nav-content{ transition: box-shadow .4s ease; }
    body.logo-shrink .nav-content{ box-shadow:0 4px 24px -4px rgba(0,0,0,.25); }
}

@media (prefers-reduced-motion: reduce){
    [data-animate]{ opacity:1 !important; transform:none !important; }
}

header {
    display: none;
}

nav {
    /* Make navbar stick to the top and stay visible with a small gap */
    position: sticky;
    top: 10px; /* gap from top */
    width: 100%;
    background: transparent;
    z-index: 1000;
    box-shadow: none;
    overflow: visible; /* allow logo to overflow/extrude */
}

.nav-content {
    display: flex;
    align-items: center;
    background: var(--color-primary);
    border-radius: 40px;
    box-shadow: 0 2px 8px var(--color-shadow);
    padding: 4px 16px;
    width: 1400px;
    max-width: 96vw;
    min-width: 200px;
    margin: 0 auto;
    overflow: visible;
    position: relative;
    height: 96px;
}

.logo-btn {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
    position: absolute; /* remove from flow so it doesn't change navbar height */
    left: 16px;
    /* Position using bottom so we don't rely on transforms */
    bottom: -110px; /* pull the logo further down */
    z-index: 1004; /* Ensure logo sits above navbar */
}

.nav-logo {
    /* Smaller logo (half size) */
    height: auto; /* preserve aspect ratio */
    max-height: 225px; /* 1.5x larger than previous 150px */
    min-height: 60px;
    width: auto;
    display: block;
    background: transparent; /* ensure no rectangular background shows through */
    /* Use drop-shadow so the shadow follows the image alpha channel (no yellow card) */
    -webkit-filter: drop-shadow(0 8px 18px rgba(0,0,0,0.22));
    filter: drop-shadow(0 8px 18px rgba(0,0,0,0.22));
    border-radius: 0; /* keep image corners as in source */
    transition: transform 180ms ease, filter 180ms ease; /* smooth shrink */
    transform-origin: left top; /* scale towards the navbar edge */
}

/* Shrink state applied when user scrolls down */
body.logo-shrink .nav-logo {
    transform: scale(0.64); /* shrink to 64% */
    -webkit-filter: drop-shadow(0 6px 14px rgba(0,0,0,0.18));
    filter: drop-shadow(0 6px 14px rgba(0,0,0,0.18));
}

/* Social footer links */
.footer-social { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.footer-email { display: flex; gap: 8px; align-items: center; font-size: 0.95rem; }
.footer-email a { color: var(--color-text-inverse); text-decoration: none; font-size: 0.95rem; padding: 0; background: none; font-weight: 500; }
.footer-email a:hover { background: none; text-decoration: underline; }
.footer-email svg { width: 18px; height: 18px; flex-shrink: 0; }
.social-links { display: inline-flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; }
.social-link { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--color-primary); background: var(--color-text-inverse); padding: 8px 14px; border-radius: 20px; font-size: .8rem; font-weight: 600; line-height: 1; transition: background .25s, transform .25s; }

/* Tienda navigation link (hidden by default, shown via JS) */
.tienda-nav-item { display: none; }
.tienda-nav-item.active { display: block; }
.tienda-link { color: var(--color-accent) !important; }
.tienda-icon { width: 16px; height: 16px; vertical-align: middle; margin-right: 4px; }
.social-link:hover { background: var(--color-bg-alt); transform: translateY(-2px); }
.social-icon { width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; }
.social-icon svg { width: 100%; height: 100%; display: block; }
.footer-text { margin: 0 0 8px 0; font-size: 0.9rem; opacity: 0.9; }

.site-title {
    display: none;
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    padding-left: 180px; /* clear the absolute-positioned logo */
    margin: 0;
    list-style: none;
    width: 100%;
}

nav li {
    margin: 0 6px;
    position: relative; /* anchor for the pop-out symbol badge */
}

/* Pop-out symbol badge protruding from the bottom-center of each nav button */
.nav-pop-icon {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 50%); /* centered, half protruding below the button */
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-primary);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.28);
    pointer-events: none;
    z-index: 2;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-pop-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}
nav li:hover .nav-pop-icon {
    transform: translate(-50%, 62%); /* nudge further out on hover */
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.32);
}

/* ── Split nav: "Mayoreo" + "Conócenos" become a utility group at the end,
   set off by a divider, where the navbar fades out its colour. ── */
.nav-sep {
    align-self: center;
    display: flex;
    align-items: center;
    margin-left: auto;   /* push the divider + trailing group to the far right */
    margin-right: 6px;
    padding: 0 14px;
}
.nav-sep::before {
    content: "";
    width: 3px;
    height: 46px;
    border-radius: 3px;
    background: linear-gradient(180deg, transparent, var(--color-accent), transparent);
}

/* The pill "loses its colour" toward the end, easing into a warm yellow. Painted
   as an overlay so it works regardless of which nav-style sets the pill background. */
.nav-content::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 540px;      /* anchored to the right edge, where the business group sits, */
    max-width: 62%;    /* so the fade lines up whether the bar is full-width or compact */
    border-radius: inherit;
    background: linear-gradient(90deg,
        transparent 0%,
        color-mix(in srgb, var(--nav-fade-color) 45%, transparent) 16%,
        color-mix(in srgb, var(--nav-fade-color) 90%, transparent) 28%,
        color-mix(in srgb, var(--nav-fade-color) 92%, transparent) 100%);
    pointer-events: none;
    z-index: 0;
}
#nav-menu { position: relative; z-index: 1; } /* keep buttons above the fade */

/* Shrink the pill to its contents so the bar never grows wider than the
   buttons it holds. Without this the fixed 1400px width leaves a big empty
   slab after the last main button (the divider's margin-left:auto sweeps all
   the slack into one gap) — obvious on the opaque nav styles. fit-content
   keeps the business group + warm fade snug against the last button instead,
   whether or not the store (tienda) button is shown. */
@media (min-width: 769px) {
    .nav-content {
        width: fit-content;
    }
}

.nav-trailing a { color: #fff !important; } /* outline comes from --nav-text-outline */
.nav-trailing a:hover { background: rgba(0, 0, 0, 0.1); }
.nav-trailing .nav-pop-icon { background: var(--color-primary); color: #fff; }

a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-family: var(--font-family-nav);
    font-size: 1em;
    padding: 12px 22px;
    border-radius: 24px;
    transition: background 0.2s;
    display: inline-block;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* Nav-specific link sizing — large, bold, prominent */
nav li a {
    font-size: 1.15rem;
    padding: 14px 28px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-shadow: var(--nav-text-outline); /* black outline on every nav button */
}

/* Current-page indicator: filled pill + accent underline, subtle enough to
   read on every nav style (default, glass, minimal, bold). */
nav li.nav-current > a {
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 -4px 0 var(--color-accent);
}

a:hover {
    background: rgba(255,255,255,0.15);
}

.main-banner {
    width: 100%;
    height: 800px;
    object-fit: cover;
    object-position: center;
    display: block;
    margin: 0 auto 48px auto;
    border-radius: 0;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Taller banner on large screens */
@media (min-width: 1440px) {
    .main-banner {
        height: 100vh;
        max-height: 1000px;
    }
}

.main-banner:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.18);
}

/* Banner size variants (admin: Casa → Banner). Each option sets an explicit
   height at every breakpoint (large is the tallest offered). */
body.banner-small  .main-banner { height: 320px; }
body.banner-medium .main-banner { height: 440px; }
body.banner-large  .main-banner { height: 620px; }
@media (min-width: 1440px) {
    body.banner-small  .main-banner { height: 44vh; max-height: 480px; }
    body.banner-medium .main-banner { height: 58vh; max-height: 620px; }
    body.banner-large  .main-banner { height: 80vh; max-height: 820px; }
}
@media (max-width: 768px) {
    body.banner-small  .main-banner { height: 230px; }
    body.banner-medium .main-banner { height: 300px; }
    body.banner-large  .main-banner { height: 400px; }
}

main {
    margin-top: 100px;
    padding: 24px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Casa page: customizable gap between the navbar and the banner (desktop).
   Controlled from the admin (Casa → Banner) via --casa-top-gap; default halves
   the standard 100px gap. */
@media (min-width: 769px) {
    body.page-casa main {
        margin-top: var(--casa-top-gap, 50px);
    }
}

footer {
    text-align: center;
    padding: 40px 20px;
    background: transparent;
    position: relative;
    color: #fff;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: 40px;
    box-shadow: 0 4px 24px rgba(var(--color-primary-rgb), 0.25);
    padding: 28px 40px;
    width: 1000px;
    max-width: 90vw;
    margin: 0 auto;
    gap: 12px;
}

/* Hide footer when empty */
.footer-content:empty {
    display: none;
}

/* Footer style variations to match nav */
body[data-nav-style="glass"] .footer-content {
    background: rgba(var(--color-primary-rgb), 0.75);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px var(--color-shadow), inset 0 1px 0 rgba(255,255,255,0.2);
}

body[data-nav-style="minimal"] .footer-content {
    background: var(--color-text);
    border-radius: 0;
    box-shadow: none;
    border-top: 1px solid rgba(255,255,255,0.1);
    width: 100%;
    max-width: 100%;
}

body[data-nav-style="bold"] .footer-content {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    box-shadow: 0 4px 20px rgba(var(--color-primary-rgb), 0.4);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2.5em;
    color: var(--color-text-inverse);
    cursor: pointer;
    margin-left: auto;
    margin-right: 10px;
    z-index: 1001;
}

@media (max-width: 1200px) {
    header {
        display: none;
    }
    
    nav {
        position: sticky;
        top: 10px;
        z-index: 1000;
    }
    
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
        border-radius: 12px;
        transition: background 0.2s;
        margin-left: auto;
        margin-right: 12px;
        z-index: 1005;
        flex-shrink: 0;
    }
    .nav-toggle:hover {
        background: rgba(255,255,255,0.15);
    }
    
    .nav-content {
        width: 95%;
        max-width: 95vw;
        min-width: 250px;
        margin: 0 auto;
        min-height: 65px;
        height: auto;
        position: relative;
        border-radius: 35px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        align-content: flex-start;
        justify-content: flex-end;
        padding-top: 8px;
        padding-bottom: 8px;
        transition: border-radius 0.3s ease;
    }
    
    /* When menu is open, adjust border radius */
    .nav-content.menu-open {
        border-radius: 35px 35px 24px 24px;
    }
    
    #nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        margin: 0;
        padding: 12px 16px 8px 16px;
        list-style: none;
        order: 3; /* Push menu below the logo and toggle */
    }
    #nav-menu.show {
        display: flex;
    }
    #nav-menu li {
        margin: 4px 0;
        list-style: none;
    }
    
    .logo-btn {
        position: absolute;
        left: 16px;
        top: 8px;
        transform: none;
        bottom: auto;
        z-index: 1003;
    }
    .nav-logo {
        height: auto;
        max-height: 50px;
        min-height: 40px;
        -webkit-filter: drop-shadow(0 4px 12px rgba(0,0,0,0.25));
        filter: drop-shadow(0 4px 12px rgba(0,0,0,0.25));
    }
    
    body.logo-shrink .nav-logo {
        transform: none;
    }
    
    .site-title {
        display: none;
    }
    
    nav ul {
        flex-direction: column;
        width: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
    }
    nav li {
        margin: 4px 0;
        list-style: none;
    }
    nav li a {
        display: block;
        padding: 12px 16px;
        border-radius: 10px;
        font-size: 1em;
        text-align: center;
        background: rgba(255,255,255,0.1);
        text-transform: uppercase;
        font-weight: 700;
        letter-spacing: 0.5px;
    }
    nav li a:hover {
        background: rgba(255,255,255,0.2);
    }
    /* On the stacked mobile menu, flow the symbol inline beside the label
       (buttons shrink to text width here, so a protruding badge would collide). */
    nav li,
    nav li.tienda-nav-item.active { /* beat the .active display:block rule */
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
    .nav-pop-icon {
        position: static;
        transform: none;
        width: 26px;
        height: 26px;
        flex: 0 0 auto;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    }
    .nav-pop-icon svg {
        width: 16px;
        height: 16px;
    }
    nav li:hover .nav-pop-icon {
        transform: none;
    }
    /* Split-nav pieces reflow for the stacked mobile menu (no colour fade here) */
    .nav-content::after { display: none; }
    .nav-sep {
        width: 100%;
        margin: 8px 0;
        padding: 0;
        justify-content: center;
    }
    .nav-sep::before {
        width: 72%;
        height: 3px;
        background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    }
    .nav-trailing a { color: #fff !important; }
    .nav-trailing a:hover { background: rgba(255, 255, 255, 0.2); }
    .nav-trailing .nav-pop-icon { background: var(--color-accent); color: var(--color-primary); }

    main {
        margin-top: 30px;
        padding: 10px;
    }
    .main-banner {
        height: 500px;
        border-radius: 0;
        margin-bottom: 16px;
    }
    
    /* Glassmorphism mobile overrides */
    body[data-nav-style="glass"] .nav-content {
        border-radius: 35px;
    }
    body[data-nav-style="glass"] .nav-content.menu-open {
        border-radius: 35px 35px 24px 24px;
    }
    body[data-nav-style="glass"] nav li a[style*="yellow"] {
        background: rgba(255, 215, 0, 0.2);
        color: #ffd700 !important;
    }
    
    /* Minimal mobile overrides */
    body[data-nav-style="minimal"] .nav-content {
        border-radius: 0;
    }
    body[data-nav-style="minimal"] .nav-content.menu-open {
        border-radius: 0;
    }
    body[data-nav-style="minimal"] nav li a {
        background: transparent;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        border-radius: 0;
    }
    body[data-nav-style="minimal"] nav li a::after {
        display: none;
    }
    
    /* Bold mobile overrides */
    body[data-nav-style="bold"] .nav-content {
        border-radius: 35px;
    }
    body[data-nav-style="bold"] .nav-content.menu-open {
        border-radius: 35px 35px 24px 24px;
    }
}

@media (max-width: 900px) {
    .certificados-row {
        flex-direction: column !important;
        gap: 32px !important;
        align-items: center !important;
    }
    .certificado-img {
        width: 90vw !important;
        max-width: 320px !important;
        height: 160px !important;
    }
    .distribuidores-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 32px !important;
        align-items: center !important;
    }
    .distribuidor-img {
        width: 90vw !important;
        max-width: 320px !important;
        height: 160px !important;
    }
    /* Map container responsive */
    .map-container {
        aspect-ratio: 4 / 3 !important;
        min-height: 320px !important;
    }
    
    /* Responsive section layout */
    .section-container {
        gap: 32px;
        margin-bottom: 60px;
        padding: 28px 20px;
        border-radius: 24px;
        margin-left: 16px;
        margin-right: 16px;
    }
    .section-container.reverse {
        flex-direction: column;
    }
    .section-divider {
        margin-bottom: 40px;
        max-width: 80%;
    }
    .img-column {
        flex: 1 1 100%;
        min-width: 0;
        aspect-ratio: 16/10;
        border-radius: 20px;
    }
    .text-column {
        flex: 1 1 100%;
        min-width: 0;
        text-align: center;
        gap: 16px;
    }
    .text-column h2 {
        font-size: 1.5em;
    }
    .text-column p {
        font-size: 1em;
    }
    .btn-primary {
        align-self: center;
        padding: 14px 28px;
    }
}

/* Mobile logo scaling: keep the pop-out look but small enough that the
   logo never covers the banner art or the hero content. */
@media (max-width: 600px) {
    .nav-logo {
        max-height: 96px !important;
    }
    .logo-btn {
        top: auto !important;
        bottom: -48px !important;
    }
    body.logo-shrink .nav-logo {
        transform: scale(0.55);
    }
    /* Smaller map on phones */
    .map-container {
        aspect-ratio: 1 / 1 !important;
        min-height: 280px !important;
        border-radius: 16px !important;
    }
}

/* Loading skeleton animation */
@keyframes skeleton-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.skeleton {
    background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
    border-radius: 12px;
}
.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
    border-radius: 6px;
}
.skeleton-image {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 20px;
}

/* === CAPSULE SECTION SYSTEM === */
/* Every visual section gets wrapped in a .capsule container.
   Color variants: capsule-a (frosted white), capsule-b (brand red), capsule-c (dark charcoal) */

.capsule {
    max-width: 1100px;
    margin: 0 auto 60px auto;
    padding: 48px 40px;
    border-radius: 32px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: box-shadow 0.3s ease;
}

/* Option A — Frosted white (default, light glass) */
.capsule-a {
    background: rgba(255, 255, 255, 0.75);
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.4);
}
.capsule-a h1, .capsule-a h2, .capsule-a h3 { color: var(--color-text); }
.capsule-a .btn-primary { background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%); color: #fff; }

/* Option B — Brand red / warm */
.capsule-b {
    background: linear-gradient(135deg, rgba(222, 32, 41, 0.88) 0%, rgba(184, 24, 32, 0.92) 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.capsule-b h1, .capsule-b h2, .capsule-b h3 { color: #fff; }
.capsule-b p, .capsule-b span, .capsule-b label { color: rgba(255, 255, 255, 0.92); }
.capsule-b .btn-primary { background: #fff; color: var(--color-primary-dark); }
.capsule-b .btn-primary:hover { background: var(--color-accent); color: #1a1a1a; }
.capsule-b .section-divider { border-color: rgba(255, 255, 255, 0.3); }

/* Option C — Dark charcoal */
.capsule-c {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.92) 0%, rgba(20, 20, 20, 0.95) 100%);
    color: #f0f0f0;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.capsule-c h1, .capsule-c h2, .capsule-c h3 { color: #fff; }
.capsule-c p, .capsule-c span, .capsule-c label { color: rgba(255, 255, 255, 0.85); }
.capsule-c .btn-primary { background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%); color: #fff; }
.capsule-c .section-divider { border-color: rgba(255, 255, 255, 0.15); }

/* === COMMON SECTION & ELEMENT STYLES === */
/* Reusable classes to replace inline styles */

.section-container {
    max-width: 1100px;
    margin: 0 auto 100px auto;
    display: flex;
    gap: 60px;
    align-items: center;
    flex-wrap: wrap;
    padding: 40px;
    background: var(--color-bg-card);
    border-radius: 32px;
    box-shadow: 0 4px 30px var(--color-shadow);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

/* When inside a capsule, sections should NOT re-add their own background/shadow */
.capsule .section-container {
    background: none;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-radius: 0;
    padding: 0;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .capsule {
        padding: 28px 18px;
        border-radius: 22px;
        margin-bottom: 32px;
    }
}

.section-container.reverse {
    flex-direction: row-reverse;
}

/* Banner wrapper - full width edge to edge */
.banner-wrapper {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-bottom: 40px;
    overflow: hidden;
}

/* Banner Carousel */
.banner-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.banner-slides {
    position: relative;
    width: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    pointer-events: none;
}

.banner-slide.active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}

/* Banner Navigation Arrows */
.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5em;
    font-weight: bold;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 10;
}

.banner-nav:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 25px rgba(222, 32, 41, 0.4);
}

.banner-prev {
    left: 30px;
}

.banner-next {
    right: 30px;
}

/* Banner Progress Bar */
.banner-progress-wrap {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 10;
}

.banner-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    box-shadow: 0 0 10px rgba(222, 32, 41, 0.5);
}

/* Banner Pagination Dots */
.banner-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 16px 0;
    background: rgba(0, 0, 0, 0.03);
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.banner-dot:hover {
    background: rgba(222, 32, 41, 0.3);
    transform: scale(1.2);
}

.banner-dot.active {
    background: var(--color-primary);
    transform: scale(1.1);
}

/* Banner CTA button */
.banner-cta-btn {
    position: absolute;
    padding: var(--banner-btn-padding, 14px 32px);
    background: var(--color-primary);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: var(--banner-btn-font-size, 1.1em);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    z-index: 10;
    /* Default position: center-center */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Button size variants */
.banner-cta-btn[data-size="small"] {
    padding: 10px 20px;
    font-size: 0.9em;
}
.banner-cta-btn[data-size="medium"] {
    padding: 14px 32px;
    font-size: 1.1em;
}
.banner-cta-btn[data-size="large"] {
    padding: 18px 44px;
    font-size: 1.3em;
}

/* Button position variants - Vertical */
.banner-cta-btn[data-position^="top"] {
    top: 15%;
}
.banner-cta-btn[data-position^="center"] {
    top: 50%;
}
.banner-cta-btn[data-position^="bottom"] {
    top: auto;
    bottom: 60px;
}

/* Button position variants - Horizontal */
.banner-cta-btn[data-position$="-left"] {
    left: 10%;
    transform: translateY(-50%);
}
.banner-cta-btn[data-position$="-center"] {
    left: 50%;
    transform: translate(-50%, -50%);
}
.banner-cta-btn[data-position$="-right"] {
    left: auto;
    right: 10%;
    transform: translateY(-50%);
}

/* Combined positions for bottom row (no translateY needed) */
.banner-cta-btn[data-position="bottom-left"] {
    transform: none;
}
.banner-cta-btn[data-position="bottom-center"] {
    transform: translateX(-50%);
}
.banner-cta-btn[data-position="bottom-right"] {
    transform: none;
}

.banner-cta-btn:hover {
    background: var(--color-primary-light);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Hover transforms for different positions */
.banner-cta-btn[data-position$="-center"]:hover {
    transform: translate(-50%, -50%) scale(1.05);
}
.banner-cta-btn[data-position$="-left"]:hover,
.banner-cta-btn[data-position$="-right"]:hover {
    transform: translateY(-50%) scale(1.05);
}
.banner-cta-btn[data-position="bottom-left"]:hover,
.banner-cta-btn[data-position="bottom-right"]:hover {
    transform: scale(1.05);
}
.banner-cta-btn[data-position="bottom-center"]:hover {
    transform: translateX(-50%) scale(1.05);
}

/* Mobile adjustments for banner carousel */
@media (max-width: 768px) {
    .banner-nav {
        width: 44px;
        height: 44px;
        font-size: 1.2em;
    }
    
    .banner-prev {
        left: 15px;
    }
    
    .banner-next {
        right: 15px;
    }
    
    .banner-progress-wrap {
        height: 4px;
    }
    
    .banner-cta-btn {
        padding: 12px 24px;
        font-size: 1em;
    }
    
    /* Mobile: bottom positions get smaller bottom offset */
    .banner-cta-btn[data-position^="bottom"] {
        bottom: 40px;
    }
}

/* Section divider between content blocks */
.section-divider {
    border: none;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-primary) 20%, var(--color-primary) 80%, transparent);
    margin: 20px auto 60px auto;
    max-width: 600px;
    opacity: 0.6;
}

/* Error message display */
.error-message {
    text-align: center;
    color: var(--color-primary);
    padding: 40px 20px;
    font-size: 1.1em;
}

.img-column {
    flex: 1 1 420px;
    min-width: 280px;
    aspect-ratio: 4/3;
    background: linear-gradient(145deg, #f8f8f8, #e8e8e8);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255,255,255,0.8);
    transition: transform 0.4s cubic-bezier(0.25, 0.6, 0.3, 1), box-shadow 0.4s ease;
}

.img-column:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255,255,255,0.8);
}

.img-column img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.6, 0.3, 1);
}

.img-column:hover img {
    transform: scale(1.05);
}

.text-column {
    flex: 1 1 380px;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
}

.text-column h2 {
    margin: 0;
    font-size: 2.2em;
    line-height: 1.2;
    font-weight: 800;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.text-column p {
    margin: 0;
    line-height: 1.7;
    font-size: 1.05em;
    color: var(--color-text-light);
}

.btn-primary {
    align-self: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-text-inverse);
    text-decoration: none;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95em;
    letter-spacing: 0.03em;
    box-shadow: 0 4px 20px rgba(var(--color-primary-rgb), 0.35);
    transition: all 0.3s cubic-bezier(0.25, 0.6, 0.3, 1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary-dark) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(var(--color-primary-rgb), 0.45);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(var(--color-primary-rgb), 0.4);
}

.btn-secondary {
    background: var(--color-text-light);
    color: var(--color-text-inverse);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background .25s;
}

.btn-secondary:hover {
    background: var(--color-text);
}

/* Image placeholder fallback */
.img-placeholder {
    color: #aaa;
    font-weight: 600;
    font-size: 0.9em;
    text-align: center;
    padding: 20px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Map container styles */
.map-container {
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16 / 10;
    min-height: 400px;
    background: #f5f5f5;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}

/* --- Drawings gallery interactions --------------------------------------- */
.drawing-img-wrap { cursor:pointer; transition:transform .35s cubic-bezier(.25,.6,.3,1), box-shadow .35s; }
.drawing-img-wrap:hover { transform:scale(1.04); box-shadow:0 10px 28px -4px rgba(0,0,0,0.35); }

/* --- Products carousel image hover/click --------------------------------- */
.product-img-link { display:block; width:100%; aspect-ratio:3 / 4; background:#eee; border-radius:20px; overflow:hidden; position:relative; box-shadow:0 4px 14px rgba(0,0,0,0.12); cursor:pointer; padding:0; line-height:0; font-size:0; color:inherit; }
.product-img-link:hover { background:#eee; } /* keep background stable (override global a:hover) */
.product-img-link img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .5s cubic-bezier(.25,.6,.3,1); }
.product-img-link:hover img { transform:scale(1.07); }

/* --- Carousel arrow hover grow (club-indy) ------------------------------- */
#prod-prev,#prod-next,#vid-prev,#vid-next { transition:transform .28s cubic-bezier(.25,.6,.3,1), background .25s; }
#prod-prev:not(:disabled):hover,#prod-next:not(:disabled):hover,#vid-prev:not(:disabled):hover,#vid-next:not(:disabled):hover { transform:scale(1.08); }

.lightbox-backdrop { position:fixed; inset:0; background:rgba(0,0,0,0.85); display:flex; align-items:center; justify-content:center; padding:40px 24px; z-index:4000; animation:fadeIn .35s ease; }
.lightbox-content { position:relative; max-width:min(1000px,92vw); max-height:88vh; width:auto; }
.lightbox-content { display:flex; flex-direction:column; align-items:center; }
.lightbox-content img { width:100%; height:100%; object-fit:contain; display:block; border-radius:20px; box-shadow:0 8px 40px -4px rgba(0,0,0,.55); }
.lightbox-caption { color:#fff; font-weight:600; font-size:1.05rem; margin:0 0 18px 0; text-align:center; line-height:1.35; max-width:90vw; }
.lightbox-close { position:absolute; top:-14px; right:-14px; background:#fff; color:#de2029; width:42px; height:42px; border-radius:50%; border:none; font-size:1.4rem; font-weight:700; cursor:pointer; display:flex; align-items:center; justify-content:center; box-shadow:0 4px 16px rgba(0,0,0,.3); transition:background .25s,color .25s, transform .25s; }
.lightbox-close:hover { background:#de2029; color:#fff; transform:scale(1.08); }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
body.lightbox-open { overflow:hidden; }
/* Catalog Grid Styles */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.catalog-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.catalog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(222,32,41,0.15);
}

.catalog-card-image {
    width: 100%;
    aspect-ratio: 4/5;
    background: #f8f8f8;
    position: relative;
    overflow: hidden;
}

.catalog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.catalog-card:hover .catalog-card-image img {
    transform: scale(1.05);
}

.catalog-card-content {
    padding: 16px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.catalog-card-title {
    font-size: 1.1em;
    font-weight: 700;
    margin: 0;
    color: #333;
    text-align: center;
    line-height: 1.4;
}

/* Pagination & Controls */
.catalog-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 10px;
}

.catalog-search {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
    position: relative;
}

.catalog-search input {
    width: 100%;
    padding: 12px 20px;
    padding-left: 44px;
    border: 2px solid #eee;
    border-radius: 30px;
    font-size: 1em;
    transition: all 0.2s;
}

.catalog-search input:focus {
    border-color: #de2029;
    box-shadow: 0 0 0 4px rgba(222, 32, 41, 0.1);
    outline: none;
}

.catalog-search svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 20px 0;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #eee;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    color: #555;
    font-family: inherit;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #de2029;
    color: #de2029;
}

.pagination-btn.active {
    background: #de2029;
    color: #fff;
    border-color: #de2029;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

/* Modal */
.modal-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    padding: 20px;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.product-modal {
    background: #fff;
    border-radius: 24px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}

.modal-backdrop.active .product-modal {
    transform: translateY(0);
}

.product-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f0f0;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
}

.product-modal-close:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}

.product-modal-content {
    display: flex;
    flex-wrap: wrap;
    padding: 40px;
    gap: 40px;
}

.product-modal-images {
    flex: 1 1 350px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-modal-details {
    flex: 1 1 350px;
    align-self: center;
}

.main-image {
    width: 100%;
    border-radius: 20px;
    background: #f8f8f8;
    aspect-ratio: 1;
    object-fit: contain;
}

.display-image {
    width: 100%;
    border-radius: 16px;
    background: #f8f8f8;
    aspect-ratio: 16/9;
    object-fit: contain;
}

.master-box-image {
    width: 100%;
    border-radius: 16px;
    background: #f8f8f8;
    aspect-ratio: 16/9;
    object-fit: contain;
}

.modal-title {
    font-size: 2em;
    font-weight: 800;
    margin: 0 0 20px 0;
    color: #1a1a1a;
    line-height: 1.2;
}

.modal-desc {
    font-size: 1.1em;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
}

.modal-tag {
    display: inline-block;
    padding: 6px 14px;
    background: #fff0f0;
    border: 1px solid #ffe0e0;
    color: #de2029;
    border-radius: 100px;
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .product-modal-content {
        padding: 24px;
        gap: 24px;
    }
    .modal-title {
        font-size: 1.5em;
    }
}

/* ============================================
   LIGHTBOX / FULLSCREEN IMAGE VIEWER
   ============================================ */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: zoom-out;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox-overlay.active .lightbox-image {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lightbox-close svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }

.lightbox-nav svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

/* Clickable images cursor */
img[data-lightbox], .clickable-image {
    cursor: zoom-in;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

img[data-lightbox]:hover, .clickable-image:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ============================================
   ENHANCED RESPONSIVE STYLES
   ============================================ */

/* Tablet adjustments */
@media (max-width: 1024px) {
    main {
        padding: 0 16px;
    }
    
    .section-container {
        padding: 32px 24px;
        gap: 40px;
    }
    
    h1 { font-size: 2.2em; }
    h2 { font-size: 1.6em; }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    main {
        padding: 0 12px;
    }
    
    h1 { font-size: 1.8em; }
    h2 { font-size: 1.4em; }
    
    .section-container {
        flex-direction: column !important;
        padding: 24px 16px;
        gap: 24px;
        margin-bottom: 40px;
    }
    
    /* Stack flex layouts vertically */
    section[style*="display: flex"],
    section[style*="display:flex"] {
        flex-direction: column !important;
    }
    
    /* Grid responsiveness */
    div[style*="grid-template-columns: repeat(3"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Footer adjustments */
    footer {
        padding: 30px 16px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
    }
    
    .lightbox-nav.prev { left: 10px; }
    .lightbox-nav.next { right: 10px; }
}

/* Small mobile */
@media (max-width: 480px) {
    h1 { font-size: 1.5em; }
    h2 { font-size: 1.25em; }
    
    div[style*="grid-template-columns: repeat(3"],
    div[style*="grid-template-columns: repeat(2"] {
        grid-template-columns: 1fr !important;
    }
    
    .section-container {
        padding: 20px 14px;
        border-radius: 16px;
    }
    
    /* Image containers full width */
    div[style*="width: 280px"],
    div[style*="width: 240px"] {
        width: 100% !important;
        max-width: 320px !important;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    img[data-lightbox]:hover,
    .clickable-image:hover {
        transform: none;
        box-shadow: none;
    }
    
    .lightbox-nav {
        width: 60px;
        height: 60px;
    }
}


/* =============================================
   CASA (HOME) PAGE — MODERN LAYOUT
   ============================================= */

/* ── Hero Feature Section ── */
/* The first promo gets a dramatic full-width treatment */
.casa-hero {
    max-width: 1200px;
    margin: 0 auto 72px auto;
    position: relative;
    overflow: hidden;
    border-radius: 36px;
}

.casa-hero .hero-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 9;
    overflow: hidden;
    border-radius: 36px;
}

.casa-hero .hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 8s cubic-bezier(0.25, 0.6, 0.3, 1);
}

.casa-hero:hover .hero-visual img {
    transform: scale(1.04);
}

/* Dark gradient overlay so text is always readable */
.casa-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        0deg,
        rgba(0,0,0,0.72) 0%,
        rgba(0,0,0,0.30) 40%,
        rgba(0,0,0,0.05) 100%
    );
    border-radius: 36px;
    z-index: 1;
}

.casa-hero .hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 56px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 680px;
}

.casa-hero .hero-content h2 {
    font-size: 3em;
    font-weight: 900;
    line-height: 1.05;
    color: #fff;
    margin: 0;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.casa-hero .hero-content p {
    font-size: 1.15em;
    color: rgba(255,255,255,0.88);
    margin: 0;
    line-height: 1.6;
    max-width: 520px;
}

.casa-hero .hero-content .btn-primary {
    align-self: flex-start;
    margin-top: 8px;
}

/* Hero placeholder when no image */
.casa-hero .hero-visual .img-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: rgba(255,255,255,0.7);
    font-size: 1.1em;
    border-radius: 36px;
}

@media (max-width: 900px) {
    .casa-hero .hero-visual { aspect-ratio: 16 / 10; }
    .casa-hero .hero-content { padding: 36px 32px; }
    .casa-hero .hero-content h2 { font-size: 2.2em; }
}
@media (max-width: 600px) {
    .casa-hero { border-radius: 24px; margin-bottom: 48px; }
    .casa-hero .hero-visual { aspect-ratio: 4 / 3; border-radius: 24px; }
    .casa-hero .hero-overlay { border-radius: 24px; }
    .casa-hero .hero-content { padding: 28px 22px; }
    .casa-hero .hero-content h2 { font-size: 1.7em; }
    .casa-hero .hero-content p { font-size: 1em; }
}

/* ── Promo Card Grid ── */
/* Remaining promos in a visually varied bento-style grid */
.casa-grid {
    max-width: 1200px;
    margin: 0 auto 80px auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.casa-card {
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 36px rgba(0,0,0,0.10);
    transition: transform 0.45s cubic-bezier(0.25,0.6,0.3,1), box-shadow 0.45s ease;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.casa-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 52px rgba(0,0,0,0.18);
}

/* Feature card spans full width */
.casa-card.card-feature {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: stretch;
    min-height: 340px;
}

/* A card left alone on the last row stretches full width instead of
   sitting orphaned in one column (happens when the card count is odd). */
.casa-grid > .casa-card:last-child:nth-child(even) {
    grid-column: 1 / -1;
}

/* Card image area */
.casa-card .card-img {
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    background: linear-gradient(145deg, #f0f0f0, #ddd);
}

/* For feature cards — side image */
.casa-card.card-feature .card-img {
    width: 48%;
    min-height: 340px;
}

/* For regular cards — top image */
.casa-card:not(.card-feature) .card-img {
    width: 100%;
    aspect-ratio: 16 / 10;
}

.casa-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25,0.6,0.3,1);
}

.casa-card:hover .card-img img {
    transform: scale(1.06);
}

.casa-card .card-img .img-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85em;
    color: #aaa;
}

/* Card text content */
.casa-card .card-body {
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    flex: 1;
}

.casa-card .card-body h2 {
    margin: 0;
    font-size: 1.7em;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.casa-card.card-feature .card-body h2 {
    font-size: 2em;
}

.casa-card .card-body p {
    margin: 0;
    line-height: 1.65;
    font-size: 1em;
}

.casa-card .card-body .btn-primary {
    align-self: flex-start;
    margin-top: 4px;
    font-size: 0.88em;
    padding: 13px 28px;
}

/* Capsule color inheritance for cards */
.casa-card.capsule-a { background: rgba(255,255,255,0.82); border: 1px solid rgba(255,255,255,0.5); }
.casa-card.capsule-a .card-body h2 { color: var(--color-text); }
.casa-card.capsule-a .card-body p { color: var(--color-text-light); }

.casa-card.capsule-b { background: linear-gradient(135deg, rgba(222,32,41,0.90) 0%, rgba(170,20,28,0.94) 100%); border: 1px solid rgba(255,255,255,0.15); }
.casa-card.capsule-b .card-body h2 { color: #fff; }
.casa-card.capsule-b .card-body p { color: rgba(255,255,255,0.90); }
.casa-card.capsule-b .btn-primary { background: #fff; color: var(--color-primary-dark); }
.casa-card.capsule-b .btn-primary:hover { background: var(--color-accent); color: #1a1a1a; }

.casa-card.capsule-c { background: linear-gradient(135deg, rgba(28,28,28,0.93) 0%, rgba(18,18,18,0.96) 100%); border: 1px solid rgba(255,255,255,0.08); }
.casa-card.capsule-c .card-body h2 { color: #fff; }
.casa-card.capsule-c .card-body p { color: rgba(255,255,255,0.85); }

/* Staggered entrance for grid cards */
.casa-grid > :nth-child(1) { --delay: 0ms; }
.casa-grid > :nth-child(2) { --delay: 80ms; }
.casa-grid > :nth-child(3) { --delay: 160ms; }
.casa-grid > :nth-child(4) { --delay: 240ms; }
.casa-grid > :nth-child(5) { --delay: 320ms; }
.casa-grid > [data-animate][data-anim-bound] { transition-delay: var(--delay, 0ms); }

/* ── Grid responsive ── */
@media (max-width: 900px) {
    .casa-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .casa-card.card-feature {
        flex-direction: column;
    }
    .casa-card.card-feature .card-img {
        width: 100%;
        min-height: 0;
        aspect-ratio: 16 / 10;
    }
}
@media (max-width: 600px) {
    .casa-grid { gap: 18px; }
    .casa-card { border-radius: 22px; }
    .casa-card .card-body { padding: 24px 20px; gap: 10px; }
    .casa-card .card-body h2 { font-size: 1.35em; }
    .casa-card.card-feature .card-body h2 { font-size: 1.5em; }
}

/* ── Section heading accent ── */
.casa-section-heading {
    max-width: 1200px;
    margin: 0 auto 36px auto;
    text-align: center;
}

.casa-section-heading h2 {
    font-size: 1.8em;
    font-weight: 800;
    color: var(--color-text);
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
}

.casa-section-heading h2::after {
    content: '';
    display: block;
    width: 56px;
    height: 4px;
    background: var(--color-primary);
    border-radius: 2px;
    margin: 14px auto 0 auto;
}

