/* ================================================================
   RAMALES NATURAL · Reporte de especies invasoras
   Identidad visual compartida con "Camina y Descubre"
   Verde #2d4a35 · Crema #f5ead8 · Lovelo · CanvaSans
   ================================================================ */

:root {
  --verde:         #2d4a35;
  --verde-oscuro:  #22392c;
  --verde-medio:   #3a5c43;
  --verde-suave:   #6b8368;
  --verde-claro:   #a7c0a0;
  --crema:         #f5ead8;
  --crema-suave:   rgba(245, 234, 216, 0.5);
  --borde:         rgba(45, 74, 53, 0.18);
  --bg:            #f5ead8;
  --card:          #fffdf8;
  --seleccion:     rgba(45, 74, 53, 0.07);
  --tierra:        #a8582a;
  --tierra-oscura: #8a481f;
  --text:          #2d4a35;
  --text-muted:    rgba(45, 74, 53, 0.62);
  --error:         #a8342a;
  --radio:         10px;
  --radio-grande:  16px;
  --radius-lg:     var(--radio-grande);
  --radius-md:     var(--radio);
  --radius-sm:     8px;
  --font-titulo:   'Lovelo', sans-serif;
  --font:          'CanvaSans', sans-serif;
  --shadow:        0 2px 14px rgba(45, 74, 53, 0.08);
  --safe-bottom:   env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

/* ─────────────────────────────────────────────
   FUENTES — idénticas a Camina y Descubre
───────────────────────────────────────────── */
@font-face {
  font-family: 'Lovelo';
  src: url('../fonts/Lovelo Black.otf') format('opentype');
  font-display: swap;
}
@font-face {
  font-family: 'CanvaSans';
  src: url('../fonts/CanvaSans-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'CanvaSans';
  src: url('../fonts/CanvaSans-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'CanvaSans';
  src: url('../fonts/CanvaSans-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

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

a { color: var(--verde-oscuro); }

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

/* Foco visible accesible en todos los elementos interactivos */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
  outline: 3px solid var(--tierra);
  outline-offset: 2px;
}

/* Los títulos reciben foco por programa (tabindex="-1", para lectores de
   pantalla) al cambiar de pantalla; no son controles interactivos, así
   que no necesitan el anillo de foco visible. */
[tabindex="-1"]:focus { outline: none; }

/* ================================================================
   CABECERA — estilo editorial (fondo verde, etiqueta + título)
   ================================================================ */
.app-header {
  background: var(--verde);
  padding: 1.1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-bottom: 1px solid rgba(245, 234, 216, 0.12);
}

.app-header__logo { height: 40px; width: auto; flex-shrink: 0; opacity: 0.95; }

.app-header__text { flex: 1; min-width: 0; }

.app-header__text h1 {
  font-family: var(--font-titulo);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--crema);
  line-height: 1.25;
  margin: 0;
}

.app-header__text p {
  font-family: var(--font);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 234, 216, 0.5);
  margin: 0.25rem 0 0;
}

.app-header__back {
  background: none; border: none; cursor: pointer;
  color: var(--crema); font-size: 1.3rem; line-height: 1;
  padding: 0.4rem 0.5rem; margin-right: -0.2rem; border-radius: 50%;
  opacity: 0.85;
  transition: opacity 0.2s, background-color 0.2s;
}
.app-header__back:hover { opacity: 1; background: rgba(245,234,216,0.1); }

/* Botón de menú (hamburguesa) */
.app-header__menu {
  flex-shrink: 0;
  margin-left: auto;
  width: 36px; height: 36px;
  border: none; background: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  border-radius: 50%;
  transition: background-color 0.2s;
}
.app-header__menu:hover { background: rgba(245,234,216,0.1); }
.app-header__menu span {
  display: block; width: 18px; height: 1.5px;
  background: var(--crema); border-radius: 2px;
}

/* ================================================================
   MENÚ PRINCIPAL (overlay)
   ================================================================ */
.menu-overlay {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(20,26,20,0.5);
  display: flex; justify-content: flex-end;
  opacity: 0; transition: opacity 0.2s ease;
}
.menu-overlay[hidden] { display: none; }
.menu-overlay.is-open { opacity: 1; }

.menu-panel {
  width: min(340px, 84vw);
  height: 100%;
  background: var(--verde);
  color: var(--crema);
  display: flex; flex-direction: column;
  padding: 1.2rem 1.4rem calc(1.4rem + var(--safe-bottom));
  transform: translateX(16px);
  transition: transform 0.22s ease;
  box-shadow: -8px 0 24px rgba(0,0,0,0.18);
}
.menu-overlay.is-open .menu-panel { transform: translateX(0); }

.menu-panel__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.6rem;
}
.menu-panel__logo { height: 34px; width: auto; }
.menu-close {
  background: none; border: none; color: var(--crema);
  font-size: 1.2rem; cursor: pointer; padding: 0.3rem; opacity: 0.75;
}
.menu-close:hover { opacity: 1; }

.menu-list { list-style: none; margin: 0 0 1.6rem; padding: 0; }
.menu-list li { border-bottom: 1px solid rgba(245,234,216,0.1); }
.menu-list li:first-child { border-top: 1px solid rgba(245,234,216,0.1); }

.menu-link {
  display: flex; align-items: center; gap: 0.5rem;
  width: 100%;
  background: none; border: none; cursor: pointer;
  text-align: left;
  font-family: var(--font-titulo);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--crema);
  padding: 1rem 0.1rem;
}
.menu-link--disabled {
  color: rgba(245,234,216,0.4);
  cursor: default;
}
.menu-tag {
  font-family: var(--font);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245,234,216,0.45);
  border: 1px solid rgba(245,234,216,0.25);
  border-radius: 20px;
  padding: 0.15rem 0.5rem;
}

