:root {
  color-scheme: light;
  --ink: #050517;
  --ink-soft: #61210f;
  --muted: #979b8d;
  --warm-gray: #c1bcac;
  --terracotta: #cf5c36;
  --red: #ab1106;
  --sand: #efc88b;
  --cream: #f4e3b2;
  --peach: #ffe7c0;
  --yellow: #f9df74;
  --silver: #d3d5d7;
  --sage: #839871;
  --moss: #5c7457;
  --green: #214e34;
  --blue: #0b275c;
  --lavender: #a9a9d8;
  --lavender-light: #ddddff;
  --blush: #efd0ca;
  --paper: #f7f1ed;
  --white: #ffffff;
  --line: rgba(5, 5, 23, 0.12);
  --shadow: 0 22px 70px rgba(5, 5, 23, 0.1);
  --radius: 8px;
  --font-display: "Satoshi", "Switzer", system-ui, sans-serif;
  --font-body: "Switzer", "Satoshi", system-ui, sans-serif;
  --whatsapp: #25d366;
  --whatsapp-dark: #128c5e;
  --whatsapp-contrast: #ffffff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
}

::selection {
  background: var(--lavender-light);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes nav-in {
  0% { transform: translateY(-100%); opacity: 0; }
  55% { opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 640ms ease, transform 640ms ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
.js .reveal-card {
  opacity: 0;
}
.js .reveal-card.is-visible {
  opacity: 1;
  animation: card-in 520ms ease backwards;
  animation-delay: var(--stagger, 0ms);
}

/* ===== Navbar ===== */
.nav {
  position: relative;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px max(20px, calc((100% - 1180px) / 2));
  background: linear-gradient(90deg, var(--terracotta) 0 16.66%, var(--yellow) 0 33.33%, var(--sage) 0 50%, var(--blue) 0 66.66%, var(--lavender) 0 83.33%, var(--red) 0 100%) top / 100% 4px no-repeat;
  border-bottom: 1px solid transparent;
  transition: border-color 240ms ease, box-shadow 240ms ease;
}
body.nav-fixed {
  padding-top: var(--nav-height, 66px);
}
body.nav-fixed .nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, var(--terracotta) 0 16.66%, var(--yellow) 0 33.33%, var(--sage) 0 50%, var(--blue) 0 66.66%, var(--lavender) 0 83.33%, var(--red) 0 100%) top / 100% 4px no-repeat rgba(247, 241, 237, 0.8);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(5, 5, 23, 0.07);
  animation: nav-in 640ms cubic-bezier(0.22, 1, 0.36, 1);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}
.brand {
  gap: 10px;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
}
.brand-logo {
  height: 64px;
  width: auto;
  display: block;
  object-fit: contain;
}
.nav-links {
  gap: 6px;
}
.nav-links a {
  position: relative;
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 999px;
  color: rgba(5, 5, 23, 0.74);
  transition: color 350ms ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-links a:hover {
  color: var(--red);
  background: transparent;
}
.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  place-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle-bar {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 300ms ease, opacity 300ms ease;
}

/* ===== Hero ===== */
.site-header {
  min-height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--peach) 0%, var(--cream) 55%, var(--paper) 100%);
  color: var(--ink);
}
.hero {
  width: min(1180px, calc(100% - 32px));
  margin: auto;
  padding: 48px 0 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 56px;
  align-items: end;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--terracotta);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.hero .eyebrow {
  color: var(--red);
  animation: rise-in 600ms ease backwards;
}
.hero h1 { animation: rise-in 600ms 90ms ease backwards; }
.hero-text { animation: rise-in 600ms 180ms ease backwards; }
.hero-actions { animation: rise-in 600ms 270ms ease backwards; }
.hero-panel { animation: rise-in 700ms 220ms ease backwards; }

h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 0.98;
  letter-spacing: 0;
}
h1 {
  max-width: 820px;
  font-size: clamp(2.6rem, 5.5vw, 5.2rem);
}
h2 { font-size: clamp(2rem, 4vw, 4rem); }
h3 { font-size: 1.2rem; line-height: 1.08; }

.hero-text {
  max-width: 640px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}
.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary {
  background: var(--terracotta);
  color: var(--peach);
}
.button.ghost {
  border-color: rgba(5, 5, 23, 0.28);
  color: var(--ink);
}
.button.ghost:hover { background: rgba(5, 5, 23, 0.06); }

