/*
  Base del sitio de Xperience Design: reinicio, tipografía, contenedor, rejillas, botón e iconos.
  Escrita para este sitio (2026-10-26); los componentes de las páginas están en componentes.css.
*/

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

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

body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--c-blanco);
  color: #000;
  font: 16px/normal var(--font-sans);
}

:where(h1, h2, h3, h4, h5, h6, p, a) { font-weight: normal; }
strong, b { font-weight: 700; }
li { list-style: none; }
img, video, svg { max-width: 100%; }
img { height: auto; }
button, input, select, textarea { color: inherit; font: inherit; }
[hidden] { display: none !important; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--c-turquesa);
  outline-offset: 2px;
}

/* ------------------------------------------------------------------ Contenedor
   Ancho máximo por tamaño de pantalla (640, 768, 1024, 1280 y 1536 px). */
:root { --ancho-contenedor: 100%; }
@media (min-width: 640px) { :root { --ancho-contenedor: 640px; } }
@media (min-width: 768px) { :root { --ancho-contenedor: 768px; } }
@media (min-width: 1024px) { :root { --ancho-contenedor: 1024px; } }
@media (min-width: 1280px) { :root { --ancho-contenedor: 1280px; } }
@media (min-width: 1536px) { :root { --ancho-contenedor: 1536px; } }

.contenedor { width: 100%; max-width: var(--ancho-contenedor); margin-inline: auto; }

/* ------------------------------------------------------------------ Rejillas */
.rejilla { display: grid; grid-template-columns: var(--columnas, 1fr); }
.rejilla--2 { --columnas: repeat(2, 1fr); }
.rejilla--3 { --columnas: repeat(3, 1fr); }
.rejilla--60-40 { --columnas: 60% 40%; }
@media (max-width: 1024px) {
  .rejilla--3 { --columnas: repeat(2, 1fr); }
  .rejilla--60-40 { --columnas: 1fr; }
}
@media (max-width: 768px) {
  .rejilla--2, .rejilla--3 { --columnas: 1fr; }
  .solo-escritorio { display: none; }
}

/* ------------------------------------------------------------------ Botón */
.boton {
  display: inline-block;
  width: fit-content;
  padding: 16px 24px;
  border: 0;
  border-radius: var(--radio);
  background: var(--c-verde);
  color: var(--c-azul);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.5s, color 0.5s;
}
.boton:hover { background: var(--c-verde-oscuro); }
.boton--hover-azul:hover { background: var(--c-azul); color: var(--c-blanco); }
.boton--contorno { background: transparent; box-shadow: inset 0 0 0 1px var(--c-azul); }
.boton--contorno:hover { background: var(--c-gris-fondo); }

/* ------------------------------------------------------------------ Iconos SVG (del tamaño del texto) */
.ico { display: inline-block; flex: none; width: 1em; height: 1em; vertical-align: -0.125em; }

/* ------------------------------------------------------------------ Títulos de sección
   Tamaño fijo aunque el texto del editor traiga otro (36 px; 32 px en celular). El texto
   enriquecido (.texto-rico) conserva los estilos que trae del editor. */
.titulo-seccion :is(h1, h2, h3, h4, h5, h6, p, span) { font-size: 36px !important; }
@media (max-width: 768px) {
  .titulo-seccion :is(h1, h2, h3, h4, h5, h6, p, span) { font-size: 32px !important; }
}

/* ------------------------------------------------------------------ Accesibilidad */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100001;
  padding: 10px 16px;
  border-radius: var(--radio);
  background: var(--c-verde);
  color: var(--c-azul);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

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