* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #f3f7ef;
  color: #1f2937;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  padding: clamp(12px, 3vw, 28px);
  overflow-x: hidden;
  overflow-y: visible;
  overscroll-behavior-y: auto;
}

.documento {
  width: min(100%, 920px);
  margin: 0 auto;
}

.hero,
.bloque {
  border: 1px solid rgba(38, 119, 21, 0.14);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(31, 41, 55, 0.07);
}

.hero {
  overflow: hidden;
  padding: clamp(22px, 5vw, 42px);
  background: linear-gradient(135deg, rgba(38, 119, 21, 0.97), rgba(104, 182, 54, 0.94));
  color: #fff;
}

.logo {
  display: block;
  width: min(132px, 42vw);
  max-height: 72px;
  margin-bottom: 22px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18));
}

.eyebrow {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
p,
li,
.datos-contacto {
  overflow-wrap: anywhere;
}

p,
li,
.datos-contacto {
  text-align: justify;
  text-justify: inter-word;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(1.85rem, 7vw, 3.15rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.descripcion-hero {
  max-width: 680px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(0.95rem, 2.4vw, 1.05rem);
}

.actualizacion {
  display: inline-flex;
  max-width: 100%;
  margin: 18px 0 0;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-weight: 800;
}

.bloque {
  margin-top: 14px;
  padding: clamp(16px, 4vw, 28px);
}

.bloque h2 {
  margin: 0 0 14px;
  color: #267715;
  font-size: clamp(1.05rem, 3.8vw, 1.35rem);
  line-height: 1.2;
}

.bloque p,
.datos-contacto {
  margin: 0 0 13px;
  font-size: clamp(0.95rem, 2.8vw, 1rem);
}

.bloque p:last-child,
.bloque ul:last-child,
li:last-child {
  margin-bottom: 0;
}

ul {
  margin: 8px 0 0;
  padding-left: 1.25rem;
}

li {
  margin: 0 0 0.65rem;
  padding-left: 0.15rem;
}

.datos-contacto {
  display: block;
  padding: 14px;
  border-radius: 12px;
  background: #f8fbf6;
  border: 1px solid rgba(38, 119, 21, 0.12);
  font-style: normal;
}

@media (max-width: 620px) {
  body {
    padding: 10px 8px 20px;
  }

  .hero,
  .bloque {
    border-radius: 12px;
  }

  .hero {
    padding: 20px 16px;
  }

  .bloque {
    padding: 15px 14px;
  }

  .actualizacion {
    border-radius: 12px;
  }
}

/* Fix exclusivo para iOS / Safari / WebView.
   En Chrome desktop queda activo el scroll normal del documento. */
html.is-ios,
html.is-ios body {
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  position: relative;
}

html.is-ios body {
  padding: 0;
  margin: 0;
  background: #f3f7ef;
  touch-action: pan-y;
}

html.is-ios .documento {
  width: 100%;
  max-width: 920px;
  height: 100vh;
  min-height: 100vh;
  margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top)) 12px max(28px, env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

@supports (height: 100dvh) {
  html.is-ios .documento {
    height: 100dvh;
    min-height: 100dvh;
  }
}
