/* Paleta y tipografía */
:root {
  --verde-principal: #2e7d32;
  --verde-medio: #43a047;
  --verde-claro: #e8f5e9;
  --texto: #1b1b1b;
  --texto-sobre-verde: #ffffff;
  --fondo: #fafafa;
  --borde: #c8e6c9;
  --sombra: 0 2px 8px rgba(27, 27, 27, 0.08);
  --radio: 12px;
  --max-ancho: 68rem;
  --max-lectura: 48rem;
  --fuente: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--fuente);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--texto);
  background: var(--fondo);
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--verde-medio);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

a:hover,
a:focus-visible {
  color: var(--verde-principal);
}

a:focus-visible {
  outline: 3px solid var(--verde-medio);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 10;
  padding: 0.5rem 0.75rem;
  background: var(--texto-sobre-verde);
  color: var(--verde-principal);
}

.skip-link:focus {
  top: 0.75rem;
}

.site-header {
  background: var(--verde-principal);
  color: var(--texto-sobre-verde);
  padding: 0.85rem 1.25rem;
}

.header-bar {
  width: min(100%, var(--max-ancho));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1.5rem;
}

.site-header a {
  color: var(--texto-sobre-verde);
  text-decoration: none;
}

.site-header a:hover,
.site-header a:focus-visible {
  color: var(--texto-sobre-verde);
  text-decoration: underline;
}

