/* ============================================================
   RENOVA FEM STUDIO — Reset y estilos base
   ============================================================ */

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  line-height: 1.65;
  color: var(--color-texto);
  background-color: var(--color-bg-primario);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Selección de texto */
::selection {
  background-color: var(--color-acento-sutil);
  color: var(--color-acento-claro);
}

/* Scrollbar personalizado (Chromium) */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg-secundario); }
::-webkit-scrollbar-thumb { background: var(--glass-border-hover); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-acento-glow); }

/* === TIPOGRAFÍA === */

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

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
  color: var(--color-texto-sec);
  line-height: 1.75;
}

a {
  color: var(--color-acento);
  text-decoration: none;
  transition: color var(--trans-rápida);
}
a:hover { color: var(--color-acento-claro); }

strong, b { font-weight: var(--font-semi); color: var(--color-texto); }
em, i     { font-style: italic; }
small     { font-size: var(--text-sm); }

ul, ol {
  list-style: none;
}

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

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

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

/* Foco accesible */
:focus-visible {
  outline: 2px solid var(--color-acento);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* === UTILIDADES TIPOGRÁFICAS === */

.font-display { font-family: var(--font-display); }
.font-body    { font-family: var(--font-body); }

.text-xs    { font-size: var(--text-xs); }
.text-sm    { font-size: var(--text-sm); }
.text-base  { font-size: var(--text-base); }
.text-lg    { font-size: var(--text-lg); }
.text-xl    { font-size: var(--text-xl); }
.text-2xl   { font-size: var(--text-2xl); }
.text-3xl   { font-size: var(--text-3xl); }
.text-hero  { font-size: var(--text-hero); }

.font-light  { font-weight: var(--font-light); }
.font-normal { font-weight: var(--font-normal); }
.font-medium { font-weight: var(--font-medium); }
.font-semi   { font-weight: var(--font-semi); }
.font-bold   { font-weight: var(--font-bold); }

.text-primario   { color: var(--color-texto); }
.text-secundario { color: var(--color-texto-sec); }
.text-tenue      { color: var(--color-texto-tenue); }
.text-acento     { color: var(--color-acento); }
.text-rosa       { color: var(--color-secundario); }
.text-exito      { color: var(--color-exito); }
.text-error      { color: var(--color-error); }

.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-left   { text-align: left; }

/* Gradiente en texto */
.text-grad {
  background: var(--grad-acento);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-grad-rosa {
  background: var(--grad-secundario);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === UTILIDADES DE DISPLAY === */
.hidden { display: none !important; }
.invisible { visibility: hidden; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }

/* === UTILIDADES DE ESPACIADO === */
.mt-4  { margin-top: var(--space-4); }
.mt-8  { margin-top: var(--space-8); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-8  { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.py-24 { padding-top: var(--space-24); padding-bottom: var(--space-24); }

/* === DIVISOR === */
.divisor {
  border: none;
  border-top: 1px solid var(--glass-border);
  margin: var(--space-8) 0;
}

/* === ANIMACIONES === */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px var(--color-acento-glow); }
  50%       { box-shadow: 0 0 40px var(--color-acento-glow), 0 0 80px var(--color-acento-glow); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

.animate-fade-in {
  animation: fadeIn 0.6s var(--ease-out) both;
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}
