:root {
  --red: #e40b19;
  --red-dark: #c10a16;
  --ink: #1a1a1a;
  --muted: #5a5a5a;
  --line: #ececec;
  --soft: #f6f6f6;
  --wa: #25d366;
  --wa-dark: #1ebe5a;
  --max: 1180px;
  --font: "Jost", "Segoe UI", system-ui, sans-serif;
  --display: "Poppins", "Jost", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  line-height: 1.45;
  font-size: 16px;
}
img { max-width: 100%; }
button, input { font: inherit; }
a { color: inherit; }
h1, h2, h3, .pill, .logo-word, .section-title {
  font-family: var(--display);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #fff;
  padding: 8px 12px;
  z-index: 50;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  background: var(--red);
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 10px 18px;
  padding: 8px 0;
  flex-wrap: wrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding: 10px 0;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  flex: 0 0 auto;
}
.brand img { height: 56px; width: auto; display: block; }
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--ink);
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.main-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.main-nav a {
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 6px 0;
}
.main-nav a[aria-current="page"] { color: var(--red); }

.search-row {
  display: flex;
  align-items: stretch;
  flex: 1 1 220px;
  min-width: 0;
  border: 1px solid #e3e3e3;
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
}
.search-row input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  border: 0;
  background: transparent;
  padding: 0 16px;
  font-size: 16px;
  color: var(--ink);
}
.search-row input:focus { outline: none; }
.search-row:focus-within { border-color: var(--red); }
.search-row .btn-search {
  flex: 0 0 42px;
  width: 42px;
  min-width: 42px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #444;
  border-radius: 0;
}
.search-row .btn-search:hover { color: var(--red); }

.subnav { border-top: 1px solid var(--line); }
.subnav-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 0;
  scrollbar-width: thin;
}
.subnav a {
  flex: 0 0 auto;
  text-decoration: none;
  color: #444;
  font-size: 0.84rem;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.subnav a[aria-current="page"] {
  color: var(--red);
  border-bottom-color: var(--red);
  font-weight: 600;
}
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.page { padding: 0 0 72px; }

.hero { position: relative; background: #fff; overflow: hidden; }
.hero-viewport { overflow: hidden; touch-action: pan-y; }
.hero-track { display: flex; transition: transform 0.45s ease; }
.hero-slide {
  min-width: 100%;
  position: relative;
  min-height: 420px;
  padding: 28px 0 56px;
  overflow: hidden;
  background: #fff;
}
.hero-slide-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 12px;
}
.hero-copy { position: relative; z-index: 2; max-width: 520px; }
.hero-copy h1, .hero-copy h2 {
  margin: 0 0 10px;
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #111;
}
.hero-copy .red { color: var(--red); }
.hero-copy p { margin: 0 0 16px; color: #333; max-width: 36ch; }
.kicker {
  margin: 0 0 6px;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pill:hover { background: var(--red-dark); }
.hero-visual {
  position: relative;
  min-height: 240px;
  z-index: 1;
}
.hero-copy { position: relative; z-index: 3; }
.hero-visual {
  position: relative;
  z-index: 1;
  min-height: 280px;
  display: grid;
  justify-items: end;
  align-items: center;
  overflow: hidden;
}
.hero-photo, .hero-product {
  width: min(300px, 72vw);
  height: min(300px, 72vw);
  object-fit: cover;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  background: #fff;
  margin-right: 8%;
}
.hero-product { object-fit: contain; padding: 18px; }
.hero-logo {
  position: absolute;
  left: 4%;
  bottom: 6%;
  height: 78px;
  width: auto;
  z-index: 3;
}
.swoosh {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 78%;
  z-index: 0;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  background: var(--red);
  z-index: 1;
  pointer-events: none;
}
.b1 { width: 48px; height: 48px; right: 8%; top: 10%; }
.b2 { width: 16px; height: 16px; right: 22%; bottom: 14%; }
.hero-arrow {
  position: absolute;
  top: 42%;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--red);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 4;
}
.hero-prev { left: 8px; }
.hero-next { right: 8px; }
.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 7px;
  z-index: 4;
}
.hero-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
}
.hero-dots button[aria-current="true"] { background: var(--red); }

.socio { padding: 36px 0 10px; }
.socio-grid {
  display: grid;
  gap: 18px;
  align-items: center;
}
.socio h2 {
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
}
.socio p { margin: 0 0 12px; color: #333; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li {
  position: relative;
  padding: 4px 0 4px 26px;
}
.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}
.socio-art {
  min-height: 180px;
  background:
    radial-gradient(circle at 30% 40%, var(--red) 0 46px, transparent 47px),
    radial-gradient(circle at 70% 70%, var(--red) 0 18px, transparent 19px);
}

