/* ==========================================================================
   greenmc-hosting-v2 · base.css
   Reset ligero, tipografía y utilidades. Mobile-first (360–430px primero).
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--gm-bg);
  color: var(--gm-text);
  font-family: var(--gm-font);
  font-size: var(--gm-fs-md);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  color: var(--gm-text);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

h1, .h1 { font-size: var(--gm-fs-2xl); }
h2, .h2 { font-size: var(--gm-fs-xl); }
h3, .h3 { font-size: var(--gm-fs-lg); }

a {
  color: var(--bs-link-color);
  text-underline-offset: 2px;
}

a:hover {
  color: var(--bs-link-hover-color);
}

/* Foco visible para teclado (nada depende solo de hover) */
:focus-visible {
  outline: 2px solid var(--gm-accent-from);
  outline-offset: 2px;
}

/* Inputs a 16px en móvil para que iOS no haga zoom al enfocar */
input,
select,
textarea {
  font-size: 16px;
}

code,
kbd,
pre {
  font-family: var(--gm-font-mono);
}

::selection {
  background: rgba(124, 58, 237, 0.45);
  color: #fff;
}

/* Utilidades */
.text-muted,
.text-secondary,
.text-body-secondary {
  color: var(--gm-muted) !important;
}

.text-accent { color: var(--gm-accent-from) !important; }
.text-gradient {
  background: var(--gm-accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.min-w-0 { min-width: 0; }
.touch-target { min-width: var(--gm-touch); min-height: var(--gm-touch); }

@media (min-width: 768px) {
  h1, .h1 { font-size: 1.875rem; }
  input,
  select,
  textarea { font-size: var(--gm-fs-md); }
}

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