/* Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-normal);
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  text-transform: none; /* Evita forzar minúsculas al escribir */
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-tight);
  color: var(--primary); /* Color Terracota/Rust principal */
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Títulos Especiales (Playfair Display Medium Italic) */
.hero-title,
.customize-title,
[style*="var(--font-primary)"] {
  font-family: var(--font-primary) !important;
  font-style: italic !important;
  text-transform: none !important;
  font-weight: 500 !important;
}

/* Subtítulos (IBM Plex Mono Italic) */
.subtitle-mono-italic,
h3[style*="var(--font-secondary)"][style*="italic"],
h3[style*="var(--font-primary)"][style*="italic"] {
  font-family: var(--font-secondary) !important;
  font-style: italic !important;
  font-weight: 400 !important;
  color: var(--text) !important; /* Espresso */
  letter-spacing: 0 !important;
}

h1 {
  font-size: var(--font-size-5xl);
}

h2 {
  font-size: var(--font-size-4xl);
}

h3 {
  font-size: var(--font-size-3xl);
}

h4 {
  font-size: var(--font-size-2xl);
}

h5 {
  font-size: var(--font-size-xl);
}

h6 {
  font-size: var(--font-size-lg);
}

p {
  margin-bottom: var(--space-md);
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: var(--font-weight-bold);
}

em {
  font-style: italic;
}

/* Utilidades de texto */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Utilidades de visibilidad */
.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;
}
