/* ============================================================
   Fuego Amazónico — estilos
   ============================================================ */

:root {
  /* Marca — tomados del logo oficial */
  --ink:          #0B0A08;
  --bg:           #14110D;
  --bg-alt:       #1B1611;
  --panel:        #221C15;
  --border:       rgba(243, 236, 221, 0.10);
  --border-strong:rgba(243, 236, 221, 0.18);

  --cream:        #F4ECDC;
  --cream-dim:    #C7BCA7;
  --cream-faint:  #8C8071;

  --flame-red:    #E0331F;
  --flame-orange: #EE7C1C;
  --flame-gold:   #F0AA3E;
  --leaf-green:   #4C9A44;

  --gradient-flame: linear-gradient(135deg, var(--flame-red) 0%, var(--flame-orange) 55%, var(--flame-gold) 100%);
  --gradient-flame-soft: linear-gradient(180deg, rgba(224,51,31,0.18), rgba(238,124,28,0.02));

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Instrument Sans", -apple-system, "Segoe UI", sans-serif;

  --wrap: 1160px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;

  --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

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

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--flame-orange);
  color: var(--ink);
  padding: 10px 16px;
  z-index: 999;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

a { color: inherit; text-decoration: none; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--flame-orange);
  margin: 0 0 14px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.08;
  margin: 0 0 18px;
  color: var(--cream);
  letter-spacing: -0.01em;
}

.section-lede {
  max-width: 560px;
  color: var(--cream-dim);
  font-size: 1.05rem;
  margin: 0 0 44px;
}

/* ============ botones ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 999px;
  font-weight: 600;
  font-family: var(--font-body);
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-large { padding: 15px 28px; font-size: 1rem; }
.btn-small { padding: 8px 16px; font-size: 0.84rem; }

.btn-whatsapp {
  background: var(--gradient-flame);
  color: var(--ink);
  box-shadow: 0 10px 30px -12px rgba(224, 51, 31, 0.55);
}
.btn-whatsapp:hover { box-shadow: 0 14px 34px -10px rgba(238, 124, 28, 0.65); }

.btn-ghost {
  border-color: var(--border-strong);
  color: var(--cream);
  background: rgba(244, 236, 220, 0.03);
}
.btn-ghost:hover { border-color: var(--flame-orange); background: rgba(238, 124, 28, 0.08); }

/* ============ header ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  padding: 12px 0;
  background: rgba(11, 10, 8, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 30px -20px rgba(0,0,0,0.6);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { border-radius: 50%; flex-shrink: 0; }
.brand-word { display: flex; flex-direction: column; line-height: 1.15; }
.brand-word-main {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--cream);
  letter-spacing: 0.01em;
}
.brand-word-sub {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--flame-orange);
}

.primary-nav { display: flex; align-items: center; gap: 30px; }
.primary-nav a:not(.btn) {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--cream-dim);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s;
}
.primary-nav a:not(.btn):hover { color: var(--cream); }
.primary-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--gradient-flame);
  transition: right 0.3s var(--ease);
}
.primary-nav a:not(.btn):hover::after { right: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--cream); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }

/* ============ hero ============ */
.hero {
  position: relative;
  padding: 168px 0 120px;
  overflow: hidden;
  isolation: isolate;
}

.hero-atmosphere { position: absolute; inset: 0; z-index: -1; }
.hero-atmosphere::before,
.hero-atmosphere::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}
.hero-atmosphere::before {
  width: 620px; height: 620px;
  background: radial-gradient(circle, var(--flame-red), transparent 70%);
  top: -220px; left: -160px;
}
.hero-atmosphere::after {
  width: 560px; height: 560px;
  background: radial-gradient(circle, var(--flame-orange), transparent 70%);
  bottom: -260px; right: -140px;
  opacity: 0.4;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 68% 55%;
  opacity: 0.55;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, var(--bg) 0%, var(--bg) 28%, rgba(20, 17, 13, 0.75) 46%, rgba(20, 17, 13, 0.25) 68%, rgba(20,17,13,0.15) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 22%, transparent 78%, var(--bg) 100%);
}

