/* ============================================================================
   MackPadel — Hoja de estilos principal
   ----------------------------------------------------------------------------
   Sin frameworks: CSS a mano, para que el sitio abra directo con doble clic
   en index.html sin depender de un paso de compilación.
   Carga después de tokens.css (ahí viven los colores y fuentes).
   ========================================================================== */

/* --- Reset básico --------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--offwhite);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 200;
  background: var(--black);
  color: var(--white);
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 1rem;
}

/* --- Contenedor y layout ---------------------------------------------------*/
.wrap {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

@media (min-width: 1024px) {
  .wrap {
    padding-inline: 2rem;
  }
}

.section {
  padding-block: 4.5rem;
}
@media (min-width: 768px) {
  .section {
    padding-block: 6rem;
  }
}
.section--tight {
  padding-block: 3rem;
}
.section--dark {
  background: var(--black);
  color: var(--white);
}
.section--offwhite {
  background: var(--offwhite);
}
.section--white {
  background: var(--white);
}

.section-head {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: 3rem;
}

/* Texto largo: limita la medida de lectura sin encoger ni centrar el .wrap,
   para que el párrafo siga alineado a la izquierda con los encabezados. */
.prose > p {
  max-width: 68ch;
}
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime-deep);
}
.section--dark .eyebrow {
  color: var(--lime);
}
.section-title {
  margin-top: 0.75rem;
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
}
.section-desc {
  margin-top: 1.1rem;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--steel);
}
.section--dark .section-desc {
  color: var(--steel-dark);
}

/* --- Animación de aparición (misma técnica robusta que en brio-studio) ---
   Todo depende de html.js: si el JS no carga, el contenido se ve normal
   en vez de quedarse invisible. */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.55s ease-out,
    transform 0.55s ease-out;
}
html.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
html.js [data-reveal-delay='1'] {
  transition-delay: 0.08s;
}
html.js [data-reveal-delay='2'] {
  transition-delay: 0.16s;
}
html.js [data-reveal-delay='3'] {
  transition-delay: 0.24s;
}

/* --- Botones --------------------------------------------------------------*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
  white-space: nowrap;
}
.btn svg {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
}
.btn-primary {
  background: var(--lime);
  color: var(--black);
}
.btn-primary:hover {
  background: #d8ff6b;
  transform: translateY(-1px);
}
.btn-dark {
  background: var(--black);
  color: var(--white);
}
.btn-dark:hover {
  background: #202420;
}
.btn-outline {
  border: 1.5px solid var(--line-light);
  color: var(--ink);
}
.btn-outline:hover {
  border-color: var(--ink);
}
.section--dark .btn-outline {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--white);
}
.section--dark .btn-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}
.btn-ghost {
  color: var(--ink);
  padding-inline: 0.25rem;
}
.section--dark .btn-ghost {
  color: var(--white);
}
.btn-block {
  width: 100%;
}
.btn-lg {
  padding: 1.1rem 2rem;
  font-size: 1rem;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* --- Barra de navegación ---------------------------------------------------*/
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  background: rgba(10, 12, 11, 0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dark);
}
.nav__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1rem;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.nav__logo img {
  height: 26px;
  width: auto;
}
.footer__brand img {
  height: 30px;
  width: auto;
}
.nav__logo-fallback {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  color: var(--white);
}
.nav__logo-fallback span {
  color: var(--lime);
}
.nav__links {
  display: none;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 900px) {
  .nav__links {
    display: flex;
  }
}
.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  position: relative;
  transition: color 0.2s ease;
}
.nav__links a:hover,
.nav__links a[aria-current='page'] {
  color: var(--white);
}
.nav__links a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--lime);
  border-radius: 2px;
}
.nav__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav__icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--white);
  transition: background-color 0.2s ease;
}
.nav__icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}
.nav__icon-btn svg {
  width: 20px;
  height: 20px;
}
.cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding-inline: 3px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--black);
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-count[hidden] {
  display: none;
}
.nav__toggle {
  display: inline-flex;
  color: var(--white);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}
@media (min-width: 900px) {
  .nav__toggle {
    display: none;
  }
}
.nav__toggle svg {
  width: 24px;
  height: 24px;
}

