/* =====================================================================
   Base compartida: colores, tipografía, botones y formularios
   ===================================================================== */
:root {
  --tinta: #1B2A21;          /* texto principal */
  --tinta-2: #4F5E54;        /* texto secundario */
  --tinta-3: #929C93;        /* deshabilitado */
  --niebla: #F6F0DF;         /* fondo crema del logo */
  --papel: #FFFDF8;          /* superficies */
  --linea: #E3DAC3;          /* bordes */
  --verde: #1F4A2E;          /* verde Solari: acción principal */
  --verde-osc: #143322;
  --verde-claro: #DFEBD8;
  --selva: #0E2A1F;          /* noche en la selva */
  --guacamayo: #C8232C;      /* rojo guacamayo */
  --guacamayo-claro: #F8DEDB;
  --sol: #F2B544;            /* luz dorada del letrero */
  --sol-claro: #FBEFD0;
  --error: #A3321C;

  --r-s: 8px;
  --r-m: 12px;
  --r-l: 22px;
  --sombra: 0 1px 2px rgba(20, 51, 34, .06), 0 10px 30px rgba(20, 51, 34, .10);

  --serif: 'Cinzel', 'Trajan Pro', Georgia, 'Times New Roman', serif;
  --sans: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Liana con hojas: el motivo de las fechas elegidas */
  --liana: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2224%22 height=%2240%22 viewBox=%220 0 24 40%22%3E%3Crect width=%2224%22 height=%2240%22 fill=%22%232F6B3F%22/%3E%3Crect y=%223%22 width=%2224%22 height=%222.5%22 fill=%22%23E9B44C%22/%3E%3Crect y=%2234.5%22 width=%2224%22 height=%222.5%22 fill=%22%23E9B44C%22/%3E%3Cpath d=%22M0 20 Q6 16.5 12 20 T24 20%22 stroke=%22%231F4A2E%22 stroke-width=%221.6%22 fill=%22none%22/%3E%3Cpath d=%22M6 18.8 C3.5 13.5 7.5 10 11.5 11.6 C11.4 15.2 9.4 18.2 6 18.8Z%22 fill=%22%2386C163%22/%3E%3Cpath d=%22M18 21.2 C20.5 26.5 16.5 30 12.5 28.4 C12.6 24.8 14.6 21.8 18 21.2Z%22 fill=%22%2386C163%22/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--niebla);
  color: var(--tinta);
  font: 400 1rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.15; }
h1, h2 { font-family: var(--serif); }
h3 { font-size: 1rem; font-weight: 600; }
p { margin: 0; }
a { color: var(--verde); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--sol); outline-offset: 2px; border-radius: 4px; }

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

/* ---------- Botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.4em;
  border: 0; border-radius: 999px;
  background: var(--verde); color: #fff;
  font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background .15s;
}
.boton:hover { background: var(--verde-osc); }
.boton:disabled { background: #B9C3C0; color: #F4F6F5; cursor: not-allowed; }
.boton.ancho { width: 100%; }
.boton.secundario { background: transparent; color: var(--tinta); box-shadow: inset 0 0 0 1.5px var(--linea); }
.boton.secundario:hover { background: var(--papel); box-shadow: inset 0 0 0 1.5px var(--tinta-3); }
.boton.peligro { background: transparent; color: var(--error); box-shadow: inset 0 0 0 1.5px #E3C2BA; }
.boton.peligro:hover { background: #FBF1EE; }
.boton.chico { min-height: 38px; padding: .45em 1em; font-size: .9rem; }

.enlace {
  border: 0; background: none; padding: 0; cursor: pointer;
  color: var(--verde); text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- Formularios ---------- */
.campo { display: grid; gap: 6px; }
.campo > span { font-size: .9rem; font-weight: 600; }
.campo small { color: var(--tinta-2); font-size: .82rem; }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=number],
input[type=date], input[type=time], input[type=month], input[type=url], input[type=search], select, textarea {
  width: 100%; min-height: 46px; padding: .6em .8em;
  background: var(--papel);
  border: 1.5px solid var(--linea); border-radius: var(--r-s);
  transition: border-color .15s;
}
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--verde); box-shadow: 0 0 0 3px var(--verde-claro); }
input[aria-invalid=true] { border-color: var(--error); }

.casilla { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.casilla input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--verde); flex: none; }

.error-texto { color: var(--error); font-size: .9rem; }
.error-texto:empty { display: none; }
.nota { color: var(--tinta-2); font-size: .88rem; }

/* ---------- Aviso de modo demostración ---------- */
.aviso-demo {
  background: var(--sol-claro); color: #5C4300;
  font-size: .88rem; text-align: center; padding: 8px 16px;
}
.aviso-demo a { color: inherit; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