.hero-panel {
  display: grid;
  gap: 12px;
}
.metric {
  min-height: 114px;
  padding: 22px;
  border: 1px solid var(--silver);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(5, 5, 23, 0.06);
}
.metric strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 1;
}
.metric span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}
.metric.accent {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.metric.accent span { color: var(--sand); }

/* ===== Secciones ===== */
main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}
.section {
  padding: 86px 0;
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(280px, 1fr);
  gap: 48px;
  border-bottom: 1px solid var(--line);
}
.section > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}
.catalog-section { padding: 86px 0; }
.catalog-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}
.catalog-tools { width: min(100%, 380px); }
.search-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--muted);
}
input[type="search"] {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--white);
  color: var(--ink);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
input[type="search"]:focus {
  border-color: var(--lavender);
  box-shadow: 0 0 0 4px rgba(169, 169, 216, 0.25);
}
.filters {
  margin: 28px 0 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.filter-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--white);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}
.filter-button:hover { transform: translateY(-1px); }
.filter-button.is-active,
.filter-button:hover {
  border-color: var(--terracotta);
  background: var(--terracotta);
  color: var(--peach);
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

/* ===== Paginación (móvil) ===== */
.pagination {
  margin: 26px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.pagination[hidden] { display: none; }
.pagination-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease, opacity 200ms ease;
}
.pagination-button:not(:disabled):hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--peach);
}
.pagination-button:disabled {
  opacity: 0.35;
  cursor: default;
}
.pagination-status {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink-soft);
}

/* ===== Cards de producto ===== */
.product-card {
  position: relative;
  display: grid;
  min-height: 500px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--moss);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(5, 5, 23, 0.03);
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(5, 5, 23, 0.14);
}

.product-card[data-category="cuidado"] { border-top-color: var(--moss); }
.product-card[data-category="deporte"] { border-top-color: var(--green); }
.product-card[data-category="accesorios"] { border-top-color: var(--terracotta); }
.product-card[data-category="mallas"] { border-top-color: var(--red); }

.carousel {
  position: relative;
  overflow: hidden;
  border-top: 3px solid var(--moss);
  border-bottom: 1px solid var(--line);
  height: 280px;
}

.product-card[data-category="cuidado"] .carousel { border-top-color: var(--moss); }
.product-card[data-category="deporte"] .carousel { border-top-color: var(--green); }
.product-card[data-category="accesorios"] .carousel { border-top-color: var(--terracotta); }
.product-card[data-category="mallas"] .carousel { border-top-color: var(--red); }

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 320ms ease;
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
  height: 100%;
}

.carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-slot {
  height: 264px;
  display: grid;
  place-items: center;
  padding: 18px 18px 26px;
  background:
    linear-gradient(135deg, rgba(239, 208, 202, 0.35), transparent 45%),
    linear-gradient(160deg, var(--cream), var(--paper));
}
.image-frame {
  width: min(70%, 176px);
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  border: 1px dashed var(--warm-gray);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}
.carousel-button {
  position: absolute;
  z-index: 10;
  pointer-events: auto;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #ffffff;
  font-size: 1.8rem;
  line-height: 1;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  transition: color 180ms ease, transform 180ms ease, text-shadow 180ms ease;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
}

.carousel-button.prev { left: 8px; }
.carousel-button.next { right: 8px; }

.carousel-button:hover {
  color: var(--terracotta);
  transform: translateY(-50%) scale(1.15);
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.8);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7));
}
.carousel-dots {
  position: absolute;
  bottom: 9px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: rgba(5, 5, 23, 0.25);
  padding: 0;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}
.carousel-dot.is-active {
  background: var(--terracotta);
  transform: scale(1.25);
}

.product-body {
  display: flex;
  flex-direction: column;
  padding: 20px;
}
.product-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.category-pill {
  color: var(--terracotta);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}
.product-card[data-category="cuidado"] .category-pill { color: var(--moss); }
.product-card[data-category="deporte"] .category-pill { color: var(--green); }
.product-card[data-category="accesorios"] .category-pill { color: var(--terracotta); }
.product-card[data-category="mallas"] .category-pill { color: var(--red); }

.price {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 900;
  white-space: nowrap;
}
.price small {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
}
.product-description {
  margin: 12px 0 16px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.product-meta {
  margin-top: auto;
  display: grid;
  gap: 10px;
}
.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  color: var(--muted);
  font-size: 0.86rem;
}
.meta-row strong { color: var(--ink); }
.meta-block {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}
.meta-block .meta-content { color: var(--ink-soft); }

.size-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
}
.size-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.size-item strong { color: var(--ink); }

.empty-state {
  margin: 28px 0 0;
  color: var(--red);
  font-weight: 700;
}