.menu-panel__cta { width: 100%; margin-top: auto; }
.menu-panel__social {
  margin-top: 1rem;
  text-align: center;
  font-family: var(--font);
  font-size: 0.78rem;
  color: rgba(245,234,216,0.6);
}
.menu-panel__social a { color: var(--crema); }

/* Indicador de progreso discreto */
.progress-track {
  height: 3px; background: rgba(245,234,216,0.15);
}
.progress-fill {
  height: 100%; background: var(--tierra);
  transition: width 0.25s ease;
}
.progress-label {
  text-align: center;
  font-family: var(--font);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.7rem 0 0;
}
.progress-label:empty { display: none; padding: 0; margin: 0; }

/* ================================================================
   CONTENEDOR / PANTALLAS
   ================================================================ */
.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.4rem 1.2rem calc(96px + var(--safe-bottom));
}

.screen { display: none; }
.screen.is-active { display: block; animation: fade-in 0.25s ease; }

@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.step-question {
  font-family: var(--font-titulo);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--verde);
  margin: 0.2rem 0 0.4rem;
  line-height: 1.25;
}

.step-hint {
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 1.4rem;
  line-height: 1.6;
}

/* ================================================================
   TARJETAS Y CAMPOS
   ================================================================ */
.card {
  background: var(--card);
  border: 1px solid var(--borde);
  border-radius: var(--radio-grande);
  padding: 1.1rem;
  margin-bottom: 0.9rem;
  box-shadow: var(--shadow);
}

label {
  display: block;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--verde);
  opacity: 0.75;
  margin-bottom: 0.5rem;
}

.label-optional {
  font-weight: 500; color: var(--text-muted); font-size: 0.7rem;
  text-transform: none; letter-spacing: 0.02em; opacity: 1;
}

input[type="text"], input[type="email"], input[type="date"],
select, textarea {
  width: 100%;
  border: 1.5px solid var(--borde);
  border-radius: var(--radio);
  padding: 0.85rem 0.9rem;
  font-size: 1rem;
  font-family: var(--font);
  background: var(--card);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--verde);
  box-shadow: 0 0 0 3px rgba(45,74,53,0.1);
  background: #fff;
}

textarea { resize: vertical; min-height: 90px; }

.field { margin-bottom: 1rem; }
.field:last-child { margin-bottom: 0; }

.error-text {
  font-family: var(--font);
  color: var(--error); font-size: 0.8rem; font-weight: 700;
  margin-top: 0.4rem; display: none;
}
.field.has-error input, .field.has-error select { border-color: var(--error); }
.field.has-error .error-text { display: block; }

