/* =====================================================
   American Fyre — Catálogo
   Paleta: fuego oscuro (negro carbón + rojo ascua + crema)
   ===================================================== */
:root {
  --bg:        #0e0d0c;
  --bg-alt:    #161412;
  --surface:   #1d1a17;
  --paper:     #faf6ee;
  --paper-2:   #efe7d6;
  --ink:       #0e0d0c;
  --ink-soft:  #4a443e;
  --line:      #d8cfbe;
  --line-dark: #2a2520;
  --primary:   #d83a1c;       /* rojo ascua */
  --primary-d: #a82911;
  --primary-l: #f15a39;
  --accent:    #f5b400;       /* dorado chispa */
  --ok:        #2a9d63;
  --err:       #c0392b;
  --radius:    14px;
  --shadow-1:  0 1px 2px rgba(0,0,0,.06), 0 4px 12px rgba(20,15,10,.08);
  --shadow-2:  0 10px 30px rgba(20,15,10,.18);
  --container: 1200px;
  --t:         220ms cubic-bezier(.4,.0,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-d); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--primary); }
h1, h2, h3, h4 {
  font-family: 'Bebas Neue', 'DM Sans', sans-serif;
  letter-spacing: .02em;
  line-height: 1.1;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.4rem); }
h2 { font-size: clamp(1.6rem, 2vw + 1rem, 2.2rem); }
h3 { font-size: 1.25rem; font-family: 'DM Sans', sans-serif; font-weight: 700; letter-spacing: 0; }
p  { margin: 0 0 1em; }
.muted { color: var(--ink-soft); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .25em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 1rem;
}
.container { width: 92%; max-width: var(--container); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 6rem) 0; }
.section--dark { background: var(--bg); color: var(--paper); }
.section--dark h2 { color: var(--paper); }
.section--alt  { background: var(--paper-2); }
.section__head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section__head p { color: var(--ink-soft); font-size: 1.05rem; }
.section__head--light p { color: rgba(250,246,238,.7); }
.list-clean { list-style: none; padding: 0; margin: 0; }

/* ----- Botones ----- */
.btn {
  --bg: var(--ink);
  --fg: var(--paper);
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  border: 2px solid var(--bg);
  cursor: pointer;
  transition: transform var(--t), background-color var(--t), color var(--t), border-color var(--t), box-shadow var(--t);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.btn--primary { --bg: var(--primary); --fg: #fff; }
.btn--primary:hover { --bg: var(--primary-d); color: #fff; }
.btn--ghost   { --bg: transparent; --fg: currentColor; border-color: currentColor; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-ghost {
  display: inline-block;
  padding: .55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .85rem;
  color: inherit;
}
.btn-ghost:hover { background: var(--paper-2); }

.link-arrow {
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--primary-d);
  display: inline-flex; align-items: center; gap: .35rem;
}
.link-arrow:hover { gap: .65rem; }

.badge {
  display: inline-block;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-weight: 700;
  color: var(--primary-d);
  background: rgba(216,58,28,.08);
  padding: .25rem .65rem;
  border-radius: 999px;
  margin-bottom: .75rem;
}

/* ----- Header ----- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,246,238,.92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--ink);
  font-weight: 700;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: .04em;
}
.brand__mark {
  width: 32px; height: 32px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 65%, var(--accent) 0%, var(--primary) 40%, var(--primary-d) 80%, #4b0e02 100%);
  box-shadow: 0 0 0 2px rgba(216,58,28,.18), inset 0 -4px 8px rgba(0,0,0,.3);
  position: relative;
}
.brand__mark::after {
  content: "";
  position: absolute; inset: 22% 30% 8% 28%;
  background: radial-gradient(ellipse at center, #fff 0%, #ffe18a 30%, transparent 70%);
  filter: blur(2px);
  border-radius: 50%;
}
.brand__name span { color: var(--primary); }

.site-nav { display: flex; gap: 1.6rem; }
.site-nav a {
  color: var(--ink);
  font-weight: 500;
  position: relative;
  padding: .25rem 0;
}
.site-nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px; background: var(--primary);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t);
}
.site-nav a:hover::after { transform: scaleX(1); }

.search-mini {
  display: flex; align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  overflow: hidden;
}
.search-mini input {
  border: 0; background: transparent;
  padding: .5rem 1rem; font: inherit;
  width: 200px; outline: none;
}
.search-mini button {
  border: 0; background: var(--ink); color: var(--paper);
  padding: 0 .9rem; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--t);
}
.search-mini button:hover { background: var(--primary); }

.nav-toggle {
  display: none;
  background: transparent; border: 0;
  width: 38px; height: 38px;
  flex-direction: column; justify-content: center; gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  transition: transform var(--t), opacity var(--t);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----- Hero ----- */
.hero {
  position: relative;
  background: var(--bg);
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(216,58,28,.5), transparent 50%),
    radial-gradient(circle at 20% 90%, rgba(245,180,0,.3), transparent 45%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.02) 0 2px, transparent 2px 14px),
    #0e0d0c;
  z-index: -1;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at bottom, rgba(216,58,28,.35), transparent 60%);
  pointer-events: none;
  z-index: -1;
}
.hero__content {
  padding: clamp(4rem, 12vw, 8rem) 0 clamp(3rem, 8vw, 6rem);
  max-width: 920px;
}
.hero__title {
  color: var(--paper);
  font-size: clamp(2.6rem, 6vw + .5rem, 5.5rem);
  margin-bottom: 1rem;
}
.hero__title::after { content: "."; color: var(--primary); }
.hero__sub {
  font-size: clamp(1rem, 1.2vw + .5rem, 1.3rem);
  color: rgba(250,246,238,.8);
  max-width: 600px;
}
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.hero__cta .btn--ghost { color: var(--paper); border-color: rgba(250,246,238,.4); }
.hero__cta .btn--ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.hero__badges {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-top: 4rem;
  border-top: 1px solid rgba(250,246,238,.12);
  padding-top: 2rem;
  max-width: 600px;
}
.hero__badges div { display: flex; flex-direction: column; }
.hero__badges strong {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.4rem;
  color: var(--accent);
  line-height: 1;
}
.hero__badges span { color: rgba(250,246,238,.7); font-size: .85rem; }

