:root {
  /* Paleta Boca Juniors sobre fondos claros */
  --blue: #0a2e8c;          /* azul principal */
  --blue-deep: #06205f;     /* azul oscuro (hover, acentos) */
  --blue-soft: #e8eefb;     /* azul pastel para fondos suaves */
  --gold: #f4c430;          /* oro */
  --gold-deep: #8a6a00;     /* oro oscuro, legible como texto sobre blanco (AA) */

  --bg: #f4f7fc;            /* fondo de página, blanco pastel */
  --paper: #ffffff;         /* tarjetas */
  --ink: #0d1b3e;           /* texto principal (azul muy oscuro) */
  --ink-soft: #5a6685;      /* texto secundario */
  --line: #e1e7f3;          /* bordes */

  --wa: #1faa53;            /* verde "consultar" (WhatsApp) */
  --wa-deep: #178a43;

  --radius: 16px;
  --shadow: 0 12px 30px rgba(10, 46, 140, 0.12);
  --shadow-soft: 0 4px 14px rgba(10, 46, 140, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif { font-family: "Playfair Display", Georgia, "Times New Roman", serif; }

/* ── Topbar ───────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 24px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { height: 46px; width: 46px; display: block; }
.brand-name {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 19px;
  color: var(--blue);
  letter-spacing: 0.2px;
}
/* Botón hamburguesa (visible solo en mobile) */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 11px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--blue);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menú: en mobile es un panel desplegable (oculto por defecto) */
.site-nav {
  display: none;
  flex-direction: column;
  width: 100%;
  margin-top: 8px;
  gap: 2px;
}
.site-nav.open { display: flex; }
.site-nav a {
  text-decoration: none;
  color: var(--blue);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 12px;
  border-radius: 10px;
}
.site-nav a:hover { background: var(--blue-soft); }

/* Desktop: nav en línea, sin hamburguesa */
@media (min-width: 880px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: auto;
    margin-top: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
  }
  .site-nav a { font-size: 13.5px; padding: 8px 11px; }
  .site-nav a:hover { background: transparent; color: var(--blue-deep); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; }
}

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  position: relative;
  background:
    radial-gradient(90% 120% at 50% -10%, var(--blue-soft) 0%, var(--bg) 60%);
  padding: 40px 24px 48px;
  text-align: center;
  border-bottom: 3px solid var(--gold);
}
.hero-logo {
  width: 132px;
  height: 132px;
  display: block;
  margin: 0 auto 14px;
  filter: drop-shadow(0 8px 20px rgba(10, 46, 140, 0.18));
}
.hero-title {
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.08;
  margin: 0 0 6px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: 0.3px;
}
.hero-tagline {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: clamp(16px, 2.6vw, 21px);
  color: var(--ink-soft);
  margin: 0 0 26px;
}

