/* Base global: paleta, tipografía, navegación, botones, footer y componentes compartidos. */

/* Variables de diseño. El tema oscuro es el default; el claro se activa con
   [data-theme="light"] en <html> (ver el switch en la navbar, en app.js). */
:root {
  --bg: #0a0a0a;
  --bg-alt: #121212;
  --card: #161616;
  --card-light: #1e1e1e;
  --primary: #ef2b2b;
  --primary-hover: #ff5252;
  --primary-soft: #ff8f8f;
  --text: #f5f5f5;
  --muted: #9d9d9d;
  --success: #4ed39a;
  --danger: #f59e42;
  --line: rgba(255, 255, 255, 0.1);
  --radius: 18px;
  --shadow: 0 14px 35px rgba(0, 0, 0, 0.4);
}
:root[data-theme="light"] {
  --bg: #f6f4f2;
  --bg-alt: #ffffff;
  --card: #ffffff;
  --card-light: #f1eee9;
  --primary: #d81f1f;
  --primary-hover: #ef3b3b;
  --primary-soft: #b91c1c;
  --text: #1a1614;
  --muted: #6b625d;
  --success: #178a5f;
  --danger: #c2570c;
  --line: rgba(20, 16, 15, 0.12);
  --shadow: 0 14px 35px rgba(20, 16, 15, 0.1);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  transition: background-color 0.25s ease, color 0.25s ease;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
.announcement {
  background: var(--primary);
  color: white;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  padding: 9px 16px;
}
.announcement span {
  padding: 0 10px;
}
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 74px;
  background: rgba(10, 10, 10, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
:root[data-theme="light"] .navbar {
  background: rgba(246, 244, 242, 0.9);
}
.nav-inner {
  height: 100%;
  max-width: 1240px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 0 24px;
}
.brand {
  display: flex;
  align-items: center;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -1px;
}
.brand img {
  height: 32px;
  width: auto;
  display: block;
}
.brand i {
  color: var(--primary);
  font-style: normal;
}
.nav-links {
  display: flex;
  gap: 21px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.nav-links a:hover,
.nav-links .active {
  color: var(--text);
}
.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.search {
  width: 220px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text);
  outline: none;
}
.search:focus {
  border-color: var(--primary);
}
.icon-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  border-radius: 10px;
  min-width: 40px;
  height: 40px;
  position: relative;
  font-size: 18px;
}
.icon-btn:hover {
  background: var(--card);
}
.cart-count {
  position: absolute;
  right: -5px;
  top: -6px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  min-width: 17px;
  padding: 1px 4px;
  border-radius: 10px;
}
.menu-btn {
  display: none;
}
.container {
  max-width: 1240px;
  margin: auto;
  padding: 0 24px;
}
.section {
  padding: 72px 0;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 28px;
}
.eyebrow {
  color: var(--primary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-weight: 800;
  margin: 0 0 8px;
}
.section h2 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -1.1px;
  margin: 0;
}
.muted {
  color: var(--muted);
}
.btn {
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 700;
  transition:
    0.2s transform,
    0.2s background;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-hover);
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}
.btn-outline:hover {
  background: var(--card);
}
.btn-sm {
  padding: 9px 12px;
  font-size: 13px;
}
.grid {
  display: grid;
  gap: 20px;
}
.empty {
  padding: 50px 20px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.about-hero {
  padding-top: 60px;
}
.about-hero h1 {
  font-size: clamp(32px, 4vw, 46px);
  letter-spacing: -1.5px;
  line-height: 1.15;
  max-width: 780px;
  margin: 10px 0 20px;
}
.about-lead {
  max-width: 640px;
  font-size: 17px;
}
.about-cta-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px;
}
.about-cta-box h2 {
  margin: 6px 0 0;
  font-size: 26px;
  letter-spacing: -0.8px;
}
@media (max-width: 780px) {
  .about-cta-box {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}
.toast-region {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
  display: grid;
  gap: 9px;
}
.toast {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 13px 16px;
  border-radius: 11px;
  animation: slide 0.25s ease;
}
.toast.error {
  border-color: color-mix(in srgb, var(--danger) 55%, transparent);
}
.purchase-pop {
  position: fixed;
  z-index: 90;
  left: 22px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 11px;
  max-width: 310px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 13px;
  padding: 11px 14px;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: 0.35s;
}
.purchase-pop.show {
  opacity: 1;
  transform: none;
}
.purchase-pop strong {
  display: block;
  font-size: 12px;
}
.purchase-pop span {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.purchase-pop i {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--success) 18%, transparent);
  display: grid;
  place-items: center;
  color: var(--success);
  font-style: normal;
}
@keyframes slide {
  from {
    transform: translateX(25px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
}
.footer-grid {
  max-width: 1240px;
  margin: auto;
  padding: 50px 24px 30px;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 35px;
}
.footer-grid p,
.footer-grid a {
  color: var(--muted);
  font-size: 13px;
}
.footer-grid h4 {
  margin: 0 0 12px;
}
.footer-grid a {
  display: block;
  padding: 4px 0;
}
.footer-bottom {
  max-width: 1240px;
  margin: auto;
  border-top: 1px solid var(--line);
  padding: 17px 24px;
  color: var(--muted);
  font-size: 12px;
}
@media (max-width: 780px) {
  .announcement {
    font-size: 10px;
  }
  .navbar {
    height: 62px;
  }
  .nav-inner {
    padding: 0 15px;
    gap: 12px;
  }
  .nav-links {
    display: none;
  }
  .menu-btn {
    display: none;
  }
  .search {
    display: none;
  }
  .brand img {
    height: 26px;
  }
  .section {
    padding: 48px 0;
  }
  .container {
    padding: 0 16px;
  }
  .section h2 {
    font-size: 25px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    padding: 40px 16px;
  }
  .footer-grid > div:first-child {
    grid-column: 1/-1;
  }
  .nav-actions {
    gap: 5px;
  }
  .purchase-pop {
    left: 14px;
    bottom: 14px;
    right: 14px;
    max-width: none;
  }
}