/* ----- Categorías ----- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.cat-card {
  position: relative;
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--ink);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: var(--primary);
}
.cat-card img {
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 500ms ease;
}
.cat-card:hover img { transform: scale(1.05); }
.cat-card__num {
  position: absolute; top: 1rem; left: 1rem;
  z-index: 2;
  background: rgba(14,13,12,.7);
  color: var(--paper);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  padding: .25rem .65rem;
  border-radius: 999px;
  letter-spacing: .1em;
}
.cat-card__body { padding: 1.25rem 1.25rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.cat-card__body h3 { margin-bottom: .35rem; }
.cat-card__body p { color: var(--ink-soft); font-size: .92rem; flex: 1; }
.cat-card__body .link-arrow { margin-top: .75rem; }

/* ----- Productos grid ----- */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.prod-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform var(--t), box-shadow var(--t);
}
.prod-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.prod-card__img { display: block; background: var(--paper-2); }
.prod-card__img img { aspect-ratio: 1/1; object-fit: cover; transition: transform 500ms ease; }
.prod-card:hover .prod-card__img img { transform: scale(1.04); }
.prod-card__body { padding: 1.1rem; flex: 1; display: flex; flex-direction: column; }
.prod-card__body h3 { font-size: 1.05rem; margin: .25rem 0 .5rem; }
.prod-card__body h3 a { color: var(--ink); }
.prod-card__body h3 a:hover { color: var(--primary); }
.prod-card__body p { color: var(--ink-soft); font-size: .9rem; flex: 1; }
.prod-card__foot {
  margin-top: .75rem;
  display: flex; align-items: center; justify-content: space-between;
}

/* ----- Servicios ----- */
.serv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.serv-grid--big { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.serv-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  display: flex; flex-direction: column;
  transition: transform var(--t), border-color var(--t);
}
.serv-card:hover { transform: translateY(-3px); border-color: var(--primary); }
.serv-card--big { padding: 2rem; }
.serv-card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-d));
  color: #fff;
  display: grid; place-items: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  box-shadow: 0 6px 16px rgba(216,58,28,.3);
}
.serv-card h2, .serv-card h3 { font-size: 1.15rem; font-family: 'DM Sans', sans-serif; font-weight: 700; }
.serv-card p { color: var(--ink-soft); }

/* ----- About ----- */
.about__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about__highlight {
  background: var(--ink);
  color: var(--paper);
  padding: 2rem;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.about__highlight::before {
  content: "";
  position: absolute; right: -40px; bottom: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--primary), transparent 70%);
  opacity: .5;
}
.about__highlight ul { list-style: none; padding: 0; margin: 0; position: relative; }
.about__highlight li {
  padding: .75rem 0 .75rem 2rem;
  border-bottom: 1px solid rgba(250,246,238,.1);
  position: relative;
}
.about__highlight li:last-child { border: 0; }
.about__highlight li::before {
  content: "✓";
  position: absolute; left: 0; top: .8rem;
  color: var(--accent);
  font-weight: 700;
}

