/* ============================================================
   MAGNUM GUNS & AMMO SHOP — Global Stylesheet
   Tipografía: Montserrat · Animaciones: GSAP + ScrollTrigger
   ============================================================ */

:root {
  --bg: #0b0c0f;
  --bg-2: #121419;
  --bg-3: #181b21;
  --bg-4: #1f232b;
  --line: #262b34;
  --line-soft: #20242c;
  --text: #eef1f5;
  --muted: #9aa3b0;
  --muted-2: #6d7683;
  --accent: #d9a441;         /* latón / ámbar */
  --accent-strong: #f0bd5c;
  --accent-soft: rgba(217, 164, 65, 0.14);
  --red: #c02a34;            /* rojo táctico */
  --red-strong: #e0404a;
  --dark-grad: linear-gradient(180deg, rgba(11,12,15,0) 0%, rgba(11,12,15,0.65) 55%, rgba(11,12,15,0.96) 100%);
  --shadow: 0 18px 45px -18px rgba(0,0,0,0.75);
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1240px;
  --header-bar-h: 82px;
  --topbar-h: 36px;
  --header-h: calc(var(--header-bar-h) + var(--topbar-h));
  --font: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.35rem; }

/* ---------- Eyebrow / kicker ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--accent); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 16px;
}
.kicker::before { content: ""; width: 34px; height: 2px; background: var(--accent); }
.kicker.center { justify-content: center; }
.kicker.center::after { content: ""; width: 34px; height: 2px; background: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 30px; border-radius: 60px; font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.14em; text-transform: uppercase; transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  border: 1px solid transparent; white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex: 0 0 auto; }
.btn-primary { background: var(--accent); color: #171204; box-shadow: 0 10px 26px -10px rgba(217,164,65,0.55); }
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(217,164,65,0.7); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 26px -10px rgba(192,42,52,0.55); }
.btn-red:hover { background: var(--red-strong); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(238,241,245,0.28); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-whatsapp { background: #25d366; color: #04240f; box-shadow: 0 10px 26px -10px rgba(37,211,102,0.5); }
.btn-whatsapp:hover { background: #3ce97b; transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 0.74rem; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  display: flex; flex-direction: column;
  background: rgba(11,12,15,0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header.scrolled { background: rgba(11,12,15,0.96); box-shadow: 0 10px 30px -18px rgba(0,0,0,0.9); }
.topbar { flex: 0 0 auto; display: flex; align-items: center; height: var(--topbar-h); border-bottom: 1px solid rgba(255,255,255,0.05); overflow: hidden; transition: height .3s ease, opacity .3s ease; }
.site-header.scrolled .topbar { height: 0; opacity: 0; border-bottom: none; }
.topbar-inner { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; letter-spacing: 0.04em; color: var(--muted); font-weight: 600; }
.topbar-inner img { height: 16px; width: auto; display: block; }
.header-inner { display: flex; align-items: center; gap: 26px; width: 100%; height: var(--header-bar-h); }
.brand { display: flex; align-items: center; gap: 13px; flex: 0 0 auto; }
.brand img { height: 52px; width: auto; }
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand .brand-text strong { font-size: 1.02rem; font-weight: 800; letter-spacing: 0.01em; }
.brand .brand-text span { font-size: 0.62rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent); font-weight: 700; }

.nav { margin-left: auto; display: flex; align-items: center; }
.nav ul.main-menu { display: flex; align-items: center; gap: 4px; }
.main-menu > li { position: relative; }
.main-menu > li > a {
  display: flex; align-items: center; gap: 6px; padding: 10px 13px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text); border-radius: 8px; transition: color .2s ease, background .2s ease;
}
.main-menu > li > a .caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; transition: transform .25s ease; }
.main-menu > li > a:hover, .main-menu > li > a.active { color: var(--accent); }
.main-menu > li:hover > a .caret { transform: rotate(180deg); }

.submenu {
  position: absolute; top: calc(100% + 12px); left: 0; min-width: 240px;
  background: #14161b; border: 1px solid var(--line); border-radius: 12px; padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s ease, transform .25s ease, visibility .25s;
  box-shadow: var(--shadow);
}
.main-menu > li:hover .submenu, .main-menu > li:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: block; padding: 10px 14px; font-size: 0.8rem; font-weight: 600; color: var(--muted); border-radius: 8px; transition: color .2s ease, background .2s ease, padding-left .2s ease; }
.submenu a:hover { color: var(--accent); background: var(--accent-soft); padding-left: 20px; }

.header-cta { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 10px; align-items: center; justify-content: center; }
.burger span { display: block; width: 22px; height: 2px; background: var(--text); position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--text); transition: transform .3s ease; }
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }

/* Burger animation */
.burger span, .burger span::before, .burger span::after { transition: transform .3s ease, background .3s ease, top .3s ease; }
.burger.active span { background: transparent; }
.burger.active span::before { top: 0; transform: rotate(45deg); }
.burger.active span::after { top: 0; transform: rotate(-45deg); }