/* ===== Botón "Ver más" ===== */
.ver-mas {
  margin-top: 14px;
  min-height: 44px;
  min-width: 120px;
  border-radius: var(--radius);
  background: #e8e4e0;
  color: var(--ink);
  border: 1px solid #c8c3bc;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0 22px;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.ver-mas:hover {
  background: var(--terracotta);
  color: var(--ink);
  border-color: var(--terracotta);
  transform: translateY(-2px);
}

/* ===== Fila de cotización en card / modal ===== */
.quote-actions {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
}
.quote-hint {
  margin-right: auto;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.quote-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--white);
  color: var(--ink);
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}
.quote-btn svg { width: 17px; height: 17px; }
.quote-btn.whatsapp { color: var(--whatsapp-dark); }
.quote-btn.whatsapp:hover {
  background: var(--whatsapp);
  border-color: var(--whatsapp);
  color: var(--whatsapp-contrast);
  transform: translateY(-2px);
}
.quote-btn.email:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
  transform: translateY(-2px);
}

/* ===== Aviso global de cotizaciones ===== */
.quote-notice {
  position: relative;
  margin: 0 0 26px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-top: 4px solid transparent;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(5, 5, 23, 0.05);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.quote-notice::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--terracotta), var(--yellow), var(--sage), var(--blue), var(--lavender));
}
.quote-notice strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.quote-notice p {
  margin: 6px 0 0;
  max-width: 640px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.quote-notice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.quote-notice .button { min-height: 44px; }

/* ===== WhatsApp flotante ===== */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 999;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(5, 5, 23, 0.28);
  transition: transform 180ms ease, box-shadow 180ms ease;
  animation: rise-in 600ms 500ms ease backwards;
}
.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 16px 36px rgba(5, 5, 23, 0.34);
}
.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: var(--whatsapp-contrast);
}

/* ===== Footer ===== */
.footer {
  position: relative;
  background: var(--ink);
  color: rgba(247, 241, 237, 0.78);
  margin-bottom: 0;
  padding-bottom: 0;
}
.footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--terracotta), var(--yellow), var(--sage), var(--blue), var(--lavender));
}
.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0 40px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 44px;
}
.footer-brand {
  display: grid;
  gap: 16px;
  justify-items: start;
}
.footer-logo-img {
  width: min(260px, 100%);
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.35));
}
.footer-brand p {
  margin: 0;
  max-width: 360px;
  font-size: 0.95rem;
}
.footer-col h4 {
  margin: 0 0 16px;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-links {
  display: grid;
  gap: 10px;
  justify-items: start;
  font-size: 0.95rem;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 180ms ease;
}
.footer-links a:hover { color: var(--sand); }
.footer-links a svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.footer-bottom {
  border-top: 1px solid rgba(247, 241, 237, 0.16);
}
.footer-bottom-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(247, 241, 237, 0.6);
}
.footer-bottom-inner p { margin: 0; }
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.legal-links a,
.inline-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-links a:hover,
.inline-link:hover {
  color: var(--sand);
}

/* ===== Sección de diseños personalizados ===== */
.custom-section { align-items: start; }
.custom-intro {
  display: grid;
  gap: 18px;
  align-content: start;
}
.custom-bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.custom-bullets li {
  position: relative;
  padding-left: 22px;
}
.custom-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--terracotta), var(--sand));
}
.custom-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.custom-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--terracotta), var(--yellow), var(--sage), var(--blue), var(--lavender));
}
.custom-card h3 { font-size: 1.35rem; }
.custom-card .button { border-radius: var(--radius); }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-field {
  display: grid;
  gap: 4px;
}
.form-field.full {
  grid-column: 1 / -1;
}
.form-field label {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Campos de entrada */
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: var(--white);
  color: var(--ink);
  outline: none;
  font-family: inherit;
  font-size: 0.98rem;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

/* Selects con estilo de ficha */
.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2361210f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 4px rgba(207, 92, 54, 0.15);
  background: var(--white);
}

/* Textarea como bloque de escritura */
.form-field textarea {
  resize: vertical;
  min-height: 120px;
  border-top: 2px solid var(--terracotta);
  background: linear-gradient(180deg, var(--white) 0%, var(--paper) 100%);
}

/* Radio buttons como opciones visuales */
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form-field.full label {
  margin-bottom: 8px;
}

.form-actions label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.form-actions label:hover {
  border-color: var(--terracotta);
  transform: translateY(-1px);
}