/* ================================================================
   SELECCIÓN DE ESPECIE
   ================================================================ */
.species-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.species-btn {
  border: 1.5px solid var(--borde);
  border-radius: var(--radio);
  cursor: pointer;
  background: var(--card);
  overflow: hidden;
  position: relative;
  text-align: left;
  padding: 0;
  font-family: var(--font);
  box-shadow: var(--shadow);
  transition: border-color 0.15s, transform 0.1s;
  min-height: 44px;
}

.species-btn:active { transform: scale(0.98); }

.species-btn__photo {
  width: 100%; height: 100px;
  background-size: cover; background-position: center;
  background-color: var(--seleccion);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  filter: saturate(0.9) brightness(0.96);
}

.species-btn__body { padding: 0.6rem 0.7rem 0.7rem; }

.species-btn__name {
  font-family: var(--font);
  font-size: 0.82rem; font-weight: 700; color: var(--verde);
  display: block; line-height: 1.3;
}

.species-btn__sci {
  font-family: var(--font);
  font-size: 0.68rem; color: var(--text-muted); font-style: italic;
  display: block; margin-top: 0.15rem;
}

.species-btn.selected {
  border-color: var(--verde);
  box-shadow: 0 0 0 1.5px var(--verde), var(--shadow);
}

.species-btn__check {
  position: absolute; top: 0.5rem; right: 0.5rem;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--verde); color: var(--crema);
  display: none; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
.species-btn.selected .species-btn__check { display: flex; }

.species-btn--other {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.9rem;
  min-height: unset;
}
.species-btn--other .species-btn__icon { font-size: 1.5rem; }
.species-btn--other .species-btn__body { padding: 0; flex: 1; }
.species-btn--other .species-btn__check { position: static; margin-left: auto; }

.other-help {
  background: var(--seleccion);
  border-left: 2px solid var(--verde);
  border-radius: 0 var(--radio) var(--radio) 0;
  padding: 0.8rem 0.9rem;
  margin-top: 0.8rem;
  font-family: var(--font);
  font-size: 0.85rem;
  color: var(--verde-medio);
  line-height: 1.55;
}
.other-help strong { color: var(--verde); }

/* ================================================================
   FOTOGRAFÍAS
   ================================================================ */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 0.9rem;
}

.photo-slot {
  aspect-ratio: 1 / 1;
  border-radius: var(--radio);
  border: 1.5px dashed var(--verde-claro);
  background: var(--card);
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}

.photo-slot input {
  position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer;
}

.photo-slot__icon { font-size: 1.35rem; color: var(--verde-suave); }

.photo-slot.has-photo {
  border-style: solid; border-color: var(--borde);
}
.photo-slot img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92) brightness(0.96); }

.photo-slot__remove {
  position: absolute; top: 0.3rem; right: 0.3rem;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(34,57,44,0.85); color: var(--crema);
  border: none; font-size: 0.85rem; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}

.tip {
  display: flex; gap: 0.7rem; align-items: flex-start;
  background: var(--seleccion);
  border-left: 2px solid var(--verde);
  border-radius: 0 var(--radio) var(--radio) 0;
  padding: 0.8rem 0.9rem;
  font-family: var(--font);
  font-size: 0.82rem;
  color: var(--verde-medio);
  line-height: 1.55;
}
.tip__icon { flex-shrink: 0; }

/* ================================================================
   UBICACIÓN
   ================================================================ */
.loc-open-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  width: 100%; padding: 1rem;
  border: 1.5px solid var(--borde); border-radius: var(--radio);
  background: var(--card); cursor: pointer;
  font-size: 1rem; font-family: var(--font);
  color: var(--verde); font-weight: 700;
  box-shadow: var(--shadow);
}
.loc-open-btn:hover { border-color: var(--verde); }

.loc-status {
  font-family: var(--font);
  font-size: 0.85rem; margin-top: 0.6rem; color: var(--text-muted); min-height: 18px;
}
.loc-status.ok  { color: var(--verde); font-weight: 700; }
.loc-status.err { color: var(--error); font-weight: 600; }