.searchbox {
  display: flex;
  gap: 6px;
  max-width: 680px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px;
  box-shadow: var(--shadow);
}
.searchbox input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 13px 20px;
  font-size: 16px;
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
}
.searchbox input::placeholder { color: #98a2bd; }
.searchbox button {
  border: 0;
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff;
  font-weight: 600;
  font-family: inherit;
  padding: 0 28px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 15px;
  transition: filter 0.15s ease;
}
.searchbox button:hover { filter: brightness(1.12); }
.searchbox button:disabled { opacity: 0.6; cursor: wait; }

.hero-sub {
  max-width: 560px;
  margin: 18px auto 0;
  color: var(--ink-soft);
  font-size: 15px;
}

/* ── Asistente ────────────────────────────────────────── */
.assistant { max-width: 1120px; margin: 26px auto 0; padding: 0 24px; }
.assistant-bubble {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  padding: 16px 18px;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}
.assistant-bubble p { margin: 0; font-size: 15.5px; color: var(--ink); }
.assistant-avatar {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: var(--blue);
  color: var(--gold);
  border-radius: 50%;
  font-size: 15px;
}

/* ── Resultados ───────────────────────────────────────── */
.results { max-width: 1120px; margin: 30px auto 64px; padding: 0 24px; scroll-margin-top: 80px; }
.results h2 {
  font-size: 24px;
  margin: 0 0 20px;
  font-weight: 700;
  color: var(--blue);
  position: relative;
  padding-bottom: 10px;
}
.results h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 48px; height: 3px;
  background: var(--gold);
  border-radius: 3px;
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.card {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-img {
  height: 210px;
  flex: 0 0 210px;        /* altura fija: todas las miniaturas iguales */
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  padding: 12px;
  overflow: hidden;
}
.card-img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.card-body { padding: 15px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-cat { font-size: 11px; color: var(--gold-deep); font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; }
.card-title {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-price { font-family: "Playfair Display", Georgia, serif; font-size: 20px; font-weight: 700; color: var(--blue); margin-top: auto; }
.card-action {
  display: block;
  text-align: center;
  text-decoration: none;
  margin-top: 6px;
  padding: 11px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  transition: filter 0.15s ease;
}
.card-action:hover { filter: brightness(1.08); }
.action-comprar { background: linear-gradient(180deg, var(--blue) 0%, var(--blue-deep) 100%); }
.action-consultar { background: linear-gradient(180deg, var(--wa) 0%, var(--wa-deep) 100%); }

.empty { text-align: center; color: var(--ink-soft); padding: 48px; font-size: 16px; }

/* Skeleton de carga */
.skeleton {
  height: 320px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, #e7edf8, #f3f7fd, #e7edf8);
  background-size: 200% 100%;
  animation: sk 1.2s infinite;
  border: 1px solid var(--line);
}
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── Footer ───────────────────────────────────────────── */
.footer {
  background: var(--blue-soft);
  color: var(--ink-soft);
  text-align: center;
  padding: 30px 24px;
  font-size: 13px;
  border-top: 3px solid var(--gold);
}
.footer-logo { height: 60px; width: 60px; margin-bottom: 10px; }
.footer p { margin: 0; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  max-width: 640px;
  margin: 2px auto 16px;
}
.footer-links a { color: var(--blue); text-decoration: none; font-weight: 600; font-size: 12.5px; }
.footer-links a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }

/* ── Página de información ─────────────────────────────── */
.info-page { max-width: 800px; margin: 0 auto; padding: 30px 22px 64px; }
.info-page h1 { color: var(--blue); font-size: clamp(26px, 5vw, 38px); margin: 0 0 6px; }
.info-lead { color: var(--ink-soft); margin: 0 0 28px; font-size: 16px; }
.info-section {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-soft);
  scroll-margin-top: 84px;
}
.info-section h2 { color: var(--blue); margin: 0 0 12px; font-size: 21px; }
.info-section h3 { color: var(--blue-deep); margin: 18px 0 8px; font-size: 16px; font-family: "Inter", sans-serif; font-weight: 700; }
.info-section p { color: var(--ink); font-size: 15px; margin: 0 0 12px; }
.info-section li { color: var(--ink); font-size: 15px; }
.info-section a:not(.info-cta) { color: var(--blue); }
.info-section ul, .info-section ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 7px; }
.info-cta {
  display: inline-block;
  margin-top: 14px;
  background: linear-gradient(180deg, var(--wa) 0%, var(--wa-deep) 100%);
  color: #fff;
  text-decoration: none;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
}
.info-cta:hover { filter: brightness(1.08); }

/* Crédito SinapsiaLab — sutil, alineado con el footer del Bazar.
   Se conserva solo el gradiente de marca de SinapsiaLab en el nombre. */
.footer-credit { margin-top: 10px; font-size: 12px; color: var(--ink-soft); }
.gradient-link {
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(90deg, #ec4899, #facc15, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  position: relative;
}
.gradient-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1.5px;
  background: linear-gradient(90deg, #ec4899, #facc15, #3b82f6);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.gradient-link:hover::after { transform: scaleX(1); }

@media (max-width: 560px) {
  .brand-name { display: none; }
  .topbar { justify-content: center; }
  .hero { padding: 32px 18px 40px; }
  .hero-logo { width: 108px; height: 108px; }
  .searchbox { flex-direction: column; border-radius: 18px; padding: 10px; }
  .searchbox input { text-align: center; }
  .searchbox button { padding: 12px; }
}
