:root {
  font:
    100%/1.5 system-ui,
    -apple-system,
    sans-serif;
  color: #17362e;
  background: #f5f6f1;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
a {
  color: #205b49;
}
button,
input,
select {
  font: inherit;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #cd7c36;
  outline-offset: 3px;
}
.barra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem max(1.25rem, calc((100vw - 1100px) / 2));
  background: #fff;
  border-bottom: 1px solid #e4e9e1;
}
.barra > a:last-child {
  font-size: 0.9rem;
  text-decoration: none;
}
.marca {
  font-weight: 750;
  font-size: 1.2rem;
  text-decoration: none;
  color: #17362e;
}
.marca span {
  font-weight: 400;
  font-size: 0.85rem;
  color: #718078;
}
.contenedor {
  max-width: 1100px;
  margin: auto;
  padding: 3.5rem 1.25rem;
}
.intro {
  max-width: 680px;
  margin-bottom: 2.4rem;
}
.etiqueta {
  color: #487562;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  font-weight: 750;
}
.intro h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0.6rem 0 1rem;
}
.intro > p:last-child {
  font-size: 1.05rem;
  color: #546b5f;
  max-width: 560px;
}
.columnas {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.8fr);
  gap: 1.5rem;
  align-items: start;
}
.tarjeta {
  background: #fff;
  border: 1px solid #e0e8df;
  border-radius: 20px;
  padding: clamp(1.25rem, 3vw, 2.2rem);
  box-shadow: 0 10px 35px #17362e0a;
}
.cabecera {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.8rem;
}
.numero {
  background: #e4f0e7;
  border-radius: 100%;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}