.home-block { padding: 8px 0 20px; }
.section-title {
  margin: 22px 0 14px;
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
}
.prose { padding: 28px 0 8px; max-width: 68ch; }
.prose h1 { margin: 0 0 10px; font-size: 1.8rem; }
.prose p { margin: 0 0 10px; }
.catalog-block { padding-top: 8px; }
.status { margin: 0 0 12px; color: var(--muted); min-height: 1.2em; }
.status a { font-weight: 700; color: var(--red); }

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 12px;
  align-items: stretch;
}
.card {
  background: #fff;
  box-shadow: 0 8px 22px rgba(20, 20, 20, 0.06);
  padding: 10px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.photo {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  border: 0;
  padding: 0;
  overflow: hidden;
  background: var(--soft);
  cursor: pointer;
  display: block;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.noimg { display: grid; place-items: center; color: var(--muted); font-size: 0.8rem; }
.badge {
  position: absolute;
  left: 8px;
  top: 8px;
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
}
.name-btn {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  text-align: left;
  color: inherit;
  cursor: pointer;
}
.name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.3;
  min-height: 2.6em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.meta {
  margin: 0;
  min-height: 1.35em;
  font-weight: 700;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}
.was {
  font-weight: 500;
  color: var(--muted);
  text-decoration: line-through;
  margin-right: 6px;
  font-size: 0.82em;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 10px;
  border: 0;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
  width: auto;
  max-width: 100%;
  align-self: flex-start;
  margin-top: auto;
  font-family: var(--display);
}
.btn-wa { background: var(--red); color: #fff; }
.btn-wa:hover { background: var(--red-dark); }
.btn-ghost {
  background: transparent;
  color: var(--red);
  border: 1px solid var(--red);
}
.btn-plain { background: var(--soft); color: var(--ink); }

.site-footer {
  background: var(--soft);
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  font-size: 0.95rem;
}
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: var(--red); }
.footer-brand {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.08em;
}
.footer-label {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.footer-grid { display: grid; gap: 18px; }
#wa-footer { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
#wa-footer .btn { margin-top: 0; }

.wa-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  text-decoration: none;
}
.wa-float:hover { background: var(--wa-dark); }
.wa-float svg { width: 30px; height: 30px; display: block; }

dialog {
  border: 0;
  padding: 16px;
  width: min(560px, calc(100% - 24px));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
dialog::backdrop { background: rgba(20, 20, 20, 0.55); }
.detail-photo {
  aspect-ratio: 1;
  max-height: 280px;
  width: 100%;
  background: var(--soft);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}
.detail-photo img { width: 100%; height: 100%; max-height: 280px; object-fit: contain; }
.detail-text { white-space: pre-line; margin: 8px 0 14px; }
.dialog-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.dialog-actions .btn { flex: 1; }
.picker-list { display: grid; gap: 8px; margin: 12px 0; }
.picker-list .btn { width: 100%; }

body[data-page="sobre"] .catalog-block,
body[data-page="contacto"] .catalog-block { display: none; }

@media (min-width: 800px) {
  .header-top { flex-wrap: nowrap; }
  .search-row { flex: 1 1 auto; }
  .hero-slide { min-height: 460px; padding: 20px 0 48px; }
  .hero-slide-inner { grid-template-columns: 1.05fr 0.95fr; }
  .hero-visual { min-height: 400px; }
  .hero-logo { height: 96px; }
  .socio-grid { grid-template-columns: 0.7fr 1.3fr; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 16px; }
  .footer-grid { grid-template-columns: 1.2fr 1.2fr 0.8fr; }
}
@media (max-width: 799px) {
  .brand { order: 1; }
  .nav-toggle { display: inline-flex; order: 2; }
  .search-row { flex: 1 1 100%; order: 3; }
  .main-nav {
    display: none;
    order: 4;
    flex: 1 1 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 4px 0 8px;
  }
  .site-header.is-open .main-nav { display: flex; }
  .subnav { display: none; }
  .site-header.is-open .subnav { display: block; order: 5; }
  .hero-arrow { display: none; }
  .hero-visual { justify-items: center; min-height: 260px; }
  .hero-photo, .hero-product { margin-right: 0; }
  .hero-logo { left: 0; height: 64px; }
  .swoosh { width: 70%; }
}
@media (min-width: 800px) and (max-width: 1023px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-track { transition: none; }
}