.hero-mark {
  position: absolute;
  top: 50%; right: -6%;
  width: 640px; height: auto;
  transform: translateY(-50%) rotate(8deg);
  opacity: 0.07;
  filter: grayscale(0.2);
  pointer-events: none;
}

.ember-field { position: absolute; inset: 0; overflow: hidden; }
.ember {
  position: absolute;
  bottom: -20px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--flame-gold);
  box-shadow: 0 0 8px 2px rgba(240, 170, 62, 0.7);
  animation: ember-rise linear infinite;
  opacity: 0;
}
@keyframes ember-rise {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 0.85; }
  90% { opacity: 0.4; }
  100% { transform: translateY(-620px) translateX(var(--drift, 30px)); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ember { display: none; }
}

.hero-inner { position: relative; text-align: left; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  line-height: 1.03;
  letter-spacing: -0.015em;
  max-width: 700px;
  margin: 0 0 22px;
  color: var(--cream);
}
.hero-title em {
  font-style: italic;
  font-weight: 500;
  background: var(--gradient-flame);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 1.18rem;
  color: var(--cream-dim);
  max-width: 480px;
  margin: 0 0 38px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 46px; }

.values-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--cream-faint);
  letter-spacing: 0.02em;
}
.values-bar i { color: var(--flame-orange); font-style: normal; opacity: 0.7; }

/* ============ secciones genéricas ============ */
.section { padding: 108px 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--ink); }

/* ============ productos ============ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.product-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
  position: relative;
  overflow: hidden;
  transition: border-color 0.35s, transform 0.35s var(--ease);
}
.product-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-flame);
  opacity: 0;
  transition: opacity 0.35s;
  z-index: 2;
}
.product-card:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.product-card:hover::before { opacity: 1; }

.product-photo {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.product-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--panel) 0%, rgba(34, 28, 21, 0) 55%);
}
.product-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.product-card:hover .product-photo img { transform: scale(1.05); }

.product-card-top { padding: 26px 34px 0; }

.product-emblem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--gradient-flame-soft);
  color: var(--flame-orange);
  margin: -56px 0 16px;
  position: relative;
  border: 3px solid var(--panel);
}

.product-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 10px;
}
.product-card-top p { color: var(--cream-dim); margin: 0 0 26px; max-width: 40ch; }

.product-presentations { list-style: none; margin: 0; padding: 20px 34px 30px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 14px; }
.product-presentations li { display: flex; align-items: center; gap: 14px; }
.pp-name { font-weight: 600; min-width: 56px; }
.pp-price { color: var(--cream-dim); font-variant-numeric: tabular-nums; flex: 1; }
.pp-order {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--flame-gold);
  border: 1px solid rgba(240, 170, 62, 0.35);
  border-radius: 999px;
  padding: 6px 14px;
  transition: background 0.25s, color 0.25s;
}
.pp-order:hover { background: var(--flame-orange); color: var(--ink); border-color: var(--flame-orange); }

/* ============ cajas parrilleras ============ */
.box-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.box-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: transform 0.35s var(--ease), border-color 0.35s;
}
.box-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.box-card:nth-child(odd) { margin-top: 0; }
.box-card:nth-child(even) { margin-top: 22px; }

.box-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-faint);
}
.box-card h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; margin: 2px 0 2px; }
.box-card p { color: var(--cream-dim); font-size: 0.92rem; margin: 0 0 16px; flex: 1; }

.box-card-featured { border-color: rgba(238, 124, 28, 0.5); box-shadow: 0 18px 40px -24px rgba(238, 124, 28, 0.5); }
.box-badge {
  position: absolute;
  top: -12px; left: 20px;
  background: var(--gradient-flame);
  color: var(--ink);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.box-card-premium { border-color: rgba(240, 170, 62, 0.45); background: linear-gradient(160deg, var(--panel), #2A2013); }
.box-card-premium h3 { color: var(--flame-gold); }

.box-cta {
  align-self: flex-start;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cream);
  border-bottom: 1px solid var(--flame-orange);
  padding-bottom: 2px;
  transition: color 0.25s;
}
.box-cta:hover { color: var(--flame-orange); }

/* ============ pasos / experiencia ============ */
.experiencia-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 36px;
  align-items: start;
}
.experiencia-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.experiencia-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, transparent 55%, rgba(11, 10, 8, 0.5) 100%);
}
.experiencia-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}
@media (min-width: 981px) {
  .experiencia-photo::after {
    background:
      linear-gradient(200deg, transparent 60%, rgba(11, 10, 8, 0.45) 100%),
      linear-gradient(90deg, transparent 60%, var(--bg) 102%);
  }
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.steps li { position: relative; padding-top: 8px; }
.steps li:nth-child(2) { margin-top: 0; }
.steps li:nth-child(3) { margin-top: 28px; }
.steps li:nth-child(4) { margin-top: 28px; }
.step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--border-strong);
  margin-bottom: 6px;
}
.steps h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin: 0 0 8px; }
.steps p { color: var(--cream-dim); font-size: 0.92rem; margin: 0; }

