/* ===== Tokens ===== */
:root {
  --navy: #0B2D4D;
  --navy-2: #123a60;
  --cyan: #29ABE2;
  --paper: #F5F6F4;
  --ink: #14212B;
  --ink-soft: #4A5860;
  --amber: #F2A93B;
  --amber-ink: #402700;
  --line: #D8DCDD;
  --white: #ffffff;

  --font-display: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
}
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: 0.01em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

.btn {
  display: inline-block;
  padding: 0.9rem 1.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-amber { background: var(--amber); color: var(--amber-ink); }
.btn-amber:hover { background: #ffbe55; }
.btn-ghost { border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

/* ===== Hero ===== */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
}
.hero-video {
  position: absolute;
  top: 50%; right: -5%;
  transform: translateY(-50%);
  width: min(55vw, 640px);
  height: auto;
  opacity: 0.55;
  mix-blend-mode: luminosity;
  pointer-events: none;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, var(--navy) 0%, var(--navy) 45%, rgba(11,45,77,0.75) 70%, rgba(11,45,77,0.55) 100%);
  pointer-events: none;
}
.hero-blueprint {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: min(48vw, 580px);
  opacity: 0.9;
  pointer-events: none;
  animation: flotar-logo 5s ease-in-out infinite;
}
@keyframes flotar-logo {
  0%, 100% { transform: translateY(-50%); }
  50% { transform: translateY(calc(-50% - 14px)); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-blueprint { animation: none; }
}

.nav {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.75rem clamp(1.5rem, 5vw, 4rem);
}
.nav-mark {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 1.05rem;
  background: var(--amber);
  color: var(--navy);
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  box-shadow: 0 3px 0 #b87e12, 0 5px 10px rgba(0,0,0,0.25);
  display: inline-block;
}
.nav-links { display: flex; gap: 2rem; }
.nav-links a { text-decoration: none; color: var(--white); font-size: 0.9rem; letter-spacing: 0.03em; opacity: 0.85; }
.nav-links a:hover { opacity: 1; color: var(--cyan); }

.hero-content {
  position: relative;
  z-index: 2;
  margin: auto 0 0;
  padding: 0 clamp(1.5rem, 5vw, 4rem) clamp(3rem, 8vw, 6rem);
  max-width: 780px;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
  text-transform: uppercase;
  margin: 0 0 1rem;
}
.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--cyan);
  border: 1px solid rgba(41,171,226,0.4);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.hero-sub {
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  color: var(--white);
  max-width: 20ch;
  margin: 0 0 1.25rem;
}
.hero-sub-acento { color: var(--cyan); }
.hero-desc {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.8);
  max-width: 32ch;
  margin: 0 0 2rem;
}
.hero-trust {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin: 1.25rem 0 0.4rem;
  letter-spacing: 0.01em;
}
.hero-whatsapp {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 2px;
}
.hero-whatsapp:hover { color: var(--cyan); border-color: var(--cyan); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ===== Grilla de categorías del hero ===== */
.categoria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  max-width: 620px;
  margin-bottom: 1.5rem;
}
.categoria-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1.1rem 1rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 4px;
  text-decoration: none;
  color: var(--white);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.categoria-tile:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--cyan);
  transform: translateY(-2px);
}
.categoria-icono { width: 26px; height: 26px; color: var(--cyan); flex-shrink: 0; }
.categoria-texto { display: flex; flex-direction: column; gap: 0.25rem; }
.categoria-nombre {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}
.categoria-sub { font-size: 0.72rem; color: rgba(255,255,255,0.6); line-height: 1.3; }

