/* Sitio de ¿Qué onda los vecinos?: colores y tipografías del manual de marca (marca/manual-de-marca.html). */
@font-face { font-family: "Bricolage"; src: url(/fuentes/bricolage.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url(/fuentes/atkinson.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url(/fuentes/atkinson-negrita.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --papel: #F7F8F5; --card: #FFFFFF; --tinta: #1E2833; --muted: #5A6572; --linea: #D9DED6;
  --plaza: #2E7A56; --plaza-bg: #E3F0E8; --plaza-claro: #B9DCC8; --sol: #E8B730; --ladrillo: #B4492F; --ladrillo-bg: #F6E3DC;
  --manzana: #E3F0E8; --calle: #F7F8F5;
  --ancho: 1440px;
  --margen: clamp(20px, 5vw, 48px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--papel); color: var(--tinta); font: 18px/1.6 "Atkinson", system-ui, sans-serif; }
img, svg { max-width: 100%; }
a { color: var(--plaza); text-underline-offset: .18em; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--sol); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: "Bricolage", sans-serif; font-weight: 750; line-height: 1.04; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
.saltar { position: absolute; left: -9999px; }
.saltar:focus { left: 12px; top: 12px; z-index: 10; background: var(--card); padding: 8px 14px; border-radius: 8px; }

/* Encabezado y pie */
.arriba { background: var(--card); border-bottom: 1px solid var(--linea); padding: 16px max(var(--margen), calc((100% - var(--ancho)) / 2 + var(--margen)));
  display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.menu { display: flex; gap: 30px; }
.menu a { color: var(--muted); font-weight: 700; text-decoration: none; font-size: 17px; }
.menu a:hover { color: var(--plaza); }
.marca { display: block; width: 210px; }
.marca svg { display: block; width: 100%; height: auto; }
.boton { display: inline-block; background: var(--plaza); color: #fff; font-weight: 700; text-decoration: none; border-radius: 999px; padding: 12px 22px; }
.abajo { background: var(--tinta); color: #C9D1CB; margin-top: 0; padding: 56px var(--margen) 40px; font-size: 16px; }
.abajo a { color: #fff; }
.abajo-columnas { max-width: var(--ancho); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
.abajo-titulo { font-family: "Bricolage", sans-serif; font-weight: 750; font-size: 24px; color: #fff; margin-bottom: 8px; }
.abajo ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.abajo-legal { max-width: var(--ancho); margin: 40px auto 0; padding-top: 20px; border-top: 1px solid #34404B; font-size: 14px; color: #9AA59F; }

/* Botón de descarga: el logo de Google Play en un cuadrado blanco y "Descargá en / Google Play" */
.descarga { display: inline-flex; align-items: center; gap: 14px; padding: 10px 24px 10px 10px; border-radius: 16px;
  background: #000; color: #fff; text-decoration: none; transition: background-color .15s; }
.descarga:hover { background: #2A2A2A; }
.descarga-icono { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: #fff; }
.descarga-icono svg { width: 20px; height: 22px; margin-left: 2px; }
.descarga-texto { display: flex; flex-direction: column; font-family: "Bricolage", sans-serif; font-weight: 750; font-size: 21px; line-height: 1.1; letter-spacing: -0.01em; }
.descarga-texto small { font-family: "Atkinson", sans-serif; font-weight: 400; font-size: 14px; letter-spacing: 0; opacity: .85; }
.descarga.sobre-oscuro { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }

/* Portada: franja verde oscura con el título, el botón y un celular inclinado; abajo, cuatro cifras */
.portada { --bosque: #1D4E37; background: var(--bosque); color: #fff; overflow: hidden;
  padding: 0 max(var(--margen), calc((100% - var(--ancho)) / 2 + var(--margen))); }
.portada-adentro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 48px; align-items: center; padding: 72px 0 64px; }
.portada h1 { font-size: clamp(38px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -0.03em; }
.portada h1 span { display: block; color: var(--sol); }
.portada .bajada { color: #D5E6DC; max-width: 31em; margin: 26px 0 34px; }
.portada-nota { margin: 16px 0 0; color: #A9C7B6; font-size: 15px; }
.portada-celu { margin: 0; justify-self: center; width: min(330px, 100%); border: 10px solid #0F2A1E; border-radius: 44px; overflow: hidden;
  background: #0F2A1E; transform: rotate(4deg); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.portada-celu video { display: block; width: 100%; height: auto; aspect-ratio: 540 / 1166; border-radius: 34px; background: #F7F8F5; }
.cifras { list-style: none; margin: 0; padding: 30px 0 40px; border-top: 1px solid rgba(255, 255, 255, .18);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cifras li { color: #C4DACD; font-size: 16px; line-height: 1.35; padding: 0 24px; border-left: 1px solid rgba(255, 255, 255, .18); }
.cifras li:first-child { padding-left: 0; border-left: 0; }
.cifras b { display: block; font-family: "Bricolage", sans-serif; font-weight: 750; font-size: clamp(27px, 2.7vw, 38px); line-height: 1.1; white-space: nowrap;
  letter-spacing: -0.03em; color: var(--sol); margin-bottom: 4px; }
.bajada { font-size: clamp(19px, 2vw, 22px); color: var(--muted); max-width: 32em; margin-top: 22px; }

/* Separador después de la portada: una frase grande sobre verde claro */
.divisor { background: var(--plaza-bg); padding: clamp(56px, 7vw, 96px) var(--margen); text-align: center; }
.divisor p { max-width: 22em; margin: 0 auto; font-family: "Bricolage", sans-serif; font-weight: 750; font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.12; letter-spacing: -0.025em; color: var(--plaza); text-wrap: balance; }
.divisor p span { display: block; color: var(--tinta); }
.divisor .descarga { margin-top: 36px; }
.descarga.mediano { gap: 16px; padding: 12px 30px 12px 12px; border-radius: 19px; }
.descarga.mediano .descarga-icono { width: 50px; height: 50px; border-radius: 13px; }
.descarga.mediano .descarga-icono svg { width: 24px; height: 27px; }
.descarga.mediano .descarga-texto { font-size: 26px; }
.descarga.mediano .descarga-texto small { font-size: 15.5px; }
.descarga.grande { gap: 18px; padding: 14px 34px 14px 14px; border-radius: 22px; box-shadow: 0 18px 36px -16px rgba(30, 40, 51, .5); }
.descarga.grande .descarga-icono { width: 58px; height: 58px; border-radius: 15px; }
.descarga.grande .descarga-icono svg { width: 28px; height: 31px; }
.descarga.grande .descarga-texto { font-size: 30px; text-align: left; }
.descarga.grande .descarga-texto small { font-size: 17px; }

/* La ficha de una cuadra (en la primera función), sobre un bloque verde claro con un cuadrado amarillo como el del isotipo */
.ficha-lugar { position: relative; width: 100%; max-width: 540px; padding: 52px 36px; background: var(--plaza-bg); border-radius: 44px; }
.ficha-lugar::after { content: ""; position: absolute; top: -18px; right: -18px; width: 72px; height: 72px; background: var(--sol); border-radius: 20px; }
.funcion.con-ficha { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

.ficha { background: var(--card); border-radius: 28px; padding: 28px 28px 24px; box-shadow: 0 1px 0 var(--linea), 0 24px 60px -24px rgba(30, 40, 51, .35);
  position: relative; z-index: 1; margin: 0 auto; max-width: 440px; transform: rotate(-1.5deg); }
.ficha-calle { font-family: "Bricolage", sans-serif; font-weight: 750; font-size: 28px; line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
.ficha-barrio { color: var(--muted); margin: 4px 0 16px; font-size: 16px; }
.ficha-base { font-size: 14px; color: var(--muted); margin: 0 0 6px; }
.ficha-temas { list-style: none; padding: 0; margin: 0 0 18px; }
.ficha-temas li { display: grid; grid-template-columns: 1fr auto 2.2em; align-items: center; gap: 10px; padding: 5px 0; font-size: 16px; }
.ficha-temas b { text-align: right; }
.ficha-sub { font-weight: 700; margin: 0 0 8px; font-size: 16px; }
.estrellas { position: relative; display: inline-block; font-size: 18px; letter-spacing: 1px; line-height: 1; }
.estrellas-fondo { color: var(--linea); }
.estrellas-llenas { position: absolute; inset: 0; color: var(--sol); overflow: hidden; white-space: nowrap; width: calc(var(--valor) * 100%); }
@media (prefers-reduced-motion: no-preference) {
  .estrellas-llenas { animation: llenar 1.1s cubic-bezier(.2, .7, .2, 1) both; }
  .ficha-temas li:nth-child(2) .estrellas-llenas { animation-delay: .12s; }
  .ficha-temas li:nth-child(3) .estrellas-llenas { animation-delay: .24s; }
  .ficha-temas li:nth-child(4) .estrellas-llenas { animation-delay: .36s; }
  .ficha-temas li:nth-child(5) .estrellas-llenas { animation-delay: .48s; }
}
@keyframes llenar { from { width: 0; } }
.pildoras { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pildora { border: 1.5px solid var(--tinta); border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: 15px; }
.pildora span { font-weight: 400; color: var(--muted); }
.pildora.buena { border-color: var(--plaza); background: var(--plaza-bg); }
.pildora.mala { border-color: var(--ladrillo); background: var(--ladrillo-bg); }

/* Funciones: captura y texto, alternados */
.funciones { max-width: var(--ancho); margin: 0 auto; padding: 96px var(--margen) 96px; display: grid; gap: 88px; }
.funcion { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(32px, 7vw, 96px); align-items: center; }
.funcion:nth-child(even) { grid-template-columns: minmax(0, 1fr) 300px; }
.funcion:nth-child(even) .celu { order: 2; }
.funcion h2 { font-size: clamp(32px, 4.2vw, 50px); margin-bottom: 18px; }
.funcion-texto { max-width: 34em; }
.funcion-texto p { color: var(--muted); }
.celu { margin: 0; border: 9px solid var(--tinta); border-radius: 36px; overflow: hidden; background: var(--tinta); box-shadow: 0 30px 60px -30px rgba(30, 40, 51, .45); }
.celu img { display: block; width: 100%; height: auto; border-radius: 27px; }

/* Privacidad: la franja verde */
.privacidad { background: var(--plaza); color: #fff; padding: 88px max(var(--margen), calc((100% - var(--ancho)) / 2 + var(--margen))); }
.privacidad h2 { font-size: clamp(38px, 5.4vw, 64px); margin-bottom: 40px; }
.privacidad ul { list-style: none; padding: 0; margin: 0 0 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 56px; }
.privacidad li { font-size: 19px; color: #E3F0E8; padding-top: 18px; border-top: 2px solid rgba(255, 255, 255, .25); }
.privacidad li b { display: block; color: #fff; font-family: "Bricolage", sans-serif; font-weight: 750; font-size: 24px; letter-spacing: -0.01em; margin-bottom: 4px; }
.privacidad a { color: #fff; font-weight: 700; }

/* Rankings */
.rankings, .preguntas { max-width: var(--ancho); margin: 0 auto; padding: 96px var(--margen) 0; }
.rankings h2, .preguntas h2 { font-size: clamp(34px, 4.6vw, 54px); margin-bottom: 18px; }
.rankings-bajada { color: var(--muted); max-width: 40em; }
.rankings.vacio p { max-width: 40em; }
.rankings.vacio p { color: var(--muted); }
.rankings-grilla { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px 48px; margin-top: 40px; }
.ranking h3 { font-size: 22px; margin-bottom: 14px; letter-spacing: -0.01em; }
.ranking ol { list-style: none; padding: 0; margin: 0; }
.ranking li { display: grid; grid-template-columns: 1.6em 1fr auto; align-items: baseline; gap: 2px 8px; padding: 9px 0; border-top: 1px solid var(--linea); }
.puesto { font-family: "Bricolage", sans-serif; font-weight: 750; color: var(--plaza); }
.nombre { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nota { font-weight: 700; }
.nota small { font-weight: 400; color: var(--muted); font-size: 14px; }
.barra { grid-column: 2 / 4; height: 6px; border-radius: 99px; background: var(--plaza-bg); position: relative; overflow: hidden; }
.barra::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--valor) * 100%); background: var(--sol); border-radius: 99px; }
.aviso-ejemplo { display: inline-block; background: var(--ladrillo); color: #fff; font-weight: 700; padding: 4px 14px; border-radius: 999px; }

/* Preguntas frecuentes */
.preguntas-lista { max-width: 820px; border-top: 1px solid var(--linea); }
.preguntas details { border-bottom: 1px solid var(--linea); }
.preguntas summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 20px; padding: 18px 40px 18px 0; position: relative; }
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 11px; height: 11px; margin-top: -8px;
  border-right: 2.5px solid var(--plaza); border-bottom: 2.5px solid var(--plaza); transform: rotate(45deg); transition: transform .2s; }
.preguntas details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.preguntas details p { color: var(--muted); max-width: 40em; margin: -4px 0 20px; }

/* Cierre con la insignia y el QR */
.final { max-width: var(--ancho); margin: 96px auto 0; padding: 0 var(--margen) 96px; display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.final h2 { font-size: clamp(40px, 6vw, 72px); margin-bottom: 16px; }
.final p { color: var(--muted); font-size: 20px; max-width: 26em; margin-bottom: 26px; }
.qr { margin: 0; width: 200px; flex: none; text-align: center; }
.qr svg { display: block; width: 100%; height: auto; background: #fff; padding: 14px; border-radius: 18px; }
.qr path { fill: #1E2833; }
.qr figcaption { font-size: 15px; color: var(--muted); margin-top: 12px; }

/* Páginas de texto: prensa, legales, 404 */
.texto { max-width: calc(760px + 2 * var(--margen)); margin: 0 auto; padding: 32px var(--margen) 96px; }
.texto h1 { font-size: clamp(40px, 7vw, 64px); margin-bottom: 8px; }
.texto h2 { font-size: 27px; margin: 48px 0 12px; }
.texto .fecha { color: var(--muted); }
.texto li { margin-bottom: 6px; }
.texto table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 16px; }
.texto { overflow-wrap: break-word; }
.texto td { overflow-wrap: anywhere; }
.texto th, .texto td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-top: 1px solid var(--linea); }
.texto .tabla { overflow-x: auto; }
.legal .resumen { background: var(--card); border: 1px solid var(--linea); border-left: 4px solid var(--plaza); border-radius: 0 14px 14px 0; padding: 18px 22px; margin: 28px 0; }
.legal .resumen ul:last-child { margin-bottom: 0; }
.descargas { list-style: none; padding: 0; display: grid; gap: 12px; }
.descargas li { display: grid; grid-template-columns: 150px 1fr auto auto auto; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--linea); border-radius: 14px; padding: 14px 18px; }
.descargas li.oscuro img { background: var(--tinta); border-radius: 8px; padding: 8px; }
.descargas img { max-height: 56px; width: auto; justify-self: start; }
.capturas { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; }
.capturas img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--linea); }

/* Celulares */
@media (max-width: 860px) {
  .menu { display: none; }
  .portada-adentro { grid-template-columns: 1fr; padding: 48px 0 44px; gap: 44px; }
  .portada-celu { width: min(270px, 74vw); transform: rotate(3deg); }
  .cifras { grid-template-columns: 1fr 1fr; gap: 26px 0; padding-bottom: 36px; }
  .cifras li:nth-child(3) { padding-left: 0; border-left: 0; }
  .cifras li { padding: 0 14px; font-size: 15px; }
  .cifras li:nth-child(odd) { padding-left: 0; }
  .funcion.con-ficha { grid-template-columns: minmax(0, 1fr); }
  .ficha-lugar { max-width: none; padding: 36px 18px; border-radius: 32px; }
  .ficha-lugar::after { width: 52px; height: 52px; top: -12px; right: -8px; border-radius: 14px; }
  .ficha { transform: none; }
  .funcion, .funcion:nth-child(even) { grid-template-columns: 1fr; gap: 28px; }
  .funcion:nth-child(even) .celu { order: 0; }
  .celu { width: min(280px, 78vw); justify-self: center; }
  .privacidad ul { grid-template-columns: 1fr; }
  .final { flex-direction: column; align-items: flex-start; }
  .qr { display: none; }
  .abajo-columnas { grid-template-columns: 1fr; }
  .descargas li { grid-template-columns: 1fr auto auto; }
  .descargas li img { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .marca { width: 168px; }
  .cifras b { font-size: 24px; }
  .descarga.grande .descarga-texto { font-size: 25px; }
  .descarga.grande .descarga-icono { width: 50px; height: 50px; }
  .ficha-lugar { padding: 28px 10px; }
  .ficha { padding: 22px 18px; }
  .ficha-temas li { grid-template-columns: 1fr auto 2em; font-size: 15px; }
}

/* Botón flotante de descarga: siempre visible, abajo a la derecha (en celulares, abajo y a lo ancho) */
.flotante { position: fixed; z-index: 20; right: 24px; bottom: 24px; display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff; text-decoration: none; font-weight: 700; font-size: 18px;
  padding: 11px 26px 11px 12px; border-radius: 999px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 14px 32px -10px rgba(30, 40, 51, .55);
  transition: background-color .15s, transform .15s; }
.flotante-icono { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; }
.flotante-icono svg { width: 15px; height: 17px; margin-left: 2px; }
.flotante:hover { background: #2A2A2A; }
.flotante:active { transform: translateY(1px); }
.flotante:focus-visible { outline: 3px solid var(--sol); outline-offset: 3px; }
.abajo { padding-bottom: 110px; }
@media (max-width: 860px) {
  .flotante { left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); justify-content: center; }
}
