/* =========================================================
   Estilos globales Onlymind MX — base.css
   Versión profesional modular — núcleo de layout y visual
   ========================================================= */

/* =========================
   1. RESET GENERAL
   ========================= */
html, body {
  margin: 0;
  padding: 0;
  border: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color-scheme: dark;
  background-clip: border-box;
  box-sizing: border-box;
}

/* =========================
   2. FONDO Y ESTRUCTURA GLOBAL
   ========================= */
html {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  color: #fff;
  overflow-x: hidden;
  overflow-y: overlay;
  overscroll-behavior: none;
}

/* =========================================================
   BODY DINÁMICO — Reset visual y fondo global Onlymind MX
   ========================================================= */
body.layout-base {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: linear-gradient(135deg, #080f23 0%, #0a1633 100%);
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}


/* =========================
   3. ESTRUCTURA PRINCIPAL
   ========================= */
main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 100dvh; /* vista completa sin saltos */
  box-sizing: border-box;
}

/* =========================
   4. TIPOGRAFÍA Y ENLACES
   ========================= */
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #818CF8; /* Indigo Tailwind */
}

/* =========================
   5. CONTENEDOR BASE
   ========================= */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

/* =========================
   6. RESPONSIVIDAD GLOBAL
   ========================= */
@media (max-width: 1024px) {
  .container {
    max-width: 900px;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 640px;
    padding: 0 0.75rem;
  }

  body {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .container {
    max-width: 100%;
    padding: 0 0.5rem;
  }

  h1, h2, h3 {
    font-size: 1rem;
  }
}

/* =========================
   7. CORRECCIONES PROFESIONALES
   ========================= */

/* Eliminación de márgenes por defecto */
html, body {
  margin: 0;
  padding: 0;
}

/* Evita desplazamiento brusco por scrollbar */
::-webkit-scrollbar {
  width: 0.6rem;
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 1rem;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Asegura alineación visual homogénea */
*, *::before, *::after {
  box-sizing: inherit;
}

/* =========================================================
   Fin del archivo base.css — Control total de layout global
   ========================================================= */
