/* ==========================================================================
   JM · Base — reset, tipografía, contenedores, botones, utilidades
   ========================================================================== */

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

/* El atributo hidden debe ganar siempre a los `display` de los componentes
   (menú de cuenta, formularios del modal, etc.). */
[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--wd-text-font);
  font-size: var(--wd-text-size);
  font-weight: var(--wd-text-weight);
  line-height: 1.6;
  color: var(--wd-text-color);
  background: var(--wd-body-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.wd-no-scroll {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--wd-title-font);
  font-weight: var(--wd-title-weight);
  color: var(--wd-title-color);
  line-height: 1.15;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--wd-link-color);
  text-decoration: none;
  transition: color var(--wd-t-fast);
}

a:hover {
  color: var(--wd-link-color-hover);
}

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

/* Los iconos SVG inline heredan trazo y color del texto que los contiene.
   Los que son sólidos (p. ej. Facebook) llevan la clase .ic-fill. */
svg:not(.ic-fill) {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--wd-primary-color);
  outline-offset: 2px;
}

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

/* ------------------------------------------------------------- container */

.container {
  width: 100%;
  max-width: var(--wd-container-w);
  margin-inline: auto;
  padding-inline: 30px;
}

/* ----------------------------------------------------------------- grid */

.wd-grid {
  display: grid;
  gap: var(--wd-gutter);
}

.wd-grid-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.wd-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.wd-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.wd-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1024px) {
  .wd-grid-5,
  .wd-grid-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    --wd-gutter: 20px;
  }
}

@media (max-width: 767px) {
  .wd-grid-5,
  .wd-grid-4,
  .wd-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    --wd-gutter: 10px;
  }
}

@media (max-width: 480px) {
  .wd-grid-2 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------- botones */

.btn {
  --btn-bg: var(--wd-primary-color);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 19px 32px;
  border: 1px solid transparent;
  border-radius: var(--wd-radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--wd-text-font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--wd-t-fast), color var(--wd-t-fast), border-color var(--wd-t-fast),
    transform var(--wd-t-fast), box-shadow var(--wd-t-fast);
}

.btn:hover {
  color: var(--btn-fg);
  background: var(--wd-primary-color-hover);
}

.btn:active {
  transform: translateY(1px);
}

.btn--outline {
  --btn-bg: #fff;
  --btn-fg: var(--wd-dark-2);
  border-color: var(--wd-border);
}

.btn--outline:hover {
  --btn-bg: #fff;
  --btn-fg: var(--wd-primary-color);
  border-color: var(--wd-primary-color);
}

.btn--default {
  --btn-bg: var(--wd-surface);
  --btn-fg: var(--wd-dark-2);
}

.btn--default:hover {
  --btn-bg: var(--wd-surface-hover);
  --btn-fg: var(--wd-dark-2);
}

.btn--dark {
  --btn-bg: var(--wd-dark);
  --btn-fg: #fff;
}

.btn--dark:hover {
  --btn-bg: var(--wd-dark-2);
}

.btn--sm {
  padding: 12px 22px;
  font-size: 12px;
}

.btn--block {
  width: 100%;
}

/* ------------------------------------------------------------- etiquetas */

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--wd-primary-color);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

.badge--hollow {
  background: transparent;
  border: 1px solid var(--wd-border);
  color: var(--wd-text-color);
}

.label-sale {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 13px;
  background: var(--wd-sale-color);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.label-hot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--wd-sale-color);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.label-out {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 13px;
  background: var(--wd-dark-2);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

/* ------------------------------------------------------------ separador */

.sep {
  height: 1px;
  background: var(--wd-border-soft);
  border: 0;
  margin: 0;
}

/* ------------------------------------------------------------- superficie */

.surface {
  background: var(--wd-surface);
}

.wd-section {
  padding-block: 70px;
}

@media (max-width: 767px) {
  .wd-section {
    padding-block: 44px;
  }
}

/* --------------------------------------------------- encabezado de sección */

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}

.sec-head__title {
  font-size: 34px;
  line-height: 1.1;
}

.sec-head__subtitle {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--wd-text-color);
  max-width: 560px;
}

.sec-head__link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wd-primary-color);
  white-space: nowrap;
}

/* en móvil y tablet el enlace del encabezado gana área táctil */
@media (max-width: 1024px) {
  .sec-head__link {
    display: inline-block;
    padding: 10px 0;
  }
}

.sec-head__link:hover {
  color: var(--wd-primary-color-hover);
}

@media (max-width: 767px) {
  .sec-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .sec-head__title {
    font-size: 26px;
  }
}

}