.nav__mobile {
  display: none;
  border-top: 1px solid var(--line-dark);
  background: var(--black);
}
.nav__mobile.is-open {
  display: block;
}
.nav__mobile ul {
  padding: 1rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.nav__mobile a {
  display: block;
  padding: 0.85rem 0.5rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  border-radius: 10px;
}
.nav__mobile a:hover,
.nav__mobile a[aria-current='page'] {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

/* --- Migas de pan -----------------------------------------------------------*/
.crumbs {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}
.crumbs a {
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s ease;
}
.crumbs a:hover {
  color: var(--lime);
}
.crumbs span[aria-hidden] {
  margin-inline: 0.4rem;
}
.crumbs .current {
  color: rgba(255, 255, 255, 0.92);
}
.crumbs--on-light {
  color: rgba(10, 12, 11, 0.5);
}
.crumbs--on-light a {
  color: var(--steel);
}
.crumbs--on-light a:hover {
  color: var(--lime-deep);
}
.crumbs--on-light .current {
  color: var(--ink);
}

/* --- Hero -------------------------------------------------------------------*/
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--black);
  padding-top: 9rem;
  padding-bottom: 5rem;
}
@media (min-width: 768px) {
  .hero {
    padding-top: 11rem;
    padding-bottom: 6rem;
  }
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(ellipse 80% 60% at 80% 0%, #182115 0%, var(--black) 60%);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.06;
  background-image:
    linear-gradient(to right, #fff 1px, transparent 1px),
    linear-gradient(to bottom, #fff 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 0%, #000 40%, transparent 100%);
}
.hero__glow {
  position: absolute;
  top: -120px;
  right: -100px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: var(--lime);
  opacity: 0.14;
  filter: blur(120px);
  z-index: -1;
}
.hero__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
  }
}
.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.75rem;
}
.hero__tag .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  line-height: 1.06;
}
.hero h1 em {
  font-style: normal;
  color: var(--lime);
}
.hero p {
  margin-top: 1.5rem;
  font-size: 1.15rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  max-width: 42ch;
}
.hero__actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero__media {
  position: relative;
  /* 1:1 porque así se recortó hero-main.jpg (ver README, sección de imágenes).
     Si cambias esa foto por una de otra proporción, ajusta esto también. */
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-dark);
  border: 1px solid var(--line-dark);
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Placeholder de imagen (mientras no hay foto real) --------------------
   El <img> lleva onerror="handleImgError(this)" en el HTML, que agrega la
   clase .media--empty al contenedor y oculta la etiqueta rota. */
.media {
  position: relative;
  background: var(--surface-dark);
  overflow: hidden;
}
.media--empty img {
  display: none;
}
.media__placeholder {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-align: center;
  padding: 1rem;
  background:
    linear-gradient(135deg, #14170f 0%, #0a0c0b 100%);
}
.media--empty .media__placeholder {
  display: flex;
}
.media__placeholder svg {
  width: 34px;
  height: 34px;
  color: var(--lime);
  opacity: 0.6;
}
.media__placeholder span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

/* --- Píldoras de valor ------------------------------------------------------*/
.pills {
  margin-top: -2.75rem;
  position: relative;
  z-index: 5;
}
.pills__grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 768px) {
  .pills__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.pill {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-card);
}
.pill__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--lime-soft);
  color: var(--lime-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}
/* En fondo oscuro el --lime-deep queda en 1.97:1 (invisible). El lima puro
   sobre el mismo fondo da 11.3:1. */
.section--dark .pill__icon {
  color: var(--lime);
}
.pill__icon svg {
  width: 22px;
  height: 22px;
}
.pill strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  /* Sin esto hereda el --steel del span contenedor y el título queda
     del mismo gris que su descripción, sin jerarquía. */
  color: var(--ink);
}
/* :not(.pill__icon) es necesario: sin él esta regla gana en especificidad
   sobre .pill__icon y le rompe el display:flex que centra el ícono. */
.pill span:not(.pill__icon) {
  display: block;
  font-size: 0.85rem;
  color: var(--steel);
  margin-top: 0.15rem;
}

/* --- Categorías --------------------------------------------------------------*/
.categories {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px) {
  .categories {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1024px) {
  .categories {
    grid-template-columns: repeat(6, 1fr);
  }
}
.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line-light);
  text-align: center;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.cat-card:hover {
  transform: translateY(-3px);
  border-color: var(--lime-deep);
  box-shadow: var(--shadow-card);
}
.cat-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--black);
  color: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-card__icon svg {
  width: 24px;
  height: 24px;
}
.cat-card strong {
  font-size: 0.9rem;
  font-family: var(--font-display);
}

/* --- Cuadrícula de productos --------------------------------------------------*/
.product-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-light);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.product-card__media {
  aspect-ratio: 1 / 1;
}
.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card__media img {
  transform: scale(1.04);
}
.product-card__badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 2;
}
.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: var(--black);
  color: var(--lime);
}
.badge--sale {
  background: var(--lime);
  color: var(--black);
}
.product-card__body {
  padding: 1.1rem 1.15rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}