#map-modal {
  display: none;
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(20,26,20,0.62);
  align-items: center; justify-content: center;
  padding: 0;
}
#map-modal.open { display: flex; }

#map-modal-inner {
  display: flex; flex-direction: column;
  width: 100%; height: 100%;
  background: var(--card);
}

@media (min-width: 560px) {
  #map-modal { padding: 1.25rem; }
  #map-modal-inner {
    max-width: 520px; height: min(90vh, 620px);
    border-radius: var(--radio-grande); overflow: hidden;
  }
}

#map-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 1.1rem;
  background: var(--verde);
  color: var(--crema);
  font-family: var(--font);
  font-weight: 700; font-size: 0.9rem;
  flex-shrink: 0;
}
#map-modal-close {
  background: none; border: none; color: var(--crema);
  font-size: 1.5rem; cursor: pointer; line-height: 1; padding: 0.25rem 0.4rem;
}

#map { flex: 1; min-height: 0; }

#map-modal-footer {
  padding: 0.75rem 1rem calc(1rem + var(--safe-bottom));
  background: var(--bg);
  flex-shrink: 0; display: flex; flex-direction: column; gap: 0.6rem;
  box-shadow: 0 -2px 10px rgba(45,74,53,0.1);
}

#map-hint {
  font-family: var(--font);
  font-size: 0.85rem; color: var(--text-muted);
  text-align: center; line-height: 1.4;
}
#map-hint.ok  { color: var(--verde); font-weight: 700; }
#map-hint.err { color: var(--error); font-weight: 600; }

/* Marcador y popup del mapa — estilo editorial */
.leaflet-popup-content-wrapper {
  background-color: var(--verde) !important;
  color: var(--crema) !important;
  font-family: var(--font);
  border-radius: var(--radio) !important;
}
.leaflet-popup-tip { background-color: var(--verde) !important; }

/* ================================================================
   OPCIONES VISUALES GRANDES (cantidad)
   ================================================================ */
.option-grid {
  display: grid;
  gap: 0.65rem;
}

.option-card {
  display: flex; align-items: center; gap: 0.9rem;
  border: 1.5px solid var(--borde); border-radius: var(--radio);
  background: var(--card);
  padding: 0.9rem 1rem;
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
  box-shadow: var(--shadow);
  width: 100%;
  transition: border-color 0.15s, background-color 0.15s;
}

.option-card__icon { font-size: 1.5rem; flex-shrink: 0; }
.option-card__title { font-size: 0.92rem; font-weight: 700; color: var(--verde); display: block; }
.option-card__sub { font-size: 0.78rem; color: var(--text-muted); display: block; margin-top: 0.1rem; }

.option-card.selected {
  border-color: var(--verde);
  background: var(--seleccion);
}

/* ================================================================
   BOTONES DE NAVEGACIÓN DEL ASISTENTE
   ================================================================ */
.wizard-nav {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, var(--bg) 65%, rgba(245,234,216,0));
  padding: 1.1rem 1.2rem calc(1.1rem + var(--safe-bottom));
  z-index: 50;
}

.wizard-nav__inner {
  max-width: 640px; margin: 0 auto;
  display: flex; gap: 0.6rem;
}

.btn {
  font-family: var(--font);
  font-size: 0.95rem; font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 30px;
  padding: 0.95rem 1.3rem;
  border: none; cursor: pointer;
  transition: background 0.15s, transform 0.1s, opacity 0.15s;
  min-height: 52px;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  flex: 1;
  background: var(--verde);
  color: var(--crema);
  border: 1px solid rgba(245,234,216,0.15);
}
.btn-primary:hover { background: var(--verde-medio); }
.btn-primary:disabled { background: var(--verde-claro); border-color: transparent; cursor: not-allowed; }

.btn-secondary {
  background: var(--card);
  color: var(--verde);
  border: 1.5px solid var(--borde);
}

.btn-ghost {
  background: none;
  color: var(--verde);
  text-decoration: underline;
  padding: 0.95rem 0.6rem;
}

.btn-accent {
  background: var(--tierra);
  color: var(--crema);
}
.btn-accent:hover { background: var(--tierra-oscura); }

