/* ---------------------------------------------------------------------------
   Laguna del Cisne · Guía de proveedores
   La identidad del sitio (vino #70424C sobre blanco, Reckless Neue y Switzer,
   líneas finas como estructura) puesta en la gramática de una guía impresa:
   índice de rubros, filetes, y un punteado que lleva del nombre al teléfono.
--------------------------------------------------------------------------- */

@font-face { font-family: 'Reckless Neue'; src: url('/fuentes/RecklessNeue-Light.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Reckless Neue'; src: url('/fuentes/RecklessNeue-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('/fuentes/Switzer-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --vino: #70424C;
  --vino-hondo: #4C2C33;
  --vino-medio: #7F5A62;       /* texto secundario: 5,9:1 sobre blanco */
  --vino-suave: #BFA1A6;       /* sólo filetes y puntos, nunca texto */
  --linea: #EAE0E1;
  --linea-fuerte: #CBB2B6;
  --papel: #FFFFFF;
  --papel-tenue: #FBF9F8;
  --papel-hondo: #F4EFEE;
  --monte: #55634B;            /* lo que recomiendan los vecinos */
  --monte-tenue: #EFF2EC;
  --alerta: #9B2C2C;

  --display: 'Reckless Neue', Georgia, 'Times New Roman', serif;
  --texto: 'Switzer', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --margen: clamp(1rem, 4vw, 3.5rem);
  --ancho: 78rem;
  --barra-alto: 4rem;
  --curva: cubic-bezier(.2, .7, .2, 1);
  --t: 180ms var(--curva);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--barra-alto) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--papel);
  color: var(--vino);
  font-family: var(--texto);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  caret-color: var(--vino);
  accent-color: var(--vino);
  scrollbar-color: var(--linea-fuerte) var(--papel);
}

