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

:root {
  --gold: #c9933a;
  --gold-dark: #a87828;
  --black: #0a0a0a;
  --white: #ffffff;
  --bg: #fafaf8;
  --muted: #f4f1ed;
  --muted-fg: #8a7f74;
  --border: #e8e2d9;
  --error: #b3352c;
  --font-headline: 'Playfair Display', Georgia, serif;
  --font-body: 'PT Sans', Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--black);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img, video { max-width: 100%; display: block; }
.hidden { display: none !important; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ── PORTÓN ── */
.gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(201,147,58,0.14), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(201,147,58,0.10), transparent 60%),
    var(--bg);
}

.gate-panel {
  width: 100%;
  max-width: 620px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 48px 48px 40px;
  box-shadow: 0 24px 60px rgba(10,10,10,0.08);
}

.gate-brand {
  font-family: var(--font-headline);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 28px;
}
.gate-brand span, .logo span { color: var(--gold); }

.gate-title {
  font-family: var(--font-headline);
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.15;
  margin-bottom: 14px;
}

.gate-sub { color: var(--muted-fg); font-size: 16px; line-height: 1.6; margin-bottom: 18px; }

.gate-bullets { list-style: none; margin-bottom: 30px; }
.gate-bullets li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 8px;
  font-size: 15px;
}
.gate-bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.gate-form { border-top: 1px solid var(--border); padding-top: 26px; }
.gate-form-title { font-weight: 700; font-size: 15px; margin-bottom: 16px; }

.field { margin-bottom: 14px; flex: 1; }
.field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-fg);
  margin-bottom: 6px;
}
.field input, .field textarea, .field select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--black);
  outline: none;
  transition: border-color 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); }

.field-row { display: flex; gap: 14px; }
@media (max-width: 560px) { .field-row { flex-direction: column; gap: 0; } }

.gate-error { color: var(--error); font-size: 14px; min-height: 20px; margin-bottom: 8px; }

.btn-gold {
  display: inline-block;
  width: 100%;
  text-align: center;
  background: var(--gold);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  border-radius: 8px;
  padding: 15px 24px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-gold:hover { background: var(--gold-dark); }
.btn-gold:disabled { opacity: 0.6; cursor: wait; }

.gate-note { font-size: 12px; color: var(--muted-fg); margin-top: 14px; text-align: center; }

/* ── HEADER ── */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; height: 64px; }
.logo {
  font-family: var(--font-headline);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-right: 48px;
  white-space: nowrap;
}
nav { display: flex; align-items: center; gap: 32px; flex: 1; }
nav a {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(10,10,10,0.55);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
nav a:hover { color: var(--gold); border-color: var(--gold); }
.header-right { margin-left: auto; }
.welcome { font-size: 13px; color: var(--muted-fg); }

/* ── SECCIONES ── */
.kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.section-title { font-family: var(--font-headline); font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 12px; }
.section-sub { color: var(--muted-fg); font-size: 16px; line-height: 1.6; max-width: 640px; }

.propuesta { padding: 72px 0 56px; }
.video-wrap {
  margin-top: 32px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--black);
  box-shadow: 0 20px 50px rgba(10,10,10,0.15);
}
.video-wrap video { width: 100%; max-height: 70vh; }

.catalogo { padding: 40px 0 90px; }

.cat-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 34px; }
.cat-filters button {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 9px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  color: var(--muted-fg);
  cursor: pointer;
  transition: all 0.2s;
}
.cat-filters button:hover { border-color: var(--gold); color: var(--gold); }
.cat-filters button.on { background: var(--black); border-color: var(--black); color: var(--white); }

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

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(10,10,10,0.1); }

.card-img {
  aspect-ratio: 1;
  background: var(--muted);
  overflow: hidden;
  position: relative;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-img .noimg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted-fg); font-size: 13px;
}
.card-video-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(10,10,10,0.72);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.card-body { padding: 16px 18px 18px; }
.card-cat { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.card-name { font-family: var(--font-headline); font-size: 18px; margin-bottom: 6px; }
.card-price { font-size: 16px; font-weight: 700; }
.card-price small { font-weight: 400; color: var(--muted-fg); }

.grid-empty { color: var(--muted-fg); padding: 40px 0; text-align: center; }

footer { border-top: 1px solid var(--border); padding: 36px 0; background: var(--white); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-inner p { font-size: 13px; color: var(--muted-fg); }

.wa-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(0,0,0,0.25);
  z-index: 60;
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* ── MODAL PRODUCTO ── */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10,10,10,0.6); backdrop-filter: blur(4px); }
.modal-panel {
  position: relative;
  background: var(--white);
  border-radius: 16px;
  max-width: 1020px;
  width: 100%;
  max-height: 92vh;
  overflow: auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
@media (max-width: 820px) { .modal-panel { grid-template-columns: 1fr; } }

.modal-close {
  position: absolute;
  top: 12px; right: 14px;
  z-index: 5;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(10,10,10,0.55);
  color: var(--white);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.modal-media { padding: 18px; }
.m-main {
  border-radius: 10px;
  overflow: hidden;
  background: var(--muted);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.m-main img, .m-main video { width: 100%; height: 100%; object-fit: contain; }

.m-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.m-thumbs .thumb {
  width: 62px; height: 62px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: var(--muted);
  padding: 0;
  position: relative;
}
.m-thumbs .thumb.on { border-color: var(--gold); }
.m-thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; }
.m-thumbs .thumb .vid {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--black); color: var(--white); font-size: 18px;
}

.modal-info { padding: 34px 30px 30px; }
.m-category { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.modal-info h3 { font-family: var(--font-headline); font-size: 26px; margin-bottom: 4px; }
.m-code { font-size: 12px; color: var(--muted-fg); margin-bottom: 14px; }
.m-desc { font-size: 15px; line-height: 1.6; color: #444; margin-bottom: 18px; white-space: pre-line; }

.m-price { margin-bottom: 20px; }
.m-price .amount { font-size: 28px; font-weight: 700; }
.m-price .note, .m-price .min { display: block; font-size: 13px; color: var(--muted-fg); margin-top: 2px; }

.m-specs { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.m-specs td { padding: 8px 0; font-size: 14px; border-bottom: 1px solid var(--border); }
.m-specs td:first-child { font-weight: 700; color: var(--muted-fg); width: 42%; padding-right: 12px; }

.modal-info .btn-gold { width: 100%; }