/* ================================================================
   PORTADA — foto a sangre + cuerpo editorial + tarjeta CTA
   ================================================================ */
.home {
  text-align: center;
  padding: 0 0 0.6rem;
  margin: -1.4rem -1.2rem 0;
}

.home-hero {
  position: relative;
  height: clamp(220px, 42vh, 400px);
  overflow: hidden;
}
.home-hero__photo {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.92) brightness(0.94);
}
.home-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(34,57,44,0.05) 0%, rgba(34,57,44,0.02) 45%, var(--bg) 96%);
}

.home-body { padding: 1.6rem 1.2rem 0; }

.home__art { display: none; }

.home h1 {
  font-family: var(--font-titulo);
  font-size: 1.55rem; font-weight: 400; letter-spacing: 0.02em;
  color: var(--verde);
  margin: 0 0 0.7rem; line-height: 1.28;
}

.home p {
  font-family: var(--font);
  font-size: 1rem; color: var(--text-muted); line-height: 1.65;
  max-width: 440px; margin: 0 auto 1.7rem;
}

.home__cta {
  width: 100%; max-width: 360px;
  margin: 0 auto; display: block;
  padding: 1.1rem 1.2rem; font-size: 1rem;
}

.home__note {
  margin-top: 1rem;
  font-family: var(--font);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--verde-suave);
  font-weight: 700;
}

.home__secondary {
  margin-top: 1.75rem;
}
.home__secondary a {
  font-size: 0.85rem; color: var(--text-muted); text-decoration: underline;
}

/* Etiqueta editorial "RAMALES NATURAL · INVASORAS" sobre el título de portada */
.home__label {
  font-family: var(--font);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--verde);
  opacity: 0.5;
  margin: 0 0 0.9rem;
}

/* Tarjeta "Juntos por un entorno más natural" */
.home-card {
  margin: 2.2rem 0 0.4rem;
  padding: 1.6rem 1.4rem;
  background: var(--verde);
  border-radius: var(--radio-grande);
  color: var(--crema);
  text-align: center;
}
.home-card__leaf {
  display: inline-flex; width: 26px; height: 26px;
  color: rgba(245,234,216,0.75);
  margin-bottom: 0.7rem;
}
.home-card__leaf svg { width: 100%; height: 100%; }
.home-card p.home-card__title {
  font-family: var(--font-titulo);
  font-size: 1.05rem; font-weight: 400; letter-spacing: 0.02em;
  color: var(--crema);
  line-height: 1.3;
  max-width: none;
  margin: 0 0 0.4rem;
}
.home-card p.home-card__text {
  font-family: var(--font);
  font-size: 0.85rem;
  color: rgba(245,234,216,0.65);
  line-height: 1.5;
  max-width: none;
  margin: 0;
}

/* ================================================================
   PÁGINAS DE CONTENIDO (Sobre el proyecto / Especies / Cómo reportar)
   ================================================================ */
.content-page { padding-top: 0.3rem; }

.content-label {
  font-family: var(--font);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--verde);
  opacity: 0.5;
  margin: 0 0 0.5rem;
}

.content-titulo {
  font-family: var(--font-titulo);
  font-size: clamp(1.5rem, 6vw, 1.9rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--verde);
  line-height: 1.2;
  margin: 0 0 0.9rem;
}

.content-lead {
  font-family: var(--font);
  font-size: 0.96rem;
  line-height: 1.68;
  color: var(--text);
  margin: 0 0 1.6rem;
}

.content-photo {
  border-radius: var(--radio-grande);
  overflow: hidden;
  margin-bottom: 1.6rem;
  aspect-ratio: 4 / 3;
}
.content-photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.9) brightness(0.94);
}

.content-block { margin-bottom: 1.6rem; }
.content-block h2 {
  font-family: var(--font-titulo);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--verde);
  margin: 0 0 0.6rem;
}
.content-block p {
  font-family: var(--font);
  font-size: 0.9rem;
  line-height: 1.68;
  color: var(--text-muted);
  margin: 0;
}

