/* ═══════════════════════════════════════════
   REINO PARRILLA — style.css
   ═══════════════════════════════════════════ */

:root {
  --bg:    #0b0c10;
  --bg2:   #111111;
  --bg3:   #1a1a1a;
  --cream: #f0e8d8;
  --gold:  #c9a84c;
  --gold2: #e8d07a;
  --ember: #e84c0b;
  --green: #25d366;
  --green2:#1db954;
  --red:   #8B0000;
  --border:#2a2a2a;
  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'Inter', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── SCROLL PROGRESS BAR ── */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 2px;
  background: var(--ember);
  box-shadow: 0 0 8px var(--ember);
  z-index: 1000;
  transition: width 0.1s linear;
}

/* ── EMBER CANVAS ── */
#ember-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* ── NAVBAR ── */
nav {
  position: fixed;
  top: 0; width: 100%;
  z-index: 40;
  background: rgba(11,12,16,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.nav-logo:hover { color: var(--gold2); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--ember); }

.btn-wa-nav {
  padding: 0.5rem 1.25rem;
  background: var(--green);
  color: #fff;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  transition: background 0.2s;
}
.btn-wa-nav:hover { background: var(--green2); color: #fff; }

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 0.5rem 1.5rem 1rem;
}
.mobile-menu a {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu .btn-wa-nav { margin-top: 0.75rem; text-align: center; display: block; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 64px;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11,12,16,0.25) 0%, rgba(11,12,16,0.55) 50%, var(--bg) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 2rem;
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  border: 1px solid rgba(201,168,76,0.35);
  background: rgba(201,168,76,0.1);
  backdrop-filter: blur(6px);
}

.hero-badge span {
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.06em;
  font-size: 0.9rem;
}

#countdown {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.05em;
}

.cd-unit { text-align: center; }
.cd-label {
  display: block;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  color: rgba(240,232,216,0.5);
  font-weight: 400;
  margin-top: 2px;
}
.cd-sep { padding-top: 4px; color: var(--gold); }

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 1.25rem;
  background: linear-gradient(to bottom, var(--cream) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.05rem;
  color: rgba(240,232,216,0.75);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--gold);
  color: var(--bg);
  font-weight: 700;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--gold2); transform: scale(1.04); }

.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.2s;
}
.btn-wa:hover { background: var(--green2); transform: scale(1.04); color: #fff; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border: 1px solid rgba(201,168,76,0.5);
  color: var(--gold);
  font-weight: 700;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.2s;
}
.btn-outline:hover { background: rgba(201,168,76,0.1); transform: scale(1.04); }

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: rgba(240,232,216,0.3);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}
.scroll-hint svg { width: 16px; height: 16px; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ── FADE-IN ON SCROLL ── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}
.fade-in.d1 { transition-delay: 0.1s; }
.fade-in.d2 { transition-delay: 0.2s; }
.fade-in.d3 { transition-delay: 0.3s; }
.fade-in.d4 { transition-delay: 0.4s; }

/* ── SECTION SHARED ── */
section { position: relative; }
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section-label {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: monospace;
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
}

/* ── EL REINO ── */
.reino {
  padding: 6rem 0;
  background: var(--cream);
  color: var(--bg);
}

.reino-intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 4rem;
}
.reino-intro .flame-icon {
  width: 48px; height: 48px;
  color: var(--red);
  margin: 0 auto 1.5rem;
}
.reino-intro .section-title { color: var(--bg); margin-bottom: 1.5rem; }
.reino-intro blockquote {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  color: #444;
  line-height: 1.7;
}

.reino-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
@media (max-width: 768px) { .reino-cards { grid-template-columns: 1fr; } }

