/**
 * REFORMAS YAMYLU — Base Styles
 * Reset global, tipografía, botones, scrollbar, utilidades
 */

/* ═══════════════════════════════════════════
   RESET & BOX MODEL
═══════════════════════════════════════════ */

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

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  background-color: var(--color-night);
  color: var(--color-white);
  line-height: 1.0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  cursor: none; /* Custom cursor activo */
}

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

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

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

ul, ol {
  list-style: none;
}

/* ═══════════════════════════════════════════
   SELECCIÓN DE TEXTO
═══════════════════════════════════════════ */

::selection {
  background: var(--color-gold);
  color: var(--color-night);
}

::-moz-selection {
  background: var(--color-gold);
  color: var(--color-night);
}

/* ═══════════════════════════════════════════
   SCROLLBAR PREMIUM
═══════════════════════════════════════════ */

::-webkit-scrollbar {
  width: 3px;
}

::-webkit-scrollbar-track {
  background: var(--color-night);
}

::-webkit-scrollbar-thumb {
  background: var(--color-gold-dim);
  border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold);
}

/* ═══════════════════════════════════════════
   CURSOR PERSONALIZADO
═══════════════════════════════════════════ */

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border: 1px solid var(--color-gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition:
    width  400ms var(--ease-premium),
    height 400ms var(--ease-premium),
    opacity 300ms ease,
    border-color 300ms ease;
  will-change: transform;
}

.cursor--dot {
  width: 4px;
  height: 4px;
  background: var(--color-gold);
  border: none;
  transition: width 250ms var(--ease-premium), height 250ms var(--ease-premium), opacity 300ms ease;
}

.cursor--expanded {
  width: 44px;
  height: 44px;
  border-color: var(--color-gold-bright);
}

.cursor--hidden {
  opacity: 0;
}

@media (hover: none), (max-width: 1023px) {
  .cursor,
  .cursor--dot {
    display: none;
  }
  body {
    cursor: auto;
  }
  a,
  button {
    cursor: pointer;
  }
}

/* ═══════════════════════════════════════════
   TIPOGRAFÍA BASE
═══════════════════════════════════════════ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--color-white);
}

p {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.70;
  color: var(--color-white-80);
}

em {
  font-style: italic;
}

strong {
  font-weight: 500;
}

/* ═══════════════════════════════════════════
   BOTONES — SISTEMA GLOBAL
   Definidos en DESIGN_SYSTEM.md §11
═══════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 15px 40px;
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: var(--border-radius);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all var(--duration-fast) var(--ease-premium);
  white-space: nowrap;
}

/* Botón Primario — Contorno Dorado */
.btn--primary {
  background: transparent;
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
}

.btn--primary:hover {
  background: var(--color-gold);
  color: var(--color-night);
}

/* Botón Secundario — Dorado Sólido */
.btn--secondary {
  background: var(--color-gold);
  border: 1px solid var(--color-gold);
  color: var(--color-night);
}

.btn--secondary:hover {
  filter: brightness(1.08);
  transform: scale(1.015);
}

/* Variante pequeña */
.btn--sm {
  padding: 11px 24px;
  font-size: 10px;
  letter-spacing: 0.18em;
}

/* CTA de Texto — Inline Arrow Link */
.cta-text {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-white-60);
  text-decoration: none;
  position: relative;
  transition: color var(--duration-fast) var(--ease-premium);
}

.cta-text::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 400ms var(--ease-premium);
}

.cta-text:hover {
  color: var(--color-white);
}

.cta-text:hover::after {
  transform: scaleX(1);
}

.cta-text svg {
  transition: transform 400ms var(--ease-premium);
}

.cta-text:hover svg {
  transform: translateX(4px);
}

/* ═══════════════════════════════════════════
   LÍNEA DIVISORIA DE MARCA
   DESIGN_SYSTEM.md §14
═══════════════════════════════════════════ */

.gold-line {
  display: block;
  height: 1px;
  background: var(--color-gold-dim);
  width: 40px;
}

.gold-line--full {
  width: 100%;
}

/* ═══════════════════════════════════════════
   SCROLL REVEAL — SISTEMA GLOBAL
   Usado por todas las secciones.
   JS añade .revealed cuando el elemento entra en viewport.
   --stagger: variable CSS para delays secuenciales.
═══════════════════════════════════════════ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity  700ms var(--ease-premium) calc(var(--stagger, 0) * 120ms),
    transform 700ms var(--ease-premium) calc(var(--stagger, 0) * 120ms);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════
   PREFERS REDUCED MOTION
═══════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ═══════════════════════════════════════════
   CONTENEDOR GLOBAL
═══════════════════════════════════════════ */

.container {
  width: 100%;
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 80px;
}

@media (max-width: 1023px) {
  .container {
    padding: 0 48px;
  }
}

@media (max-width: 767px) {
  .container {
    padding: 0 20px;
  }
}