h2 {
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.35rem;
}
h3 {
  margin: 0 0 0.4rem;
}
p {
  margin: 0.3rem 0;
}
.cabecera p,
.ayuda {
  color: #5d6d63;
  font-size: 0.9rem;
}
label {
  display: block;
  font-size: 0.9rem;
  font-weight: 650;
  margin: 0.95rem 0 0.35rem;
}
input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #7c9480;
  border-radius: 10px;
  background: #fff;
  padding: 0.7rem 0.8rem;
  color: #17362e;
}
button {
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  background: #205b49;
  color: #fff;
  font-weight: 700;
  padding: 0.8rem 1.1rem;
  cursor: pointer;
}
button:hover {
  background: #174738;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
#confirmar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-top: 1.3rem;
}
.secundario {
  margin-top: 1rem;
  background: #edf4ee;
  color: #205b49;
}
.secundario:hover {
  background: #dfece1;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 1.2rem 0 0;
}
legend {
  font-size: 0.9rem;
  font-weight: 650;
  margin-bottom: 0.5rem;
}
.horarios {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.horarios label {
  margin: 0;
}
.horarios input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  opacity: 0;
}
.horarios span {
  display: inline-block;
  border: 1px solid #7c9480;
  border-radius: 9px;
  padding: 0.65rem 0.9rem;
  font-weight: 650;
}
.horarios input:checked + span {
  background: #205b49;
  color: #fff;
  border-color: #205b49;
}
.horarios input:focus-visible + span {
  outline: 3px solid #cd7c36;
  outline-offset: 2px;
}
.opcional {
  font-weight: 400;
  color: #5d6d63;
}
.resultado {
  margin-top: 1.5rem;
  padding: 1.2rem;
  border-radius: 12px;
  background: #edf5ee;
}
.enlace {
  font-weight: 700;
  display: inline-block;
  margin: 0.7rem 0;
}
.nota {
  background: #dcece0;
}
.marca-icono {
  font-size: 1.5rem;
  color: #32654d;
  display: block;
  margin-bottom: 1.8rem;
}
.nota p {
  color: #456657;
}
.nota hr {
  border: 0;
  border-top: 1px solid #bbd2c0;
  margin: 1.5rem 0;
}
.detalle {
  display: flex;
  gap: 1rem;
  margin: 1.4rem 0.5rem;
  color: #355646;
}
.detalle span {
  font-size: 0.8rem;
  color: #789183;
}
.detalle small {
  color: #718078;
}
footer {
  padding: 1rem 1.25rem 2rem;
  text-align: center;
  color: #5d6d63;
  font-size: 0.8rem;
}
.error {
  color: #a0362e !important;
}
.panel {
  max-width: 800px;
}
.acciones {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.lista {
  padding: 0;
  list-style: none;
}
.lista li {
  border-top: 1px solid #e0e8df;
  padding: 0.8rem 0;
}
.espacio {
  margin-top: 1.5rem;
}
@media (max-width: 720px) {
  .contenedor {
    padding-top: 2.3rem;
  }
  .columnas {
    grid-template-columns: 1fr;
  }
  .lateral {
    display: none;
  }
  .intro h1 {
    font-size: 2.45rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

/* La demo concentra la atención en las tareas, con una sola columna de lectura. */
:root {
  color: #172b25;
  background: #f7f8f6;
}
html { scroll-behavior: smooth; }
.barra {
  gap: 1rem;
  padding-block: 0.85rem;
}
.barra a { min-height: 44px; display: inline-flex; align-items: center; }
.barra a:last-child { text-align: right; }
.inicio {
  color: #172b25;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}
.contenedor { padding-block: clamp(1.5rem, 4vw, 3rem); }
.intro { max-width: 680px; margin-bottom: 1.5rem; }
.intro h1, .panel h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0.4rem 0 0.75rem;
}
.intro > p:last-child { margin: 0; }
.reserva-publica { max-width: 680px; }
.tarjeta { border-radius: 16px; box-shadow: 0 4px 18px #17362e08; }
.reserva-publica h2 { margin-bottom: 1.1rem; }
.grupo-titulo {
  padding-top: 1.5rem;
  margin: 1.7rem 0 0.5rem !important;
  border-top: 1px solid #e0e8df;
}
.panel { max-width: 920px; }
.panel-nav {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.25rem 0 0.75rem;
  margin: 1rem 0;
  scrollbar-width: thin;
}
.panel-nav a {
  white-space: nowrap;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #cbd8ce;
  border-radius: 9px;
  padding: 0.5rem 0.85rem;
  color: #205b49;
  background: #fff;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.9rem;
}
.panel-nav a:hover { background: #edf4ee; }
.panel section[id] { scroll-margin-top: 1rem; }
.panel .tarjeta + .tarjeta { margin-top: 1.5rem; }
.panel form + form { padding-top: 1.5rem; margin-top: 1.5rem; border-top: 1px solid #e0e8df; }
.panel .lista li { overflow-wrap: anywhere; }
.panel .lista li button { display: inline-flex; align-items: center; }
.panel details { margin-top: 0.6rem; }
.panel summary { min-height: 44px; cursor: pointer; font-weight: 650; color: #205b49; }
.panel details form { max-width: 38rem; }
.mensaje:empty { display: none; }
.mensaje:not(:empty) { margin: 1rem 0; padding: 0.8rem 1rem; border-radius: 9px; background: #edf4ee; }
.mensaje.error { background: #fff1ef; }
button, .horarios span { transition: background-color 140ms ease, transform 140ms ease; }
button:active:not(:disabled) { transform: scale(0.985); }
.horarios span { min-width: 70px; min-height: 46px; display: inline-grid; place-items: center; cursor: pointer; }
.horarios input:disabled + span { opacity: 0.5; cursor: not-allowed; }
.resultado { border: 1px solid #c9decd; }
.enlace { min-height: 44px; display: inline-flex; align-items: center; }
textarea { width: 100%; font: inherit; border: 1px solid #7c9480; border-radius: 10px; padding: 0.7rem 0.8rem; color: inherit; resize: vertical; }
textarea:focus-visible { outline: 3px solid #cd7c36; outline-offset: 3px; }
@media (max-width: 500px) {
  .contenedor { padding-inline: 1rem; }
  .tarjeta { padding: 1.1rem; }
  .intro h1 { font-size: 2.1rem; }
  .acciones > button { flex: 1 1 100%; }
  .panel .lista li button { width: 100%; justify-content: center; }
  .panel-nav { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