.reino-card {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 6px;
  padding: 2rem;
  text-align: center;
  transition: background 0.2s;
}
.reino-card:hover { background: #fff; }
.reino-card .card-icon {
  width: 40px; height: 40px;
  color: var(--red);
  margin: 0 auto 1rem;
}
.reino-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--bg); }
.reino-card p { font-size: 0.9rem; color: #555; line-height: 1.6; }

.trust-badges {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 0.75rem;
  max-width: 720px;
  margin: 0 auto;
}
@media (max-width: 600px) { .trust-badges { grid-template-columns: repeat(2,1fr); } }

.badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.75rem;
  background: rgba(139,0,0,0.08);
  border: 1px solid rgba(139,0,0,0.18);
  border-radius: 6px;
}
.badge strong {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bg);
  line-height: 1.3;
}
.badge small { font-size: 0.6rem; color: #777; margin-top: 3px; }

/* ── CATALOG ── */
.catalog {
  padding: 6rem 0;
  border-top: 1px solid var(--border);
}

.catalog-header { text-align: center; margin-bottom: 3rem; }
.catalog-header .section-title { color: var(--cream); margin-bottom: 0.75rem; }
.catalog-header p { color: rgba(240,232,216,0.55); max-width: 520px; margin: 0 auto 1.5rem; font-size: 0.9rem; }

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.4rem 1rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(240,232,216,0.6);
  transition: all 0.2s;
}
.filter-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.filter-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 560px)  { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px)  { .product-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .product-grid { grid-template-columns: repeat(5, 1fr); } }

.product-card {
  background: rgba(17,17,17,0.85);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.3s;
}
.product-card:hover {
  border-color: rgba(201,168,76,0.6);
  transform: translateY(-3px);
}

.product-card .img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg3);
  overflow: hidden;
}
.product-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.product-card:hover img { transform: scale(1.06); }
.product-card .img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.product-card:hover .img-overlay { opacity: 1; }

.product-card .card-body {
  padding: 0.875rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card .card-id {
  font-family: monospace;
  font-size: 0.6rem;
  color: rgba(201,168,76,0.55);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.25rem;
}
.product-card .card-name {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--cream);
  line-height: 1.4;
  flex: 1;
  margin-bottom: 0.75rem;
}
.product-card .card-cta {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.2s;
  margin-top: auto;
}
.product-card .card-cta:hover { color: var(--ember); }
.product-card.card-hidden { display: none; }

.load-more-sentinel {
  padding: 2rem;
  text-align: center;
  color: rgba(240,232,216,0.3);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* ── COMO FUNCIONA ── */
.como-funciona {
  padding: 6rem 0;
  background: rgba(17,17,17,0.9);
  border-top: 1px solid var(--border);
}
.como-funciona .section-title { color: var(--cream); text-align: center; margin-bottom: 4rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 2rem;
  position: relative;
}
@media (max-width: 768px) { .steps { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

.steps::before {
  content: '';
  position: absolute;
  top: 32px; left: 0;
  width: 100%; height: 1px;
  background: var(--border);
}
@media (max-width: 768px) { .steps::before { display: none; } }

.step {
  text-align: center;
  position: relative;
}
.step-num {
  width: 64px; height: 64px;
  margin: 0 auto 1.5rem;
  background: var(--bg);
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  box-shadow: 0 0 20px rgba(201,168,76,0.2);
}
.step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ember);
  margin-bottom: 0.5rem;
}
.step p { font-size: 0.85rem; color: rgba(240,232,216,0.65); line-height: 1.6; }

/* ── PAGOS ── */
.pagos {
  padding: 4rem 0;
  background: rgba(11,12,16,0.95);
  border-top: 1px solid var(--border);
  text-align: center;
}
.pagos h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 2rem;
}
.metodos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.metodo {
  padding: 0.625rem 1.25rem;
  border: 1px solid var(--border);
  background: var(--bg2);
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(240,232,216,0.75);
  transition: border-color 0.2s;
}
.metodo:hover { border-color: rgba(201,168,76,0.4); }