.product-card__cat {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime-deep);
}
.product-card__name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.product-card__name a::after {
  content: '';
  position: absolute;
  inset: 0;
}
.product-card__price {
  margin-top: 0.4rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}
.price--compare {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--steel);
  text-decoration: line-through;
}

.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}
.filter-chip {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid var(--line-light);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
}
.filter-chip:hover {
  border-color: var(--ink);
}
.filter-chip.is-active {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}
.filter-chip.is-active::before {
  content: '';
}

.results-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--steel);
}

/* --- Ficha de producto ---------------------------------------------------------*/
.product-detail {
  display: grid;
  gap: 3rem;
}
@media (min-width: 900px) {
  .product-detail {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}
.product-detail__media {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
}
.product-detail__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-detail__cat {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime-deep);
}
.product-detail__name {
  margin-top: 0.6rem;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}
.product-detail__price {
  margin-top: 1rem;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}
.product-detail__price .price {
  font-size: 1.75rem;
}
.product-detail__short {
  margin-top: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--steel);
}
.spec-grid {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line-light);
}
.spec-grid dt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
}
.spec-grid dd {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 0.2rem;
}

.size-picker {
  margin-top: 1.5rem;
}
.size-picker__label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  display: block;
}
.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.size-option {
  min-width: 46px;
  padding: 0.55rem 0.8rem;
  text-align: center;
  border-radius: 10px;
  border: 1.5px solid var(--line-light);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.15s ease;
}
.size-option:hover {
  border-color: var(--ink);
}
.size-option.is-selected {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--line-light);
  border-radius: 999px;
  overflow: hidden;
}
.qty-stepper button {
  /* 44x44 es el tamaño mínimo recomendado para tocar cómodo en celular
     (criterio de accesibilidad WCAG 2.5.5). */
  width: 44px;
  height: 44px;
  font-size: 1.1rem;
  font-weight: 700;
}
.qty-stepper button:hover {
  background: var(--offwhite);
}
.qty-stepper input {
  width: 44px;
  text-align: center;
  border: none;
  font-weight: 600;
  font-family: var(--font-display);
  background: transparent;
}

.product-detail__buy {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.trust-row {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-light);
}
.trust-row li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--steel);
}
.trust-row svg {
  width: 18px;
  height: 18px;
  color: var(--lime-deep);
  flex-shrink: 0;
}

/* --- Carrito -----------------------------------------------------------------*/
.cart-layout {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 900px) {
  .cart-layout {
    grid-template-columns: 1.6fr 1fr;
  }
}
.cart-line {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line-light);
}
.cart-line__media {
  width: 84px;
  height: 84px;
  border-radius: 12px;
  overflow: hidden;
}
.cart-line__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-line__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}
.cart-line__meta {
  font-size: 0.8rem;
  color: var(--steel);
  margin-top: 0.2rem;
}
.cart-line__price {
  font-family: var(--font-display);
  font-weight: 600;
  text-align: right;
}
.cart-line__remove {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--steel);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cart-line__remove:hover {
  color: #b3261e;
}
.cart-line__row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.cart-line__bottom {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.4rem;
}

.summary-card {
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: sticky;
  top: 6rem;
}
.summary-card h2 {
  font-size: 1.15rem;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  padding-block: 0.6rem;
}
.summary-row.total {
  border-top: 1px solid var(--line-dark);
  margin-top: 0.5rem;
  padding-top: 1rem;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}
.summary-row .price {
  color: inherit;
}
.promo-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

.empty-state {
  text-align: center;
  padding: 5rem 1rem;
}
.empty-state svg {
  width: 56px;
  height: 56px;
  color: var(--steel);
  margin-inline: auto;
  margin-bottom: 1.25rem;
}
.empty-state h2 {
  font-size: 1.4rem;
}
.empty-state p {
  margin-top: 0.6rem;
  color: var(--steel);
}
.empty-state .btn {
  margin-top: 1.75rem;
}