/* ----- Page head ----- */
.page-head {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  padding: clamp(2rem, 5vw, 4rem) 0;
}
.page-head--slim { padding: 1rem 0; }
.page-head h1 { margin: 0 0 .5rem; }
.page-head .lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 700px; }
.crumbs {
  font-size: .85rem;
  color: var(--ink-soft);
  margin-bottom: .75rem;
}
.crumbs a { color: var(--ink-soft); }
.crumbs a:hover { color: var(--primary); }
.crumbs span { margin: 0 .25rem; }
.search-bar {
  display: flex; gap: .5rem;
  max-width: 600px;
  margin-top: 1.5rem;
}
.search-bar input {
  flex: 1;
  padding: .8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  background: #fff;
  outline: none;
}
.search-bar input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(216,58,28,.15); }

.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
}

/* ----- Producto detalle ----- */
.product-detail {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.product-detail__media img {
  width: 100%;
  border-radius: var(--radius);
  background: var(--paper-2);
  aspect-ratio: 1/1;
  object-fit: cover;
  border: 1px solid var(--line);
}
.product-detail__info h1 { margin: .35rem 0 .5rem; }
.price-box {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: var(--paper-2);
  border-left: 4px solid var(--primary);
  border-radius: 4px;
}
.price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  color: var(--primary-d);
  letter-spacing: .05em;
}
.price--quote { color: var(--ink); }
.cta-row { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 2rem; }
.product-desc { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.product-desc h2 { font-size: 1.15rem; font-family: 'DM Sans', sans-serif; font-weight: 700; }

/* ----- Contacto ----- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
}
.contact-info h2, .contact-form h2 { font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 1.2rem; margin-bottom: 1.25rem; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: .75rem 0; border-bottom: 1px solid var(--line); }
.contact-list strong { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .15em; color: var(--ink-soft); margin-bottom: .15rem; }

.contact-form form { display: grid; gap: 1rem; }
.contact-form label { display: flex; flex-direction: column; font-size: .85rem; font-weight: 600; color: var(--ink-soft); gap: .35rem; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: .8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(216,58,28,.12);
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form button { justify-self: start; }

.alert { padding: 1rem 1.25rem; border-radius: 10px; margin-bottom: 1rem; }
.alert--ok  { background: #e7f6ee; color: #1b5e3c; border: 1px solid #b8e0c8; }
.alert--err { background: #fbe9e7; color: #962a1a; border: 1px solid #f1c0b9; }

/* ----- Footer ----- */
.site-footer {
  background: var(--bg);
  color: rgba(250,246,238,.75);
  margin-top: 4rem;
}
.site-footer h4 {
  color: var(--paper);
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding: 4rem 0 2.5rem;
}
.site-footer .list-clean li { padding: .35rem 0; }
.site-footer a { color: rgba(250,246,238,.75); }
.site-footer a:hover { color: var(--accent); }
.site-footer__bottom {
  border-top: 1px solid rgba(250,246,238,.08);
  padding: 1.25rem 0;
  font-size: .85rem;
}
.brand--footer .brand__name,
.brand--footer { color: var(--paper); }

/* ----- WhatsApp FAB ----- */
.fab-whatsapp {
  position: fixed; right: 1.25rem; bottom: 1.25rem;
  width: 56px; height: 56px;
  background: #25d366; color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.4);
  z-index: 60;
  transition: transform var(--t);
}
.fab-whatsapp:hover { transform: scale(1.08); color: #fff; }

/* ----- Responsive ----- */
@media (max-width: 980px) {
  .about__grid,
  .product-detail,
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .site-header__inner { grid-template-columns: auto auto; }
  .search-mini { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: 64px 0 0 0;
    background: var(--paper);
    flex-direction: column;
    padding: 2rem;
    gap: 1rem;
    transform: translateX(100%);
    transition: transform var(--t);
    border-top: 1px solid var(--line);
  }
  .site-nav.is-open { transform: translateX(0); }
  .site-nav a { font-size: 1.4rem; font-family: 'Bebas Neue', sans-serif; letter-spacing: .04em; }
  .hero__badges { grid-template-columns: repeat(3, 1fr); gap: .5rem; }
  .hero__badges strong { font-size: 1.6rem; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 0 2rem; }
}

/* ----- Animaciones de entrada ----- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 600ms ease, transform 600ms cubic-bezier(.2,.7,.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
