/* ============================================================================
   LIVE YOUR DREAM — Base: reset, tipografía, contenedores, componentes UI
   Componentes con prefijo .lyd-* para no colisionar con WooCommerce.
   ============================================================================ */

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--lh-body);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
  background: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
img { object-fit: cover; }

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

button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: var(--fw-bold); line-height: var(--lh-h2); color: var(--text-primary); }
h1, h2 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: -0.01em; }
h1 { font-size: var(--text-h1); line-height: var(--lh-h1); }
h2 { font-size: var(--text-h2); line-height: var(--lh-h2); }
h3 { font-size: var(--text-h3); line-height: var(--lh-h3); }
h4 { font-size: var(--text-h4); line-height: var(--lh-h4); }
p  { margin: 0 0 var(--space-4); }

/* Utilidad de titular display (condensado, mayúsculas) */
.lyd-display { font-family: var(--font-display); text-transform: uppercase; font-weight: var(--fw-bold); letter-spacing: -0.01em; line-height: var(--lh-display); }

/* Los nombres de producto van en font-sans sentence-case (no display) */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product h3,
.lyd-card__name,
.lyd-product__name { font-family: var(--font-sans); text-transform: none; letter-spacing: 0; }

:focus-visible { outline: none; box-shadow: var(--shadow-focus); border-radius: var(--radius-sm); }

/* ---- Contenedor ---- */
.lyd-container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter-desktop);
}
@media (max-width: 1024px) { .lyd-container { padding-inline: var(--gutter-tablet); } }
@media (max-width: 767px)  { .lyd-container { padding-inline: var(--gutter-mobile); } }

.lyd-section { padding-block: var(--space-16); }
.lyd-section--paper { background: var(--bg-elevated); }
.lyd-section--tight { padding-block: var(--space-8); }
@media (max-width: 767px) { .lyd-section { padding-block: var(--space-10); } }

/* ---- Botones ---- */
.lyd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 14px 26px;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: #ffffff;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease, transform 120ms ease;
  text-align: center;
  white-space: nowrap;
}
.lyd-btn svg { width: 1.15em; height: 1.15em; flex: 0 0 auto; }
.lyd-btn:hover  { background: var(--accent); border-color: var(--accent); color: var(--accent-on); }
.lyd-btn:active { transform: scale(0.98); }
.lyd-btn[disabled], .lyd-btn.is-disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

/* Secundario = outline negro; hover invierte a negro */
.lyd-btn--secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.lyd-btn--secondary:hover { background: var(--ink); color: #ffffff; }

/* Invertido: blanco sobre fondo oscuro (heros a sangre) */
.lyd-btn--invert { background: #ffffff; color: var(--ink); border-color: #ffffff; }
.lyd-btn--invert:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-on); }

.lyd-btn--ghost {
  background: transparent;
  border-color: var(--border-default);
  color: var(--text-primary);
}
.lyd-btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: #ffffff; }

/* Ghost claro sobre fondos oscuros */
.lyd-btn--ghost-light { background: transparent; border-color: rgba(255,255,255,0.7); color: #ffffff; }
.lyd-btn--ghost-light:hover { background: #ffffff; color: var(--ink); border-color: #ffffff; }

.lyd-btn--lg { min-height: 56px; padding: 18px 32px; font-size: 1rem; }

.lyd-btn--link {
  min-height: auto; padding: 0; background: none; border: 0; color: var(--ink);
  text-transform: none; letter-spacing: 0; font-family: var(--font-sans);
  text-decoration: underline; font-weight: var(--fw-medium);
}
.lyd-btn--link:hover { background: none; color: var(--ink); }
.lyd-btn--block { width: 100%; }

/* ---- Campos de formulario ---- */
.lyd-field, .lyd-input {
  width: 100%;
  min-height: 48px;
  padding: 14px 16px;
  font: inherit;
  font-size: var(--text-body);
  color: var(--text-primary);
  background: var(--bg-base);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.lyd-field::placeholder { color: var(--text-tertiary); }
.lyd-field:focus { outline: none; border-color: var(--accent-primary); box-shadow: var(--shadow-focus); }
.lyd-field.is-error { border-color: var(--error); box-shadow: 0 0 0 3px rgba(197, 48, 48, 0.2); }
.lyd-field[disabled] { background: var(--bg-sunken); color: var(--text-muted); }
.lyd-label { display: block; font-size: var(--text-small); font-weight: var(--fw-bold); margin-bottom: var(--space-2); }

/* ---- Badges ---- */
.lyd-badge {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-micro);
  font-weight: var(--fw-bold);
  line-height: 1;
  padding: 4px 8px;
  border-radius: var(--radius-full);
}
.lyd-badge--sale { background: var(--badge-sale-bg); color: var(--badge-sale-text); }
.lyd-badge--new  { background: var(--badge-new-bg);  color: var(--badge-new-text); }
.lyd-badge--out  { background: var(--badge-out-bg);  color: var(--badge-out-text); }

/* ---- Quantity stepper ---- */
.lyd-qty {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.lyd-qty button {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: transparent; border: 0;
  color: var(--text-primary); font-size: 1.2rem; line-height: 1;
}
.lyd-qty button:hover { background: var(--bg-elevated); }
.lyd-qty input {
  width: 56px; text-align: center; border: 0; background: transparent;
  font-weight: var(--fw-bold); font-size: var(--text-body); font-family: inherit;
  -moz-appearance: textfield;
}
.lyd-qty input::-webkit-outer-spin-button,
.lyd-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---- Precio ---- */
.lyd-price { font-variant-numeric: tabular-nums; font-weight: var(--fw-bold); }
.lyd-price__now  { color: var(--price-text); }
.lyd-price__was  { color: var(--price-strike); text-decoration: line-through; font-weight: var(--fw-medium); margin-left: var(--space-2); }
.lyd-price--sale .lyd-price__now { color: var(--price-discount); }

/* ---- Empty state ---- */
.lyd-empty { padding: var(--space-12) var(--space-6); text-align: center; }
.lyd-empty__title { font-size: var(--text-h3); font-weight: var(--fw-bold); margin-bottom: var(--space-3); }
.lyd-empty__copy { color: var(--text-muted); max-width: 360px; margin: 0 auto var(--space-6); }

/* ---- Skeleton ---- */
.lyd-skeleton {
  background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-sunken) 50%, var(--bg-elevated) 75%);
  background-size: 200% 100%;
  animation: lyd-skeleton-pulse 1.5s ease-in-out infinite;
}
@keyframes lyd-skeleton-pulse { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---- Utilidades ---- */
.lyd-visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.lyd-eyebrow { font-size: var(--text-micro); font-weight: var(--fw-bold); letter-spacing: 0.04em; color: var(--text-muted); text-transform: uppercase; }

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

/* Elimina el margen del wrapper de bloques del home */
.wp-site-blocks, .entry-content.alignfull { margin-top: 0; }
