/* El Parque Macetas — base: reset, variables, tipografía, utilidades */

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --verde-noche: #0D2A33;
  --verde-hoja: #7AC142;
  --crema: #F7F5F0;
  --tinta: #16323B;
  --hueso: #FFFFFF;

  --verde-hoja-hover: #6aad38;
  --verde-noche-suave: #143843;
  --tinta-suave: rgba(22, 50, 59, 0.72);
  --borde-suave: rgba(22, 50, 59, 0.12);
  --sombra: 0 12px 40px rgba(13, 42, 51, 0.1);

  --fuente: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max: 1200px;
  --aire: 24px;
  --radio: 16px;
  --radio-lg: 28px;
  --header-h: 72px;
  --transicion: 0.2s ease;
}

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

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

body {
  margin: 0;
  font-family: var(--fuente);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--tinta);
  background: var(--crema);
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--verde-hoja);
}

:focus-visible {
  outline: 3px solid var(--verde-hoja);
  outline-offset: 3px;
}

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

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--tinta);
}

h1 { font-weight: 800; font-size: clamp(1.85rem, 5vw, 3rem); }
h2 { font-size: clamp(1.45rem, 3.5vw, 2.1rem); }
h3 { font-size: clamp(1.1rem, 2.2vw, 1.35rem); }

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
}

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

.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;
}

.skip-link {
  position: absolute;
  left: var(--aire);
  top: -100px;
  z-index: 1000;
  background: var(--verde-hoja);
  color: var(--verde-noche);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: background var(--transicion), color var(--transicion), border-color var(--transicion), transform var(--transicion);
  border: 2px solid transparent;
  line-height: 1.2;
  text-align: center;
}

.btn:hover {
  color: inherit;
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn--verde {
  background: var(--verde-hoja);
  color: var(--verde-noche);
  border-color: var(--verde-hoja);
}

.btn--verde:hover {
  background: var(--verde-hoja-hover);
  border-color: var(--verde-hoja-hover);
  color: var(--verde-noche);
}

.btn--borde-blanco {
  background: transparent;
  color: var(--hueso);
  border-color: var(--hueso);
}

.btn--borde-blanco:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--hueso);
}

.btn--borde-noche {
  background: transparent;
  color: var(--hueso);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn--borde-noche:hover {
  border-color: var(--verde-hoja);
  color: var(--verde-hoja);
}

/* Utilidades de texto */
.muted {
  color: var(--tinta-suave);
}

.precio {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.precio-nota {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--tinta-suave);
  margin-top: 0.2rem;
}

.seccion-titulo {
  margin-bottom: 0.4em;
}

.seccion-bajada {
  max-width: 38rem;
  color: var(--tinta-suave);
  margin-bottom: 2rem;
}

/* Secciones */
.seccion {
  padding-block: clamp(3rem, 7vw, 5rem);
}

.seccion--oscura {
  background: var(--verde-noche);
  color: var(--hueso);
}

.seccion--oscura h2,
.seccion--oscura h3 {
  color: var(--hueso);
}

.seccion--crema {
  background: var(--crema);
}

/* Enlace con flecha */
.enlace-mas {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--verde-hoja);
  text-decoration: none;
  margin-top: 1.5rem;
}

.enlace-mas:hover {
  text-decoration: underline;
  color: var(--verde-hoja);
}

.enlace-mas::after {
  content: '→';
}
