/* ============================================= */
/*                  GLOBAL.CSS                   */
/* Estilos generales del sitio Enigmarketing */
/* ============================================= */

/* --------------------------------------------- */
/*                  RESET BÁSICO                  */
/* --------------------------------------------- */

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

html {
  scroll-behavior: smooth;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* --------------------------------------------- */
/* 🔤 FUENTE PERSONALIZADA – Asangha Expanded (Logo principal) */
/* --------------------------------------------- */

@font-face {
  font-family: 'Asangha Expanded';
  src: url('../assets/fonts/AsanghaExpanded.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------- */
/*              VARIABLES GLOBALES               */
/* --------------------------------------------- */

:root {
  /* Colores corporativos */
  --primary-color: #5A14D6;   /* Morado principal */
  --accent-color: #D6D614;    /* Amarillo acento */
  --black-color: #000000;     /* Negro sólido */
  --white-color: #FFFFFF;     /* Blanco puro */

  /* Tipografías */
  --font-family-logo: 'Asangha Expanded', sans-serif; /* Para logo y elementos clave */
  --font-family-main: 'Poppins', sans-serif;          /* Para cuerpo de texto */
  --font-family-heading: 'Cinzel', serif;             /* Para encabezados */
  --font-family-special: 'Anton', sans-serif;         /* Para dinámicos y especiales */
}

/* --------------------------------------------- */
/*               ESTILOS GENERALES               */
/* --------------------------------------------- */

/* Cuerpo del sitio */
body {
  font-family: var(--font-family-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--black-color);
  background-color: var(--white-color);
  overflow-x: hidden;
}

/* Encabezados (h1-h6) */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: 500;
  color: var(--primary-color);
}

/* Enlaces */
a {
  text-decoration: none;
  color: inherit;
}

/* Imágenes adaptables */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Botones base */
button {
  font-family: var(--font-family-main);
  cursor: pointer;
  border: none;
  background: none;
}

/* Formularios base */
input, textarea, select {
  font-family: var(--font-family-main);
  outline: none;
}

section + section {
  margin-top: 0 !important;
}

/* --------------------------------------------- */
/*              SISTEMA GLOBAL DE BOTONES        */
/* --------------------------------------------- */

.btn {
  font-family: var(--font-family-main);
  font-weight: 400;
  letter-spacing: 0.4px;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border: 2px solid var(--primary-color);
  background-color: var(--primary-color);
  color: var(--white-color);
  text-decoration: none;
  cursor: pointer;
  font-size: clamp(1rem, 1.4vw, 1.5rem);
  transition: all 0.3s ease;
  display: inline-block;
}

/* Estilo principal */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white-color);
}

.btn-primary:hover {
  background-color: var(--white-color);
  border-color: var(--primary-color);
  color: var(--black-color);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);;
}

/* Variante contorno (opcional futuro) */
.btn-outline {
  background-color: transparent;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
}

/* Tamaño compacto (útil en formularios o headers) */
.btn-small {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
}

/* Botón desactivado */
.btn:disabled,
.btn.disabled {
  opacity: 0.6;
  pointer-events: none;
}

/* --------------------------------------------- */
/*          SISTEMA RESPONSIVE BASE              */
/* --------------------------------------------- */

/* Mobile First */

/* Tablets */
@media (min-width: 768px) {
  body {
    font-size: 17px;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  body {
    font-size: 18px;
  }
}

/* Pantallas grandes */
@media (min-width: 1440px) {
  body {
    font-size: 19px;
  }
}

