/* REDGK · base
   Reinicio moderado + tipografia. Todo color y medida sale de theme.json. */

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--wp--custom--superficie--base);
  color: var(--wp--custom--texto--principal);
  font-family: var(--wp--preset--font-family--texto);
  font-size: var(--wp--preset--font-size--md);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--wp--preset--font-family--titulo);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.025em;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: var(--wp--preset--font-size--3xl); }
h2 { font-size: var(--wp--preset--font-size--2xl); }
h3 { font-size: var(--wp--preset--font-size--xl); }
h4 { font-size: var(--wp--preset--font-size--lg); }

p { margin: 0 0 1.25em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--wp--custom--acento--acciones);
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  transition: color var(--wp--custom--transicion--rapida);
}
a:hover { color: var(--wp--custom--texto--acento); }

/* Foco visible siempre: criterio 2.4.7 de WCAG. */
:focus-visible {
  outline: 3px solid var(--wp--custom--borde--foco);
  outline-offset: 2px;
  border-radius: var(--wp--custom--radio--sm);
}

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

ul, ol { padding-left: 1.25em; }
li { margin-bottom: .4em; }

blockquote {
  margin: 2em 0;
  padding-left: 1.25em;
  border-left: 3px solid var(--wp--custom--acento--marca);
  font-size: var(--wp--preset--font-size--lg);
  font-weight: 500;
  border-radius: 0;
}

hr {
  border: 0;
  height: 1px;
  background: var(--wp--custom--borde--sutil);
  margin: var(--wp--preset--spacing--50) 0;
}

code, pre { font-family: var(--wp--preset--font-family--mono); font-size: .92em; }

/* Salto al contenido: obligatorio para navegacion por teclado. */
.redgk-saltar {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: .75rem 1.25rem;
  background: var(--wp--custom--superficie--profunda);
  color: var(--wp--custom--texto--invertido);
  border-radius: 0 0 var(--wp--custom--radio--md) 0;
}
.redgk-saltar:focus { left: 0; color: var(--wp--custom--texto--invertido); }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