h1, h2, h3 { font-family: var(--display); font-weight: 300; margin: 0; line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--vino); color: #fff; }
:focus-visible { outline: 2px solid var(--vino); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.solo-lector { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.saltar { position: absolute; left: var(--margen); top: -4rem; z-index: 60; background: var(--vino); color: #fff; padding: .6rem 1rem; border-radius: 2px; }
.saltar:focus { top: .6rem; }

/* --- botones ------------------------------------------------------------- */
.boton {
  --fondo: var(--vino); --frente: #fff; --borde: var(--vino);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 2.75rem; padding: 0 1.25rem;
  background: var(--fondo); color: var(--frente);
  border: 1px solid var(--borde); border-radius: 999px;
  font-size: .9375rem; letter-spacing: .01em; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background var(--t), color var(--t), border-color var(--t), transform 120ms var(--curva);
}
.boton:hover { --fondo: var(--vino-hondo); --borde: var(--vino-hondo); }
.boton:active { transform: translateY(1px); }
.boton[disabled], .boton[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.boton-linea { --fondo: transparent; --frente: var(--vino); --borde: var(--linea-fuerte); }
.boton-linea:hover { --fondo: var(--papel-hondo); --frente: var(--vino); --borde: var(--vino); }
.boton-grande { min-height: 3.25rem; padding: 0 1.8rem; font-size: 1rem; }

/* --- barra --------------------------------------------------------------- */
.barra {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 1.25rem;
  min-height: var(--barra-alto);
  padding: .5rem var(--margen);
  padding-top: max(.5rem, env(safe-area-inset-top));
  background: var(--papel);
  border-bottom: 1px solid var(--linea);
}
.marca { display: flex; align-items: center; }
.marca img { height: 28px; width: auto; }
.barra-guia { font-size: .875rem; color: var(--vino-medio); padding-left: 1.25rem; border-left: 1px solid var(--linea); line-height: 1.2; }
.en-vivo { margin-left: auto; display: inline-flex; align-items: center; gap: .45rem; font-size: .8125rem; color: var(--vino-medio); }
.en-vivo i { width: .5rem; height: .5rem; border-radius: 50%; background: var(--vino-suave); transition: background var(--t); }
.en-vivo[data-estado="vivo"] i { background: var(--monte); box-shadow: 0 0 0 3px var(--monte-tenue); }
.en-vivo[data-estado="vivo"] span { color: var(--monte); }
.en-vivo[data-estado="caido"] i { background: var(--alerta); }
.boton-barra { min-height: 2.5rem; padding: 0 1rem; }

/* --- tapa ---------------------------------------------------------------- */
.tapa, .herramientas, .cuerpo, .sumar, .pie { max-width: var(--ancho); margin-inline: auto; padding-inline: var(--margen); }
.tapa {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: end;
  padding-block: clamp(2rem, 5vw, 4rem) clamp(1.75rem, 3vw, 2.5rem);
}
.tapa h1 { font-size: clamp(3rem, 8.5vw, 6rem); line-height: .98; letter-spacing: -0.025em; margin-bottom: 1.4rem; }
.bajada { font-size: 1.1875rem; line-height: 1.5; max-width: 38ch; color: var(--vino); }
.tapa-cuenta { margin-top: 1.4rem; font-size: .9375rem; color: var(--vino-medio); font-variant-numeric: tabular-nums; min-height: 1.5em; }

/* El aviso: la página de advertencias de la guía. Marco fino, sin adornos. */
.aviso {
  border: 1px solid var(--vino);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  background: var(--papel);
  position: relative;
}
.aviso::before {           /* doble filete, como el recuadro de un impreso */
  content: ''; position: absolute; inset: 4px; border: 1px solid var(--linea); pointer-events: none;
}
.aviso h2 { font-size: 1.5rem; margin-bottom: .8rem; }
.aviso-clave { font-family: var(--display); font-weight: 400; font-size: 1.1875rem; line-height: 1.35; color: var(--vino-hondo); margin-bottom: .75rem; }
.aviso p:not(.aviso-clave) { font-size: .9375rem; line-height: 1.55; color: var(--vino); }
.aviso-consejo { margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--linea); }

/* --- horizonte ----------------------------------------------------------- */
.horizonte { margin: 0; height: clamp(56px, 6vw, 104px); overflow: hidden; background: var(--papel-hondo); border-block: 1px solid var(--linea); }
.horizonte img { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }

/* --- herramientas -------------------------------------------------------- */
.herramientas {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  padding-block: clamp(1.75rem, 4vw, 2.75rem) 0;
}
.buscador { position: relative; flex: 1 1 26rem; max-width: 40rem; }
.buscador input {
  width: 100%; height: 3.4rem;
  padding: 0 3rem 0 3.1rem;
  border: 1px solid var(--linea-fuerte); border-radius: 2px;
  background: var(--papel); font-size: 1.0625rem;
  transition: border-color var(--t), box-shadow var(--t);
  -webkit-appearance: none; appearance: none;
}
.buscador input::placeholder { color: var(--vino-medio); opacity: 1; }
.buscador input:hover { border-color: var(--vino-medio); }
.buscador input:focus { outline: none; border-color: var(--vino); box-shadow: 0 0 0 3px rgba(112, 66, 76, .12); }
.buscador input::-webkit-search-cancel-button { display: none; }
.ic-buscar { position: absolute; left: 1.05rem; top: 50%; transform: translateY(-50%); width: 1.3rem; height: 1.3rem; color: var(--vino-medio); pointer-events: none; }
.buscador-borrar { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); width: 2.75rem; height: 2.75rem; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--vino-medio); }
.buscador-borrar:hover { color: var(--vino); background: var(--papel-hondo); }

.vistas { display: flex; gap: 1.5rem; }
.vista {
  background: none; border: 0; padding: .7rem 0 .55rem; cursor: pointer;
  font-size: .9375rem; color: var(--vino-medio);
  border-bottom: 1px solid transparent; transition: color var(--t), border-color var(--t);
}
.vista:hover { color: var(--vino); }
.vista[aria-pressed="true"] { color: var(--vino); border-bottom-color: var(--vino); }

/* --- cuerpo: índice + páginas ------------------------------------------- */
.cuerpo {
  display: grid; grid-template-columns: 15.5rem minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: 2rem clamp(3rem, 7vw, 6rem);
  outline: none;
}

.indice { position: sticky; top: calc(var(--barra-alto) + 1.5rem); align-self: start; max-height: calc(100vh - var(--barra-alto) - 3rem); overflow: auto; scrollbar-width: thin; }
.indice-titulo { font-family: var(--display); font-size: 1.25rem; padding-bottom: .6rem; border-bottom: 1px solid var(--vino); margin-bottom: .35rem; }
.indice-lista { list-style: none; margin: 0; padding: 0; }
.indice-lista a {
  display: flex; align-items: baseline; gap: .4rem;
  padding: .42rem .5rem; margin-inline: -.5rem;
  text-decoration: none; font-size: .9375rem; line-height: 1.3; border-radius: 2px;
  transition: background var(--t), color var(--t);
}
.indice-lista a:hover { background: var(--papel-hondo); }
.i-puntos { flex: 1; min-width: .75rem; height: .6em; background: radial-gradient(circle, var(--vino-suave) .9px, transparent 1.2px) left bottom / 5px 3px repeat-x; }
.i-n { font-variant-numeric: tabular-nums; color: var(--vino-medio); font-size: .875rem; }
.indice-lista a[aria-current="true"] { background: var(--papel-hondo); color: var(--vino-hondo); }
.indice-lista a[aria-current="true"] .i-n { color: var(--vino); }
.indice-lista li.vacio a { color: var(--vino-medio); }
.indice-lista li.apagado a { opacity: .45; pointer-events: none; }

.resultado { font-size: .9375rem; color: var(--vino-medio); min-height: 1.4em; margin-bottom: .5rem; }
.resultado:empty { margin: 0; min-height: 0; }

/* --- un rubro ------------------------------------------------------------ */
.rubro { margin-top: 3rem; scroll-margin-top: calc(var(--barra-alto) + 1rem); }
.rubro:first-child { margin-top: .5rem; }
.rubro-cabeza {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; align-items: end;
  padding-bottom: .7rem; border-bottom: 1px solid var(--vino);
}
.rubro-cabeza h2 { font-size: clamp(1.75rem, 3.2vw, 2.25rem); }
.rubro-n { font-family: var(--display); font-weight: 300; font-size: clamp(1.75rem, 3.2vw, 2.25rem); line-height: 1.12; font-variant-numeric: tabular-nums; color: var(--vino-medio); }
.rubro-describe { grid-column: 1 / -1; margin-top: .3rem; font-size: .9375rem; color: var(--vino-medio); }

.rubro.vacio .rubro-cabeza { border-bottom-color: var(--linea-fuerte); padding-bottom: .5rem; }
.rubro.vacio h2, .rubro.vacio .rubro-n { font-size: 1.375rem; color: var(--vino-medio); }
.rubro.vacio { margin-top: 1.75rem; }
.vacio-texto { padding: .8rem 0 0; font-size: .9375rem; color: var(--vino-medio); }
.vacio-texto button { background: none; border: 0; padding: 0; color: var(--vino); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: inherit; }
.rubros-vacios-titulo { margin-top: 4rem; font-family: var(--display); font-size: 1.375rem; color: var(--vino-medio); padding-bottom: .6rem; border-bottom: 1px dashed var(--linea-fuerte); }
.rubros-vacios-bajada { margin-top: .6rem; font-size: .9375rem; color: var(--vino-medio); max-width: 52ch; }

.fecha-grupo { margin-top: 2.5rem; font-family: var(--display); font-size: 1.5rem; padding-bottom: .6rem; border-bottom: 1px solid var(--vino); }
.fecha-grupo:first-child { margin-top: .5rem; }

/* --- una entrada de la guía ---------------------------------------------- */
.entrada { position: relative; padding: 1.35rem 0 1.2rem; border-top: 1px solid var(--linea); }
.rubro-cabeza + .entradas > .entrada:first-child, .fecha-grupo + .entrada { border-top: 0; }
.entrada::before {                         /* la tinta fresca de una llegada en vivo */
  content: ''; position: absolute; inset: 0 -.9rem; border-radius: 3px;
  background: rgba(112, 66, 76, .09); opacity: 0; pointer-events: none;
}
.entrada.llego::before { animation: tinta-fresca 2.8s var(--curva) forwards; }
@keyframes tinta-fresca { 0% { opacity: 1; } 55% { opacity: .85; } 100% { opacity: 0; } }

.e-linea-nombre { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .55rem; }
.e-nombre { font-family: var(--display); font-weight: 400; font-size: 1.4375rem; line-height: 1.22; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.e-puntos { flex: 1 1 2.5rem; min-width: 2.5rem; align-self: baseline; height: .5em; background: radial-gradient(circle, var(--vino-suave) 1px, transparent 1.35px) left bottom / 6px 4px repeat-x; }
.e-tel { font-size: 1.0625rem; font-variant-numeric: tabular-nums; letter-spacing: .02em; white-space: nowrap; text-decoration: none; color: var(--vino); }
.e-tel:hover { text-decoration: underline; }
.e-sin-tel { font-size: .9375rem; color: var(--vino-medio); white-space: nowrap; }

.e-servicio { margin-top: .35rem; font-size: 1.0625rem; line-height: 1.45; color: var(--vino-hondo); max-width: 62ch; }
.e-detalle { margin-top: .3rem; font-size: .9688rem; line-height: 1.5; color: var(--vino); max-width: 62ch; }
.e-datos { margin-top: .45rem; font-size: .9375rem; color: var(--vino-medio); }
.e-datos span + span::before { content: '·'; margin: 0 .5rem; color: var(--vino-suave); }

.e-cita { margin: .8rem 0 0; padding: .1rem 0 .1rem 1rem; border-left: 1px solid var(--linea-fuerte); max-width: 58ch; }
.e-cita p { font-family: var(--display); font-size: 1.0625rem; line-height: 1.45; color: var(--vino-hondo); }
.e-cita footer { margin-top: .25rem; font-size: .875rem; color: var(--vino-medio); }

.e-acciones { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin-top: 1rem; }
.e-acciones .boton { padding: 0 1.1rem; }
.e-acciones .boton .ic { width: 1.1rem; height: 1.1rem; }
.e-enlace {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; padding: 0 .35rem;
  font-size: .9375rem; text-decoration: none; color: var(--vino); border-radius: 2px;
}
.e-enlace:hover { text-decoration: underline; }
.e-enlace .ic { color: var(--vino-medio); }

.recomendar {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 2.75rem; padding: 0 1rem;
  border: 1px solid var(--linea-fuerte); border-radius: 999px; background: var(--papel);
  color: var(--vino); font-size: .9375rem; cursor: pointer;
  transition: background var(--t), border-color var(--t), color var(--t);
}
.recomendar:hover { border-color: var(--monte); color: var(--monte); }
.recomendar[aria-pressed="true"] { background: var(--monte-tenue); border-color: var(--monte); color: var(--monte); }
.recomendar[aria-pressed="true"] .ic { fill: currentColor; fill-opacity: .18; }
.recomendar .r-n { font-variant-numeric: tabular-nums; min-width: 1ch; display: inline-block; }
.recomendar .r-n:empty { display: none; }
.recomendar.contando .r-n { animation: sube-numero 220ms var(--curva); }
@keyframes sube-numero { from { transform: translateY(.45em); opacity: 0; } to { transform: none; opacity: 1; } }
.recomendar[aria-busy="true"] { cursor: progress; opacity: .7; }

.e-sellos { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.1rem; margin-top: .9rem; font-size: .8125rem; line-height: 1.4; color: var(--vino-medio); }
.sello-nuevo { color: var(--vino); display: inline-flex; align-items: center; gap: .35rem; }
.sello-nuevo::before { content: ''; width: .4rem; height: .4rem; border-radius: 50%; background: var(--vino-suave); }
.sello-rec { color: var(--monte); }
.sello-rubro { color: var(--vino); }
.reportar { margin-left: auto; background: none; border: 0; padding: .4rem 0; cursor: pointer; font-size: .8125rem; color: var(--vino-medio); text-decoration: underline dotted; text-underline-offset: 3px; }
.reportar:hover { color: var(--vino); }
.reportar[disabled] { text-decoration: none; cursor: default; }

/* reporte en línea, bajo la entrada */
.reporte { margin-top: .9rem; padding: 1.1rem 1.2rem 1.2rem; background: var(--papel-tenue); border: 1px solid var(--linea); border-radius: 2px; }
.reporte fieldset { border: 0; margin: 0; padding: 0; }
.reporte legend { font-family: var(--display); font-size: 1.125rem; margin-bottom: .6rem; padding: 0; }
.reporte .opciones { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .15rem 1.2rem; }
.reporte label.op { display: flex; align-items: center; gap: .6rem; min-height: 2.5rem; font-size: .9375rem; cursor: pointer; }
.reporte input[type="radio"] { width: 1.1rem; height: 1.1rem; margin: 0; }
.reporte textarea { margin-top: .6rem; width: 100%; min-height: 4.5rem; padding: .65rem .75rem; border: 1px solid var(--linea-fuerte); border-radius: 2px; background: var(--papel); resize: vertical; font-size: .9375rem; }
.reporte .pie-reporte { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: .8rem; }
.reporte .nota { font-size: .8125rem; color: var(--vino-medio); flex: 1 1 16rem; }
.reporte .boton { min-height: 2.5rem; }

/* estados de carga y error */
.esqueleto { display: grid; gap: .7rem; padding-top: .5rem; }
.esqueleto span { display: block; height: .9rem; background: var(--papel-hondo); border-radius: 2px; }
.esqueleto .e-titulo { height: 2.2rem; width: 45%; margin-bottom: .8rem; }
.esqueleto .e-linea { width: 92%; height: 1.3rem; margin-top: 1rem; }
.esqueleto .e-corta { width: 60%; }
.sin-resultados { padding: 2.5rem 0; border-top: 1px solid var(--vino); }
.sin-resultados h2 { font-size: 1.75rem; margin-bottom: .6rem; }
.sin-resultados p { color: var(--vino-medio); max-width: 48ch; margin-bottom: 1.2rem; }
.falla { padding: 2rem 0; border-top: 1px solid var(--alerta); color: var(--alerta); }
.falla p { margin-bottom: 1rem; }

/* --- sumar --------------------------------------------------------------- */
.sumar { padding-block: clamp(3rem, 7vw, 5.5rem); border-top: 1px solid var(--vino); outline: none; scroll-margin-top: var(--barra-alto); }
.sumar-cabeza { max-width: 44rem; margin-bottom: 2.25rem; }
.sumar-cabeza h2 { font-size: clamp(2.1rem, 5vw, 3.25rem); line-height: 1.05; margin-bottom: .9rem; }
.sumar-cabeza p { font-size: 1.0625rem; color: var(--vino); max-width: 50ch; }

.sumar-form {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "campos previa" "confirmar previa";
  gap: 0 clamp(2rem, 5vw, 4.5rem); align-items: start;
}
.campos { grid-area: campos; display: grid; gap: 1.15rem; }
.previa { grid-area: previa; position: sticky; top: calc(var(--barra-alto) + 1.5rem); }
.confirmar { grid-area: confirmar; margin-top: 1.4rem; }

.campo { display: grid; gap: .4rem; }
.campo label { font-size: .9375rem; color: var(--vino-hondo); }
.opcional { font-size: .8125rem; color: var(--vino-medio); margin-left: .35rem; }
.campo input, .campo select, .campo textarea {
  width: 100%; min-height: 3rem; padding: .7rem .85rem;
  border: 1px solid var(--linea-fuerte); border-radius: 2px; background: var(--papel);
  font-size: 1.0625rem; transition: border-color var(--t), box-shadow var(--t);
}
.campo textarea { resize: vertical; min-height: 5.5rem; line-height: 1.45; }
.campo select { -webkit-appearance: none; appearance: none; padding-right: 2.5rem; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--vino) 50%), linear-gradient(135deg, var(--vino) 50%, transparent 50%);
  background-position: calc(100% - 1.25rem) 55%, calc(100% - .9rem) 55%; background-size: .36rem .36rem; background-repeat: no-repeat; }