/* Mobile nav */
body.menu-open { overflow: hidden; }
.mobile-menu {
  position: fixed; inset: 0; z-index: 999; background: rgba(11,12,15,0.985);
  padding: calc(var(--header-h) + 22px) 24px 44px; display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transform: translateX(24px); transition: opacity .3s ease, transform .3s ease, visibility .3s;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: translateX(0); }
.mm-nav { display: flex; flex-direction: column; }
.mm-nav > a { font-size: 1.1rem; font-weight: 700; padding: 15px 4px; border-bottom: 1px solid var(--line-soft); letter-spacing: 0.02em; color: var(--text); }
.mm-nav > a:hover, .mm-nav > a.active { color: var(--accent); }
.mm-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  font-size: 1.1rem; font-weight: 700; padding: 15px 4px; border-bottom: 1px solid var(--line-soft);
  letter-spacing: 0.02em; color: var(--text); text-align: left;
}
.mm-toggle .mm-ic { color: var(--accent); font-size: 1.3rem; line-height: 1; transition: transform .3s ease; }
.mm-toggle.open .mm-ic { transform: rotate(45deg); }
.mm-panel { max-height: 0; overflow: hidden; transition: max-height .35s ease; padding-left: 14px; }
.mm-panel a { display: block; padding: 12px 6px; font-size: 0.98rem; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line-soft); }
.mm-panel a:hover { color: var(--accent); }
.mm-panel a:last-child { border-bottom: none; }
.mm-distribuidor { display: flex; align-items: center; gap: 8px; padding: 18px 4px; margin-top: 8px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 0.92rem; font-weight: 600; }
.mm-distribuidor img { height: 1.2em; width: auto; display: block; }

/* ============================================================
   PAGE HERO (título con imagen de fondo)
   ============================================================ */