.content-highlight {
  text-align: center;
  padding: 1.8rem 1rem;
  margin: 0.4rem 0 0.6rem;
  border-top: 1px solid var(--borde);
  border-bottom: 1px solid var(--borde);
}
.content-highlight__leaf {
  display: inline-flex; width: 30px; height: 30px;
  color: var(--verde); opacity: 0.7;
  margin-bottom: 0.7rem;
}
.content-highlight__leaf svg { width: 100%; height: 100%; }
.content-highlight__text {
  font-family: var(--font-titulo);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--verde);
  line-height: 1.35;
  margin: 0;
}

/* Silueta de montañas — decoración de cierre de pantalla */
.paisaje-montanas {
  width: calc(100% + 2.4rem);
  margin: 1.6rem -1.2rem -1.4rem;
  height: 96px;
  overflow: hidden;
}
.paisaje-montanas svg { width: 100%; height: 100%; display: block; }

/* ── Especies invasoras (pantalla informativa) ── */
.info-especies-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
}
.info-especie-card {
  background: var(--card);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.info-especie-card__photo {
  width: 100%; height: 108px;
  background-size: cover; background-position: center;
  filter: saturate(0.9) brightness(0.96);
}
.info-especie-card__body { padding: 0.7rem 0.8rem 0.85rem; }
.info-especie-card__name {
  font-family: var(--font);
  font-size: 0.85rem; font-weight: 700; color: var(--verde);
  margin: 0 0 0.15rem;
}
.info-especie-card__sci {
  font-family: var(--font);
  font-size: 0.72rem; font-style: italic; color: var(--text-muted);
  margin: 0;
}
.info-especie-card--otra {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 0.9rem;
  padding: 1rem 1.1rem;
  text-align: left;
}
.info-especie-card--otra .info-especie-card__icon { font-size: 1.6rem; flex-shrink: 0; }
.info-especie-card--otra .info-especie-card__body { display: block; }
.info-especie-card--otra .info-especie-card__name { margin: 0 0 0.15rem; }
.info-especie-card--otra .info-especie-card__desc {
  font-family: var(--font);
  font-size: 0.78rem; color: var(--text-muted); margin: 0; line-height: 1.45;
}

/* ── Cómo hacer un buen reporte ── */
.steps-list { list-style: none; margin: 0 0 1.8rem; padding: 0; }
.steps-item {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--borde);
}
.steps-item:first-child { border-top: 1px solid var(--borde); }
.steps-num {
  font-family: var(--font-titulo);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--verde);
  opacity: 0.35;
  line-height: 1;
  flex-shrink: 0;
  min-width: 2ch;
}
.steps-item p {
  font-family: var(--font);
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.55;
  margin: 0.1rem 0 0;
}
.steps-cta { width: 100%; max-width: 360px; margin: 0 auto; display: block; }

/* ================================================================
   REVISIÓN
   ================================================================ */
.review-section {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 0.8rem; padding: 0.8rem 0; border-bottom: 1px solid var(--borde);
}
.review-section:last-child { border-bottom: none; }
.review-section__label {
  font-family: var(--font);
  font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--verde); opacity: 0.55; font-weight: 700; margin-bottom: 0.25rem;
}
.review-section__value { font-family: var(--font); font-size: 0.9rem; color: var(--text); line-height: 1.4; }
.review-section__edit {
  background: none; border: none; color: var(--verde); font-weight: 700;
  font-family: var(--font);
  font-size: 0.78rem; letter-spacing: 0.04em; text-decoration: underline;
  cursor: pointer; flex-shrink: 0; padding: 0.2rem;
}

.review-photos { display: flex; gap: 0.5rem; margin-top: 0.3rem; }
.review-photos img { width: 54px; height: 54px; object-fit: cover; border-radius: var(--radio); }

/* ================================================================
   ÉXITO
   ================================================================ */
.success {
  text-align: center; padding: 2.6rem 0.7rem 0.6rem;
}
.success__icon {
  width: 72px; height: 72px; margin: 0 auto 1.2rem;
  border-radius: 50%; background: var(--seleccion);
  border: 1px solid var(--borde);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--verde);
}
.success h2 {
  font-family: var(--font-titulo);
  font-size: 1.35rem; font-weight: 400; letter-spacing: 0.02em;
  color: var(--verde); margin: 0 0 0.6rem;
}
.success p { font-family: var(--font); font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; margin: 0 auto 0.4rem; max-width: 420px; }
.success__actions { margin-top: 1.6rem; display: flex; flex-direction: column; gap: 0.6rem; align-items: center; }
.success__actions .btn { width: 100%; max-width: 320px; }