.campo input::placeholder, .campo textarea::placeholder { color: var(--vino-medio); opacity: 1; }
.campo input:hover, .campo select:hover, .campo textarea:hover { border-color: var(--vino-medio); }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--vino); box-shadow: 0 0 0 3px rgba(112, 66, 76, .12); }
.campo [aria-invalid="true"] { border-color: var(--alerta); }
.error { font-size: .875rem; color: var(--alerta); min-height: 0; }
.error:empty { display: none; }

.mas-datos { border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); padding: .2rem 0; }
.mas-datos summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .6rem; min-height: 3rem; font-size: .9375rem; color: var(--vino-hondo); }
.mas-datos summary::-webkit-details-marker { display: none; }
.mas-datos summary .ic { color: var(--vino); transition: transform var(--t); }
.mas-datos[open] summary .ic { transform: rotate(45deg); }
.mas-datos summary span { font-size: .8125rem; color: var(--vino-medio); }
.mas-datos[open] { padding-bottom: 1.15rem; }
.mas-datos .campo + .campo { margin-top: 1.15rem; }

.casilla { display: flex; align-items: flex-start; gap: .75rem; cursor: pointer; font-size: .9375rem; line-height: 1.45; color: var(--vino-hondo); max-width: 44ch; }
.casilla input { width: 1.25rem; height: 1.25rem; margin: .1rem 0 0; flex: none; }
.confirmar .boton { margin-top: 1.25rem; }
.form-estado { margin-top: 1rem; font-size: .9688rem; line-height: 1.5; max-width: 46ch; }
.form-estado.ok { color: var(--monte); }
.form-estado.mal { color: var(--alerta); }
.form-estado button { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: inherit; }