.page-hero {
  position: relative; min-height: 46vh; display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 60px) 0 70px; background-size: cover; background-position: center;
  isolation: isolate; overflow: hidden;
}
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,12,15,0.72) 0%, rgba(11,12,15,0.55) 45%, var(--bg) 100%); }
.page-hero h1 { margin-bottom: 12px; max-width: 820px; }
.page-hero p { color: var(--muted); max-width: 640px; font-size: 1.02rem; }
.page-hero .crumbs { display: flex; gap: 8px; align-items: center; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.page-hero .crumbs a { color: var(--accent); }
.page-hero .crumbs .sep { opacity: 0.5; }

/* ============================================================
   HOME HERO SLIDER
   ============================================================ */
.hero-slider { position: relative; height: 100vh; min-height: 640px; max-height: 900px; overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center;
  background-size: cover; background-position: center; opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 1s ease;
}
.hero-slide.active { opacity: 1; visibility: visible; z-index: 2; }
.hero-slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,12,15,0.8) 0%, rgba(11,12,15,0.55) 50%, rgba(11,12,15,0.9) 100%); }
.hero-slide .slide-inner { position: relative; z-index: 3; max-width: 860px; padding: 0 24px; }
.hero-slide .slide-title { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 900; margin-bottom: 22px; text-shadow: 0 6px 40px rgba(0,0,0,0.6); line-height: 1.12; letter-spacing: -0.02em; }
.hero-slide .slide-title em { font-style: normal; color: var(--accent); }
.hero-slide p { font-size: clamp(1rem, 1.6vw, 1.2rem); color: #d7dbe2; max-width: 640px; margin: 0 auto 30px; }
.hero-slide .slide-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.slider-controls { position: absolute; z-index: 10; bottom: 40px; left: 0; right: 0; display: flex; align-items: center; justify-content: center; gap: 14px; }
.slider-dots { display: flex; gap: 10px; }
.slider-dots button { width: 34px; height: 4px; border-radius: 4px; background: rgba(255,255,255,0.28); transition: background .3s ease, width .3s ease; }
.slider-dots button.active { background: var(--accent); width: 52px; }
.slider-arrow { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3); display: flex; align-items: center; justify-content: center; transition: background .25s ease, border-color .25s ease; }
.slider-arrow:hover { background: var(--accent); border-color: var(--accent); color: #171204; }
.slider-arrow svg { width: 20px; height: 20px; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 96px 0; position: relative; }
.section.section-tight { padding: 64px 0; }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.02rem; }
.section-head.center p { margin-left: auto; margin-right: auto; }

/* Features grid (home) */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--bg-3); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 34px 30px; transition: transform .35s ease, border-color .35s ease, background .35s ease; position: relative; overflow: hidden;
}
.feature::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .4s ease; }
.feature:hover { transform: translateY(-6px); border-color: rgba(217,164,65,0.35); background: var(--bg-4); }
.feature:hover::after { transform: scaleX(1); }
.feature .f-icon { width: 54px; height: 54px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.feature .f-icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.08rem; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 0.94rem; }

