/* Reset mínimo y estilos base. Mobile-first: todo lo de abajo es el layout de
   móvil; los media queries (min-width) añaden lo de pantallas mayores. */

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--c-text-dark);
  background: var(--c-white);
}

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

h1,
h2,
h3 {
  margin: 0 0 var(--space-2);
  line-height: 1.2;
  font-weight: 800;
}

h1 {
  font-size: var(--fs-2xl);
}

h2 {
  font-size: var(--fs-xl);
}

h3 {
  font-size: var(--fs-md);
}

p {
  margin: 0 0 var(--space-3);
}

a {
  color: var(--c-brand);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
}

/* Foco visible y accesible en todos los elementos interactivos. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--c-neon);
  outline-offset: 2px;
}

/* Salta el menú para llegar directo al contenido (accesibilidad con teclado). */
.saltar-contenido {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: var(--space-2) var(--space-3);
  background: var(--c-brand);
  color: var(--c-white);
  border-radius: 0 0 var(--radius-sm) 0;
}

.saltar-contenido:focus {
  left: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contenedor {
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 768px) {
  h1 {
    font-size: var(--fs-3xl);
  }

  h2 {
    font-size: var(--fs-2xl);
  }
}

.seccion {
  padding-block: var(--space-7);
}

.seccion--oscura {
  background: var(--c-bg-dark);
  color: var(--c-text-light);
}

.seccion--clara {
  background: var(--c-light);
  color: var(--c-text-dark);
}

.seccion--blanca {
  background: var(--c-white);
  color: var(--c-text-dark);
}

.seccion__titulo {
  text-align: center;
  margin-bottom: var(--space-2);
}

.seccion__subtitulo {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto var(--space-6);
  color: var(--c-text-muted-dark);
}

.seccion--oscura .seccion__subtitulo {
  color: var(--c-text-muted-light);
}

.lema {
  font-family: var(--font-lema);
  font-weight: 400;
  color: var(--c-brand);
}

/* Botones */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  min-height: 48px;
}

.boton:hover {
  transform: translateY(-2px);
}

.boton--primario {
  background: var(--c-brand);
  color: var(--c-white);
  box-shadow: var(--glow-neon-sm);
}

.boton--primario:hover {
  box-shadow: var(--glow-neon-md);
}

.boton--secundario {
  background: transparent;
  color: var(--c-text-light);
  border-color: currentColor;
}

.boton--whatsapp {
  background: #25d366;
  color: #04280f;
}

.boton--grande {
  width: 100%;
  padding-block: var(--space-3);
  font-size: var(--fs-md);
}

@media (min-width: 480px) {
  .boton--grande {
    width: auto;
  }
}

.boton__icono {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
}