/* --- Formularios ---------------------------------------------------------------*/
.field {
  margin-bottom: 1.25rem;
}
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1.5px solid var(--line-light);
  background: var(--white);
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--lime-deep);
  outline: none;
}
.field-row {
  display: grid;
  gap: 1rem;
}
@media (min-width: 560px) {
  .field-row--2 {
    grid-template-columns: 1fr 1fr;
  }
  .field-row--3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
.field-hint {
  font-size: 0.78rem;
  color: var(--steel);
  margin-top: 0.35rem;
}
.field-error {
  font-size: 0.78rem;
  color: #b3261e;
  margin-top: 0.35rem;
  display: none;
}
.field.has-error input,
.field.has-error select {
  border-color: #b3261e;
}
.field.has-error .field-error {
  display: block;
}

/* --- Pasos de checkout -----------------------------------------------------------*/
.steps {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--steel);
}
.step__num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--offwhite);
  border: 1.5px solid var(--line-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
}
.step__num svg {
  width: 13px;
  height: 13px;
}
.step.is-active {
  color: var(--ink);
  font-weight: 600;
}
.step.is-active .step__num {
  background: var(--black);
  border-color: var(--black);
  color: var(--lime);
}
.step.is-done .step__num {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--black);
}
.step-sep {
  width: 24px;
  height: 1.5px;
  background: var(--line-light);
}

.pay-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border: 1.5px solid var(--line-light);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  transition: border-color 0.2s ease;
  cursor: pointer;
}
.pay-option:hover {
  border-color: var(--ink);
}
.pay-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--lime-deep);
  flex-shrink: 0;
}
.pay-option svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--ink);
}
.pay-option__logo {
  height: 22px;
}
.pay-option strong {
  display: block;
  font-size: 0.9rem;
}
.pay-option span {
  display: block;
  font-size: 0.78rem;
  color: var(--steel);
}

.delivery-estimate {
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  background: var(--lime-soft);
  border: 1px solid rgba(63, 102, 0, 0.18);
  display: none;
  align-items: flex-start;
  gap: 0.75rem;
}
.delivery-estimate.is-visible {
  display: flex;
}
.delivery-estimate svg {
  width: 20px;
  height: 20px;
  color: var(--lime-deep);
  flex-shrink: 0;
  margin-top: 2px;
}
.delivery-estimate strong {
  display: block;
  font-size: 0.9rem;
  color: var(--ink);
}
.delivery-estimate span {
  display: block;
  font-size: 0.82rem;
  color: var(--steel);
  margin-top: 0.15rem;
}

/* --- Cuenta / login -------------------------------------------------------------*/
.auth-card {
  max-width: 440px;
  margin-inline: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  border: 1px solid var(--line-light);
}
.auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  background: var(--offwhite);
  padding: 0.3rem;
  border-radius: 999px;
}
.auth-tab {
  flex: 1;
  text-align: center;
  padding: 0.65rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--steel);
}
.auth-tab.is-active {
  background: var(--black);
  color: var(--white);
}
.auth-panel[hidden] {
  display: none;
}

.account-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.account-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--black);
  color: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
}

.order-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.order-row__id {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
}
.order-row__meta {
  font-size: 0.8rem;
  color: var(--steel);
  margin-top: 0.2rem;
}
.order-status {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--lime-soft);
  color: var(--lime-deep);
}

/* --- Toast (confirmación de "agregado al carrito") ------------------------------*/
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--black);
  color: var(--white);
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.45);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}
.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.toast svg {
  width: 18px;
  height: 18px;
  color: var(--lime);
}

/* --- Aviso de demostración ---------------------------------------------------- */
.demo-banner {
  background: var(--lime);
  color: var(--black);
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
}
.demo-banner a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --- Footer ---------------------------------------------------------------------*/
.footer {
  background: var(--black-deep);
  color: rgba(255, 255, 255, 0.6);
  padding-block: 3.5rem 2rem;
}
.footer__grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 700px) {
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}
.footer__brand p {
  margin-top: 1rem;
  font-size: 0.9rem;
  max-width: 26ch;
  line-height: 1.6;
}
.footer h3 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.1rem;
}
.footer ul {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer a {
  font-size: 0.88rem;
  transition: color 0.2s ease;
}
.footer a:hover {
  color: var(--lime);
}
.footer__bottom {
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.78rem;
}

/* --- Cuadrículas responsivas genéricas -------------------------------------------
   Para usar en secciones sueltas sin tener que escribir grid-template-columns
   inline (eso rompe el responsivo: un estilo inline no respeta @media). */
.grid-2 {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}
.grid-3 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Utilidades ------------------------------------------------------------------*/
.text-center {
  text-align: center;
}
.mt-lg {
  margin-top: 3rem;
}
.stack {
  display: flex;
  flex-direction: column;
}
.gap-sm {
  gap: 0.5rem;
}
.gap-md {
  gap: 1rem;
}
