/* ======================================================================
   UTILE — site.css
   Estilos COMPARTIDOS por todas las páginas del sitio (home + /p/<código>).
   Fuente única de verdad para: tokens de marca, reset, tipografía base,
   botones genéricos, topbar, beta-bar, section-title y footer.

   Si cambia algo acá, cambia en TODAS las páginas que lo enlazan.
   No dupliques estas reglas dentro del <style> de una página nueva:
   enlazá este archivo con <link rel="stylesheet" href="/assets/css/site.css">.
   ====================================================================== */

:root {
  --magenta: #DB0DC2;
  --violeta: #AB0C98;
  --papel: #F4F1EF;
  --gris-seccion: #E4E2DF;
  --grafito: #2B2F3A;
  --gris: #B3B3B3;
  --blanco: #FFFFFF;
  --degrade: linear-gradient(180deg, #DB0DC2 0%, #C40CAE 45%, #AB0C98 100%);
  --yt-red: #FF0000;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--blanco);
  color: var(--grafito);
  font-family: 'Asap', sans-serif;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ---------- SECTION TITLES (genérico, usado por home y product) ---------- */

.section-title {
  text-align: center;
  padding: 48px 0 28px;
  background: transparent;
}

.section-title .eyebrow-center {
  display: inline-block;
  background: var(--papel);
  color: var(--violeta);
  font-family: 'Asap', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section-title h2 {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: clamp(22px, 3vw, 28px);
  color: var(--grafito);
  margin: 0 0 4px;
}

.section-title p {
  font-size: 15px;
  color: var(--grafito);
  opacity: 0.7;
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- BOTONES GENÉRICOS ---------- */

.btn-primary, .btn-secondary, .btn-whatsapp, .btn-youtube {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-family: 'Asap', sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--degrade);
  color: var(--blanco);
  box-shadow: 0 10px 24px rgba(219, 13, 194, 0.3);
}

.btn-secondary {
  background: var(--blanco);
  color: var(--grafito);
  border: 2px solid var(--papel);
}

.btn-whatsapp {
  background: var(--degrade);
  color: var(--blanco);
  padding: 16px 28px;
  font-size: 16px;
  box-shadow: 0 10px 24px rgba(219, 13, 194, 0.35);
}

.btn-youtube {
  background: var(--yt-red);
  color: var(--blanco);
  padding: 12px 26px;
  box-shadow: 0 8px 18px rgba(255, 0, 0, 0.28);
}

.btn-primary:hover, .btn-whatsapp:hover, .btn-youtube:hover {
  transform: translateY(-2px);
}

.btn-primary svg, .btn-secondary svg, .btn-whatsapp svg, .btn-youtube svg {
  width: 20px; height: 20px; flex-shrink: 0;
}

/* ---------- BETA BAR (piloto de producto) ---------- */

.beta-bar {
  background: var(--grafito);
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  font-size: 12px;
  padding: 8px 16px;
  font-family: 'Asap', sans-serif;
}

/* ---------- TOPBAR (páginas internas) ---------- */

.topbar {
  padding: 16px 0;
}

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

.topbar-logo { display: inline-block; line-height: 0; }

.topbar .logo {
  height: 40px;
  width: auto;
}

/* Circular en mobile, apaisado en desktop */
.topbar .logo-desktop { display: none; }

@media (min-width: 860px) {
  .topbar .logo-mobile { display: none; }
  .topbar .logo-desktop { display: inline-block; }
  .topbar .logo { height: 44px; }
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-nav a {
  font-family: 'Asap', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--grafito);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.topbar-nav a:hover {
  background: var(--papel);
  color: var(--violeta);
}

@media (min-width: 480px) {
  .topbar-nav a { font-size: 14px; padding: 8px 14px; }
}

/* ---------- PÁGINA /productos/ (catálogo) ---------- */

.productos-hero {
  text-align: center;
  padding: 40px 0 24px;
}

.productos-hero .eyebrow-center {
  display: inline-block;
  background: var(--papel);
  color: var(--violeta);
  font-family: 'Asap', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.productos-hero h1 {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 4vw, 34px);
  color: var(--grafito);
  margin: 0 0 8px;
}

.productos-hero p {
  font-size: 15px;
  color: var(--grafito);
  opacity: 0.7;
  margin: 0;
}

.productos-grid-section { padding: 8px 0 60px; }

.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.producto-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--papel);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.producto-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(43, 47, 58, 0.12);
}

.producto-card .producto-foto {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: var(--blanco);
}

.producto-card .producto-info { padding: 14px 16px 18px; }

.producto-card h3 {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--grafito);
  margin: 0;
}

.productos-empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--grafito);
  opacity: 0.6;
}

.productos-empty svg { width: 40px; height: 40px; margin-bottom: 12px; }
.productos-empty p { font-size: 15px; max-width: 420px; margin: 0 auto; }

/* ---------- SITE FOOTER (compartido por TODAS las páginas) ---------- */

footer.site-footer {
  background: var(--grafito);
  padding: 28px 0 22px;
  text-align: center;
}

footer.site-footer .footer-logo {
  height: 26px;
  width: auto;
  margin: 0 auto 14px;
  opacity: 0.9;
}

footer.site-footer .footer-nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

footer.site-footer .footer-nav a {
  font-family: 'Asap', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

footer.site-footer .footer-nav a:hover { color: var(--blanco); }

footer.site-footer .footer-note {
  font-family: 'Asap', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 4px;
}

footer.site-footer .footer-brand {
  font-family: 'Asap', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}