/* Image boxes (home) */
.boxes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.img-box {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 420px; display: flex; align-items: flex-end;
  background-size: cover; background-position: center; isolation: isolate;
}
.img-box::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(11,12,15,0.05) 30%, rgba(11,12,15,0.9) 100%); transition: background .4s ease; }
.img-box:hover::before { background: linear-gradient(180deg, rgba(11,12,15,0.1) 20%, rgba(11,12,15,0.95) 100%); }
.img-box .box-content { position: relative; z-index: 2; padding: 32px; width: 100%; }
.img-box .box-content .tag { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.img-box h3 { font-size: 1.45rem; margin: 10px 0 12px; }
.img-box p { color: #c9ced6; font-size: 0.94rem; max-width: 320px; transform: translateY(8px); opacity: 0.85; transition: transform .4s ease, opacity .4s ease; }
.img-box:hover p { transform: translateY(0); opacity: 1; }

/* ============================================================
   CATALOG
   ============================================================ */
.catalog-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.catalog-filters .f-group { display: flex; flex-direction: column; gap: 6px; }
.catalog-filters label { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; }
.chip {
  padding: 10px 18px; border-radius: 60px; border: 1px solid var(--line); background: var(--bg-3);
  font-size: 0.78rem; font-weight: 600; color: var(--muted); transition: all .25s ease; letter-spacing: 0.02em;
}
.chip:hover { color: var(--text); border-color: rgba(217,164,65,0.4); }
.chip.active { background: var(--accent); color: #171204; border-color: var(--accent); }
select.chip { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239aa3b0' stroke-width='2.4'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }

.catalog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card {
  background: var(--bg-3); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); border-color: rgba(217,164,65,0.35); box-shadow: var(--shadow); }
.product-card .pc-media { aspect-ratio: 4 / 3; background: var(--bg-4); overflow: hidden; position: relative; }
.product-card .pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .pc-media img { transform: scale(1.07); }
.product-card .pc-media .pc-badge { position: absolute; top: 12px; left: 12px; z-index: 2; background: rgba(11,12,15,0.82); color: var(--accent); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 11px; border-radius: 6px; backdrop-filter: blur(6px); }
.product-card .pc-body { padding: 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card .pc-brand { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.product-card h3 { font-size: 1.05rem; line-height: 1.25; }
.product-card .pc-cal { font-size: 0.8rem; color: var(--muted); }
.product-card .pc-cat { margin-top: auto; padding-top: 12px; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; }
.catalog-empty { text-align: center; padding: 60px 20px; color: var(--muted); grid-column: 1 / -1; }
.catalog-count { font-size: 0.84rem; color: var(--muted-2); margin-bottom: 18px; }

/* Catálogo con sidebar de filtros */
.catalog-layout { display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: start; }
.catalog-sidebar { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; background: var(--bg-3); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 22px; }
.catalog-sidebar::-webkit-scrollbar { width: 8px; }
.catalog-sidebar::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
.catalog-sidebar .filter-group { margin-bottom: 24px; }
.catalog-sidebar .filter-group:last-of-type { margin-bottom: 0; }
.catalog-sidebar .filter-group > h3 { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; font-weight: 800; }
.filter-list { display: flex; flex-direction: column; gap: 2px; }
.filter-list button {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  padding: 9px 11px; border-radius: 8px; font-size: 0.86rem; font-weight: 600; color: var(--muted);
  text-align: left; transition: background .2s ease, color .2s ease;
}
.filter-list button .cnt { font-size: 0.72rem; color: var(--muted-2); background: var(--bg-4); padding: 1px 8px; border-radius: 20px; }
.filter-list button:hover { color: var(--text); background: var(--bg-4); }
.filter-list button.active { background: var(--accent-soft); color: var(--accent); }
.filter-list button.active .cnt { color: var(--accent); background: rgba(217,164,65,0.16); }
.catalog-sidebar .sidebar-actions { margin-top: 20px; }
.catalog-main { min-width: 0; }
.catalog-main .catalog-grid { grid-template-columns: repeat(3, 1fr); }
.filters-toggle { display: none; margin-bottom: 16px; }

/* Tarjeta producto clicable */
.product-card .pc-link { display: block; }
.product-card h3 a { color: inherit; }
.product-card h3 a:hover { color: var(--accent); }

/* Detalle de producto */
.pd-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }
.pd-gallery .pd-main { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-3); }
.pd-gallery .pd-main img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pd-thumbs button { width: 84px; height: 64px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--bg-3); }
.pd-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs button.active { border-color: var(--accent); }
.pd-info .pd-cat { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); font-weight: 800; }
.pd-info h1 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin: 12px 0 8px; }
.pd-info .pd-brand { color: var(--muted); font-weight: 600; }
.pd-specs { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.pd-specs .spec { background: var(--bg-3); border: 1px solid var(--line-soft); border-radius: 10px; padding: 10px 16px; }
.pd-specs .spec b { display: block; font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; }
.pd-specs .spec span { font-weight: 700; font-size: 0.94rem; }
.pd-desc { color: var(--muted); white-space: pre-line; font-size: 0.95rem; }
.pd-cta { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }
.pd-note { margin-top: 18px; font-size: 0.82rem; color: var(--muted-2); }
.pd-full { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line-soft); }
.pd-full h3 { font-size: 1.15rem; margin-bottom: 14px; }

/* Carousel de logos de clientes (imágenes) */
.clients-marquee { display: flex; width: max-content; cursor: grab; will-change: transform; }
.clients-marquee .clogo {
  width: 190px; height: 120px; margin-right: 18px; border-radius: 10px; overflow: hidden; background: var(--bg-3);
  border: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.clients-marquee .clogo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.4); transition: filter .3s ease, transform .3s ease; }
