/* Estilos de EL CÍRCULO. Los colores salen de paleta.css. Pensado primero para móvil. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--piedra);
  color: var(--tinta);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--verde); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--serifa); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--verde); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: -999px; top: 0; background: var(--verde); color: #fff; padding: .6rem 1rem; z-index: 10; }
.saltar:focus { left: .5rem; top: .5rem; }

/* Cabecera y estructura */
.cabecera {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.25rem .6rem; max-width: var(--ancho); margin: 0 auto;
}
.marca { font-family: var(--serifa); font-size: 1.35rem; letter-spacing: .14em; text-transform: uppercase; color: var(--tinta); text-decoration: none; }
.marca span { color: var(--ocre-texto); }
.cabecera-enlace { font-size: .95rem; color: var(--texto-secundario); text-decoration: none; padding: .5rem 0 .5rem .75rem; min-height: 44px; display: inline-flex; align-items: center; }
.cabecera-enlace:hover { color: var(--tinta); }
main { max-width: var(--ancho); margin: 0 auto; padding: .5rem 1.25rem 7rem; }

/* Navegación inferior: solo texto, sin iconos */
.nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 5;
  background: rgba(237, 232, 224, .96);
  border-top: 1px solid var(--mineral);
  padding-bottom: env(safe-area-inset-bottom);
}
.nav ul { list-style: none; margin: 0 auto; padding: 0; display: flex; max-width: var(--ancho); }
.nav li { flex: 1; }
.nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem;
  min-height: 3.6rem; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--texto-secundario); text-decoration: none;
}
.nav a::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: transparent; }
.nav a[aria-current="page"] { color: var(--verde); font-weight: 600; }
.nav a[aria-current="page"]::before { background: var(--ocre); }

/* Bloques editoriales */
.antetitulo { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--texto-secundario); margin: 0 0 .6rem; }
.entradilla { font-family: var(--serifa); font-size: 1.35rem; line-height: 1.4; color: var(--tinta); }
.seccion { margin: 2.75rem 0; }
.seccion:first-child { margin-top: 1.25rem; }
.linea { border: 0; border-top: 1px solid var(--mineral); margin: 2.5rem 0; }
.filete { width: 2.5rem; height: 1px; background: var(--ocre); border: 0; margin: 1.25rem 0; }
.secundario { color: var(--texto-secundario); }
.pequeno { font-size: .9rem; }
.parrafos p:last-child { margin-bottom: 0; }

.tarjeta {
  display: block; background: var(--papel); border: 1px solid var(--mineral); border-radius: var(--radio);
  padding: 1.25rem 1.25rem; margin: 0 0 1rem; color: inherit; text-decoration: none;
}
a.tarjeta:hover { border-color: var(--piedra-oscura); }
.tarjeta h3 { margin-bottom: .25rem; }
.tarjeta p:last-child { margin-bottom: 0; }
.rejilla { display: grid; gap: 1rem; }
@media (min-width: 34rem) { .rejilla.dos { grid-template-columns: 1fr 1fr; } .rejilla.tres { grid-template-columns: repeat(3, 1fr); } }
.rejilla .tarjeta { margin: 0; }

.lista { list-style: none; padding: 0; margin: 0; }
.lista > li { border-top: 1px solid var(--mineral); }
.lista > li:last-child { border-bottom: 1px solid var(--mineral); }
.lista a.fila, .lista .fila { display: block; padding: 1rem 0; text-decoration: none; color: inherit; }
.lista a.fila:hover h3 { color: var(--verde); }
.fila h3 { font-size: 1.25rem; margin: 0 0 .15rem; }

/* Botones y formularios */
.boton, button.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.4rem; border-radius: 999px;
  background: var(--verde); color: #fff; border: 1px solid var(--verde);
  font: 600 1rem var(--sans); letter-spacing: .02em; text-decoration: none; cursor: pointer;
}
.boton:hover { background: #253c2f; }
.boton.claro { background: transparent; color: var(--verde); }
.boton.claro:hover { background: var(--verde-suave); }
.boton.discreto { background: transparent; border-color: transparent; color: var(--texto-secundario); padding-inline: .6rem; }
.boton.discreto:hover { color: var(--tinta); background: transparent; text-decoration: underline; }
.boton.peligro { background: transparent; color: var(--aviso); border-color: var(--aviso); }
.boton[disabled] { opacity: .55; cursor: default; }
.botones { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin: 1.5rem 0; }
.enlace-boton { background: none; border: 0; padding: .5rem 0; min-height: 44px; font: inherit; color: var(--verde); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

label { display: block; font-weight: 600; margin: 0 0 .35rem; }
.campo { margin: 0 0 1.25rem; }
.ayuda { font-size: .9rem; color: var(--texto-secundario); margin-top: .35rem; }
input[type=text], input[type=email], input[type=url], input[type=date], input[type=datetime-local], input[type=month], input[type=number], input[type=search], textarea, select {
  width: 100%; font: inherit; color: var(--tinta); background: var(--papel);
  border: 1px solid var(--piedra-oscura); border-radius: var(--radio); padding: .75rem .85rem; min-height: 48px;
}
textarea { min-height: 8rem; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--texto-secundario); opacity: 1; }
.casilla { display: flex; gap: .75rem; align-items: flex-start; font-weight: 400; padding: .5rem 0; min-height: 44px; }
.casilla input { width: 1.25rem; height: 1.25rem; margin-top: .2rem; accent-color: var(--verde); flex: none; }

.mensaje { padding: .9rem 1.1rem; border-radius: var(--radio); background: var(--verde-suave); margin: 1rem 0; }
.mensaje.error { background: #F3E3DF; color: var(--aviso); }
.nota { border-left: 2px solid var(--ocre); padding: .2rem 0 .2rem 1rem; color: var(--texto-secundario); margin: 1.25rem 0; }
.vacio { color: var(--texto-secundario); font-style: italic; }
.cargando { color: var(--texto-secundario); padding: 2rem 0; }
.pendiente-revision { background: #F3EBDC; border: 1px solid var(--ocre); color: var(--ocre-texto); padding: .9rem 1.1rem; border-radius: var(--radio); margin: 1rem 0 2rem; font-weight: 600; }

.pie { max-width: var(--ancho); margin: 0 auto; padding: 0 1.25rem 6.5rem; font-size: .85rem; color: var(--texto-secundario); }
.pie a { color: var(--texto-secundario); margin-right: 1rem; display: inline-block; padding: .5rem 0; }

@media (min-width: 48rem) {
  h1 { font-size: 3rem; }
  main { padding-top: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
main:focus { outline: none; }
@media (max-width: 26rem) { .nav a { font-size: .7rem; letter-spacing: .03em; } }
h2.h3 { font-size: 1.35rem; margin-bottom: .25rem; }
h1.antetitulo { font-family: var(--sans); font-size: .8rem; font-weight: 400; line-height: 1.6; }
.tarjeta.accion h2.h3 { font-size: 1.5rem; }