/* ============ nosotros ============ */
.nosotros-section { position: relative; overflow: hidden; isolation: isolate; }
.nosotros-atmosphere { position: absolute; inset: 0; z-index: -1; }
.nosotros-photo {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 65%;
  opacity: 0.4;
}
.nosotros-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, var(--ink) 0%, var(--ink) 30%, rgba(11, 10, 8, 0.7) 55%, rgba(11, 10, 8, 0.35) 100%),
    linear-gradient(0deg, var(--ink) 0%, transparent 20%, transparent 80%, var(--ink) 100%);
}
.nosotros-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
}
.nosotros-copy { color: var(--cream-dim); font-size: 1.02rem; max-width: 46ch; margin: 0 0 18px; }

.value-list { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.value-list li { padding-left: 20px; border-left: 2px solid var(--flame-orange); display: flex; flex-direction: column; gap: 4px; }
.value-list strong { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.value-list span { color: var(--cream-dim); font-size: 0.92rem; }

/* ============ contacto ============ */
.contact { text-align: center; }
.contact-inner { display: flex; flex-direction: column; align-items: center; }
.contact-mark { border-radius: 50%; margin-bottom: 24px; }
.contact .section-lede { margin-left: auto; margin-right: auto; }
.contact-zone { margin-top: 18px; color: var(--cream-faint); font-size: 0.92rem; }

/* ============ footer ============ */
.site-footer { background: var(--ink); padding: 56px 0 34px; border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.brand-footer { justify-content: center; }
.footer-tagline { color: var(--cream-dim); font-family: var(--font-display); font-style: italic; font-size: 1.02rem; max-width: 460px; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-nav a { color: var(--cream-dim); font-size: 0.9rem; }
.footer-nav a:hover { color: var(--flame-orange); }
.footer-copy { color: var(--cream-faint); font-size: 0.8rem; margin-top: 10px; }

/* ============ reveal-on-scroll ============ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============ responsive ============ */
@media (max-width: 980px) {
  .box-grid { grid-template-columns: repeat(3, 1fr); }
  .box-card:nth-child(4), .box-card:nth-child(5) { margin-top: 0; }
  .experiencia-grid { grid-template-columns: 1fr; gap: 36px; }
  .experiencia-photo { aspect-ratio: 16 / 9; max-width: 560px; margin: 0 auto; }
  .nosotros-grid { grid-template-columns: 1fr; gap: 40px; }
  .value-list { margin-top: 0; }
}

@media (max-width: 760px) {
  .primary-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 86vw);
    background: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 26px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    border-left: 1px solid var(--border);
  }
  .primary-nav.is-open { transform: translateX(0); }
  .nav-toggle { display: flex; }

  .hero { padding: 128px 0 80px; }
  .hero-mark { display: none; }
  .product-grid { grid-template-columns: 1fr; }
  .box-grid { grid-template-columns: repeat(2, 1fr); }
  .box-card:nth-child(odd), .box-card:nth-child(even) { margin-top: 0; }
  .steps { grid-template-columns: 1fr; }
  .steps li:nth-child(2), .steps li:nth-child(3), .steps li:nth-child(4) { margin-top: 0; }
  .experiencia-photo { aspect-ratio: 4 / 3; }
  .section { padding: 76px 0; }
}

@media (max-width: 480px) {
  .box-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-large { justify-content: center; }
}