.form-actions input[type="radio"] {
  accent-color: var(--terracotta);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.form-actions input[type="radio"]:checked + span {
  color: var(--ink);
}

.form-actions label:has(input:checked) {
  border-color: var(--terracotta);
  background: linear-gradient(90deg, rgba(207, 92, 54, 0.08), transparent 60%);
  color: var(--ink);
}

.form-hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-style: italic;
}

.form-actions span {
  display: inline-block;
}

/* ===== Ficha técnica ===== */
.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}
.feature-list li {
  position: relative;
  padding-left: 18px;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--sage);
}

/* ===== Modal "Ver más" ===== */
html.modal-open,
body.modal-open {
  overflow: hidden;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 5, 23, 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: fade-in 220ms ease;
}
.modal-backdrop[hidden] { display: none; }
.modal {
  position: relative;
  width: min(600px, 100%);
  max-height: min(84vh, 760px);
  overflow: auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  animation: card-in 300ms ease;
}
.modal::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--terracotta), var(--yellow), var(--sage), var(--blue), var(--lavender));
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1;
  display: grid;
  place-items: center;
  z-index: 2;
  transition: background 180ms ease, color 180ms ease;
}
.modal-close:hover {
  background: var(--ink);
  color: var(--white);
}
.modal-content {
  display: grid;
  gap: 10px;
}
.modal-content h3 {
  margin: 10px 0 4px;
  font-size: 1.5rem;
}
.modal-price {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
}
.modal-price small {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
}
.category-pill[data-category="cuidado"] { color: var(--moss); }
.category-pill[data-category="deporte"] { color: var(--green); }
.category-pill[data-category="accesorios"] { color: var(--terracotta); }
.category-pill[data-category="mallas"] { color: var(--red); }

/* ===== Toast (respaldo de mailto) ===== */
#toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translate(-50%, 16px);
  z-index: 1300;
  width: min(92vw, 520px);
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--cream);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 16px 40px rgba(5, 5, 23, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease, transform 240ms ease;
}
#toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ===== Scroll offset individual por sección ===== */
#inicio {
  scroll-margin-top: 0px;
}

#catalogo {
  scroll-margin-top: 40px;
}

#personalizados {
  scroll-margin-top: 50px;
}

#mayoreo {
  scroll-margin-top: 20px;
}

#contacto {
  scroll-margin-top: 10px;
}

/* ===== Overlay "Ver Foto" en carrusel ===== */
.carousel-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  background: rgba(5, 5, 23, 0);
  cursor: pointer;
  transition: background 280ms ease;
  pointer-events: none; /* ← Permite que los clicks pasen a las flechas */
}
.carousel-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5, 5, 23, 0.35) 100%);
  opacity: 0;
  transition: opacity 280ms ease;
  pointer-events: none;
}
.carousel-overlay-text {
  position: relative;
  padding: 8px 16px;
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px) scale(0.95);
  transition: opacity 260ms ease, transform 260ms ease;
  pointer-events: auto; /* ← El botón "Ver Foto" sí recibe clicks */
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  background: transparent;
  border: none;
}
.carousel:hover .carousel-overlay::before {
  opacity: 1;
}
.carousel:hover .carousel-overlay-text {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.carousel-overlay:hover .carousel-overlay-text {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.carousel-overlay:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: -2px;
}
.carousel-overlay:focus-visible .carousel-overlay-text {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ===== Modal de fotos completas ===== */
.photo-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 5, 23, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: fade-in 220ms ease;
}
.photo-modal-backdrop[hidden] { display: none; }

.photo-modal {
  position: relative;
  width: min(1000px, 100%);
  max-height: min(90vh, 800px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  animation: card-in 300ms ease;
}

.photo-modal-figure {
  position: relative;
  width: 100%;
  display: grid;
  place-items: center;
}

.photo-modal-image {
  display: block;
  max-width: 100%;
  max-height: 75vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  background: var(--paper);
}

.photo-modal-controls {
  display: flex;
  align-items: center;
  gap: 18px;
}

.photo-modal-nav {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #ffffff;
  font-size: 1.6rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color 180ms ease, transform 180ms ease;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
}
.photo-modal-nav:hover:not(:disabled) {
  color: var(--terracotta);
  transform: scale(1.15);
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.8);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7));
}
.photo-modal-nav:disabled {
  opacity: 0.3;
  cursor: default;
}

.photo-modal-status {
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  min-width: 60px;
  text-align: center;
}

.photo-modal-close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #ffffff;
  font-size: 1.4rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
  transition: color 180ms ease, transform 180ms ease;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
}
.photo-modal-close:hover {
  color: var(--terracotta);
  transform: scale(1.15);
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.8);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7));
}