/* ── TERRITORIO ── */
.territorio {
  padding: 6rem 0;
  background: linear-gradient(to bottom, rgba(17,17,17,0.9), var(--bg));
  border-top: 1px solid var(--border);
  text-align: center;
}
.territorio .section-title { color: var(--gold); margin-bottom: 1rem; }
.territorio > .container > p {
  font-size: 1rem;
  color: rgba(240,232,216,0.7);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.territorio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}
@media (max-width: 520px) { .territorio-grid { grid-template-columns: 1fr; } }

.territorio-card {
  background: rgba(17,17,17,0.8);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
}
.dir-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  text-align: left;
}
.dir-card svg { color: var(--ember); width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.dir-card p { font-size: 0.85rem; font-weight: 600; color: var(--cream); }
.dir-card small { font-size: 0.75rem; color: rgba(240,232,216,0.5); }

.phones-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.phone-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
  transition: color 0.2s;
}
.phone-link:hover { color: var(--green); }
.phone-link svg { color: var(--green); width: 16px; height: 16px; flex-shrink: 0; }
.phone-link .ph-label { font-size: 0.75rem; font-weight: 700; color: var(--cream); display: block; }
.phone-link .ph-num { font-size: 0.7rem; color: rgba(240,232,216,0.5); display: block; }

.territorio-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ── FOOTER ── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  text-align: center;
}
.footer-quote {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--gold);
  font-style: italic;
  margin-bottom: 1.25rem;
}
.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 1.5rem;
  font-size: 0.72rem;
  color: rgba(240,232,216,0.4);
  font-family: monospace;
  margin-bottom: 1rem;
}
.footer-contacts a:hover { color: var(--green); }
.footer-sep { color: rgba(240,232,216,0.2); }
.footer-copy { font-size: 0.65rem; color: rgba(240,232,216,0.22); font-family: monospace; }

/* ── FLOATING WA ── */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  width: 56px; height: 56px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.12); color: #fff; }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }

/* ─────────────────────────────
   CATÁLOGO PDF — catalogo.html
───────────────────────────────*/
.cat-page {
  background: #fff;
  color: #111;
  font-family: var(--sans);
}

.cat-header {
  background: var(--bg);
  color: var(--cream);
  padding: 3rem 2rem;
  text-align: center;
}
.cat-header h1 {
  font-family: var(--serif);
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.cat-header p { font-size: 0.9rem; color: rgba(240,232,216,0.6); }
.cat-header .print-btn {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  background: var(--gold);
  color: var(--bg);
  font-weight: 700;
  border-radius: 4px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
}
.cat-header .print-btn:hover { background: var(--gold2); }

.cat-body { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }

.cat-section-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--bg);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.5rem;
  margin: 2.5rem 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.cat-section-title .cat-icon { font-size: 1.25rem; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 600px) { .cat-grid { grid-template-columns: repeat(2,1fr); } }

.cat-item {
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  background: #fafafa;
}
.cat-item img { width:100%; aspect-ratio:1; object-fit:cover; }
.cat-item .cat-item-body { padding: 0.5rem 0.625rem; }
.cat-item .cat-item-id { font-family: monospace; font-size: 0.6rem; color: #aaa; text-transform: uppercase; }
.cat-item .cat-item-name { font-size: 0.75rem; font-weight: 600; color: #222; line-height: 1.35; margin-top: 2px; }
.cat-item .cat-item-cta {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--green);
  font-family: monospace;
}

.cat-footer-back {
  background: var(--bg);
  color: var(--cream);
  text-align: center;
  padding: 2.5rem;
  margin-top: 3rem;
  border-radius: 8px;
}
.cat-footer-back h2 {
  font-family: var(--serif);
  color: var(--gold);
  margin-bottom: 0.5rem;
  font-style: italic;
}
.cat-footer-back p { font-size: 0.85rem; color: rgba(240,232,216,0.6); margin-bottom: 0.25rem; }

@media print {
  .cat-header .print-btn { display: none; }
  .cat-item { break-inside: avoid; }
  .cat-section-title { break-before: auto; }
}
