/*
  ============================================================
  GLOBAL.CSS — Meiser Automatismo
  ============================================================
  Reset básico, tipografía general y clases reutilizables
  (contenedor, botones, títulos de sección, motivos
  decorativos inspirados en el sello del logo).
  No suele hacer falta editar este archivo: para colores y
  fuentes, ver variables.css. Para una sección puntual
  (héroe, catálogo, etc.), ver components.css.
  ============================================================
*/

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--negro);
  color: var(--blanco);
  font-family: var(--fuente-texto);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--fuente-titulos);
  color: var(--rojo);
  line-height: 1.15;
  font-weight: 700;
}

p {
  max-width: 62ch;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
}

/* --- Foco visible para navegación por teclado --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--rojo);
  outline-offset: 3px;
}

/* --- Layout --- */
.contenedor {
  width: 100%;
  max-width: var(--ancho-maximo);
  margin: 0 auto;
  padding: 0 24px;
}

.seccion {
  padding: var(--espacio-seccion) 0;
  border-top: 1px solid var(--negro-borde);
}

.seccion__encabezado {
  max-width: 640px;
  margin-bottom: 48px;
}

.seccion__eyebrow {
  color: var(--rojo);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.seccion__titulo {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin-bottom: 14px;
}

.seccion__texto {
  color: rgba(245, 244, 241, 0.78);
  font-size: 1.05rem;
}

/* --- Botones --- */
.boton {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: var(--radio-borde);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.boton--primario {
  background: var(--rojo);
  color: var(--negro);
}

.boton--primario:hover {
  transform: translateY(-2px);
  box-shadow: var(--sombra-rojo);
}

.boton--contorno {
  background: transparent;
  color: var(--blanco);
  border: 1px solid var(--negro-borde);
}

.boton--contorno:hover {
  border-color: var(--rojo);
  color: var(--rojo);
}

.boton--ancho {
  width: 100%;
  justify-content: center;
}

/* --- Motivo decorativo: borde punteado rojo, tomado del sello del logo --- */
.borde-punteado {
  border: 2px dashed var(--rojo);
}

.circulo-decorativo {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(226, 38, 28, 0.35);
  pointer-events: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
