/*
 * Dulce Lujuria - Módulo Base y Sistema de Diseño
 * Variables globales, resets, tipografías y contenedores
 */

:root {
  --dl-bg: #140f13;
  --dl-surface: #1e151d;
  --dl-surface-hover: #291c27;
  --dl-border: rgba(225, 29, 116, 0.2);
  --dl-border-subtle: rgba(255, 255, 255, 0.08);
  --dl-primary: #e11d74;
  --dl-primary-hover: #f43f8a;
  --dl-primary-glow: rgba(225, 29, 116, 0.45);
  --dl-secondary: #35152a;
  --dl-accent: #e11d48;
  --dl-text: #f8f2f4;
  --dl-text-primary: var(--dl-text);
  --dl-text-muted: #a6919e;
  --dl-font-display: 'Playfair Display', Georgia, serif;
  --dl-font-body: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--dl-bg);
  color: var(--dl-text);
  font-family: var(--dl-font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button,
input,
optgroup,
select,
textarea {
  font-family: var(--dl-font-body);
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: var(--dl-font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* Layout Global y Wrappers para Ancho Completo */
#page, .site, .site-main {
  width: 100%;
  max-width: 100%;
}

/* Secciones exteriores siempre abarcan el 100% del viewport */
.dl-header,
.dl-hero,
.dl-trust-bar,
.dl-categories-section,
.dl-bestsellers-section,
.dl-recommended-section,
.dl-guide-section,
.dl-instagram-section,
.dl-newsletter-section,
.dl-footer {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Contenedores interiores centrados con soporte responsivo ultra-ancho */
.dl-container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-sizing: border-box;
}

@media (min-width: 1536px) {
  .dl-container {
    max-width: 1400px;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1920px) {
  .dl-container {
    max-width: 1520px;
  }
}

@media (max-width: 480px) {
  .dl-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Tipografía de Lujo & Degradados */
.text-gradient-magenta {
  background: linear-gradient(135deg, #f472b6, #e11d74, #e11d48);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glow-magenta {
  box-shadow: 0 0 35px -5px var(--dl-primary-glow);
}

.glow-magenta-hover:hover {
  box-shadow: 0 0 45px 0 var(--dl-primary-glow);
  transform: translateY(-2px);
}

/* Skip Navigation Link (Accesibilidad WCAG 2.1) */
.dl-skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 999;
  padding: 0.75rem 1.5rem;
  background: var(--dl-primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 0.75rem 0;
}
.dl-skip-link:focus {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  z-index: 9999;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* Ocultar visualmente textos para lectores de pantalla de WordPress / WooCommerce */
.screen-reader-text {
  border: 0 !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
  word-wrap: normal !important;
}
