/* Americana De Poleas — estilos */

:root {
  --bg: oklch(13% 0.012 260);
  --bg-alt: oklch(17% 0.015 260);
  --bg-card: oklch(19% 0.016 260);
  --line: oklch(30% 0.02 260);
  --red: oklch(53% 0.22 25);
  --red-dark: oklch(38% 0.19 25);
  --yellow: oklch(87% 0.19 95);
  --white: oklch(97% 0.004 260);
  --ink: oklch(16% 0.01 260);
  --muted: oklch(72% 0.02 260);
  --muted-2: oklch(58% 0.02 260);

  --font-display: "Barlow Condensed", sans-serif;
  --font-body: "Inter", sans-serif;

  --space-1: clamp(0.5rem, 0.45rem + 0.3vw, 0.75rem);
  --space-2: clamp(0.9rem, 0.8rem + 0.5vw, 1.25rem);
  --space-3: clamp(1.4rem, 1.2rem + 1vw, 2.2rem);
  --space-4: clamp(2rem, 1.6rem + 2vw, 3.5rem);
  --space-5: clamp(3rem, 2.2rem + 4vw, 6rem);

  --radius: 14px;
  --radius-sm: 8px;
  --container: 1280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: light) {
  :root { color-scheme: dark; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 0;
}

a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1rem;
  padding: 0.85em 1.6em;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease);
  text-decoration: none;
  min-height: 48px;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--yellow);
  color: var(--ink);
}
.btn-primary:hover { background: color-mix(in oklch, var(--yellow), white 15%); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: color-mix(in oklch, var(--white), transparent 65%);
}
.btn-outline:hover { border-color: var(--white); }
.btn-sm { font-size: 0.85rem; padding: 0.6em 1.1em; min-height: 40px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklch, var(--bg), transparent 6%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand img { height: 30px; width: auto; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.nav-desktop {
  display: none;
  gap: var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-desktop a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.15s var(--ease);
}
.nav-desktop a:hover { color: var(--white); }

.header-actions { display: flex; align-items: center; gap: var(--space-2); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--white);
}
.nav-toggle svg { width: 22px; height: 22px; }

.mobile-menu {
  position: fixed;
  inset: 64px 0 0 0;
  background: var(--bg);
  z-index: 49;
  padding: var(--space-3);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.mobile-menu.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-1); }
.mobile-menu a {
  display: block;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.6rem;
  text-transform: uppercase;
  padding: var(--space-1) 0;
  border-bottom: 1px solid var(--line);
  color: var(--white);
}
body.menu-open { overflow: hidden; }

@media (min-width: 860px) {
  .nav-desktop { display: flex; }
  .nav-toggle { display: none; }
}

/* Hero */
.hero {
  position: relative;
  min-height: 78svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--bg) 0%, transparent 45%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-block: var(--space-4) var(--space-4);
  max-width: 640px;
}
.hero-content::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -12vh -6vw -6vh -6vw;
  background: linear-gradient(
    180deg,
    transparent 0%,
    color-mix(in oklch, var(--bg), transparent 35%) 22%,
    color-mix(in oklch, var(--bg), transparent 4%) 55%,
    var(--bg) 100%
  );
  pointer-events: none;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--yellow);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-1);
}
.hero-kicker::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--red);
}
.hero h1 {
  font-size: clamp(2.4rem, 1.9rem + 3vw, 4.2rem);
  color: var(--white);
}
.hero h1 span { color: var(--yellow); }
.hero p {
  margin-top: var(--space-2);
  font-size: clamp(1rem, 0.94rem + 0.3vw, 1.15rem);
  color: var(--muted);
  max-width: 46ch;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-top: var(--space-3);
}

@media (min-width: 860px) {
  .hero { min-height: 88svh; }
}

/* Marcas strip */
.marcas {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
  padding-block: var(--space-2);
  overflow: hidden;
}
.marcas-track {
  display: flex;
  gap: var(--space-4);
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marcas:hover .marcas-track { animation-play-state: paused; }
.marca-item {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.marca-item::after {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  display: inline-block;
  margin-left: var(--space-4);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marcas-track { animation: none; overflow-x: auto; }
}

/* Section shell */
.section { padding-block: var(--space-5); }
.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-3);
  max-width: 60ch;
}
.section-eyebrow {
  color: var(--red);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.section-title { font-size: clamp(1.8rem, 1.6rem + 1.2vw, 2.6rem); }
.section-desc { color: var(--muted); font-size: 1rem; }

/* Catalogo */
.catalog-filters {
  display: flex;
  gap: var(--space-1);
  overflow-x: auto;
  padding-bottom: var(--space-1);
  margin-bottom: var(--space-3);
  scrollbar-width: none;
}
.catalog-filters::-webkit-scrollbar { display: none; }
.filter-chip {
  flex: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55em 1em;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.filter-chip:active { transform: scale(0.97); }
.filter-chip.is-active {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--yellow);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
}
@media (min-width: 640px) {
  .catalog-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) {
  .catalog-grid { grid-template-columns: repeat(4, 1fr); }
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--white);
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--space-1);
}
.product-media img[hidden] { display: none; }
.view-toggle {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  background: color-mix(in oklch, var(--ink), transparent 10%);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.view-toggle button {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.35em 0.6em;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.view-toggle button.is-active {
  background: var(--yellow);
  color: var(--ink);
}
.product-body {
  padding: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}
.product-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  text-transform: uppercase;
}
.product-desc {
  font-size: 0.82rem;
  color: var(--muted-2);
  flex: 1;
}
.product-cta {
  margin-top: var(--space-1);
  width: 100%;
  justify-content: center;
}

/* Como funciona */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.step {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-2);
}
.step-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--red);
  line-height: 1;
}
.step h3 { margin-top: var(--space-1); font-size: 1.1rem; }
.step p { color: var(--muted); font-size: 0.9rem; margin: 0.4rem 0 0; }

/* CTA final */
.cta-final {
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-3);
  text-align: center;
  display: grid;
  gap: var(--space-2);
  justify-items: center;
}
.cta-final h2 { color: var(--white); font-size: clamp(1.6rem, 1.4rem + 1.5vw, 2.4rem); }
.cta-final p { color: color-mix(in oklch, var(--white), transparent 15%); max-width: 46ch; }
.cta-final .btn-primary { background: var(--white); color: var(--ink); }

/* Footer */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding-block: var(--space-3);
}
.footer-grid {
  display: grid;
  gap: var(--space-3);
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.footer-brand p { color: var(--muted); font-size: 0.9rem; max-width: 40ch; }
.footer-col h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 0.6rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.footer-col a { text-decoration: none; color: var(--muted); font-size: 0.9rem; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  margin-top: var(--space-3);
  padding-top: var(--space-2);
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted-2);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  justify-content: space-between;
}

/* Sticky CTA mobile */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  padding: 10px var(--space-3) calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in oklch, var(--bg), transparent 4%);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.sticky-cta .btn { width: 100%; }
@media (min-width: 860px) {
  .sticky-cta { display: none; }
}
body { padding-bottom: 76px; }
@media (min-width: 860px) {
  body { padding-bottom: 0; }
}

/* Reveal on scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* Toast (config pendiente) */
.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%) translateY(10px);
  background: var(--ink);
  color: var(--white);
  border: 1px solid var(--line);
  padding: 0.8em 1.2em;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  max-width: min(90vw, 360px);
  text-align: center;
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