.previa-titulo { font-size: .875rem; color: var(--vino-medio); padding-bottom: .6rem; border-bottom: 1px solid var(--vino); }
.previa-hoja { padding: .2rem 1.25rem 1.25rem; margin-top: 0; background: var(--papel-tenue); border: 1px solid var(--linea); border-top: 0; }
.previa-hoja .entrada { border-top: 0; }
.previa-hoja .e-acciones, .previa-hoja .reportar { pointer-events: none; }
.previa-hoja .vacia { color: var(--vino-medio); font-size: .9375rem; padding: 1.4rem 0 .2rem; }

.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- pie ----------------------------------------------------------------- */
.pie { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 2.5rem; padding-block: 2.5rem calc(2.5rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--linea); }
.pie img { width: 150px; height: auto; margin-top: .2rem; }
.pie-texto { display: grid; gap: .8rem; max-width: 70ch; font-size: .875rem; line-height: 1.55; color: var(--vino-medio); }
.pie-rotulo { color: var(--vino-hondo); }

/* --- aviso de llegada en vivo ------------------------------------------- */
.llegada {
  position: fixed; z-index: 50; left: 50%; bottom: calc(1rem + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex; align-items: center; gap: .9rem;
  width: min(34rem, calc(100vw - 2rem));
  padding: .7rem .6rem .7rem 1.1rem;
  background: var(--papel); border: 1px solid var(--vino); border-radius: 3px;
  box-shadow: 0 10px 30px -12px rgba(76, 44, 51, .35), 0 2px 6px -2px rgba(76, 44, 51, .15);
  animation: asoma 260ms var(--curva);
}
@keyframes asoma { from { opacity: 0; transform: translate(-50%, .75rem); } to { opacity: 1; transform: translate(-50%, 0); } }
.llegada-texto { flex: 1; font-size: .9375rem; line-height: 1.35; }
.llegada-texto strong { font-family: var(--display); font-weight: 400; }
.llegada-ver { background: var(--vino); color: #fff; border: 0; border-radius: 999px; min-height: 2.5rem; padding: 0 1rem; cursor: pointer; font-size: .875rem; }
.llegada-ver:hover { background: var(--vino-hondo); }
.llegada-cerrar { width: 2.5rem; height: 2.5rem; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--vino-medio); }
.llegada-cerrar:hover { background: var(--papel-hondo); color: var(--vino); }

/* --- celular -------------------------------------------------------------- */
@media (max-width: 960px) {
  .tapa { grid-template-columns: 1fr; align-items: start; gap: 1.75rem; }
  .cuerpo { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 0; }
  .indice { min-width: 0; }
  .indice-lista { min-width: 0; }
  /* El índice pasa a ser una tira de pestañas pegada bajo la barra. */
  .indice {
    position: sticky; top: var(--barra-alto); z-index: 30;
    max-height: none; overflow: visible;
    margin-inline: calc(var(--margen) * -1);
    background: var(--papel);
    border-bottom: 1px solid var(--linea);
  }
  .indice-titulo { display: none; }
  .indice-lista {
    display: flex; gap: .25rem; overflow-x: auto; scroll-snap-type: x proximity;
    padding: 0 var(--margen); gap: .6rem; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .indice-lista::-webkit-scrollbar { display: none; }
  .indice-lista li { flex: none; scroll-snap-align: start; }
  .indice-lista li.vacio { display: none; }
  .indice-lista a { margin: 0; padding: .55rem .6rem .45rem; border-radius: 0; border-bottom: 1px solid transparent; white-space: nowrap; font-size: .9375rem; gap: .4rem; min-height: 2.75rem; align-items: center; }
  .indice-lista a:hover { background: none; }
  .indice-lista a[aria-current="true"] { background: none; color: var(--vino-hondo); border-bottom-color: var(--vino); }
  .i-puntos { display: none; }
  .paginas { padding-top: 1.25rem; }
  .rubro { scroll-margin-top: calc(var(--barra-alto) + 4rem); }
  .sumar-form { grid-template-columns: 1fr; grid-template-areas: "campos" "previa" "confirmar"; }
  .previa { position: static; margin-top: 2rem; }
  .pie { grid-template-columns: 1fr; gap: 1.25rem; }
}

@media (max-width: 640px) {
  :root { --barra-alto: 3.5rem; }
  .barra { gap: .75rem; }
  .marca img { height: 22px; }
  .barra-guia { display: none; }
  .en-vivo { font-size: .75rem; }
  .horizonte { display: none; }
  .boton-barra { min-height: 2.5rem; padding: 0 .9rem; font-size: .875rem; }
  .bajada { font-size: 1.0625rem; }
  .aviso h2 { font-size: 1.3125rem; }
  .aviso-clave { font-size: 1.0625rem; }
  .herramientas { gap: .75rem; }
  .buscador { flex-basis: 100%; }
  .buscador input { font-size: 1rem; }
  .vistas { gap: 1.25rem; }
  .e-nombre { font-size: 1.3125rem; }
  .e-acciones .boton, .recomendar { flex: 1 1 auto; }
  .e-acciones .e-enlace { flex: none; }
  .reportar { margin-left: 0; }
  .entrada::before { inset: 0 -.5rem; }
  .boton-grande { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .entrada.llego::before { animation: none; opacity: 0; }
}

/* --- vecinos de las chacras: primeros en su rubro y destacados ------------ */
.entrada.interno {
  margin: .9rem 0; padding: 1.1rem 1.25rem 1.05rem;
  background: var(--papel-tenue);
  border: 1px solid var(--vino-suave); border-radius: 2px;
}
.entrada.interno + .entrada:not(.interno) { border-top: 0; }
.entrada.interno::before { inset: 0; }
.marca-vecino {
  display: inline-flex; align-items: center; gap: .45rem;
  margin-bottom: .6rem; padding: .2rem .6rem .2rem .5rem;
  border: 1px solid var(--vino); border-radius: 2px; background: var(--papel);
  font-size: .8125rem; line-height: 1.3; letter-spacing: .02em; color: var(--vino);
}
.mv-punto { width: .45rem; height: .45rem; border-radius: 50%; background: var(--vino); }

.casilla-vecino {
  max-width: none; padding: .95rem 1rem; gap: .85rem;
  border: 1px solid var(--linea-fuerte); border-radius: 2px; background: var(--papel-tenue);
  transition: border-color var(--t), background var(--t);
}
.casilla-vecino:hover { border-color: var(--vino-medio); }
.casilla-vecino:has(input:checked) { border-color: var(--vino); background: var(--papel); }
.casilla-vecino .cv-titulo { display: block; font-family: var(--display); font-size: 1.125rem; color: var(--vino-hondo); margin-bottom: .15rem; }
.casilla-vecino > span { font-size: .9375rem; color: var(--vino); }

@media (max-width: 640px) {
  .entrada.interno { padding: .95rem .9rem .9rem; }
}