.brand {
  margin: 0;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.15;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-logo {
  display: block;
  width: clamp(2.5rem, 5vw, 3.25rem);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  background: #ffffff;
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.header-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.tagline {
  margin: 0.75rem auto 0;
  max-width: 40rem;
  font-size: 1.05rem;
  font-weight: 400;
  opacity: 0.95;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.25rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
  background: radial-gradient(ellipse at 83% 42%, rgba(232, 245, 233, 0.9) 0, rgba(232, 245, 233, 0) 34rem), linear-gradient(180deg, #ffffff 0%, var(--fondo) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(13rem, 0.75fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.hero-content {
  max-width: 48rem;
}

.hero-mark {
  width: min(100%, 17rem);
  justify-self: end;
  aspect-ratio: 1;
  padding: 0.4rem;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(46, 125, 50, 0.14);
}

.hero-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.8rem;
  color: var(--verde-principal);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--verde-medio);
  content: "";
}

.hero h1 {
  max-width: 15ch;
  margin: 0 0 1.25rem;
  font-size: clamp(2.35rem, 6vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.hero-copy {
  max-width: 38rem;
  color: #414141;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.75;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.hero-links .button {
  margin-top: 0;
}

.button--outline {
  color: var(--verde-principal) !important;
  background: #ffffff !important;
  box-shadow: inset 0 0 0 1px var(--borde);
}

.button--outline:hover,
.button--outline:focus-visible {
  background: var(--verde-claro) !important;
  box-shadow: inset 0 0 0 1px var(--verde-medio);
}

.layout {
  width: min(100% - 2.5rem, var(--max-ancho));
  margin-inline: auto;
}

.section {
  padding: 2.75rem 0;
}

.section--alt {
  background: var(--verde-claro);
}

.section--alt .layout {
  width: min(100% - 2.5rem, var(--max-ancho));
}

.section-intro {
  max-width: 40rem;
  margin-top: -0.35rem;
  color: #555555;
  font-size: 1.05rem;
}

.usage-section {
  background: #ffffff;
}

.usage-heading {
  margin-bottom: 2rem;
}

.usage-heading h2 {
  margin-bottom: 0.45rem;
}

.usage-heading p {
  margin: 0;
  color: #555555;
  font-size: 1.05rem;
}

.steps-list {
  display: grid;
  gap: 0.9rem;
  max-width: 54rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  align-items: start;
  gap: 1.25rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid #e3eee4;
  border-radius: var(--radio);
  background: var(--fondo);
  counter-increment: step;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.step:hover {
  transform: translateX(3px);
  border-color: var(--borde);
  box-shadow: var(--sombra);
}

.step-number {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 50%;
  background: var(--verde-claro);
  color: var(--verde-principal);
  font-size: 1rem;
  font-weight: 750;
}

.step-content h3 {
  margin: 0 0 0.35rem;
  color: var(--verde-principal);
  font-size: 1.1rem;
}

.step-content p {
  margin: 0;
  color: #414141;
}

h1,
h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  line-height: 1.25;
}

h1 {
  font-size: clamp(1.55rem, 3.2vw, 2rem);
}

h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.placeholder {
  border: 1px dashed var(--verde-medio);
  background: rgba(67, 160, 71, 0.08);
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  color: #2a2a2a;
}

.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  margin-top: 1.5rem;
}

.card {
  background: #ffffff;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  padding: 1.35rem 1.25rem 1.45rem;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--verde-medio);
  box-shadow: 0 8px 22px rgba(27, 27, 27, 0.1);
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 0.85rem;
  border-radius: 8px;
  background: var(--verde-claro);
  color: var(--verde-principal);
  font-size: 1.35rem;
}

.card-icon svg {
  width: 1.4rem;
  height: 1.4rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.info-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.info-list > div {
  margin-bottom: 1rem;
  padding: 0 0 1rem;
  border-bottom: 1px solid #e0e0e0;
}

.info-list > div:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.info-list dt {
  font-weight: 600;
}

.info-list dd {
  margin: 0.15rem 0 0;
}

.legal {
  padding-bottom: 3rem;
}

.legal .layout,
.layout--lectura {
  width: min(100% - 2.5rem, var(--max-lectura));
  margin-inline: auto;
}

.legal h2 {
  margin-top: 2rem;
}

.legal h2:first-of-type {
  margin-top: 0;
}

.legal h3 {
  margin-top: 1.25rem;
}

.site-footer {
  background: var(--verde-principal);
  color: var(--texto-sobre-verde);
  padding: 1.75rem 1.25rem;
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  margin-bottom: 0.85rem;
}

.site-footer a {
  color: var(--texto-sobre-verde);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #e8f5e9;
}

.footer-note {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.form-block {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: #ffffff;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

input,
textarea,
select {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.65rem 0.75rem;
  font: inherit;
  color: var(--texto);
  border: 1px solid #9e9e9e;
  border-radius: 8px;
  background: #ffffff;
}

button,
a.button,
.button {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.75rem 1.25rem;
  font: inherit;
  font-weight: 600;
  color: var(--texto-sobre-verde);
  background: var(--verde-principal);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
}

button:hover,
a.button:hover,
.button:hover,
button:focus-visible,
a.button:focus-visible,
.button:focus-visible {
  background: var(--verde-medio);
  color: var(--texto-sobre-verde);
}

@media (max-width: 699px) {
  .header-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-nav {
    display: grid;
    grid-template-columns: 0.7fr 1.4fr 1.2fr;
    width: 100%;
    gap: 0;
    margin-top: 0.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
  }

  .header-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.45rem 0.2rem;
    text-align: center;
    font-size: 0.88rem;
    line-height: 1.2;
  }

  .footer-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-mark {
    display: none;
  }

  .hero-links {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-links .button {
    width: 100%;
    text-align: center;
  }

  .step {
    grid-template-columns: 2.75rem minmax(0, 1fr);
    gap: 0.9rem;
    padding: 1.15rem;
  }

  .step-number {
    width: 2.6rem;
    height: 2.6rem;
  }
}

@media (max-width: 420px) {
  .layout,
  .section--alt .layout,
  .legal .layout,
  .layout--lectura {
    width: min(100% - 2rem, var(--max-ancho));
  }

  .site-header {
    padding-inline: 1rem;
  }

  .hero {
    padding-top: 2.75rem;
  }

  .hero h1 {
    font-size: clamp(2rem, 9vw, 2.35rem);
  }

  .section {
    padding-block: 2.25rem;
  }

  .step {
    grid-template-columns: 2.35rem minmax(0, 1fr);
    gap: 0.75rem;
    padding: 1rem;
  }

  .step-number {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.9rem;
  }
}

@media (min-width: 700px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .site-header {
    padding: 0.95rem 1.5rem;
  }
}