/* ================================================================
   MAPA PÚBLICO
   ================================================================ */
.public-map-page #public-map { height: calc(100vh - 132px); min-height: 320px; }
.public-map-empty {
  text-align: center; padding: 3.5rem 1.4rem; color: var(--text-muted); font-family: var(--font);
}
.map-filters {
  display: flex; gap: 0.5rem; padding: 0.65rem 0.9rem; overflow-x: auto;
  background: var(--card); border-bottom: 1px solid var(--borde);
}
.map-filter-chip {
  flex-shrink: 0; padding: 0.5rem 0.9rem; border-radius: 999px;
  border: 1.5px solid var(--borde); background: var(--bg);
  font-size: 0.78rem; font-weight: 700; cursor: pointer; font-family: var(--font);
  color: var(--verde);
}
.map-filter-chip.selected { background: var(--verde); color: var(--crema); border-color: var(--verde); }

/* ================================================================
   PIE DE PÁGINA — estilo editorial (Camina y Descubre)
   ================================================================ */
.app-footer {
  background: var(--verde);
  color: var(--crema);
  padding: 1.9rem 1.4rem calc(1.7rem + var(--safe-bottom));
  text-align: center;
  border-top: 1px solid rgba(245,234,216,0.12);
}
.app-footer a { color: var(--crema); text-decoration: none; font-weight: 700; }
.app-footer a:hover { text-decoration: underline; }

.app-footer__logo { height: 42px; width: auto; margin: 0 auto 1.1rem; opacity: 0.92; }

.app-footer__brand {
  font-family: var(--font-titulo);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--crema);
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.app-footer p {
  font-family: var(--font);
  font-size: 0.72rem;
  color: rgba(245,234,216,0.55);
  margin: 0.2rem 0;
}
.app-footer p a { color: rgba(245,234,216,0.75); font-weight: 600; }

.app-footer__legal {
  margin: 0.9rem 0 0.6rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem 1rem;
}
.app-footer__legal a {
  color: rgba(245,234,216,0.55);
  font-family: var(--font);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}
.app-footer__legal a:hover { color: var(--crema); text-decoration: none; }

.app-footer__credit {
  margin-top: 0.7rem; font-size: 0.6rem; color: rgba(245,234,216,0.38);
}

/* ================================================================
   PÁGINAS LEGALES
   ================================================================ */
.legal-page .container { padding-top: 1.6rem; padding-bottom: 3.5rem; }
.legal-page h1 {
  font-family: var(--font-titulo);
  font-size: 1.5rem; font-weight: 400; letter-spacing: 0.02em;
  color: var(--verde); margin-bottom: 0.35rem;
}
.legal-page .legal-updated { font-family: var(--font); font-size: 0.78rem; color: var(--text-muted); margin-bottom: 1.6rem; }
.legal-page h2 {
  font-family: var(--font-titulo);
  font-size: 0.95rem; font-weight: 400; letter-spacing: 0.03em;
  color: var(--verde); margin: 1.8rem 0 0.6rem;
}
.legal-page p, .legal-page li { font-family: var(--font); font-size: 0.9rem; color: var(--text); line-height: 1.72; }
.legal-page ul { padding-left: 1.2rem; margin: 0.5rem 0; }
.legal-page .pending {
  background: rgba(168,88,42,0.12); color: var(--tierra-oscura); font-weight: 700;
  border-radius: 6px; padding: 0.05rem 0.4rem; font-size: 0.85em;
}
.legal-page a.back-link {
  display: inline-block; margin-bottom: 1.4rem; font-weight: 700;
  font-family: var(--font);
  font-size: 0.85rem;
}

/* ================================================================
   RESPONSIVE / DESKTOP
   ================================================================ */
@media (min-width: 720px) {
  .container { padding-top: 2rem; }
  .step-question { font-size: 1.55rem; }
}

@media (prefers-reduced-motion: reduce) {
  .screen.is-active { animation: none; }
}