@media (max-width: 680px) {
  .photo-modal { max-height: 85vh; }
  .photo-modal-image { max-height: 65vh; }
  .photo-modal-close { top: -6px; right: -6px; width: 40px; height: 40px; }
  .photo-modal-nav { width: 42px; height: 42px; font-size: 1.4rem; }
}

/* ===== Movimiento reducido ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal,
  .js .reveal-card {
    opacity: 1;
    transform: none;
  }
}

/* ===== Responsive ===== */
@media (max-height: 820px) {
  .hero { padding: 28px 0 40px; }
  h1 { font-size: clamp(2.2rem, 4.6vw, 4.2rem); }
  .hero-text { font-size: 1rem; }
  .hero-actions { margin-top: 24px; }
  .metric { min-height: 92px; padding: 16px; }
}
@media (max-width: 1200px) {
  .nav { gap: 12px; }
  .nav-links { gap: 2px; }
  .nav-links a { padding: 9px 10px; font-size: 0.95rem; }
}
@media (max-width: 980px) {
  .hero,
  .section,
  .catalog-heading { grid-template-columns: 1fr; }
  .hero { gap: 34px; }
  .hero-panel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav { padding: 12px 20px; }
  .brand-logo { height: 44px; }
  .brand { font-size: 0.92rem; }

  /* Burger refinado */
  .nav-toggle { display: grid; width: 46px; height: 46px; }
  .nav-toggle-bar { width: 22px; height: 2.5px; border-radius: 3px; }
  body.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  body.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
  body.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

  /* Dropdown mejorado */
  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 6px 4px 10px;
    border: 1px solid var(--line);
    border-top: none;
    border-radius: var(--radius);
    background: var(--white);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 22px 56px rgba(5, 5, 23, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.97);
    transform-origin: top center;
    transition: opacity 280ms cubic-bezier(0.22, 1, 0.36, 1),
                transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
                visibility 0s linear 280ms;
  }
  body.nav-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 280ms cubic-bezier(0.22, 1, 0.36, 1),
                transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  /* Dropdown mejorado */
  .nav-links a {
    position: relative;
    min-height: 52px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-radius: var(--radius);
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 700;
    background: transparent;
    transition: background 180ms ease, transform 180ms ease;
  }
  .nav-links a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    bottom: 9px;
    width: 4px;
    border-radius: 4px;
    background: var(--muted);
    transition: background 180ms ease, transform 180ms ease;
  }
  .nav-links a[href="#catalogo"]::before { background: var(--terracotta); }
  .nav-links a[href="#personalizados"]::before { background: var(--yellow); }
  .nav-links a[href="#mayoreo"]::before { background: var(--moss); }
  .nav-links a[href="#contacto"]::before { background: var(--blue); }

  .nav-links a:hover {
    background: var(--peach);
    transform: translateX(3px);
  }
  .nav-links a:hover::before {
    transform: scaleY(1.15);
  }

  .nav-links a::after { display: none; }
  .hero { padding: 46px 0 58px; }
  h1 { font-size: 3rem; }
  .hero-panel,
  .catalog-grid { grid-template-columns: 1fr; }
  .metric { min-height: auto; }
  .section,
  .catalog-section { padding: 58px 0; }
  .product-card { min-height: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .custom-card { padding: 20px; }
  .modal { padding: 22px 18px; }
  .whatsapp-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; padding: 46px 0 34px; }
  .footer-logo-img { width: 210px; }
  .footer-bottom-inner { flex-direction: column; gap: 6px; }
}

/* ===== Página 404 ===== */
.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background: linear-gradient(180deg, var(--peach) 0%, var(--cream) 48%, var(--paper) 100%);
}
.error-layout {
  width: min(760px, 100%);
  margin: 0 auto;
  display: grid;
  justify-items: start;
  gap: 18px;
}
.error-logo {
  width: min(260px, 100%);
  height: auto;
  display: block;
}
.error-layout h1 {
  font-size: clamp(2.4rem, 8vw, 5rem);
}

/* ===== Páginas legales ===== */
.legal-header {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 0;
}
.legal-page {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 86px;
  display: grid;
  gap: 18px;
}
.legal-page h1 {
  font-size: clamp(2.4rem, 7vw, 4.8rem);
}
.legal-page h2 {
  margin-top: 18px;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.08;
}
.legal-page p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
}
.legal-page .inline-link:hover {
  color: var(--red);
}