.clients-marquee .clogo:hover img { filter: grayscale(0); transform: scale(1.06); }

/* ============================================================
   PACKAGES (Paquetes de Tiro)
   ============================================================ */
.packages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.package {
  background: var(--bg-3); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 34px 30px;
  display: flex; flex-direction: column; position: relative; transition: transform .35s ease, border-color .35s ease; overflow: hidden;
}
.package:hover { transform: translateY(-6px); border-color: rgba(217,164,65,0.4); }
.package.featured { border-color: var(--accent); }
.package.featured::before { content: "Más popular"; position: absolute; top: 16px; right: -34px; transform: rotate(45deg); background: var(--accent); color: #171204; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 40px; }
.package .p-head { border-bottom: 1px solid var(--line-soft); padding-bottom: 22px; margin-bottom: 22px; }
.package .p-title { font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.package .p-price { font-size: 2.6rem; font-weight: 900; color: var(--accent); line-height: 1; margin-top: 10px; }
.package .p-price span { font-size: 1rem; font-weight: 600; color: var(--muted); }
.package ul.p-items { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; flex: 1; }
.package ul.p-items li { display: flex; gap: 10px; font-size: 0.92rem; color: #c9ced6; }
.package ul.p-items li::before { content: "◆"; color: var(--accent); font-size: 0.6rem; transform: translateY(5px); flex: 0 0 auto; }

/* ============================================================
   PDF CARDS (Catálogo Digital)
   ============================================================ */
.pdf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pdf-card {
  background: var(--bg-3); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .35s ease, border-color .35s ease;
}
.pdf-card:hover { transform: translateY(-6px); border-color: rgba(217,164,65,0.4); }
.pdf-card .pdf-preview { background: var(--bg-4); height: 230px; display: flex; align-items: center; justify-content: center; position: relative; }
.pdf-card .pdf-preview .pdf-icon { width: 66px; height: 82px; position: relative; }
.pdf-card .pdf-body { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.pdf-card h3 { font-size: 1.15rem; }
.pdf-card p { color: var(--muted); font-size: 0.88rem; }
.pdf-card .pdf-body .btn { margin-top: 12px; align-self: flex-start; }

.pdf-viewer { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 40px; }
.pdf-viewer iframe { width: 100%; height: 720px; border: 0; display: block; background: #2a2d34; }
.pdf-viewer .pv-toolbar { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.pdf-viewer .pv-toolbar strong { font-size: 0.9rem; }
.pdf-viewer .pv-toolbar .btn { margin-left: auto; }

/* ============================================================
   INFO PAGES (Campo / Polígono / Permisos)
   ============================================================ */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.split.reverse { grid-template-columns: 0.95fr 1.05fr; }
.split .media { border-radius: var(--radius); overflow: hidden; position: relative; }
.split .media img { width: 100%; height: 480px; object-fit: cover; }
.split .media .media-float { position: absolute; left: 24px; bottom: 24px; background: rgba(11,12,15,0.85); backdrop-filter: blur(8px); border: 1px solid var(--line); padding: 18px 22px; border-radius: 12px; display: flex; align-items: center; gap: 14px; }
.split .media .media-float strong { font-size: 1.5rem; color: var(--accent); }
.split .media .media-float span { font-size: 0.78rem; color: var(--muted); }
.check-list { display: grid; gap: 16px; margin: 28px 0; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 0.98rem; }
.check-list li .ck { width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; font-size: 0.8rem; font-weight: 900; }

/* brand marquee */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; background: var(--bg-2); }
.marquee-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-size: 1.7rem; font-weight: 900; letter-spacing: 0.06em; color: #4b5260; text-transform: uppercase; white-space: nowrap; transition: color .3s ease; margin-right: 70px; }
.marquee-track span:hover { color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   TABLES (Trámites)
   ============================================================ */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-3); }
table.data-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.data-table th, .data-table td { text-align: left; padding: 16px 22px; border-bottom: 1px solid var(--line-soft); font-size: 0.92rem; }
.data-table th { background: var(--bg-4); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.data-table tr:last-child td { border-bottom: none; }
.data-table td .badge-pdf { display: inline-flex; align-items: center; gap: 7px; background: rgba(192,42,52,0.14); color: #ff7b84; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 12px; border-radius: 6px; }
.data-table tr:hover td { background: rgba(255,255,255,0.02); }
.perm-card { background: var(--bg-3); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 34px 30px; transition: transform .35s ease, border-color .35s ease; }
.perm-card:hover { transform: translateY(-6px); border-color: rgba(217,164,65,0.4); }
.perm-card .pc-num { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); font-weight: 800; }
.perm-card h3 { margin: 12px 0 10px; font-size: 1.2rem; }
.perm-card p { color: var(--muted); font-size: 0.94rem; }

/* ============================================================
   CONTACT + FAQ
   ============================================================ */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.contact-card { background: var(--bg-3); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 28px; transition: transform .3s ease, border-color .3s ease; }
.contact-card:hover { transform: translateY(-5px); border-color: rgba(217,164,65,0.4); }
.contact-card .c-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.contact-card .c-icon svg { width: 22px; height: 22px; }
.contact-card .c-label { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; }
.contact-card .c-value { font-weight: 700; margin-top: 6px; font-size: 0.98rem; }
.contact-card a.c-value:hover { color: var(--accent); }

.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 400px; border: 0; display: block; filter: grayscale(0.3) contrast(1.05); }

.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; background: var(--bg-3); margin-bottom: 12px; overflow: hidden; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left; padding: 20px 24px; font-weight: 700; font-size: 0.98rem; transition: color .25s ease; }
.faq-q:hover { color: var(--accent); }
.faq-q .faq-ic { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--accent); transition: transform .3s ease, background .3s ease; flex: 0 0 auto; }
.faq-item.open .faq-ic { transform: rotate(45deg); background: var(--accent); color: #171204; border-color: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-a-inner { padding: 0 24px 22px; color: var(--muted); font-size: 0.94rem; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { position: relative; padding: 80px 0; background-size: cover; background-position: center; isolation: isolate; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(11,12,15,0.94) 30%, rgba(11,12,15,0.7) 100%); }
.cta-band .cta-inner { max-width: 720px; }
.cta-band h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 16px; }
.cta-band p { color: var(--muted); margin-bottom: 28px; }
.cta-band .cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #08090b; border-top: 1px solid var(--line); padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.site-footer .f-brand img { height: 26px; width: auto; margin-bottom: 18px; }
.site-footer .f-brand p { color: var(--muted); font-size: 0.92rem; max-width: 340px; }
.site-footer h4 { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text); margin-bottom: 18px; }
.site-footer ul.f-links { display: flex; flex-direction: column; gap: 11px; }
.site-footer ul.f-links a { color: var(--muted); font-size: 0.92rem; transition: color .2s ease, padding-left .2s ease; }
.site-footer ul.f-links a:hover { color: var(--accent); padding-left: 6px; }
.site-footer .f-contact li { display: flex; gap: 12px; margin-bottom: 14px; color: var(--muted); font-size: 0.92rem; align-items: flex-start; }
.site-footer .f-contact li svg { width: 18px; height: 18px; color: var(--accent); flex: 0 0 auto; margin-top: 2px; }
.site-footer .f-contact a:hover { color: var(--accent); }
.site-footer .f-social { display: flex; gap: 12px; margin-top: 8px; }
.site-footer .f-social a { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--muted); transition: all .25s ease; }
.site-footer .f-social a:hover { background: var(--accent); color: #171204; border-color: var(--accent); }
.site-footer .f-social svg { width: 18px; height: 18px; }
.site-footer .footer-bottom { border-top: 1px solid var(--line-soft); padding: 24px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer .footer-bottom p { color: var(--muted-2); font-size: 0.82rem; }
.site-footer .footer-bottom a { color: var(--accent); }

/* ============================================================
   ADMIN
   ============================================================ */
.admin-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-3); }
table.admin-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.admin-table th, .admin-table td { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); font-size: 0.86rem; text-align: left; vertical-align: middle; }
.admin-table th { background: var(--bg-4); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.admin-table td img { width: 60px; height: 45px; object-fit: cover; border-radius: 6px; background: var(--bg-4); }
.admin-table input, .admin-table select { width: 100%; min-width: 110px; background: var(--bg-2); border: 1px solid var(--line); color: var(--text); border-radius: 7px; padding: 8px 10px; font-size: 0.82rem; }
.admin-table input:focus, .admin-table select:focus { outline: none; border-color: var(--accent); }
.admin-table .del-btn { color: #ff7b84; font-weight: 700; padding: 6px 10px; border-radius: 7px; transition: background .2s ease; }
.admin-table .del-btn:hover { background: rgba(192,42,52,0.16); }
.admin-note { background: var(--accent-soft); border: 1px solid rgba(217,164,65,0.3); border-radius: 12px; padding: 18px 22px; color: #e6c98c; font-size: 0.9rem; margin-bottom: 26px; }
.admin-note code { background: rgba(0,0,0,0.3); padding: 2px 7px; border-radius: 5px; font-size: 0.82rem; }

/* ============================================================
   UTILITIES / ANIMATION HELPERS
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.text-center { text-align: center; }
.mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }
.mb-1 { margin-bottom: 12px; } .mb-2 { margin-bottom: 24px; } .mb-3 { margin-bottom: 40px; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Reveal (fallback if GSAP not loaded yet) */
[data-reveal] { opacity: 0; transform: translateY(26px); }
html.no-js [data-reveal] { opacity: 1; transform: none; }

/* ============================================================
   AGE GATE (verificación de edad)
   ============================================================ */
.age-gate, .age-denied {
  position: fixed; inset: 0; z-index: 9999; background: rgba(5,6,8,0.96);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.age-gate-box { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); max-width: 460px; width: 100%; padding: 38px 30px; text-align: center; }
.age-gate-box img { height: 64px; margin: 0 auto 20px; }
.age-gate-box h2 { font-size: 1.6rem; margin-bottom: 14px; }
.age-gate-box p { color: var(--muted); margin-bottom: 26px; }
.age-actions { display: flex; flex-direction: column; gap: 12px; }
.age-actions .btn { width: 100%; }
body.age-locked { overflow: hidden; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .catalog-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  :root { --header-h: var(--header-bar-h); }
  .topbar { display: none; }
  .nav { display: none; }
  .burger { display: flex; }
  .brand .brand-text { display: none; }
  .header-cta { margin-left: auto; }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .packages-grid { grid-template-columns: repeat(2, 1fr); }
  .boxes-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .section { padding: 68px 0; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .features-grid { grid-template-columns: 1fr; }
  .boxes-grid { grid-template-columns: 1fr; }
  .packages-grid { grid-template-columns: 1fr; }
  .pdf-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-slide .slide-actions { flex-direction: column; align-items: center; }
  .page-hero { min-height: auto; padding-top: calc(var(--header-h) + 40px); padding-bottom: 40px; }
  .pdf-viewer iframe { height: 480px; }
  .slider-arrow { width: 40px; height: 40px; }
  .marquee-track span { font-size: 1.3rem; margin-right: 40px; }
  .marquee { padding: 16px 0; }
}
@media (max-width: 420px) {
  .catalog-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .filters-toggle { display: inline-flex; }
  .catalog-sidebar { position: static; display: none; }
  .catalog-sidebar.open { display: block; }
  .catalog-sidebar .filter-list { flex-direction: row; flex-wrap: wrap; }
  .catalog-sidebar .filter-list button { width: auto; }
  .catalog-main .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .pd-layout { grid-template-columns: 1fr; gap: 32px; }
}