/* ===== Quiz recomendador ===== */
.quiz-wrap {
  position: relative;
  z-index: 2;
  margin: 0 clamp(1.5rem, 5vw, 4rem) clamp(2.5rem, 6vw, 4rem);
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.quiz {
  padding: 1.5rem clamp(1.25rem, 3vw, 2rem);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  max-width: 620px;
  flex: 1 1 420px;
}
.quiz-label {
  margin: 0 0 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.85);
}
.quiz-opciones { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.quiz-btn {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.6rem 1rem;
  border: 1px solid rgba(255,255,255,0.35);
  background: transparent;
  color: var(--white);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.quiz-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.quiz-btn.activo { background: var(--cyan); border-color: var(--cyan); color: var(--navy); font-weight: 600; }
.quiz-resultado { margin: 0.9rem 0 0; font-size: 0.85rem; color: var(--cyan); min-height: 1.2em; }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Zonas por material ===== */
.zona { padding: clamp(3.5rem, 8vw, 6rem) clamp(1.5rem, 5vw, 4rem); }
.zona-intro { max-width: 640px; margin-bottom: 2.5rem; }
.zona-desc { color: var(--ink-soft); font-size: 1.02rem; margin-top: 1rem; }

.zona-pet { background: #EFF8FC; border-bottom: 1px solid var(--line); }
.zona-pead { background: var(--paper); }
.zona-potes { background: #F1EFF7; border-top: 1px solid var(--line); }

.spec-label-pet { background: #DCEEF8; color: var(--navy); }
.spec-label-pead { background: #FCEACB; color: var(--amber-ink); }
.spec-label-potes { background: #E3DEF2; color: #4C3A8C; }

.producto-pet .spec-corner { border-color: var(--cyan); }
.producto-pead .spec-corner { border-color: var(--amber); }
.producto-potes .spec-corner { border-color: #4C3A8C; }
.producto-potes .producto-codigo { color: #4C3A8C; }
.producto-pet .producto-codigo { color: var(--navy); }
.producto-pead .producto-codigo { color: #8a5a12; }
.producto-pead .producto-rosca { color: var(--amber-ink); }

/* ===== Imagen giratoria ===== */
@keyframes girar {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.img-giratoria {
  animation: girar 8s linear infinite;
  /* cambiá el 8s por más (más lento) o menos (más rápido) */
}
@media (prefers-reduced-motion: reduce) {
  .img-giratoria { animation: none; }
}

/* ===== Imagen de producto: flotación sutil ===== */
@keyframes flotar {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes respirar-sombra {
  0%, 100% { opacity: 0.35; transform: scaleX(1); }
  50% { opacity: 0.2; transform: scaleX(0.85); }
}
.producto-flotante {
  animation: flotar 4s ease-in-out infinite;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.35));
}
@media (prefers-reduced-motion: reduce) {
  .producto-flotante { animation: none; }
}

/* ===== Cursor botellita + partículas ===== */
.botella-particula {
  position: fixed;
  width: 22px;
  height: 22px;
  pointer-events: none;
  z-index: 999;
  transform: translate(-50%, -50%);
  animation: estallar-botella 0.7s ease-out forwards;
}
@keyframes estallar-botella {
  0% { opacity: 1; transform: translate(-50%, -50%) translate(0, 0) rotate(0deg) scale(0.6); }
  100% { opacity: 0; transform: translate(-50%, -50%) translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .botella-particula { display: none; }
}

/* ===== WhatsApp flotante ===== */
.whatsapp-flotante {
  position: fixed;
  right: 1.25rem;
  bottom: 6.5rem;
  z-index: 30;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  transition: transform 0.15s ease;
}
.whatsapp-flotante svg { width: 28px; height: 28px; }
.whatsapp-flotante:hover { transform: scale(1.08); }
@media (max-width: 640px) {
  .whatsapp-flotante { right: 1rem; bottom: 5.5rem; width: 48px; height: 48px; }
  .whatsapp-flotante svg { width: 25px; height: 25px; }
}

/* ===== Section shells ===== */
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 0.5rem;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 2.5rem;
  max-width: 20ch;
}
.guia, .catalogo { padding: clamp(3.5rem, 8vw, 6rem) clamp(1.5rem, 5vw, 4rem); }
.guia { border-bottom: 1px solid var(--line); }

/* ===== Spec card (elemento firma) ===== */
.spec-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.75rem;
}
.spec-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--cyan);
}
.spec-corner.tl { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.spec-corner.tr { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.spec-corner.bl { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.spec-corner.br { bottom: -1px; right: -1px; border-left: none; border-top: none; }

/* ===== Guía PET/PEAD ===== */
.guia-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
}
.spec-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--navy);
  background: #E8F3FA;
  padding: 0.25rem 0.6rem;
  margin-bottom: 0.9rem;
}
.spec-card h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.spec-card li { padding: 0.55rem 0; border-top: 1px solid var(--line); font-size: 0.95rem; color: var(--ink-soft); }
.spec-card li:first-child { border-top: none; }
.spec-card li strong { color: var(--ink); }

.nomenclatura {
  max-width: 1100px;
  margin-top: 2.5rem;
  padding: 1.5rem clamp(1.25rem, 3vw, 2rem);
  background: var(--navy);
  color: var(--white);
}
.nomenclatura-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}
.nomenclatura code {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  margin: 0.6rem 0 1rem;
  letter-spacing: 0.02em;
}
.nomenclatura-keys { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: 0.85rem; color: rgba(255,255,255,0.85); }
.nomenclatura-ej { margin: 1rem 0 0; font-size: 0.85rem; color: rgba(255,255,255,0.7); }
.nomenclatura-ej code { display: inline; margin: 0; color: var(--cyan); }

/* ===== Catálogo ===== */
.catalogo-hint { color: var(--ink-soft); margin: -1.5rem 0 2rem; max-width: 50ch; }

.tabs { display: flex; gap: 0.5rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line); }
.tab {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.9rem;
  background: none;
  border: none;
  padding: 0.9rem 0.25rem;
  margin-right: 1.75rem;
  color: var(--ink-soft);
  cursor: pointer;
  border-bottom: 3px solid transparent;
}
.tab.active { color: var(--navy); border-bottom-color: var(--amber); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  padding-bottom: 6rem;
}

.badge-promo {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: var(--amber);
  color: var(--amber-ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.producto-head { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.25rem; }
.producto-foto {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: contain;
  margin-bottom: 0.75rem;
}
.producto-codigo { font-family: var(--font-mono); font-weight: 600; font-size: 1.05rem; color: var(--navy); }
.producto-variante { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); }
.producto-rosca { display: inline-block; font-family: var(--font-mono); font-size: 0.72rem; color: var(--cyan); margin-bottom: 0.5rem; }
.producto-notas { font-size: 0.8rem; color: var(--ink-soft); margin: 0.25rem 0 0.75rem; }

.producto-fila {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
  gap: 0.75rem;
}
.producto-precio-info { display: flex; flex-direction: column; gap: 0.15rem; }
.producto-precio-label { font-size: 0.75rem; color: var(--ink-soft); }
.producto-precio { font-family: var(--font-mono); font-weight: 600; font-size: 1rem; }
.producto-tramos { display: block; font-size: 0.7rem; color: var(--ink-soft); margin-top: 0.15rem; }

.stepper { display: flex; align-items: center; gap: 0.6rem; }
.stepper-btn {
  width: 30px; height: 30px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  border-radius: var(--radius);
}
.stepper-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.stepper-valor { min-width: 1.5ch; text-align: center; font-family: var(--font-mono); font-weight: 600; }

/* ===== Footer ===== */
.footer {
  position: relative;
  background: var(--navy);
  color: var(--white);
  padding: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 5vw, 4rem) 2rem;
  overflow: hidden;
}
.footer-blueprint { right: -15%; top: -10%; width: 380px; opacity: 0.1; }
.footer-content {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  max-width: 1100px;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-col p { margin: 0.4rem 0; color: rgba(255,255,255,0.75); font-size: 0.92rem; }
.footer-heading { display: block; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); margin-bottom: 0.75rem; }
.footer-link { display: block; text-decoration: none; color: var(--white); font-size: 0.92rem; margin-bottom: 0.6rem; }
.footer-link:hover { color: var(--cyan); }
.footer-fine { position: relative; z-index: 2; font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-top: 1.5rem; }

/* ===== Barra / panel de pedido ===== */
.order-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--white);
  border-top: 2px solid var(--navy);
  padding: 0.85rem 1.25rem;
  transform: translateY(110%);
  transition: transform 0.25s ease;
}
.order-bar.visible { transform: translateY(0); }
.order-summary {
  background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: flex-start;
  font-family: var(--font-body); color: var(--ink);
}
#order-count { font-size: 0.78rem; color: var(--ink-soft); }
#order-total { font-family: var(--font-mono); font-weight: 700; font-size: 1.1rem; }
.order-send { padding: 0.75rem 1.25rem; font-size: 0.85rem; }

.order-panel {
  position: fixed;
  right: 1.25rem;
  bottom: 5.5rem;
  z-index: 25;
  width: min(380px, 90vw);
  max-height: 60vh;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(11,45,77,0.18);
  display: flex;
  flex-direction: column;
  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.18s ease;
}
.order-panel.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.order-panel-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--line);
}
.order-panel-head h3 { font-size: 1.05rem; }
.order-panel-head button { background: none; border: none; font-size: 1.1rem; cursor: pointer; color: var(--ink-soft); }
.order-panel-list { padding: 1rem 1.25rem; overflow-y: auto; font-size: 0.88rem; }
.order-panel-list p { margin: 0 0 0.6rem; }
.order-empty { color: var(--ink-soft); }

@media (max-width: 640px) {
  .nav { padding: 1.1rem 1.25rem; }
  .nav-mark { font-size: 1.4rem; letter-spacing: 0.04em; }
  .nav-links { display: none; }

  .hero { min-height: auto; padding-bottom: 2.5rem; }
  .hero-video { opacity: 0.15; width: 100vw; right: 0; }
  .hero-blueprint { opacity: 0.12; width: 75vw; right: -12%; }
  .hero-overlay { background: rgba(11,45,77,0.8); }
  .hero-content { padding: 0 1.25rem; }
  .hero-sub { max-width: 100%; }
  .hero-desc { max-width: 100%; }

  .categoria-grid { grid-template-columns: 1fr; gap: 0.6rem; }
  .categoria-tile { flex-direction: row; align-items: center; padding: 0.9rem 1rem; }
  .categoria-icono { width: 22px; height: 22px; flex-shrink: 0; }

  .zona { padding: 2.5rem 1.25rem; }
  .zona-desc { font-size: 0.95rem; }

  .guia-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; gap: 1rem; }
  .producto-foto { height: 220px; }

  .nomenclatura { padding: 1.25rem; }
  .nomenclatura-keys { gap: 0.6rem 1rem; }

  .footer { padding: 2.5rem 1.25rem 1.5rem; }
  .footer-content { grid-template-columns: 1fr; gap: 2rem; }

  .order-bar { padding: 0.7rem 1rem; flex-wrap: wrap; gap: 0.6rem; }
  .order-send { flex: 1 1 100%; text-align: center; }
  .order-panel { right: 0.75rem; left: 0.75rem; width: auto; bottom: 6.5rem; }
}

