@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --primario: #1e8f4e;
  --primario-oscuro: #16703c;
  --primario-suave: #eaf6ee;
  --coral: #ff4d7a;
  --dorado: #ffb020;
  --dorado-oscuro: #e8960a;
  --dorado-suave: #fff3d9;
  --fondo: #f5faf6;
  --texto: #1f2a23;
  --texto-suave: #6f7d74;
  --borde: #e3eee6;
  --degrade: linear-gradient(120deg, #178a47 0%, #2aa35e 58%, #ff5c84 100%);
  --verde: #1e8f4e; --verde-2: #2aa35e; --verde-suave: #eaf6ee; --rosa: #ff4d7a; --rosa-suave: #ffe8ef;
  --tarjeta-sombra: 0 16px 36px -16px rgba(20, 70, 45, 0.22);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--texto);
  background:
    radial-gradient(720px 420px at 90% -10%, #dcf1e3 0%, rgba(220, 241, 227, 0) 60%),
    radial-gradient(640px 420px at -10% 8%, #ffe6ee 0%, rgba(255, 230, 238, 0) 55%),
    var(--fondo);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 250, 246, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(20, 70, 45, 0.06);
}
.logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800; font-size: 1.28rem; text-decoration: none; color: var(--texto);
  letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 6px;
}
.logo-img { width: 30px; height: 30px; }
.nav-topbar { display: flex; gap: 8px; }
.link-recientes {
  color: var(--primario-oscuro); text-decoration: none; font-size: 0.86rem; font-weight: 700;
  background: white; padding: 8px 16px; border-radius: 20px;
  box-shadow: 0 2px 10px rgba(20, 70, 45, 0.1);
  border: 1px solid rgba(20, 70, 45, 0.05);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.link-recientes:active { transform: scale(0.96); }

.contenido {
  max-width: 480px;
  margin: 18px auto;
  padding: 0 16px 110px;
}

.tarjeta {
  background: white;
  border-radius: 28px;
  padding: 30px 24px;
  box-shadow: var(--tarjeta-sombra);
  border: 1px solid rgba(20, 70, 45, 0.05);
}

.tarjeta-inicio { text-align: center; }
.hero-marca {
  width: 132px; height: 132px; margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
}
.hero-marca img { display: block; width: 100%; height: 100%; object-fit: contain; }
.emoji-hero {
  font-size: 2.2rem; margin: 0 auto 18px; width: 84px; height: 84px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(155deg, var(--primario-suave), #ffe1ea);
  border-radius: 24px;
}

h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem; margin: 0 0 8px; font-weight: 800; letter-spacing: -0.01em;
}
.subtitulo { color: var(--texto-suave); margin-top: 0; line-height: 1.5; }

.zona-camara {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: #1a120c;
  border-radius: 20px;
  overflow: hidden;
  display: none;
  margin-bottom: 14px;
  box-shadow: var(--tarjeta-sombra);
}
.zona-camara.activa { display: block; }
.zona-camara video { width: 100%; height: 100%; object-fit: cover; }
.mira {
  position: absolute; top: 32%; left: 10%; right: 10%; height: 34%;
  border: 3px solid var(--primario); border-radius: 14px;
  box-shadow: 0 0 0 999px rgba(0,0,0,0.28);
}
.ayuda-camara { font-size: 0.85rem; color: var(--texto-suave); min-height: 1.2em; }

.form-codigo { display: flex; gap: 10px; margin-top: 14px; }
.form-codigo input {
  flex: 1; min-width: 0; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--borde);
  font-size: 1rem; font-family: inherit; background: #fbfdfb;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-codigo .boton { flex-shrink: 0; }
.form-codigo.buscando { opacity: .72; pointer-events: none; }
.buscando-producto { display: flex; align-items: center; gap: 11px; margin-top: 13px; padding: 12px 14px; border: 1px solid #cbebd6; border-radius: 15px; background: #f3fbf6; color: #7a4026; font-size: .84rem; }
.buscando-producto strong, .buscando-producto span { display: block; }
.buscando-producto span:not(.spinner-busqueda) { margin-top: 2px; color: var(--texto-suave); font-size: .78rem; }
.buscando-producto[hidden] { display: none; }
.spinner-busqueda { display: block !important; width: 21px; height: 21px; border: 3px solid #b6e3c5; border-top-color: var(--primario); border-radius: 50%; animation: giro-busqueda .8s linear infinite; flex: 0 0 auto; }
@keyframes giro-busqueda { to { transform: rotate(360deg); } }
.form-codigo input:focus {
  outline: none; border-color: var(--primario);
  box-shadow: 0 0 0 4px rgba(255, 122, 69, 0.16);
  background: white;
}

.boton {
  background: var(--degrade);
  color: white; border: none; border-radius: 16px;
  padding: 15px 22px; font-size: 1.02rem; font-weight: 700; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; box-shadow: 0 8px 20px -6px rgba(30, 143, 78, 0.5);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  font-family: inherit;
}
.boton.secundario {
  background: white; color: var(--texto);
  box-shadow: 0 2px 10px rgba(20, 70, 45, 0.08);
  border: 1.5px solid var(--borde);
}
.boton:active { transform: scale(0.97); }
.boton:hover { box-shadow: 0 10px 24px -6px rgba(30, 143, 78, 0.55); }
.boton.secundario:hover { border-color: var(--primario); }

.pie-tarjeta { color: var(--texto-suave); font-size: 0.84rem; margin-top: 20px; margin-bottom: 0; }

.separador-o {
  display: flex; align-items: center; gap: 12px; margin: 18px 0;
  color: var(--texto-suave); font-size: 0.82rem; font-weight: 600;
}
.separador-o::before, .separador-o::after {
  content: ""; flex: 1; height: 1px; background: var(--borde);
}

.buscador-nombre { position: relative; text-align: left; }
.buscador-nombre > input {
  width: 100%; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--borde);
  font-size: 1rem; font-family: inherit; background: #fbfdfb;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.buscador-nombre > input:focus {
  outline: none; border-color: var(--primario);
  box-shadow: 0 0 0 4px rgba(255, 122, 69, 0.16);
  background: white;
}

.resultados-nombre {
  list-style: none; margin: 0; padding: 0;
  position: absolute; left: 0; right: 0; top: calc(100% + 8px);
  background: white; border-radius: 18px; border: 1px solid var(--borde);
  box-shadow: var(--tarjeta-sombra);
  max-height: 320px; overflow-y: auto;
  z-index: 20;
  display: none;
}
.resultados-nombre.abierta { display: block; }
.resultados-nombre li + li { border-top: 1px solid var(--borde); }
.resultados-nombre a {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  text-decoration: none; color: var(--texto);
  transition: background 0.1s ease;
}
.resultados-nombre a:hover, .resultados-nombre a.activo { background: var(--primario-suave); }
.resultados-nombre .texto-resultado {
  flex: 1; font-size: 0.92rem; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.resultados-nombre .marca-resultado { color: var(--texto-suave); font-weight: 500; }
.letra-chica-vacia { background: #cddcd1 !important; }

.resultado { text-align: center; }

.cabecera-producto {
  display: flex; align-items: center; gap: 14px; text-align: left; margin-bottom: 4px;
}
.foto-chica {
  width: 64px; height: 64px; border-radius: 18px; flex-shrink: 0; overflow: hidden;
  box-shadow: 0 6px 16px -6px rgba(20, 70, 45, 0.28);
}
.foto-chica img { width: 100%; height: 100%; object-fit: cover; }
.foto-chica .foto-placeholder {
  width: 100%; height: 100%; border-radius: 18px;
  background: linear-gradient(155deg, var(--primario-suave), #ffe1ea);
  display: flex; align-items: center; justify-content: center;
}
.imagen-sin-foto { object-fit: contain !important; background: #f5faf6; }
.texto-cabecera h1 { font-size: 1.14rem; margin: 0; line-height: 1.25; }
.texto-cabecera .marca { margin: 2px 0 0; font-size: 0.86rem; }

.anillo-puntaje {
  position: relative; width: 176px; height: 176px; margin: 22px auto 6px;
}
.anillo-puntaje svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.anillo-fondo { fill: none; stroke: #e5f5ea; stroke-width: 11; }
.anillo-relleno {
  fill: none; stroke-width: 11; stroke-linecap: round;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.anillo-numero {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.anillo-numero .numero {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 2.6rem; font-weight: 800;
  line-height: 1; color: var(--texto); letter-spacing: -0.02em;
}
.anillo-numero .letra-mini {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.78rem; font-weight: 800;
  margin-top: 4px; letter-spacing: 0.04em;
}

.etiqueta-nutriente { display: flex; align-items: center; }
.punto-nivel { width: 9px; height: 9px; border-radius: 50%; margin-right: 9px; flex-shrink: 0; }
.valor-nutriente { display: flex; align-items: center; gap: 8px; }
.pastilla-nivel {
  font-size: 0.68rem; font-weight: 800; padding: 3px 9px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: 0.02em;
}
.pastilla-nivel.bajo { background: #e8f7ee; color: #1e8f4e; }
.pastilla-nivel.medio { background: #fff2df; color: #b3760f; }
.pastilla-nivel.alto { background: #fde8e8; color: #c62828; }

.foto-producto {
  position: relative;
  width: 172px; height: 172px; margin: 0 auto 16px;
}
.foto-producto img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 24px;
  box-shadow: 0 10px 26px -8px rgba(20, 70, 45, 0.28);
}
.foto-placeholder {
  width: 100%; height: 100%; border-radius: 24px;
  background: linear-gradient(155deg, var(--primario-suave), #ffe1ea);
  display: flex; align-items: center; justify-content: center; font-size: 3rem;
}
.letra-flotante {
  position: absolute; bottom: -8px; right: -8px; margin: 0;
  border: 4px solid white;
}

.letra-grande {
  width: 66px; height: 66px; border-radius: 50%; color: white;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.75rem; font-weight: 800; display: flex; align-items: center;
  justify-content: center; box-shadow: 0 6px 16px -2px rgba(0,0,0,0.25);
}
.marca { color: var(--texto-suave); margin-top: -4px; font-weight: 500; }
.mensaje-score { font-weight: 700; color: var(--texto); font-size: 1.02rem; }

.disclaimer-puntaje {
  margin: 8px 0 0; font-size: 0.72rem; font-weight: 500; color: var(--texto-suave);
  line-height: 1.4;
}
.disclaimer-puntaje a { color: var(--texto-suave); text-decoration: underline; text-underline-offset: 2px; }
.disclaimer-puntaje a:hover { color: var(--primario-oscuro); }
.aviso-azucar-estimada { margin: 10px 0 0; padding: 9px 11px; border-radius: 10px; background: #fff1dc; color: #7d500c; font-size: .82rem; line-height: 1.35; }

.estado-datos-incompletos {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 20px 0;
  padding: 16px;
  border: 1px solid var(--borde);
  border-radius: 16px;
  background: var(--primario-suave);
  text-align: left;
}
.estado-datos-incompletos .icono { flex: 0 0 22px; color: var(--primario); }
.estado-datos-incompletos strong { display: block; margin-bottom: 4px; }
.estado-datos-incompletos p { margin: 0; color: var(--texto-suave); line-height: 1.45; }

.calidad-datos { margin: 14px 0 4px; text-align: left; font-size: .78rem; color: var(--texto-suave); }
.calidad-datos summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.calidad-datos summary::-webkit-details-marker { display: none; }
.calidad-datos summary span { padding: 3px 8px; border-radius: 999px; font-weight: 700; background: #eef4f0; color: #277347; }
.calidad-datos.estado-parcial summary span { background: #fff1dc; color: #9b640e; }
.calidad-datos.estado-pendiente summary span { background: #edf2ee; color: #806f63; }
.calidad-datos p { margin: 8px 0 4px; line-height: 1.45; }
.calidad-datos a { color: var(--primario-oscuro); font-weight: 700; }

.alternativas { text-align: left; }
.alternativas h2 { font-size: 1.05rem; margin: 0 0 4px; }
.alternativas .subtitulo { margin: 0 0 14px; font-size: .82rem; }
.alternativas-lista { display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; }
.alternativa { display: flex; align-items: center; gap: 10px; padding: 8px; min-width: 0; color: inherit; text-decoration: none; border: 1px solid var(--borde); border-radius: 14px; }
.alternativa:hover { border-color: var(--primario); background: var(--primario-suave); }
.alternativa-foto { width: 48px; height: 48px; flex: 0 0 48px; overflow: hidden; border-radius: 12px; background: #eaf6ee; display: flex; align-items: center; justify-content: center; }
.alternativa-foto img { width: 100%; height: 100%; object-fit: cover; }
.alternativa-texto { min-width: 0; flex: 1; font-size: .82rem; line-height: 1.2; }
.alternativa-texto strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alternativa-texto small { display: block; margin-top: 3px; color: var(--texto-suave); }
.alternativa-score { flex: 0 0 auto; color: #fff; border-radius: 999px; padding: 5px 8px; font-weight: 800; font-size: .73rem; }

.aviso-preferencias-producto, .aviso-preferencias {
  margin: 14px 0 4px; padding: 11px 13px; border-radius: 14px;
  background: #eef5ff; border: 1px solid #d3e4f8; color: #285b8f;
  font-size: .82rem; font-weight: 700; line-height: 1.4; text-align: left;
}
.preferencias h1 { margin-bottom: 6px; }
.form-preferencias { display: grid; gap: 10px; margin-top: 18px; }
.form-preferencias label { display: flex; gap: 10px; align-items: center; padding: 13px; border: 1px solid var(--borde); border-radius: 14px; font-weight: 700; color: var(--texto); }
.form-preferencias input { width: 18px; height: 18px; accent-color: var(--primario); }
.form-preferencias .boton { margin-top: 6px; }
.preferencias-acceso p { color: var(--texto-suave); font-size: .86rem; line-height: 1.45; }

.pasos-aporte { margin: 16px 0 0; padding: 0; list-style: none; counter-reset: pasos; display: grid; gap: 8px; text-align: left; font-size: .82rem; color: var(--texto-suave); }
.pasos-aporte li { counter-increment: pasos; display: flex; gap: 9px; align-items: flex-start; }
.pasos-aporte li::before { content: counter(pasos); display: inline-grid; place-items: center; width: 20px; height: 20px; flex: 0 0 20px; border-radius: 50%; background: #edf2ee; color: var(--texto-suave); font-size: .72rem; font-weight: 800; }
.pasos-aporte-estado { grid-template-columns: repeat(3, 1fr); text-align: center; gap: 5px; }
.pasos-aporte-estado li { flex-direction: column; align-items: center; font-size: .72rem; }
.pasos-aporte-estado li.completo { color: #237a49; font-weight: 800; }
.pasos-aporte-estado li.completo::before { background: #e6f5eb; color: #237a49; }
.aporte-inicio { margin: 16px 0 0; font-size: .8rem; color: var(--texto-suave); }
.aporte-inicio a { color: var(--primario-oscuro); font-weight: 800; }

/* Palabra corta debajo del anillo ("Excelente", "Evitar", etc.) - el color
   de fondo/letra se pasa inline desde la plantilla porque sale de
   COLOR_POR_LETRA (ya se hacía así con el resto del puntaje). */
.veredicto-pill {
  display: inline-block; margin: 10px 0 8px; padding: 5px 16px;
  border-radius: 20px; font-weight: 800; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.03em;
}

/* "Chequeá dice" - resumen en tono conversacional del motivo principal del
   puntaje, con el logo de la app como avatar (no un personaje nuevo con
   nombre propio) en una burbuja tipo mensaje de chat. Es puramente una
   forma más fácil de leer datos que la app ya calculó - ver
   generar_resumen_conversacional() en score.py, que nunca inventa un
   riesgo que no esté realmente detectado. */
.resumen-chequea {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; text-align: left;
}
.avatar-chequea {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  object-fit: cover; object-position: center 30%;
  background: var(--primario-suave);
  box-shadow: 0 3px 10px -2px rgba(20, 70, 45, 0.3);
}
.burbuja-chequea {
  flex: 1; background: #fbfdfb; border: 1px solid var(--borde);
  border-radius: 4px 16px 16px 16px; padding: 10px 14px;
}
.burbuja-chequea strong { display: block; font-size: 0.76rem; color: var(--primario-oscuro); margin-bottom: 3px; }
.burbuja-chequea p { margin: 0; font-size: 0.9rem; line-height: 1.5; color: var(--texto); }

/* "Para tu salud" - consejo genérico según la letra (ver
   CONSEJO_SALUD_POR_LETRA en score.py), con una franja de color a la
   izquierda a modo de semáforo suave: verde para A/B, ámbar para C,
   naranja/rojo para D/E - nunca alarmista, solo orientativo. */
.caja-salud {
  display: flex; align-items: flex-start; gap: 12px; margin-top: 14px;
  padding: 14px 16px; border-radius: 16px; text-align: left;
  border-left: 4px solid var(--borde); background: #fbfdfb;
}
.caja-salud .icono-salud { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; }
.caja-salud strong { display: block; font-size: 0.82rem; margin-bottom: 3px; }
.caja-salud p { margin: 0; font-size: 0.86rem; line-height: 1.5; color: var(--texto); }
.caja-salud-a, .caja-salud-b { border-left-color: #1e8f4e; background: #f2faf5; }
.caja-salud-a .icono-salud, .caja-salud-b .icono-salud, .caja-salud-a strong, .caja-salud-b strong { color: #1e8f4e; }
.caja-salud-c { border-left-color: #e8960a; background: #fff8ec; }
.caja-salud-c .icono-salud, .caja-salud-c strong { color: #b9760a; }
.caja-salud-d { border-left-color: #f28c28; background: #f0f9f3; }
.caja-salud-d .icono-salud, .caja-salud-d strong { color: #c96c15; }
.caja-salud-e { border-left-color: #d62828; background: #fdefee; }
.caja-salud-e .icono-salud, .caja-salud-e strong { color: #b32323; }

.perfil-nutricional {
  margin-top: 22px;
  text-align: left;
  border: 1px solid var(--borde);
  border-radius: 16px;
  padding: 2px 16px 4px;
  background: #fbfdfb;
}
.perfil-nutricional h2 {
  font-size: 0.95rem;
  margin: 16px 0 2px;
  color: var(--primario-oscuro);
}
.perfil-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--borde);
}
.perfil-item:last-child { border-bottom: none; }
.perfil-item .icono-perfil {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--primario);
}
.perfil-item-cuerpo { flex: 1; min-width: 0; }
.perfil-item-cabecera {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.perfil-item-titulo { font-weight: 700; font-size: 0.86rem; color: var(--texto); }
.perfil-item-valor {
  font-size: 0.85rem;
  color: var(--texto);
  margin-top: 3px;
  line-height: 1.5;
}
.perfil-item-valor .destacado { font-weight: 700; }
.perfil-item-valor.sin-datos { color: #7c8a80; font-style: italic; }

.fuente-dato {
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}
.fuente-declarado { background: #eaf1fb; color: #2c5da8; }
.fuente-estimado { background: #f2ecfa; color: #6b3fa0; }
.fuente-sindatos { background: #f0eee8; color: #8a8378; }

.barra-nivel {
  display: flex;
  gap: 3px;
  margin-top: 7px;
  width: 100%;
  max-width: 150px;
}
.barra-nivel span { height: 6px; flex: 1; border-radius: 3px; background: #eae2d4; }
.barra-nivel span.activo-bajo { background: #1e8f4e; }
.barra-nivel span.activo-medio { background: #f2a93b; }
.barra-nivel span.activo-alto { background: #d62828; }

.perfil-resumen-visual {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 6px;
  margin: 14px 0 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--borde);
}
.resumen-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.resumen-item .icono {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  padding: 9px;
  box-sizing: border-box;
  background: #e6eee8;
  color: #7c8a80;
}
.resumen-item span { font-size: 0.66rem; font-weight: 700; color: var(--texto); line-height: 1.2; }
.resumen-item.estado-verde .icono { background: #e8f7ee; color: #1e8f4e; }
.resumen-item.estado-ambar .icono { background: #fff2df; color: #b3760f; }
.resumen-item.estado-rojo .icono { background: #fde8e8; color: #c62828; }
.resumen-item.estado-gris .icono { background: #e6eee8; color: #7c8a80; }
.resumen-item.estado-info .icono { background: #eaf1fb; color: #2c5da8; }

.aceite-semilla {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  color: #a1481c;
  background: #ffe9dc;
  border-radius: 8px;
  padding: 1px 6px;
  margin-left: 4px;
}

.datos-nutricionales {
  text-align: left; margin-top: 20px; background: #fbfdfb;
  border: 1px solid var(--borde);
  border-radius: 18px; padding: 8px 18px;
}
.datos-nutricionales h2 {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--texto-suave); margin: 14px 0 4px; font-weight: 700;
}
.datos-nutricionales ul { list-style: none; padding: 0; margin: 0; }
.datos-nutricionales li {
  padding: 11px 0; border-bottom: 1px solid var(--borde);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.95rem;
}
.datos-nutricionales li:last-child { border-bottom: none; }
.datos-nutricionales li strong { font-weight: 600; color: var(--texto); }

.chip {
  margin-top: 10px; padding: 13px 16px; border-radius: 16px; font-size: 0.92rem;
  text-align: left; font-weight: 600;
}
.chip-libre { background: #e8f7ee; color: #14703c; }
.chip-contiene { background: #fde8e8; color: #a32323; }
.chip-revisar { background: #fff2df; color: #92660e; }
.chip-trazas { background: #fdeee0; color: #a1481c; }
.chip-ultra { background: #ffe9dc; color: #a1481c; }
.chip-aditivos { background: #ffe9dc; color: #a1481c; }
.chip-aditivos-naturales { background: #e8f7ee; color: #14703c; }
.chip-restriccion { background: #fde8e8; color: #a32323; }
.chip-natural-info { background: var(--dorado-suave); color: #8a5a08; font-weight: 500; line-height: 1.45; }
.tarjeta-porcion-natural { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 11px 13px; border: 1px solid #d8e7c8; border-radius: 16px; background: #f7faef; text-align: left; color: #426436; }
.tarjeta-porcion-natural img { width: 74px; height: 74px; object-fit: contain; flex: 0 0 auto; }
.tarjeta-porcion-natural strong { display: block; font-size: .88rem; }
.tarjeta-porcion-natural p { margin: 3px 0 0; font-size: .78rem; line-height: 1.38; }
@media (max-width: 360px) { .tarjeta-porcion-natural { align-items: flex-start; } .tarjeta-porcion-natural img { width: 60px; height: 60px; } }
.chip .detalle { display: block; margin-top: 3px; color: inherit; opacity: 0.7; font-size: 0.82rem; font-weight: 500; }
.lista-restricciones {
  margin: 6px 0 0; padding-left: 18px; font-weight: 500; opacity: 0.85;
  font-size: 0.82rem; line-height: 1.4;
}
.lista-restricciones li { margin-bottom: 4px; }

.ingredientes {
  text-align: left; margin-top: 16px; font-size: 0.9rem; color: var(--texto-suave);
  background: #fbfdfb; border: 1px solid var(--borde); border-radius: 14px; padding: 4px 16px;
}
.ingredientes summary {
  cursor: pointer; font-weight: 700; color: var(--texto); padding: 10px 0;
  list-style: none;
}
.ingredientes summary::-webkit-details-marker { display: none; }
.ingredientes summary::before { content: "▸ "; color: var(--primario); }
.ingredientes[open] summary::before { content: "▾ "; }
.ingredientes p { margin: 0 0 12px; line-height: 1.5; }

/* Términos del glosario dentro del texto de ingredientes (códigos E/INS,
   nombres químicos poco conocidos) - se marcan con un subrayado punteado
   para que se note que son "tocables", sin gritar ni parecer un error. */
.term-glosario {
  border-bottom: 1.5px dotted var(--primario-oscuro);
  color: var(--primario-oscuro); font-weight: 600; cursor: pointer;
}
.ayuda-glosario {
  margin: 0 0 12px; font-size: 0.74rem; color: var(--texto-suave);
  font-style: italic;
}

/* Hoja informativa ("bottom sheet") que explica un término del glosario al
   tocarlo - patrón mobile-first en vez de un tooltip flotante, que en un
   celular suele quedar cortado por el borde de la pantalla. */
.hoja-glosario-fondo {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(43, 33, 24, 0); pointer-events: none;
  display: flex; align-items: flex-end; justify-content: center;
  transition: background 0.22s ease;
}
.hoja-glosario-fondo.abierta { background: rgba(43, 33, 24, 0.45); pointer-events: auto; }
.hoja-glosario {
  width: 100%; max-width: 480px; background: white;
  border-radius: 26px 26px 0 0; padding: 10px 24px 28px;
  box-shadow: 0 -14px 40px -12px rgba(20, 70, 45, 0.35);
  transform: translateY(100%); transition: transform 0.26s cubic-bezier(0.34, 1.15, 0.64, 1);
  text-align: left;
}
.hoja-glosario-fondo.abierta .hoja-glosario { transform: translateY(0); }
.hoja-glosario-manija {
  width: 40px; height: 4px; border-radius: 3px; background: var(--borde);
  margin: 0 auto 14px;
}
.hoja-glosario-cabecera { display: flex; align-items: center; justify-content: space-between; }
.hoja-glosario-categoria {
  text-transform: uppercase; letter-spacing: 0.03em; font-size: 0.7rem; font-weight: 800;
  color: var(--primario-oscuro); background: var(--primario-suave);
  padding: 4px 10px; border-radius: 10px;
}
.hoja-glosario-cerrar {
  background: none; border: none; font-size: 1.4rem; line-height: 1; color: var(--texto-suave);
  cursor: pointer; padding: 4px 6px;
}
.hoja-glosario h3 { margin: 14px 0 8px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.1rem; }
.hoja-glosario p { margin: 0; font-size: 0.9rem; line-height: 1.55; color: var(--texto); }

/* Popup "Unite a la Comunidad" - mismo patrón visual de bottom sheet que
   la hoja del glosario, para que se sienta parte de la misma app y no un
   cartel publicitario pegado encima. Aparece una sola vez cada tantos
   días (ver el <script> en base.html) y solo para quien no tiene sesión
   de Comunidad iniciada. */
.popup-comunidad-fondo {
  position: fixed; inset: 0; z-index: 45;
  background: rgba(43, 33, 24, 0); pointer-events: none;
  display: flex; align-items: flex-end; justify-content: center;
  transition: background 0.22s ease;
}
.popup-comunidad-fondo.abierta { background: rgba(43, 33, 24, 0.45); pointer-events: auto; }
.popup-comunidad {
  position: relative; width: 100%; max-width: 480px; background: white;
  border-radius: 26px 26px 0 0; padding: 10px 24px 26px;
  box-shadow: 0 -14px 40px -12px rgba(20, 70, 45, 0.35);
  transform: translateY(100%); transition: transform 0.26s cubic-bezier(0.34, 1.15, 0.64, 1);
  text-align: center;
}
.popup-comunidad-fondo.abierta .popup-comunidad { transform: translateY(0); }
.popup-comunidad-manija {
  width: 40px; height: 4px; border-radius: 3px; background: var(--borde);
  margin: 0 auto 10px;
}
.popup-comunidad-cerrar {
  position: absolute; top: 10px; right: 14px;
  background: none; border: none; font-size: 1.4rem; line-height: 1; color: var(--texto-suave);
  cursor: pointer; padding: 4px 6px;
}
.popup-comunidad-icono {
  width: 56px; height: 56px; margin: 4px auto 12px; border-radius: 18px;
  background: var(--degrade); color: white;
  display: flex; align-items: center; justify-content: center;
}
.popup-comunidad-icono .icono { width: 28px; height: 28px; }
.popup-comunidad h3 { margin: 0 0 6px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.15rem; }
.popup-comunidad-subtitulo { margin: 0 0 16px; font-size: 0.88rem; color: var(--texto-suave); }

.lista-beneficios-popup {
  list-style: none; margin: 0 0 18px; padding: 0; text-align: left;
  display: flex; flex-direction: column; gap: 12px;
}
.lista-beneficios-popup li {
  display: flex; align-items: center; gap: 10px; font-size: 0.86rem; line-height: 1.4; color: var(--texto);
}
.icono-beneficio-popup {
  flex-shrink: 0; width: 34px; height: 34px; padding: 8px; border-radius: 12px;
  background: var(--primario-suave); color: var(--primario-oscuro);
}

.acciones-popup-comunidad { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 10px; }
.acciones-popup-comunidad .boton { width: 100%; }
.link-popup-comunidad { color: var(--primario-oscuro); text-decoration: none; font-size: 0.85rem; font-weight: 700; }
.boton-ahora-no-popup {
  display: block; width: 100%; background: none; border: none; font-family: inherit;
  font-size: 0.82rem; color: var(--texto-suave); cursor: pointer; padding: 6px; text-decoration: underline;
}

/* fila-gap grande a propósito: cada personaje "asoma" por encima del borde
   de su tarjeta (ver .icono-personaje), así que hace falta aire de sobra
   entre una fila de tarjetas y la siguiente para que no se pisen. */
.analisis-ingredientes { display: flex; flex-wrap: wrap; column-gap: 8px; row-gap: 34px; margin-top: 30px; text-align: left; }
.grupo-analisis {
  background: #fbfdfb; border: 1px solid var(--borde); border-radius: 14px;
  flex: 1 1 auto; position: relative; overflow: visible;
}
.grupo-analisis summary {
  cursor: pointer; list-style: none; padding: 10px 14px 10px 70px; font-weight: 700;
  font-size: 0.85rem; color: var(--texto);
  display: flex; align-items: center; gap: 8px; min-height: 26px;
}
.grupo-analisis summary::-webkit-details-marker { display: none; }
.grupo-analisis summary .texto-resumen { white-space: nowrap; }
.grupo-analisis summary::after { content: "▸"; color: var(--primario); margin-left: auto; padding-left: 6px; }
.grupo-analisis[open] summary::after { content: "▾"; }
.grupo-analisis[open] { flex: 1 1 100%; }
.grupo-analisis ul { margin: 0; padding: 0 14px 12px; list-style: none; }
.grupo-analisis li {
  font-size: 0.85rem; line-height: 1.45; color: var(--texto-suave);
  padding: 8px 0; border-top: 1px solid var(--borde);
}
.grupo-analisis li:first-child { border-top: none; }
.grupo-analisis li strong { color: var(--texto); font-weight: 700; }
/* El personaje "asoma" por arriba del borde de la tarjeta, como si
   estuviera parado sobre ella - da el efecto 3D/con volumen que pidió el
   usuario, en vez de un ícono chico y plano metido en la fila de texto.
   pointer-events:none para que el tap en esa zona siga abriendo/cerrando
   la tarjeta (el <img> se superpone visualmente al <summary> pero no debe
   robarle el click). */
.icono-personaje {
  position: absolute; top: -22px; left: 8px; width: 54px; height: 54px;
  object-fit: contain; filter: drop-shadow(0 5px 7px rgba(0,0,0,0.28));
  pointer-events: none; z-index: 2;
}
/* Variante para las tarjetas "buenas noticias" (sin gluten, sin grasas
   trans, vegano/vegetariano, destacados nutricionales) - mismo formato que
   el resto, con un acento verde en vez del borde neutro, para que se
   distingan de un vistazo de las categorías que solo informan (aditivos,
   aceites procesados, etc.) sin ser ni buenas ni malas noticias. */
.grupo-analisis-positivo { background: #f2faf5; border-color: #cdeada; }
.grupo-analisis-positivo summary { color: #14703c; }
.grupo-analisis-positivo summary::after { color: #1e8f4e; }
.tag-natural {
  display: inline-block; background: #e8f7ee; color: #14703c;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.02em; padding: 1px 7px; border-radius: 8px;
  vertical-align: middle; margin-left: 2px;
}

.marca-agua { color: #cddcd1; font-size: 0.75rem; margin-top: 20px; margin-bottom: 0; }

.acciones { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }

.form-agregar { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; }
.form-agregar label { display: flex; flex-direction: column; gap: 7px; font-size: 0.88rem; color: #4a574e; font-weight: 600; }
.form-agregar input, .form-agregar textarea {
  padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--borde); font-size: 1rem;
  font-family: inherit; background: #fbfdfb; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-agregar input:focus, .form-agregar textarea:focus {
  outline: none; border-color: var(--primario); box-shadow: 0 0 0 4px rgba(255, 122, 69, 0.14); background: white;
}
.campo-contrasena { position: relative; display: block; }
.campo-contrasena input { width: 100%; padding-right: 86px; }
.boton-ver-contrasena {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; color: var(--primario); font: inherit;
  font-size: 0.82rem; font-weight: 700; padding: 6px; cursor: pointer;
}
.form-agregar h3 {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.02rem; margin: 6px 0 -4px; color: var(--texto);
}
.grilla-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.error { color: #a32323; font-weight: 700; background: #fde8e8; padding: 10px 14px; border-radius: 12px; }

.campo-foto { gap: 8px !important; }
.previsualizacion {
  width: 100%; aspect-ratio: 4/3; border-radius: 16px; border: 2px dashed #cfe6d6;
  background: #fbfdfb; display: flex; align-items: center; justify-content: center;
  cursor: pointer; overflow: hidden; text-align: center; color: var(--texto-suave); font-size: 0.9rem;
  padding: 12px; transition: border-color 0.15s ease, background 0.15s ease;
}
.previsualizacion:hover { border-color: var(--primario); background: var(--primario-suave); }
#placeholder-foto { display: inline-flex; align-items: center; gap: 6px; justify-content: center; }
.previsualizacion img { width: 100%; height: 100%; object-fit: cover; }
.campo-foto input[type="file"] { display: none; }

.lista-recientes { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 8px; }
.lista-recientes li { border-bottom: none; }
.lista-recientes a {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  text-decoration: none; color: var(--texto);
  border-radius: 16px; background: #fbfdfb; border: 1px solid var(--borde);
  transition: transform 0.1s ease, box-shadow 0.1s ease, border-color 0.1s ease;
}
.lista-recientes a:hover {
  box-shadow: 0 6px 16px -4px rgba(20, 70, 45, 0.16);
  border-color: #cfe6d6;
  transform: translateY(-1px);
}
.letra-chica {
  width: 28px; height: 28px; border-radius: 50%; color: white; font-weight: 800;
  font-size: 0.78rem; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}
.miniatura {
  width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex-shrink: 0;
  background: var(--primario-suave);
}
.miniatura-vacia { display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }

.mensaje-score.sin-datos { color: var(--texto-suave); font-weight: 600; }

.tabs-ranking { display: flex; gap: 6px; margin: 14px 0 4px; overflow-x: auto; scrollbar-width: none; }
.tabs-ranking::-webkit-scrollbar { display: none; }
.tab-ranking {
  flex: 1 0 auto; white-space: nowrap; text-align: center; padding: 9px 12px; border-radius: 14px;
  text-decoration: none; color: var(--texto-suave); font-weight: 700; font-size: 0.9rem;
  background: #f0f9f3; border: 1.5px solid transparent; transition: all 0.15s ease;
}
.tab-ranking.activa {
  background: var(--primario-suave); color: var(--primario-oscuro); border-color: #c0e7cd;
}
.puesto-ranking {
  width: 22px; flex-shrink: 0; text-align: center; font-weight: 800;
  color: var(--texto-suave); font-size: 0.82rem;
}
.texto-fila-ranking {
  flex: 1; min-width: 0; overflow: hidden; line-height: 1.3; font-size: 0.92rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere;
}
.score-chico { font-weight: 800; font-size: 0.92rem; flex-shrink: 0; }

.fila-octagonos { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.octagono {
  width: 76px; height: 76px;
  display: flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.22));
}
.octagono img { width: 100%; height: 100%; object-fit: contain; }
/* Respaldo por si alguna vez no hay imagen para un octógono (texto plano,
   ver el {% else %} de la plantilla) - mismo look que antes de tener las
   imágenes oficiales del MSP. */
.octagono span {
  background: #211712; color: white; width: 100%; height: 100%;
  clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 8px; font-size: 0.62rem; font-weight: 800; line-height: 1.15; text-transform: uppercase;
}
.nota-octagonos { color: var(--texto-suave); font-size: 0.75rem; margin-top: 10px; margin-bottom: 0; }

/* Sección "Descubrí productos" del inicio: carruseles horizontales por
   letra de Nutri-Score. A propósito NO va dentro de una .tarjeta con
   borde/sombra como el resto de la app - la idea es que se sienta más
   "vivo" y abierto, no una lista más de tarjetas apiladas. */
.seccion-descubrir-todo { margin-top: 30px; }
.titulo-seccion {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.2rem; font-weight: 800;
  margin: 0 0 2px; letter-spacing: -0.01em;
}
.subtitulo-seccion { font-size: 0.83rem; margin: 0 0 6px; }

.fila-titulo-letra { display: flex; align-items: center; gap: 9px; margin: 20px 0 10px; }
.fila-titulo-letra .letra-chica { width: 24px; height: 24px; font-size: 0.7rem; }
.fila-titulo-letra h3 { margin: 0; font-size: 0.95rem; font-weight: 700; }

.fila-carrusel {
  display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 12px;
  margin: 0 -2px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
.fila-carrusel::-webkit-scrollbar { height: 4px; }
.fila-carrusel::-webkit-scrollbar-thumb { background: var(--borde); border-radius: 10px; }

.tarjeta-producto-mini {
  flex: 0 0 116px; width: 116px; text-decoration: none; color: var(--texto);
  scroll-snap-align: start; transition: transform 0.1s ease;
}
.tarjeta-producto-mini:active { transform: scale(0.97); }
/* Mientras la foto (viene de una URL externa - Open Food Facts o Tienda
   Inglesa, no vive en la app) todavía no cargó, se ve este degradado
   suave "en movimiento" en vez de un cuadro blanco vacío - antes, con
   varias fotos cargando a la vez (como en "Descubrí productos"), se
   notaba mucho ese blanco parpadeante al entrar o volver al inicio. En
   cuanto la imagen carga, la tapa por completo (mismo width/height:100%
   de siempre), así que esta animación de fondo nunca compite con la
   foto real - solo se ve un instante antes. */
@keyframes brilloCargando {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.foto-mini {
  width: 116px; height: 116px; border-radius: 20px; overflow: hidden;
  background: linear-gradient(100deg, #e9f1eb 35%, #f3f8f4 50%, #e9f1eb 65%);
  background-size: 250% 100%;
  animation: brilloCargando 1.6s ease-in-out infinite;
  box-shadow: 0 8px 18px -10px rgba(20, 70, 45, 0.32);
  border: 1px solid rgba(20, 70, 45, 0.05);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.foto-mini img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.foto-mini .icono-placeholder { width: 38%; height: 38%; }
.badge-score-mini {
  position: absolute; bottom: 6px; right: 6px; background: white;
  border-radius: 20px; display: flex; align-items: center; gap: 4px;
  padding: 3px 8px 3px 3px; box-shadow: 0 3px 10px -3px rgba(20, 70, 45, 0.45);
  font-size: 0.7rem; font-weight: 800;
}
.letra-punto {
  width: 15px; height: 15px; border-radius: 50%; color: white;
  display: flex; align-items: center; justify-content: center; font-size: 0.56rem;
  flex-shrink: 0;
}
.nombre-mini {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-top: 8px; font-size: 0.78rem; font-weight: 700; line-height: 1.28;
}

.footer {
  text-align: center; color: #8aa293; font-size: 0.75rem; padding: 14px 22px 100px;
  display: flex; align-items: center; justify-content: center; gap: 7px; flex-wrap: wrap;
}
.footer-marca { font-weight: 800; letter-spacing: 0.01em; }
.footer-separador { opacity: 0.7; }
.footer-link { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-link:hover { color: var(--primario-oscuro); }
.footer-mini-logo { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; opacity: 0.68; }
.footer-mini-logo:hover, .footer-mini-logo:focus-visible { opacity: 1; transform: scale(1.12); }
.footer-mini-logo img { display: block; width: 16px; height: 16px; object-fit: contain; }

/* Íconos SVG propios (ver templates/_iconos.html) - reemplazan los emojis */
.icono { flex-shrink: 0; }
.icono-logo { width: 20px; height: 20px; }
.icono-hero { width: 42px; height: 42px; color: var(--primario-oscuro); }
.icono-boton { width: 18px; height: 18px; }
.icono-chip { width: 17px; height: 17px; vertical-align: -3px; margin-right: 6px; }
.icono-placeholder { width: 42%; height: 42%; color: var(--primario-oscuro); opacity: 0.55; }
.icono-ayuda { width: 17px; height: 17px; vertical-align: -3px; margin-right: 5px; color: var(--texto-suave); }
.icono-mini { width: 20px; height: 20px; color: #b39d89; }
.icono-nav { width: 22px; height: 22px; }

.badge-pendientes {
  background: #a32323; color: white; border-radius: 20px; font-size: 0.68rem;
  font-weight: 800; padding: 1px 6px; margin-left: 3px;
}
.tarjeta-cambio { margin-top: 16px; }
.fecha-cambio { color: var(--texto-suave); font-size: 0.75rem; margin-left: auto; }
.mini-badge-letra {
  margin-left: auto; color: white; font-weight: 800; font-size: 0.85rem;
  border-radius: 12px; padding: 6px 10px; white-space: nowrap;
}
.acciones-revision { display: flex; gap: 10px; margin-top: 14px; }
.acciones-revision form { flex: 1; }
.acciones-revision .boton { width: 100%; }

.intro-overlay {
  position: fixed; inset: 0; background: rgba(30, 17, 8, 0.6);
  padding: 20px; z-index: 999;
}
.intro-overlay:not([hidden]) { display: flex; align-items: center; justify-content: center; }
.intro-tarjeta {
  background: white; border-radius: 26px; padding: 34px 26px 26px;
  max-width: 340px; width: 100%; text-align: center;
  box-shadow: var(--tarjeta-sombra);
}
.intro-logo { width: 68px; height: 68px; margin-bottom: 16px; }
.intro-icono {
  width: 68px; height: 68px; border-radius: 20px; background: var(--primario-suave);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.intro-slide h2 { margin: 0 0 10px; font-size: 1.2rem; }
.intro-slide p { color: var(--texto-suave); font-size: 0.9rem; line-height: 1.5; margin: 0; }
.intro-puntos { display: flex; justify-content: center; gap: 6px; margin: 22px 0 18px; }
.intro-puntos .punto { width: 7px; height: 7px; border-radius: 50%; background: var(--borde); transition: all 0.2s ease; }
.intro-puntos .punto.activo { background: var(--primario-oscuro); width: 20px; border-radius: 4px; }
#intro-siguiente { width: 100%; }

/* Barra de navegación inferior, flotante - reemplaza los links de arriba
   para que la app se sienta más como una app instalada y menos como una
   página web con menú de texto. */
.nav-inferior {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
  display: flex; justify-content: center;
  padding: 0 16px calc(14px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}
.nav-inferior-tarjeta {
  pointer-events: auto;
  display: flex; gap: 4px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 24px;
  padding: 8px;
  box-shadow: 0 14px 34px -12px rgba(20, 70, 45, 0.32);
  border: 1px solid rgba(20, 70, 45, 0.06);
  max-width: 480px;
  width: 100%;
}
.nav-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: 8px 6px; border-radius: 18px;
  text-decoration: none; color: var(--texto-suave);
  font-size: 0.68rem; font-weight: 700;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-item.activo {
  background: var(--degrade);
  color: white;
  box-shadow: 0 6px 16px -6px rgba(30, 143, 78, 0.55);
}

/* Tarjeta de racha/insignias - gamificación básica para que usar la app
   se sienta más como un juego (rachas de días, medallas), sin necesitar
   cuentas de usuario: todo se guarda en localStorage del navegador. */
.tarjeta-racha {
  background: linear-gradient(135deg, var(--dorado-suave) 0%, var(--primario-suave) 100%);
  border-radius: 24px;
  padding: 18px 22px;
  margin-top: 16px;
  border: 1px solid rgba(232, 150, 10, 0.18);
}
.racha-fila { display: flex; align-items: center; }
.racha-dato { display: flex; align-items: center; gap: 10px; flex: 1; }
.racha-dato .icono-racha { width: 30px; height: 30px; color: var(--dorado-oscuro); flex-shrink: 0; }
.racha-dato:last-child .icono-racha { color: var(--primario-oscuro); }
.racha-numero {
  display: block; font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.3rem; font-weight: 800; line-height: 1.1; color: var(--texto);
}
.racha-etiqueta { display: block; font-size: 0.72rem; font-weight: 600; color: var(--texto-suave); }
.racha-separador { width: 1px; height: 34px; background: rgba(20, 70, 45, 0.14); margin: 0 14px; }
.racha-vacio { margin: 12px 0 0; font-size: 0.86rem; font-weight: 600; color: var(--texto-suave); }

.fila-insignias { flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.fila-insignias:not([hidden]) { display: flex; }
.chip-insignia {
  background: white; color: var(--dorado-oscuro); font-size: 0.72rem; font-weight: 800;
  padding: 6px 12px; border-radius: 20px; border: 1px solid rgba(232, 150, 10, 0.25);
  box-shadow: 0 3px 10px -4px rgba(232, 150, 10, 0.4);
}

.aviso-insignia {
  align-items: center; gap: 10px; margin-top: 16px;
  background: linear-gradient(135deg, var(--dorado) 0%, var(--primario) 100%);
  color: white; font-weight: 800; font-size: 0.92rem;
  padding: 14px 18px; border-radius: 18px;
  box-shadow: 0 10px 24px -8px rgba(232, 150, 10, 0.5);
}
.aviso-insignia:not([hidden]) {
  display: flex;
  animation: aparecer-insignia 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.aviso-insignia .icono-insignia { width: 24px; height: 24px; flex-shrink: 0; }
@keyframes aparecer-insignia {
  from { transform: scale(0.85) translateY(6px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

/* Tracker semanal tipo "hábito" (7 puntos, uno por día) - hace visible de
   un vistazo qué días de esta semana ya escaneaste algo, para generar el
   mismo tironcito de "no quiero cortar la cadena" que usan apps de hábitos. */
.semana-racha {
  display: flex; justify-content: space-between;
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid rgba(20, 70, 45, 0.12);
}
.dia-semana { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.punto-dia {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(20, 70, 45, 0.1);
  border: 1.5px solid rgba(20, 70, 45, 0.14);
}
.punto-dia.lleno {
  background: linear-gradient(135deg, var(--dorado) 0%, var(--primario) 100%);
  border-color: transparent;
  box-shadow: 0 3px 8px -3px rgba(30, 143, 78, 0.55);
}
.punto-dia.hoy { box-shadow: 0 0 0 2.5px white, 0 0 0 4.5px var(--primario); }
.punto-dia.lleno.hoy { box-shadow: 0 0 0 2.5px white, 0 0 0 4.5px var(--primario), 0 3px 8px -3px rgba(30, 143, 78, 0.55); }
.etiqueta-dia { font-size: 0.66rem; font-weight: 700; color: var(--texto-suave); }

.aviso-riesgo {
  margin: 14px 0 0; padding: 10px 14px;
  background: rgba(214, 40, 40, 0.08); border: 1px solid rgba(214, 40, 40, 0.18);
  border-radius: 14px; color: #b32323; font-size: 0.8rem; font-weight: 700;
}

.link-progreso {
  display: block; text-align: center; margin-top: 14px;
  font-size: 0.82rem; font-weight: 800; color: var(--primario-oscuro);
  text-decoration: none;
}

/* Página "Mi progreso" - el equivalente al perfil/stats de una app social:
   racha, mejor racha histórica, insignias (ganadas y por ganar) e historial
   reciente, todo leído de localStorage. */
.tarjeta-progreso-vacio { text-align: center; }
.tarjeta-progreso-vacio p { color: var(--texto-suave); margin: 10px 0 18px; }

.tarjeta-resumen-progreso h1,
.tarjeta-progreso-vacio h1 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.3rem; margin: 0 0 16px; }

.fila-stats-progreso { display: flex; gap: 8px; }
.stat-progreso {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: var(--fondo); border-radius: 18px; padding: 14px 8px;
  border: 1px solid var(--borde);
}
.icono-stat-progreso { width: 24px; height: 24px; color: var(--primario-oscuro); }
.stat-progreso:nth-child(2) .icono-stat-progreso { color: var(--dorado-oscuro); }
.stat-numero { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.15rem; font-weight: 800; }
.stat-etiqueta { font-size: 0.66rem; font-weight: 700; color: var(--texto-suave); text-align: center; }

.tarjeta-resumen-progreso .semana-racha { border-top: none; margin-top: 20px; padding-top: 0; }

.tarjeta-insignias-progreso, .tarjeta-historial-progreso { margin-top: 14px; }
.cabecera-seccion-progreso { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.titulo-seccion-chica { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.05rem; font-weight: 800; margin: 0 0 12px; }
.cabecera-seccion-progreso .titulo-seccion-chica { margin-bottom: 0; }
.contador-insignias { font-size: 0.78rem; font-weight: 700; color: var(--texto-suave); }

.grilla-insignias { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tarjeta-insignia {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 14px 8px; border-radius: 16px; border: 1px solid var(--borde);
}
.tarjeta-insignia.ganada { background: var(--dorado-suave); border-color: rgba(232, 150, 10, 0.22); }
.tarjeta-insignia.bloqueada { background: var(--fondo); opacity: 0.62; }
.icono-tarjeta-insignia { width: 30px; height: 30px; }
.tarjeta-insignia.ganada .icono-tarjeta-insignia { color: var(--dorado-oscuro); }
.tarjeta-insignia.bloqueada .icono-tarjeta-insignia { color: var(--texto-suave); }
.texto-insignia { font-size: 0.74rem; font-weight: 800; line-height: 1.2; }
.desc-insignia { font-size: 0.66rem; color: var(--texto-suave); line-height: 1.25; }

.lista-historial { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.fila-historial {
  display: flex; align-items: center; gap: 12px; padding: 10px 4px;
  text-decoration: none; color: var(--texto); border-top: 1px solid var(--borde);
}
.lista-historial li:first-child .fila-historial { border-top: none; }
.letra-historial {
  width: 28px; height: 28px; border-radius: 50%; color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.85rem; flex-shrink: 0;
}
.nombre-historial { font-size: 0.88rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Página de Términos y condiciones - prosa simple, dentro de la misma
   tarjeta blanca que usa el resto de la app para que se sienta parte del
   producto y no un documento legal pegado aparte. */
.tarjeta-terminos { text-align: left; }
.tarjeta-terminos h1 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.3rem; margin: 0 0 4px; }
.fecha-terminos { font-size: 0.78rem; color: var(--texto-suave); margin: 0 0 22px; }
.tarjeta-terminos h2 {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.98rem; font-weight: 800;
  margin: 22px 0 8px;
}
.tarjeta-terminos h2:first-of-type { margin-top: 0; }
.tarjeta-terminos p { font-size: 0.88rem; line-height: 1.55; color: var(--texto); margin: 0; }

/* =======================================================================
   Comunidad: cuenta (topbar), feed, tarjetas de post/reseña, reacciones,
   comentarios y reportes. Reusa el mismo lenguaje visual del resto de la
   app (tarjetas blancas redondeadas, chips de color, botones existentes)
   para que se sienta parte de Chequeá y no una sección aparte.
   ======================================================================= */

.link-cuenta {
  color: var(--primario-oscuro); text-decoration: none; font-size: 0.86rem; font-weight: 700;
  background: var(--primario-suave); padding: 8px 16px; border-radius: 20px;
}

.ayuda-cuenta { text-align: center; font-size: 0.86rem; color: var(--texto-suave); margin: 18px 0 0; }
.ayuda-cuenta a { color: var(--primario-oscuro); font-weight: 700; text-decoration: none; }

.cabecera-comunidad { padding: 4px 4px 14px; text-align: center; }
.cabecera-comunidad h1 { margin-bottom: 4px; }

.filtros-comunidad {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 14px; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.filtros-comunidad::-webkit-scrollbar { display: none; }
.chip-filtro-comunidad {
  flex-shrink: 0; text-decoration: none; color: var(--texto-suave); font-weight: 700; font-size: 0.85rem;
  background: white; padding: 9px 16px; border-radius: 18px; border: 1.5px solid var(--borde);
  transition: all 0.15s ease;
}
.chip-filtro-comunidad.activo {
  background: var(--degrade);
  color: white; border-color: transparent;
  box-shadow: 0 6px 16px -6px rgba(30, 143, 78, 0.5);
}

.boton-nueva-publicacion { width: 100%; margin-bottom: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; }

.aviso-login-comunidad {
  background: white; border: 1.5px dashed #cfe6d6; border-radius: 18px; padding: 14px 16px;
  text-align: center; font-size: 0.88rem; color: var(--texto-suave); margin-bottom: 16px;
}
.aviso-login-comunidad a { color: var(--primario-oscuro); font-weight: 700; text-decoration: none; }

/* Identidad de marca para acceso y registro */
.tarjeta-auth { max-width: 470px; margin: 28px auto; padding: 30px 28px 24px; text-align: left; }
.auth-identidad { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.auth-logo-wrap { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; background: linear-gradient(145deg, #e4f6e8, #eef8f1); box-shadow: 0 8px 18px rgba(31, 143, 78, .12); }
.auth-logo { width: 47px; height: 47px; object-fit: contain; }
.auth-saludo { color: var(--primario-oscuro); font-size: .82rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.tarjeta-auth h1 { margin-bottom: 8px; }
.auth-promesa { display: flex; align-items: center; gap: 8px; margin: 17px 0 18px; padding: 10px 12px; border: 1px solid #d8ead9; border-radius: 12px; background: #f5fbf3; color: #356746; font-size: .82rem; font-weight: 650; }
.auth-promesa span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #2d9c5a; color: #fff; font-weight: 900; }
.boton-auth { width: 100%; margin-top: 6px; }
.tarjeta-auth .ayuda-cuenta { margin: 20px 0 8px; text-align: center; }
.tarjeta-auth .ayuda-cuenta a { color: var(--primario-oscuro); font-weight: 800; }
.auth-volver { margin: 0; text-align: center; font-size: .82rem; }
.auth-volver a { color: var(--texto-suave); text-decoration: none; }
.auth-volver a:hover { color: var(--primario-oscuro); }
@media (max-width: 520px) { .tarjeta-auth { margin: 14px 10px; padding: 24px 20px 20px; } }

.feed-comunidad { display: flex; flex-direction: column; gap: 14px; }
.feed-vacio { text-align: center; color: var(--texto-suave); font-size: 0.9rem; padding: 30px 10px; }

.tarjeta-post {
  background: white; border-radius: 22px; padding: 18px; box-shadow: var(--tarjeta-sombra);
  border: 1px solid rgba(20, 70, 45, 0.05);
}
.cabecera-post { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.avatar-post {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: var(--degrade);
  color: white; font-weight: 800; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
}
.datos-autor-post { display: flex; flex-direction: column; line-height: 1.25; overflow: hidden; }
.autor-post { font-weight: 700; font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fecha-post { font-size: 0.72rem; color: var(--texto-suave); }

.estrellas-post { display: flex; gap: 1px; margin-left: auto; flex-shrink: 0; }
.icono-estrella { width: 14px; height: 14px; fill: none; color: #d6e4da; }
.icono-estrella.llena { fill: var(--dorado); color: var(--dorado-oscuro); }
.icono-estrella-chico { width: 15px; height: 15px; vertical-align: -2px; margin-right: 2px; }

.chip-tipo-post {
  margin-left: auto; flex-shrink: 0; font-size: 0.68rem; font-weight: 800; padding: 4px 10px;
  border-radius: 12px; background: var(--primario-suave); color: var(--primario-oscuro);
}
.chip-tipo-receta { background: #fff3d9; color: #8a5a08; }
.chip-tipo-consumo { background: #e8f7ee; color: #14703c; }
.chip-tipo-consejo { background: #eaf1fb; color: #2c5da8; }

.producto-vinculado-post {
  display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--texto);
  background: #fbfdfb; border: 1px solid var(--borde); border-radius: 14px; padding: 8px 10px;
  margin-bottom: 10px; font-size: 0.85rem; font-weight: 700;
}
.producto-vinculado-post img { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.miniatura-vacia-post {
  width: 34px; height: 34px; border-radius: 10px; background: var(--primario-suave); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}

.texto-post { font-size: 0.92rem; line-height: 1.55; margin: 0 0 10px; white-space: pre-wrap; }
.imagen-post { width: 100%; max-height: 340px; object-fit: cover; border-radius: 16px; margin-bottom: 10px; display: block; }

.acciones-post { display: flex; align-items: center; gap: 6px; border-top: 1px solid var(--borde); padding-top: 10px; flex-wrap: wrap; }
.boton-reaccion {
  display: inline-flex; align-items: center; gap: 6px; background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 0.8rem; font-weight: 700; color: var(--texto-suave);
  padding: 7px 10px; border-radius: 12px; transition: background 0.15s ease, color 0.15s ease;
  list-style: none;
}
.boton-reaccion::-webkit-details-marker { display: none; }
.boton-reaccion:hover { background: var(--primario-suave); }
.boton-reaccion.activo { color: var(--primario-oscuro); background: var(--primario-suave); }
.boton-reaccion:disabled { cursor: default; opacity: 0.55; }
.boton-reaccion:disabled:hover { background: none; }
.icono-reaccion { width: 18px; height: 18px; }
.form-reaccion { display: inline-flex; }
.detalles-comentarios, .detalles-reportar { position: relative; }
.detalles-comentarios summary, .detalles-reportar summary { list-style: none; }
.boton-reportar { margin-left: auto; }

.lista-comentarios-post { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.comentario-post {
  background: #fbfdfb; border-radius: 12px; padding: 8px 12px; font-size: 0.84rem; line-height: 1.4;
  display: flex; flex-direction: column; gap: 2px;
}
.autor-comentario { font-weight: 800; font-size: 0.76rem; color: var(--primario-oscuro); }
.comentario-post { position: relative; padding-right: 56px; }
.form-borrar-comentario { position: absolute; top: 6px; right: 8px; margin: 0; }
.boton-borrar-comentario {
  background: none; border: none; color: #a32323; font-size: 0.72rem; font-weight: 800;
  cursor: pointer; font-family: inherit; padding: 2px 6px; border-radius: 8px;
}
.boton-borrar-comentario:hover { background: #fde8e8; }
.sin-comentarios { font-size: 0.82rem; color: var(--texto-suave); margin: 4px 0; }
.form-comentar { display: flex; gap: 8px; margin-top: 4px; }
.form-comentar input {
  flex: 1; padding: 9px 12px; border-radius: 12px; border: 1.5px solid var(--borde); font-size: 0.85rem;
  font-family: inherit; background: #fbfdfb;
}
.form-comentar input:focus { outline: none; border-color: var(--primario); background: white; }
.boton-mini {
  flex-shrink: 0; background: var(--primario); color: white; border: none; border-radius: 12px;
  padding: 0 14px; font-weight: 700; font-size: 0.82rem; cursor: pointer; font-family: inherit;
}
.form-reportar { display: flex; gap: 8px; margin-top: 10px; }
.form-reportar select {
  flex: 1; padding: 8px 10px; border-radius: 12px; border: 1.5px solid var(--borde); font-size: 0.8rem;
  font-family: inherit; background: #fbfdfb;
}

.selector-tipo-post { display: flex; flex-wrap: wrap; gap: 8px; }
.opcion-tipo-post { cursor: pointer; }
.opcion-tipo-post input { position: absolute; opacity: 0; pointer-events: none; }
.opcion-tipo-post span {
  display: inline-block; padding: 9px 14px; border-radius: 16px; border: 1.5px solid var(--borde);
  font-size: 0.82rem; font-weight: 700; color: var(--texto-suave); background: #fbfdfb;
  transition: all 0.15s ease;
}
.opcion-tipo-post input:checked + span {
  background: var(--degrade);
  color: white; border-color: transparent;
}

/* Opiniones de la comunidad, dentro de la ficha de producto */
.seccion-opiniones { margin-top: 16px; }
.cabecera-opiniones { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.cabecera-opiniones .titulo-seccion-chica { margin: 0; }
.promedio-opiniones { font-size: 0.82rem; font-weight: 700; color: #8a5a08; white-space: nowrap; }
.lista-opiniones { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.sin-opiniones { font-size: 0.88rem; color: var(--texto-suave); margin: 0 0 14px; }
.ya-opinaste { font-size: 0.86rem; color: #14703c; background: #f2faf5; border-radius: 12px; padding: 10px 14px; margin: 0; }

.form-nueva-resena { margin-top: 4px; }
.selector-estrellas {
  border: none; padding: 0; margin: 0; display: flex; flex-direction: row-reverse;
  justify-content: flex-end; gap: 2px;
}
.selector-estrellas legend { font-size: 0.88rem; color: #4a574e; font-weight: 600; margin-bottom: 4px; width: 100%; }
.selector-estrellas input { position: absolute; opacity: 0; pointer-events: none; }
.icono-estrella-input { width: 30px; height: 30px; color: #d6e4da; fill: none; cursor: pointer; transition: color 0.1s ease, fill 0.1s ease; }
.selector-estrellas label { cursor: pointer; line-height: 0; }
.selector-estrellas input:checked ~ label .icono-estrella-input,
.selector-estrellas label:hover .icono-estrella-input,
.selector-estrellas label:hover ~ label .icono-estrella-input {
  color: var(--dorado-oscuro); fill: var(--dorado);
}

.tarjeta-actividad-comunidad { margin-top: 16px; }

/* =======================================================================
   Fase D: funciones para que la gente vuelva - "¿lo comprarías?", insignias
   de Comunidad, reto semanal, lo más comentado y la tarjeta de compartir
   mejorada. Reusa los mismos colores/formas que el resto de la app.
   ======================================================================= */

/* Ficha de producto: aviso de cuántas personas opinaron */
.participantes-comunidad {
  display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--texto-suave);
  margin: 0 0 14px;
}
.participantes-comunidad .icono-mini { flex-shrink: 0; }

/* ¿Lo comprarías? */
.voto-compra {
  background: #fbfdfb; border: 1px solid var(--borde); border-radius: 18px;
  padding: 14px 14px 12px; margin-bottom: 18px;
}
.pregunta-voto-compra { font-weight: 800; font-size: 0.92rem; margin: 0 0 10px; }
.opciones-voto-compra { display: flex; flex-direction: column; gap: 8px; }
.form-voto-compra { margin: 0; }
.boton-voto-compra {
  width: 100%; display: flex; align-items: center; gap: 8px; text-align: left;
  background: white; border: 1.5px solid var(--borde); border-radius: 14px;
  padding: 10px 12px; font-family: inherit; font-size: 0.85rem; font-weight: 700;
  color: var(--texto); cursor: pointer; transition: all 0.15s ease;
}
.boton-voto-compra:disabled { cursor: default; opacity: 0.75; }
.icono-voto { width: 20px; height: 20px; flex-shrink: 0; color: var(--texto-suave); }
.icono-voto-no { transform: scaleY(-1); }
.etiqueta-voto { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.porcentaje-voto { font-size: 0.78rem; font-weight: 800; color: var(--texto-suave); flex-shrink: 0; }

.boton-voto-compra.voto-si.activo { border-color: rgba(20, 112, 60, 0.35); background: #f2faf5; }
.boton-voto-compra.voto-si.activo .icono-voto { color: #14703c; }
.boton-voto-compra.voto-si.activo .porcentaje-voto { color: #14703c; }
.boton-voto-compra.voto-no_seguro.activo { border-color: rgba(232, 150, 10, 0.35); background: var(--dorado-suave); }
.boton-voto-compra.voto-no_seguro.activo .icono-voto { color: var(--dorado-oscuro); }
.boton-voto-compra.voto-no_seguro.activo .porcentaje-voto { color: var(--dorado-oscuro); }
.boton-voto-compra.voto-no.activo { border-color: rgba(163, 35, 35, 0.3); background: #fdeceb; }
.boton-voto-compra.voto-no.activo .icono-voto { color: #a32323; }
.boton-voto-compra.voto-no.activo .porcentaje-voto { color: #a32323; }

.barra-voto-fondo { height: 4px; border-radius: 4px; background: var(--borde); margin: 6px 2px 0; overflow: hidden; }
.barra-voto-relleno { height: 100%; border-radius: 4px; transition: width 0.3s ease; }
.barra-voto-relleno.barra-voto-si { background: #14703c; }
.barra-voto-relleno.barra-voto-no_seguro { background: var(--dorado-oscuro); }
.barra-voto-relleno.barra-voto-no { background: #a32323; }

.total-votos-compra { font-size: 0.76rem; color: var(--texto-suave); text-align: center; margin: 10px 0 0; }
.voto-compra .aviso-login-comunidad { margin: 10px 0 0; padding: 10px 12px; font-size: 0.8rem; }

.titulo-opiniones-escritas {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.95rem; font-weight: 800; margin: 0 0 12px;
}

/* Insignias de Comunidad con arte propio (imágenes en vez de íconos SVG) */
.grilla-insignias-comunidad { grid-template-columns: repeat(3, 1fr); }
.tarjeta-insignia-img { padding: 12px 8px 14px; }
.icono-tarjeta-insignia-img {
  width: 56px; height: 56px; border-radius: 16px; object-fit: cover; margin-bottom: 2px;
}
.tarjeta-insignia-img.bloqueada .icono-tarjeta-insignia-img { filter: grayscale(1); opacity: 0.55; }

/* Reto de la semana */
.tarjeta-reto-semanal { margin-bottom: 14px; padding: 20px; }
.cabecera-reto-semanal { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.icono-reto {
  width: 40px; height: 40px; flex-shrink: 0; padding: 9px; border-radius: 14px;
  background: linear-gradient(135deg, var(--primario-suave), var(--dorado-suave));
  color: var(--primario-oscuro);
}
.texto-cabecera-reto { min-width: 0; }
.texto-cabecera-reto .titulo-seccion-chica { margin-bottom: 4px; }
.texto-reto { margin: 0; font-size: 0.88rem; line-height: 1.45; color: var(--texto); }

.form-reto-semanal { margin: 0; }
.boton-reto-semanal {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--degrade); color: white;
  border: none; border-radius: 14px; padding: 12px; font-family: inherit; font-weight: 700;
  font-size: 0.88rem; cursor: pointer; transition: transform 0.12s ease;
}
.boton-reto-semanal:active { transform: scale(0.98); }
.boton-reto-semanal.cumplido { background: #14703c; }
.contador-reto-semanal { font-size: 0.78rem; color: var(--texto-suave); text-align: center; margin: 10px 0 0; }
.tarjeta-reto-semanal .aviso-login-comunidad { margin: 0; }

/* Lo más comentado esta semana: carrusel horizontal para no alargar el feed */
.seccion-mas-comentado { margin-bottom: 18px; }
.seccion-mas-comentado .titulo-seccion-chica { padding: 0 2px; }
.carrusel-mas-comentado {
  display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 6px; scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.carrusel-mas-comentado::-webkit-scrollbar { display: none; }
.tarjeta-mas-comentado { flex: 0 0 85%; max-width: 340px; scroll-snap-align: start; }
.tarjeta-mas-comentado .tarjeta-post { height: 100%; }

/* Insignia/promedio dentro de la tarjeta compartible (imagen que se genera para WhatsApp/Instagram) */
.badge-comunidad-compartir {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; margin: 2px 0 10px;
}
.badge-comunidad-compartir span {
  display: inline-flex; align-items: center; font-size: 0.8rem; font-weight: 700; color: #8a5a08;
  background: var(--dorado-suave); padding: 5px 12px; border-radius: 14px;
}
.badge-comunidad-compartir span .icono-estrella-chico { color: var(--dorado-oscuro); }
.feed-actividad-propia { margin-top: 4px; }

/* Foto aportada por la comunidad: siempre queda en revisión antes de
   actualizar la ficha pública. */
.aporte-foto-producto {
  margin: 18px 0; padding: 15px; border-radius: 16px;
  background: var(--primario-suave); border: 1px solid #cbe9da;
}
.aporte-foto-producto h3 { margin: 0 0 5px; font-size: 0.98rem; }
.aporte-foto-producto p { margin: 0; font-size: 0.86rem; line-height: 1.4; }
.form-aporte-foto { display: grid; gap: 10px; margin-top: 12px; }
.form-aporte-foto input[type="file"] { width: 100%; font: inherit; font-size: 0.82rem; }
.form-aporte-foto .boton { width: 100%; }
.mensaje-aporte-foto { margin-top: 10px !important; font-weight: 700; }
.mensaje-aporte-foto.exito { color: #14703c; }

/* Acciones personales: favoritas y retirar una reseña propia. */
.form-favorito-producto { margin: 0; }
.favorito-activo { color: #b72d48; border-color: #efb2c0; background: #fff0f3; }
.favorito-activo .icono { fill: currentColor; }
.form-favorito-cabecera { margin-left: auto; align-self: flex-start; }
.boton-corazon-favorito { width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid var(--borde); border-radius: 50%; color: #9c8a78; background: #fff; cursor: pointer; transition: transform .15s ease, color .15s ease, background .15s ease; }
.boton-corazon-favorito:hover, .boton-corazon-favorito:focus-visible { color: #b72d48; background: #fff0f3; transform: scale(1.06); }
.boton-corazon-favorito.favorito-activo { color: #b72d48; border-color: #efb2c0; background: #fff0f3; }
.icono-corazon-favorito { width: 20px; height: 20px; }
.form-borrar-mi-resena { margin-left: auto; }
.aviso-accion { position: fixed; z-index: 30; left: 50%; bottom: 92px; transform: translateX(-50%); max-width: calc(100vw - 36px); padding: 11px 16px; border-radius: 999px; color: white; background: #176b40; box-shadow: 0 8px 22px rgba(0,0,0,.18); font-size: .86rem; font-weight: 700; }
.aviso-accion.error { background: #a72d3b; }
.boton-cerrar-sesion { display: inline-flex; margin-top: 14px; color: #9b283b; border-color: #e8bcc4; }
.chip-producto-destacado { display: inline-flex; align-items: center; gap: 5px; color: #855300; background: #fff7db; border: 1px solid #efd68c; border-radius: 999px; padding: 8px 12px; font-size: .82rem; font-weight: 800; text-decoration: none; }
.icono-destacado { width: 15px; fill: currentColor; }
.cabecera-destacados { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.cabecera-destacados h1 { margin: 0; }
.cabecera-destacados .subtitulo { margin: 3px 0 0; }
.icono-destacados-titulo { width: 27px; height: 27px; margin-top: 3px; color: #a36b05; fill: #f7ca4c; }

/* Perfil de una cuenta comunitaria */
.tarjeta-perfil-usuario { text-align: center; }
.tarjeta-perfil-usuario .form-agregar { text-align: left; margin-top: 18px; }
.avatar-perfil-grande {
  width: 70px; height: 70px; margin: 0 auto 10px; border-radius: 50%;
  display: grid; place-items: center; background: var(--primario); color: white;
  font-size: 1.7rem; font-weight: 800;
}
.nota-perfil { margin: 0; font-size: 0.8rem; color: var(--texto-suave); line-height: 1.4; }
.mensaje-perfil-ok { color: #14703c; font-weight: 700; }

/* Landing / SEO: explica la propuesta sin alejar de la acción principal. */
.landing-confianza { margin: 25px 4px 22px; text-align: center; }
.landing-hero { text-align: center; padding: 28px 10px 34px; background: radial-gradient(circle at 50% 5%, #e8f8ef 0, #f5faf6 48%, transparent 72%); }
.landing-logo { width: 92px; height: 92px; object-fit: contain; margin-bottom: 8px; }
.mascota-landing { width: 96px; height: 96px; object-fit: contain; margin: -8px 0 -28px 176px; transform: rotate(-5deg); filter: drop-shadow(0 6px 8px rgba(8, 73, 49, .16)); }
.landing-paises { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 0 auto 10px; color: var(--primario-oscuro); font-size: .76rem; font-weight: 800; }
.bandera-redonda { width: 27px; height: 27px; display: inline-block; overflow: hidden; border-radius: 50%; background: white; box-shadow: 0 2px 7px rgba(8, 73, 49, .14); }
.bandera-redonda img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.24); }
.landing-hero h1 { margin: 0; font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(2.05rem, 9vw, 3.35rem); line-height: 1.05; letter-spacing: -.055em; }
.landing-hero h1 span { color: var(--primario-oscuro); }
.landing-bajada { max-width: 470px; margin: 14px auto 19px; color: var(--texto-suave); font-size: 1rem; line-height: 1.5; }
.landing-acciones { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; }
.landing-dato { margin: 16px 0 0; color: var(--texto-suave); font-size: .76rem; }
.landing-busquedas { margin: 4px 4px 24px; padding: 19px 17px; border-radius: 20px; background: #fff; border: 1px solid var(--borde); text-align: center; }
.landing-busquedas h2 { margin: 0 0 8px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.14rem; line-height: 1.22; }
.landing-busquedas p { margin: 0; color: var(--texto-suave); font-size: .85rem; line-height: 1.5; }
.landing-busquedas p + p { margin-top: 12px; }
.landing-busquedas a { color: var(--primario-oscuro); font-weight: 800; }
.landing-busquedas .aporte-producto-landing { margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--borde); color: var(--texto); font-weight: 650; }
.chips-busqueda { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin: 14px 0; }
.chips-busqueda span { padding: 6px 9px; border-radius: 999px; color: var(--primario-oscuro); background: var(--primario-suave); font-size: .72rem; font-weight: 750; }
.eyebrow-landing { margin: 0 0 7px; color: var(--primario-oscuro); font-size: 0.68rem; font-weight: 800; letter-spacing: .09em; }
.landing-confianza h2, .landing-faq h2, .landing-comunidad h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.25rem; line-height: 1.2; margin: 0 0 8px; }
.landing-confianza > .subtitulo { max-width: 560px; margin: 0 auto; line-height: 1.55; }
.pasos-landing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 17px; text-align: left; }
.paso-landing { min-width: 0; padding: 13px 10px; border: 1px solid var(--borde); border-radius: 16px; background: white; }
.paso-icono { width: 31px; height: 31px; display: grid; place-items: center; margin-bottom: 8px; color: var(--primario-oscuro); background: var(--primario-suave); border-radius: 10px; }
.paso-icono .icono { width: 17px; height: 17px; }
.paso-landing strong { display: block; font-size: .82rem; }
.paso-landing p { margin: 4px 0 0; color: var(--texto-suave); font-size: .72rem; line-height: 1.35; }
.landing-comunidad { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 24px; background: linear-gradient(135deg, #fff 0%, var(--primario-suave) 100%); }
.landing-comunidad-icono { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 14px; color: white; background: var(--primario); }
.landing-comunidad-icono .icono { width: 23px; height: 23px; }
.landing-comunidad h2 { font-size: 1.02rem; }
.landing-comunidad p { margin: 0 0 8px; font-size: .85rem; line-height: 1.45; color: var(--texto-suave); }
.link-landing { color: var(--primario-oscuro); font-size: .86rem; font-weight: 800; }
.landing-faq { margin: 30px 4px 18px; }
.landing-faq h2 { margin-bottom: 12px; }
.landing-faq details { padding: 13px 0; border-top: 1px solid var(--borde); }
.landing-faq details:last-child { border-bottom: 1px solid var(--borde); }
.landing-faq summary { cursor: pointer; font-size: .88rem; font-weight: 750; }
.landing-faq p { margin: 8px 0 0; color: var(--texto-suave); font-size: .83rem; line-height: 1.45; }
.landing-cierre { margin: 27px 4px 20px; padding: 25px 16px; text-align: center; color: white; border-radius: 22px; background: linear-gradient(135deg, var(--primario-oscuro), var(--primario)); }
.landing-cierre-icono { width: 35px; height: 35px; display: grid; place-items: center; margin: 0 auto 9px; border-radius: 12px; background: rgba(255,255,255,.16); }
.landing-cierre-icono .icono { width: 21px; height: 21px; }
.landing-cierre h2 { margin: 0 0 15px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.1rem; }
.landing-cierre .boton { color: var(--primario-oscuro); background: white; }
@media (max-width: 360px) { .pasos-landing { gap: 6px; } .paso-landing { padding: 11px 8px; } }

/* Sellos de procesamiento junto al puntaje (la letra es solo nutricional) */
.sellos-proceso { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }
.sello-proceso { display: inline-block; padding: 5px 11px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.sello-ultra { background: #ffe9dc; color: #a1481c; }
.sello-restriccion { background: #fde8e8; color: #a32323; }
.nota-sellos { margin: 6px auto 0; max-width: 34ch; text-align: center; font-size: .74rem; color: var(--texto-suave); }

/* Lector de etiquetas con la cámara (página de aportes) */
.lector-etiqueta { margin: 14px 0 18px; padding: 14px; border: 1px dashed #b4e2c4; border-radius: 16px; background: #f6fcf8; }
.lector-etiqueta h3 { margin: 0 0 10px; font-size: 1rem; }
.lector-botones { display: flex; flex-wrap: wrap; gap: 8px; }
.lector-boton { flex: 1 1 200px; cursor: pointer; text-align: center; }
.lector-estado { margin: 10px 0 0; font-size: .84rem; color: var(--texto-suave); }
.lector-avisos { margin: 6px 0 0; padding-left: 18px; font-size: .8rem; color: #a1481c; }
.form-agregar input.autocompletado, .form-agregar textarea.autocompletado { background: #fff3c4; border-color: #e0b400; }

/* Comparar dos productos */
.comparar-grilla { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 12px; }
.comparar-col { text-align: center; padding: 12px 8px; border-radius: 18px; background: #fff; border: 2px solid transparent; }
.comparar-col.ganador { border-color: #1e8f4e; background: #f1faf4; }
.comparar-col img { width: 84px; height: 84px; object-fit: contain; border-radius: 14px; background: #fff; }
.comparar-col h2 { font-size: .95rem; margin: 8px 0 4px; line-height: 1.25; overflow-wrap: anywhere; }
.comparar-puntaje { display: inline-flex; align-items: baseline; gap: 6px; margin: 4px 0; }
.comparar-puntaje .numero { font-size: 2rem; font-weight: 800; }
.comparar-puntaje .letra { font-size: 1.1rem; font-weight: 800; }
.comparar-sello { display: inline-block; margin: 3px 2px; padding: 3px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.comparar-sello.ultra { background: #ffe9dc; color: #a1481c; }
.comparar-sello.oct { background: #1c2620; color: #fff; }
.comparar-sello.ok { background: #e3f4e8; color: #1e6b3c; }
.comparar-ganador { margin: 14px 0 4px; padding: 10px 14px; border-radius: 14px; background: #e3f4e8; color: #1e6b3c; font-weight: 800; text-align: center; }
.comparar-tabla { width: 100%; border-collapse: collapse; margin-top: 14px; font-variant-numeric: tabular-nums; }
.comparar-tabla th, .comparar-tabla td { padding: 9px 6px; border-bottom: 1px solid #e1eee5; text-align: center; font-size: .88rem; }
.comparar-tabla th { font-weight: 600; color: var(--texto-suave); text-align: left; }
.comparar-tabla td.mejor { color: #1e6b3c; font-weight: 800; background: #f1faf4; }
.comparar-nota { font-size: .76rem; color: var(--texto-suave); margin-top: 8px; }
.comparar-buscador input { width: 100%; }

/* Aviso para celíacos (según preferencias guardadas en el celular) */
.aviso-celiaco { margin: 12px 0 4px; padding: 12px 14px; border-radius: 16px; text-align: left; display: flex; flex-direction: column; gap: 2px; }
.aviso-celiaco strong { font-size: 1.02rem; }
.aviso-celiaco span { font-size: .84rem; }
.aviso-celiaco-libre { background: #e3f4e8; color: #14703c; }
.aviso-celiaco-contiene { background: #fde8e8; color: #a32323; }
.aviso-celiaco-trazas { background: #fdeee0; color: #a1481c; }
.aviso-celiaco-revisar, .aviso-celiaco-sin-datos { background: #fff2df; color: #7a5a0e; }
.intro-celiaco { display: flex; align-items: center; gap: 8px; justify-content: center; margin: 4px 0 12px; font-size: .9rem; }
.chip-mini { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; font-size: .68rem; font-weight: 700; vertical-align: middle; }

/* Confirmación de la comunidad: logo Sin TACC */
.confirmar-sin-tacc { margin: 10px 0; padding: 12px 14px; border-radius: 16px; background: #f7fcf9; border: 1px solid #d3eedc; text-align: left; }
.tacc-resumen { margin: 0 0 8px; font-size: .86rem; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.tacc-resumen.tacc-si { color: #14703c; }
.tacc-resumen.tacc-no { color: #a32323; }
.tacc-pregunta { margin: 0 0 8px; font-size: .92rem; }
.tacc-botones { display: flex; gap: 8px; flex-wrap: wrap; }
.tacc-ayuda { margin: 8px 0 0; font-size: .78rem; color: var(--texto-suave); }

/* Mi carrito */
.carrito-nota { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin: 6px 0; }
.carrito-numero { font-size: 3.4rem; font-weight: 800; line-height: 1; }
.carrito-letra { font-size: 1.8rem; font-weight: 800; }
.carrito-barra { display: flex; height: 26px; border-radius: 999px; overflow: hidden; margin: 12px 0; }
.carrito-barra span { display: flex; align-items: center; justify-content: center; color: #fff; font-size: .72rem; font-weight: 800; min-width: 34px; }
.carrito-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; text-align: center; }
.carrito-stats strong { display: block; font-size: 1.4rem; }
.carrito-stats span { font-size: .76rem; color: var(--texto-suave); }
.lista-recientes li { position: relative; }
.carrito-quitar { position: absolute; right: -4px; top: -6px; width: 26px; height: 26px; border-radius: 50%; border: none; background: #e1f1e6; color: #7a4026; font-size: 1rem; cursor: pointer; }
#btn-carrito.en-carrito { background: #e3f4e8; color: #14703c; border-color: #bfe3cb; }

/* --- Rankings por tipo (/mejores) --- */
.migas { font-size: 0.85rem; color: #6f7d74; margin: 0 0 6px; }
.migas a { color: inherit; }
.actualizado-ranking { font-size: 0.82rem; color: #6f7d74; margin: 4px 0 0; }
.lista-ranking-tema { counter-reset: none; }
.texto-fila-ranking .dato-ranking { display: block; font-size: 0.8rem; color: #6f7d74; font-weight: 600; margin-top: 2px; }
.cta-ranking { margin: 22px 0 8px; padding: 16px; border-radius: 18px; background: #f4faf5; text-align: center; }
.cta-ranking p { margin: 0 0 12px; }
.nota-ranking { font-size: 0.8rem; color: #6f7d74; margin-top: 14px; }
.lista-temas { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lista-temas a {
  display: inline-block; padding: 8px 14px; border-radius: 999px;
  background: #f4faf5; color: #b4481c; font-weight: 600; text-decoration: none; font-size: 0.9rem;
}
.lista-temas a:hover { background: #e0f3e6; }
.lista-temas-grande { flex-direction: column; }
.lista-temas-grande a { display: block; border-radius: 14px; padding: 12px 16px; font-size: 1rem; }

/* --- Cartel "Instalá la app" --- */
.banner-instalar {
  position: fixed; left: 12px; right: 12px; z-index: 16;
  bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  max-width: 480px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 18px; padding: 10px 12px;
  box-shadow: 0 14px 34px -10px rgba(20, 70, 45, 0.38);
  border: 1px solid rgba(20, 70, 45, 0.08);
}
.banner-instalar[hidden] { display: none; }
.banner-instalar-icono { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.banner-instalar-texto { flex: 1; min-width: 0; font-size: 0.85rem; line-height: 1.3; }
.banner-instalar-texto strong { display: block; font-size: 0.95rem; }
.banner-instalar-texto span { color: #5d6b62; }
.banner-instalar-boton { flex: none; padding: 8px 14px; font-size: 0.9rem; margin: 0; }
.banner-instalar-boton[hidden] { display: none; }
.banner-instalar-cerrar { flex: none; background: none; border: 0; font-size: 1.4rem; color: #6f7d74; cursor: pointer; padding: 0 4px; }
[data-instalar-app][hidden] { display: none; }

/* --- Datos verificados --- */
.sello-verificado { display: inline-block; margin: 8px 0 0; padding: 6px 12px; border-radius: 999px; background: #e7f6ee; color: #1e7a45; font-size: 0.85rem; font-weight: 700; }
.aviso-verificado { background: #e7f6ee; color: #1f5c3a; border-radius: 14px; padding: 10px 14px; font-size: 0.9rem; }

/* --- "¿Por qué esta letra?" y botoncitos "i" --- */
.por-que-letra { margin: 14px 0 6px; padding: 14px 16px; border-radius: 18px; background: #f4faf6; text-align: left; }
.por-que-letra h3 { margin: 0 0 8px; font-size: 1.05rem; display: flex; align-items: center; gap: 6px; }
.cerca-letra { margin: 0 0 10px; padding: 8px 12px; border-radius: 12px; background: #fff1d6; color: #7a4b00; font-size: 0.9rem; font-weight: 600; }
.por-que-columnas { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.por-que-bloque h4 { margin: 0 0 4px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; }
.por-que-bloque.a-favor h4 { color: #1e7a45; }
.por-que-bloque.en-contra h4 { color: #b4361c; }
.por-que-bloque ul { margin: 0; padding-left: 18px; font-size: 0.9rem; line-height: 1.45; }
.nota-por-que { margin: 8px 0 0; font-size: 0.82rem; color: #5d6b62; display: flex; align-items: center; gap: 6px; }
.info-tip {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 18px; height: 18px; margin-left: 5px; padding: 0; vertical-align: middle;
  border-radius: 50%; border: 1.5px solid currentColor; background: transparent;
  color: #9a8a7c; font: italic 700 11px/1 Georgia, serif; cursor: pointer; opacity: 0.85;
}
.info-tip:hover, .info-tip:focus-visible { opacity: 1; color: #ff7a45; }
.glosario-fuente { margin-top: 12px; font-size: 0.8rem; color: #6f7d74; border-top: 1px solid rgba(20, 70, 45, 0.12); padding-top: 10px; }

#glosario-explicacion { white-space: pre-line; }

/* =====================================================================
   Rankings por tipo (/mejores) - versión linda
   ===================================================================== */
.rk-hero {
  --acento: var(--primario);
  position: relative; overflow: hidden;
  margin-bottom: 18px; padding: 26px 22px 22px; border-radius: 28px; color: #fff;
  background:
    radial-gradient(380px 220px at 100% 0%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 70%),
    linear-gradient(140deg, #2aa35e 0%, #1e8f4e 100%);
  box-shadow: 0 18px 38px -18px rgba(232, 80, 15, 0.55);
}
.rk-hero-tema {
  background:
    radial-gradient(380px 220px at 100% 0%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 70%),
    linear-gradient(140deg, var(--acento) 0%, color-mix(in srgb, var(--acento) 55%, #1f2a23) 100%);
  box-shadow: 0 18px 38px -18px color-mix(in srgb, var(--acento) 70%, transparent);
}
.rk-hero h1 { margin: 10px 0 8px; font-size: 1.55rem; line-height: 1.2; color: #fff; }
.rk-hero h2 { margin: 10px 0 8px; font-size: 1.35rem; line-height: 1.2; color: #fff; }
.tabla-ia { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 10px 0; }
.tabla-ia img { width: 100%; max-width: 420px; border-radius: 10px; border: 1px solid #e5ded2; background: #fff; }
.tabla-ia .avisos-ia { margin: 0; padding-left: 1.1rem; color: #9a3412; }
@media (min-width: 720px) { .tabla-ia { grid-template-columns: 420px 1fr; align-items: start; } }
.rk-hero p { margin: 0; opacity: 0.94; line-height: 1.45; }
.rk-hero-icono {
  display: inline-flex; width: 48px; height: 48px; border-radius: 16px; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.22);
}
.rk-hero-icono .icono { width: 28px; height: 28px; }
.rk-hero-datos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.rk-hero-datos span { padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.2); font-size: 0.78rem; font-weight: 600; }
.rk-migas { font-size: 0.82rem !important; margin-bottom: 8px !important; }
.rk-migas a { color: #fff; }
.rk-tipo {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  background: #fff; color: var(--acento); font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em;
}
.rk-tipo .icono { width: 16px; height: 16px; }
.rk-compartir {
  margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 9px 16px; border-radius: 999px; border: 0; background: #fff; color: var(--texto);
  font: inherit; font-weight: 700; font-size: 0.9rem;
}
.rk-compartir .icono { width: 18px; height: 18px; }

/* Índice: grupos */
.rk-grupos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.rk-grupo {
  --acento: var(--primario);
  background: #fff; border-radius: 22px; padding: 16px; box-shadow: var(--tarjeta-sombra);
  border-top: 5px solid var(--acento);
}
.rk-grupo h2 { margin: 0 0 10px; font-size: 1.1rem; }
.rk-grupo-links { display: flex; flex-direction: column; gap: 8px; }
.rk-link {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px;
  background: color-mix(in srgb, var(--acento) 9%, #fff); color: var(--texto); text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.rk-link:hover { transform: translateX(3px); background: color-mix(in srgb, var(--acento) 16%, #fff); }
.rk-link-icono {
  display: inline-flex; width: 34px; height: 34px; border-radius: 10px; align-items: center; justify-content: center; flex: none;
  background: var(--acento); color: #fff;
}
.rk-link-icono .icono { width: 18px; height: 18px; }
.rk-link-texto { flex: 1; display: flex; flex-direction: column; }
.rk-link-texto small { color: var(--texto-suave); font-size: 0.78rem; }
.rk-link-flecha { font-size: 1.5rem; color: var(--acento); line-height: 1; }

/* Podio */
.rk-podio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: end; margin-bottom: 14px; }
.rk-podio-item {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 22px 8px 12px; border-radius: 20px; background: #fff; color: var(--texto); text-decoration: none;
  box-shadow: var(--tarjeta-sombra); min-width: 0;
}
.rk-puesto-1 { padding-top: 30px; padding-bottom: 18px; border: 2px solid var(--dorado); background: linear-gradient(180deg, var(--dorado-suave) 0%, #fff 55%); }
.rk-medalla {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff; font-size: 0.95rem; box-shadow: 0 4px 10px -3px rgba(0, 0, 0, 0.3);
}
.rk-puesto-1 .rk-medalla { background: linear-gradient(135deg, #ffcf4a, #e8960a); width: 36px; height: 36px; top: -15px; font-size: 1.1rem; }
.rk-puesto-2 .rk-medalla { background: linear-gradient(135deg, #d6dce4, #98a3b1); }
.rk-puesto-3 .rk-medalla { background: linear-gradient(135deg, #e8b184, #b86f3a); }
.rk-podio-foto { width: 64px; height: 64px; border-radius: 16px; object-fit: contain; background: #fff; }
.rk-puesto-1 .rk-podio-foto { width: 78px; height: 78px; }
.rk-podio-nombre {
  margin-top: 8px; font-size: 0.8rem; font-weight: 700; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word;
}
.rk-podio-marca { font-size: 0.72rem; color: var(--texto-suave); margin-top: 2px; }
.rk-podio-dato { margin-top: 6px; font-size: 1.05rem; font-weight: 800; }
.rk-podio-dato small, .rk-fila-dato small { font-size: 0.7em; font-weight: 600; color: var(--texto-suave); }
.rk-podio .rk-letra { margin-top: 6px; }
.rk-letra {
  display: inline-flex; width: 26px; height: 26px; border-radius: 8px; align-items: center; justify-content: center; flex: none;
  color: #fff; font-weight: 800; font-size: 0.9rem;
}

/* Lista 4-10 */
.rk-lista { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rk-fila {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 18px;
  background: #fff; color: var(--texto); text-decoration: none; box-shadow: 0 8px 20px -14px rgba(20, 70, 45, 0.35);
}
.rk-num { width: 22px; text-align: center; font-weight: 800; color: var(--texto-suave); flex: none; }
.rk-fila-foto { width: 46px; height: 46px; border-radius: 12px; object-fit: contain; background: #fff; flex: none; }
.rk-fila-texto { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rk-fila-nombre { font-size: 0.88rem; font-weight: 700; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-fila-marca { font-size: 0.74rem; color: var(--texto-suave); }
.rk-barra { display: block; height: 6px; margin-top: 4px; border-radius: 999px; background: #e6f2ea; overflow: hidden; }
.rk-barra span { display: block; height: 100%; border-radius: 999px; }
.rk-fila-dato { font-weight: 800; font-size: 0.9rem; white-space: nowrap; flex: none; }

/* CTA, otros, nota */
.rk-cta {
  display: flex; align-items: center; gap: 14px; margin: 6px 0 18px; padding: 16px 18px; border-radius: 22px;
  background: linear-gradient(135deg, var(--primario-suave), var(--dorado-suave)); color: var(--texto); text-decoration: none;
  border: 1px solid var(--borde);
}
.rk-cta-icono {
  display: inline-flex; width: 46px; height: 46px; border-radius: 14px; align-items: center; justify-content: center; flex: none;
  background: var(--degrade); color: #fff;
}
.rk-cta-icono .icono { width: 24px; height: 24px; }
.rk-cta strong { display: block; }
.rk-cta small { color: var(--texto-suave); font-size: 0.85rem; }
.rk-otros h2 { font-size: 1.05rem; margin: 0 0 10px; }
.rk-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.rk-chips::-webkit-scrollbar { display: none; }
.rk-chips a {
  flex: none; padding: 8px 14px; border-radius: 999px; background: #fff; color: var(--primario-oscuro);
  font-weight: 600; font-size: 0.86rem; text-decoration: none; border: 1px solid var(--borde);
}
.rk-nota { font-size: 0.78rem; color: var(--texto-suave); margin: 14px 4px 0; line-height: 1.45; }
.rk-pie { text-align: center; margin-top: 8px; }
.rk-vacio { text-align: center; }
@media (max-width: 360px) {
  .rk-podio-foto { width: 52px; height: 52px; }
  .rk-puesto-1 .rk-podio-foto { width: 62px; height: 62px; }
}

/* --- Completar productos: insignia "Cazador de etiquetas" --- */
.cazar-etiqueta {
  display: flex; align-items: center; gap: 12px; margin: 12px 0 4px; padding: 12px 14px; border-radius: 18px;
  background: linear-gradient(135deg, #e8f1fb, #fff3d9); border: 1px solid #d5e4f3; color: var(--texto);
  text-decoration: none; text-align: left;
}
.cazar-etiqueta img { width: 46px; height: 76px; object-fit: cover; border-radius: 10px; flex: none; }
.cazar-etiqueta strong { display: block; font-size: 0.95rem; }
.cazar-etiqueta small { display: block; margin-top: 3px; color: var(--texto-suave); font-size: 0.8rem; line-height: 1.35; }
.cazar-etiqueta-flecha { margin-left: auto; font-size: 1.6rem; color: #3b82c4; }
.premio-etiquetas {
  display: flex; gap: 14px; align-items: center; margin: 18px 0; padding: 14px; border-radius: 18px;
  background: linear-gradient(135deg, #e8f1fb, #fff3d9); text-align: left;
}
.premio-etiquetas img { width: 60px; height: 100px; object-fit: cover; border-radius: 12px; flex: none; }
.premio-etiquetas p { margin: 4px 0 6px; font-size: 0.85rem; color: #4c5a51; }
.premio-etiquetas a { font-weight: 700; font-size: 0.88rem; }

.olvide-clave { margin: -4px 0 10px; text-align: right; font-size: 0.85rem; }
.olvide-clave a { color: var(--texto-suave); }
.aviso-clave-ok { margin: 0 0 14px; padding: 12px 16px; border-radius: 16px; background: #e7f6ee; color: #1f5c3a; font-weight: 600; }

/* =====================================================================
   Bienvenida (onboarding) - pantalla completa, 3 pasos
   ===================================================================== */
body.onb-abierto { overflow: hidden; }
.onb {
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column;
  background: radial-gradient(520px 360px at 85% 0%, #dcf1e3 0%, rgba(220, 241, 227, 0) 60%), var(--fondo);
  padding: calc(14px + env(safe-area-inset-top, 0px)) 20px calc(18px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
}
.onb[hidden] { display: none; }
.onb-cabecera { display: grid; grid-template-columns: 44px 1fr 64px; align-items: center; max-width: 480px; width: 100%; margin: 0 auto; }
.onb-marca { display: flex; align-items: center; justify-content: center; gap: 8px; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.35rem; color: var(--primario-oscuro); grid-column: 2; }
.onb-marca img { width: 30px; height: 30px; border-radius: 9px; }
.onb-atras { grid-column: 1; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.3); font-size: 1.2rem; cursor: pointer; }
.onb-atras[hidden] { visibility: hidden; display: block; }
.onb-saltar { grid-column: 3; border: 0; background: none; color: var(--texto-suave); font: inherit; font-size: 0.9rem; cursor: pointer; }
.onb-progreso { max-width: 300px; width: 70%; height: 6px; margin: 14px auto 0; border-radius: 999px; background: #d6e8dc; overflow: hidden; }
.onb-progreso span { display: block; height: 100%; width: 33%; border-radius: 999px; background: #1c2620; transition: width 0.35s ease; }
.onb-paso { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; max-width: 480px; width: 100%; margin: 0 auto; padding: 18px 0 8px; animation: onb-entrar 0.35s ease; }
.onb-paso[hidden] { display: none; }
@keyframes onb-entrar { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.onb-titulo-grande { font-size: 2rem; line-height: 1.15; margin: 4px 0 26px; }
.onb-titulo { font-size: 1.7rem; line-height: 1.18; margin: 26px 0 10px; text-wrap: balance; }
.onb-texto { color: var(--texto-suave); font-size: 1rem; line-height: 1.5; margin: 0 8px; max-width: 360px; }
.onb-paso[data-paso="0"] .onb-texto { margin-top: 26px; }

/* Teléfono con chips flotantes */
.onb-telefono { position: relative; width: 230px; height: 330px; flex: none; }
.onb-pantalla {
  position: absolute; inset: 0; border-radius: 38px; border: 7px solid #1c2620; overflow: hidden;
  box-shadow: 0 30px 50px -24px rgba(90, 50, 20, 0.55);
}
.onb-pantalla::before { content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 74px; height: 20px; border-radius: 12px; background: #1c2620; z-index: 2; }
.onb-pantalla-foto { background: #fff; }
.onb-pantalla-foto img { width: 100%; height: 100%; object-fit: contain; padding: 30px 20px 10px; }
.onb-pantalla-paquete { background: linear-gradient(160deg, #3f2d22, #1c2620); display: flex; align-items: center; justify-content: center; }
.onb-paquete {
  width: 120px; height: 200px; border-radius: 16px; transform: rotate(-8deg);
  background: linear-gradient(170deg, #9fd08a 0%, #5fa84a 55%, #3f7f33 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #fff;
  box-shadow: 0 18px 30px -12px rgba(0, 0, 0, 0.6);
}
.onb-paquete-sello { padding: 3px 10px; border-radius: 999px; background: #fff; color: #3f7f33; font-weight: 800; font-size: 0.7rem; letter-spacing: 0.08em; }
.onb-paquete-nombre { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.1rem; line-height: 1.1; }
.onb-paquete-claim { font-size: 0.72rem; font-weight: 700; opacity: 0.95; }
.onb-chip {
  position: absolute; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 9px 12px; border-radius: 14px; text-align: left;
  background: rgba(255, 255, 255, 0.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 24px -12px rgba(60, 30, 10, 0.45); border: 1px solid rgba(255, 255, 255, 0.7);
  animation: onb-flotar 4s ease-in-out infinite;
}
.onb-chip strong { font-size: 0.86rem; color: #1c2620; white-space: nowrap; }
.onb-chip .pill { font-size: 0.68rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.pill.verde { background: #dcf3e4; color: #1e7a45; }
.pill.rojo { background: #ffdcd6; color: #b4361c; }
.pill.azul { background: #dde9f7; color: #2d5f96; }
.onb-chip-1 { top: 34px; left: -52px; }
.onb-chip-2 { top: 108px; right: -58px; animation-delay: -1s; }
.onb-chip-3 { bottom: 86px; left: -60px; animation-delay: -2s; }
.onb-chip-4 { bottom: 26px; right: -44px; animation-delay: -3s; }
.onb-chip-letra { flex-direction: row; align-items: center; gap: 8px; }
.onb-chip-letra .letra { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; }
.onb-chip-octogono { padding: 6px; background: rgba(255, 255, 255, 0.85); }
.onb-chip-octogono .octo {
  width: 74px; height: 74px; display: flex; align-items: center; justify-content: center; text-align: center;
  background: #111; color: #fff; font-size: 0.6rem; font-weight: 800; line-height: 1.2;
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
}
@keyframes onb-flotar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .onb-chip, .onb-paso { animation: none; } }

/* Paso 3: opciones */
.onb-opciones { display: flex; flex-direction: column; gap: 10px; width: 100%; margin-top: 22px; text-align: left; }
.onb-opcion {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; cursor: pointer;
  background: #fff; border: 2px solid transparent; box-shadow: 0 8px 20px -14px rgba(20, 70, 45, 0.4);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.onb-opcion input { width: 22px; height: 22px; accent-color: var(--primario); flex: none; }
.onb-opcion strong { display: block; font-size: 0.98rem; }
.onb-opcion small { display: block; color: var(--texto-suave); font-size: 0.8rem; margin-top: 2px; }
.onb-opcion:has(input:checked) { border-color: var(--primario); background: var(--primario-suave); }

.onb-pie { max-width: 480px; width: 100%; margin: 0 auto; padding-top: 10px; }
.onb-boton {
  width: 100%; padding: 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: #1c2620; color: #fff; font: inherit; font-weight: 800; font-size: 1.05rem;
  box-shadow: 0 14px 28px -14px rgba(0, 0, 0, 0.6);
}
.onb-boton:active { transform: scale(0.98); }
@media (max-height: 700px) {
  .onb-telefono { width: 190px; height: 270px; }
  .onb-titulo-grande { font-size: 1.6rem; margin-bottom: 18px; }
  .onb-titulo { font-size: 1.4rem; margin-top: 18px; }
}
@media (max-width: 370px) {
  .onb-chip-1, .onb-chip-3 { left: -36px; }
  .onb-chip-2, .onb-chip-4 { right: -36px; }
}

/* --- Lo bueno arriba, % VD y "los mejores" --- */
.chips-buenos { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 10px 0 2px; }
.chip-bueno {
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 999px;
  border: 1.5px solid #3aa665; color: #1e7a45; background: #f1faf4; font-size: 0.82rem; font-weight: 700;
}
.chip-bueno .icono { width: 15px; height: 15px; }
.chip-bueno b { font-weight: 600; }
.valor-nutriente .vd, span .vd { display: block; text-align: right; font-size: 0.72rem; color: var(--texto-suave); font-weight: 600; margin-top: 1px; }
.nota-vd { margin: -4px 0 10px; font-size: 0.75rem; color: var(--texto-suave); }
.ver-ranking-familia { display: inline-block; margin-top: 12px; font-weight: 700; font-size: 0.9rem; }
.valor-y-vd { display: inline-flex; flex-direction: column; align-items: flex-end; white-space: nowrap; line-height: 1.2; }
.valor-y-vd .vd { margin-top: 1px; }

/* --- Contaminantes: lo que la etiqueta no dice --- */
.contaminantes { text-align: left; }
.contaminantes h2 { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; margin: 0 0 6px; }
.contaminantes h2 .icono { width: 22px; height: 22px; color: #d9822b; }
.contaminantes-aviso { margin: 0 0 12px; font-size: 0.82rem; color: var(--texto-suave); line-height: 1.45; }
.contaminante { border: 1px solid var(--borde); border-radius: 16px; padding: 12px 14px; margin-bottom: 10px; background: #f6fcf8; }
.contaminante-tranquilo { background: #f4faf6; border-color: #d6ecdf; }
.contaminante summary { cursor: pointer; list-style: none; }
.contaminante summary::-webkit-details-marker { display: none; }
.contaminante summary strong { display: block; font-size: 0.95rem; }
.contaminante summary strong::after { content: " ›"; color: var(--texto-suave); }
.contaminante[open] summary strong::after { content: " ⌄"; }
.contaminante summary span { display: block; margin-top: 4px; font-size: 0.85rem; color: #4c5a51; line-height: 1.45; }
.contaminante p { font-size: 0.85rem; line-height: 1.5; margin: 10px 0 0; }
.contaminante-consejo { background: #fff; border-radius: 12px; padding: 8px 10px; }
.contaminante-fuentes { font-size: 0.76rem !important; color: var(--texto-suave); }

/* --- Análisis de laboratorio y pedidos --- */
.analisis-lab { text-align: left; border: 2px solid #cfe0f3; }
.analisis-lab-cabecera { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.analisis-lab h2 { margin: 0; font-size: 1.15rem; }
.sello-analizado { padding: 5px 11px; border-radius: 999px; background: #e3eefa; color: #2d5f96; font-size: 0.8rem; font-weight: 700; }
.analisis-tipo { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--texto-suave); margin: 14px 0 6px; }
.analisis-fila { border: 1px solid var(--borde); border-radius: 16px; padding: 12px 14px; margin-bottom: 8px; background: #fff; }
.analisis-fila-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.analisis-fila small { display: block; margin-top: 6px; color: var(--texto-suave); font-size: 0.78rem; }
.analisis-valor { font-weight: 800; white-space: nowrap; }
.analisis-valor.ok { color: #1e8f4e; }
.analisis-valor.medio { color: #d9822b; }
.analisis-valor.alto { color: #d62828; }
.analisis-barra { height: 7px; margin-top: 8px; border-radius: 999px; background: #eef0f2; overflow: hidden; }
.analisis-barra span { display: block; height: 100%; border-radius: 999px; }
.analisis-barra span.ok { background: #3aa665; }
.analisis-barra span.medio { background: #f2a93b; }
.analisis-barra span.alto { background: #d62828; }
.pedir-analisis { text-align: left; background: linear-gradient(135deg, #e8f1fb, #fff); border: 1px solid #d5e4f3; }
.pedir-analisis strong { font-size: 1.02rem; }
.pedir-analisis p { font-size: 0.86rem; color: #4c5a51; line-height: 1.45; margin: 6px 0 12px; }
.pedir-analisis form { margin: 0; }
.pedir-analisis-link { display: inline-block; margin-top: 10px; font-size: 0.85rem; font-weight: 700; }
.analisis-como { text-align: left; }
.analisis-pasos { padding-left: 20px; line-height: 1.5; font-size: 0.92rem; }
.analisis-pasos li { margin-bottom: 8px; }

/* El cartel de "Unite a la comunidad" tenía display:flex y eso anulaba el
   atributo hidden: quedaba siempre en la página, escondido abajo. */
.popup-comunidad-fondo[hidden] { display: none; }

/* --- Inicio: botón principal de escanear y rankings --- */
.boton-escanear {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  margin: 18px 0 4px; padding: 17px 20px; border: 0; border-radius: 999px; cursor: pointer;
  background: #1c2620; color: #fff; font: inherit; font-weight: 800; font-size: 1.05rem;
  box-shadow: 0 14px 28px -14px rgba(0, 0, 0, 0.6);
}
.boton-escanear .icono { width: 22px; height: 22px; }
.boton-escanear:active { transform: scale(0.98); }
.inicio-rankings { margin: 22px 0 6px; }
.inicio-rankings-cabecera { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.inicio-rankings-cabecera h2 { display: flex; align-items: center; gap: 8px; margin: 0; }
.inicio-rankings-cabecera h2 .icono { width: 22px; height: 22px; color: var(--dorado-oscuro); }
.inicio-rankings-cabecera a { font-weight: 700; font-size: 0.9rem; }
.inicio-rankings-carrusel {
  display: flex; gap: 10px; overflow-x: auto; padding: 12px 4px 14px; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.inicio-rankings-carrusel::-webkit-scrollbar { display: none; }
.inicio-ranking {
  --acento: var(--primario);
  flex: none; width: 128px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 4px;
  padding: 14px; border-radius: 20px; text-decoration: none; color: #fff;
  background: linear-gradient(150deg, var(--acento) 0%, color-mix(in srgb, var(--acento) 55%, #1f2a23) 100%);
  box-shadow: 0 12px 24px -14px color-mix(in srgb, var(--acento) 80%, transparent);
}
.inicio-ranking-icono {
  display: inline-flex; width: 34px; height: 34px; border-radius: 11px; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.22); margin-bottom: 8px;
}
.inicio-ranking-icono .icono { width: 18px; height: 18px; }
.inicio-ranking small { font-size: 0.72rem; font-weight: 700; opacity: 0.9; text-transform: uppercase; letter-spacing: 0.03em; }
.inicio-ranking strong { font-size: 1rem; line-height: 1.2; }

/* --- Puntaje para vos --- */
.para-vos {
  --pv-color: var(--primario);
  margin: 14px 0 4px; padding: 14px 16px; border-radius: 20px; text-align: left;
  background: color-mix(in srgb, var(--pv-color) 9%, #fff); border: 2px solid color-mix(in srgb, var(--pv-color) 45%, #fff);
}
.para-vos-bloqueado { --pv-color: #d62828; }
.para-vos-cabecera { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.para-vos-titulo { font-weight: 800; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--texto-suave); }
.para-vos-puntaje { display: flex; align-items: center; gap: 8px; }
.para-vos-puntaje strong { font-size: 1.5rem; font-family: 'Plus Jakarta Sans', sans-serif; }
.para-vos-bloqueado .para-vos-puntaje strong { font-size: 1.05rem; color: #b4201a; }
.para-vos-letra { display: inline-flex; width: 30px; height: 30px; border-radius: 9px; align-items: center; justify-content: center; color: #fff; font-weight: 800; }
.para-vos-letra[hidden] { display: none; }
.para-vos-motivos { list-style: none; padding: 0; margin: 10px 0 8px; display: flex; flex-direction: column; gap: 5px; font-size: 0.86rem; line-height: 1.35; }
.para-vos-motivos li { padding-left: 22px; position: relative; }
.para-vos-motivos li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.para-vos-motivos .pv-malo::before { content: "✕"; color: #d62828; }
.para-vos-motivos .pv-bueno::before { content: "✓"; color: #1e8f4e; }
.para-vos-motivos .pv-aviso::before { content: "!"; color: #d9822b; left: 4px; }
.para-vos-cambiar { font-size: 0.82rem; font-weight: 700; }
.boton-para-vos {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px auto 4px; max-width: 320px;
  padding: 12px 18px; border-radius: 999px; background: #e4eee7; color: var(--texto); font-weight: 700; text-decoration: none;
}
.boton-para-vos[hidden] { display: none; }
.boton-para-vos .icono { width: 18px; height: 18px; }

/* --- Naturales y a granel --- */
.nat-grupo { margin: 18px 0 8px; }
.nat-grupo h2 { padding: 0 4px; margin: 0 0 10px; }
.nat-grilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.nat-item {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 8px 8px 10px; border-radius: 18px; background: #fff; color: var(--texto); text-decoration: none;
  box-shadow: 0 8px 20px -14px rgba(20, 70, 45, 0.35); min-width: 0;
}
.nat-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }
.nat-nombre { font-size: 0.8rem; font-weight: 700; line-height: 1.2; }
.nat-puntaje { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; font-size: 0.85rem; }
.nat-puntaje .rk-letra { width: 22px; height: 22px; border-radius: 7px; font-size: 0.78rem; }
.nat-sin { color: var(--texto-suave); font-weight: 600; font-size: 0.75rem; }
.aviso-natural { margin: 12px 0 4px; padding: 10px 14px; border-radius: 14px; background: #eef5e8; color: #2f4d22; font-size: 0.82rem; line-height: 1.45; text-align: left; }
.aviso-natural strong { display: block; margin-bottom: 2px; }
.inicio-naturales {
  display: flex; align-items: center; gap: 12px; margin: 4px 4px 10px; padding: 12px 14px; border-radius: 20px;
  background: linear-gradient(135deg, #eef5e8, #fff); border: 1px solid #d9e8cf; color: var(--texto); text-decoration: none;
}
.inicio-naturales img { width: 54px; height: 54px; border-radius: 14px; object-fit: cover; flex: none; }
.inicio-naturales strong { display: block; }
.inicio-naturales small { color: var(--texto-suave); font-size: 0.8rem; }

/* "Para vos" más compacto */
.para-vos { margin: 10px 0 2px; padding: 9px 12px; border-radius: 14px; border-width: 1.5px; }
.para-vos-titulo { font-size: 0.7rem; }
.para-vos-puntaje strong { font-size: 1.1rem; }
.para-vos-bloqueado .para-vos-puntaje strong { font-size: 0.92rem; }
.para-vos-letra { width: 22px; height: 22px; border-radius: 7px; font-size: 0.78rem; }
.para-vos-motivos { margin: 6px 0 4px; gap: 3px; font-size: 0.78rem; }
.para-vos-motivos li { padding-left: 17px; }
.para-vos-cambiar { font-size: 0.74rem; }
.boton-para-vos { margin: 10px auto 2px; padding: 8px 14px; font-size: 0.85rem; max-width: 280px; }
.boton-para-vos .icono { width: 15px; height: 15px; }

/* --- Ingredientes que suman --- */
.suman { margin: 12px 0 4px; padding: 12px 14px; border-radius: 16px; background: #f1faf4; border: 1px solid #d3ecdc; text-align: left; }
.suman h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 0.92rem; color: #1e7a45; }
.suman h3 .icono { width: 17px; height: 17px; }
.suman ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.suman li { font-size: 0.82rem; line-height: 1.4; }
.suman li strong { color: #1f5c3a; }
.suman li span { color: #4c5a51; }

/* --- Contacto --- */
.contacto select, .contacto textarea { width: 100%; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--borde); font: inherit; background: #fbfdfb; }
.contacto textarea { resize: vertical; }
.contacto small { color: var(--texto-suave); font-weight: 400; }
.campo-oculto { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.link-reportar { display: block; width: 100%; text-align: center; font-size: 0.85rem; margin-top: 4px; color: var(--texto-suave); }

/* ===== Comparar (rediseño) ===== */
.cmp h1 { margin: 2px 0 6px; font-size: 1.7rem; }
.cmp-kicker { margin: 0; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--primario-oscuro); }
.cmp-duelo { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 14px; align-items: stretch; }
.cmp-vs {
  position: absolute; left: 50%; top: 58px; transform: translateX(-50%); z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: #1c2620; color: #fff; font-weight: 800; font-size: .78rem; letter-spacing: .02em;
  box-shadow: 0 0 0 4px #fff;
}
.cmp-col {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  padding: 14px 10px 12px; border-radius: 22px; background: #fff; border: 2px solid var(--borde); min-width: 0;
}
.cmp-col.cmp-gana { border-color: #1e8f4e; background: linear-gradient(180deg, #f1faf4, #fff 60%); box-shadow: 0 14px 30px -18px rgba(30, 143, 78, .55); }
.cmp-corona {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px;
  background: #1e8f4e; color: #fff; font-size: .68rem; font-weight: 800;
}
.cmp-corona .icono { width: 13px; height: 13px; }
.cmp-foto img { width: 92px; height: 92px; object-fit: contain; border-radius: 16px; background: #fff; display: block; }
.cmp-nombre { font-weight: 700; font-size: .9rem; line-height: 1.25; color: var(--texto); text-decoration: none; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cmp-marca { font-size: .74rem; color: var(--texto-suave); }
.cmp-nota { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; }
.cmp-nota strong { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 2rem; line-height: 1; color: var(--c); }
.cmp-nota span { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--c); color: #fff; font-weight: 800; font-size: .85rem; }
.cmp-nota.chica strong { font-size: 1.4rem; }
.cmp-veredicto { font-size: .76rem; color: var(--texto-suave); font-weight: 600; }
.cmp-para-vos { margin-top: 2px; padding: 3px 9px; border-radius: 999px; font-size: .72rem; font-weight: 600;
  background: color-mix(in srgb, var(--c, #999) 14%, #fff); color: var(--texto); }
.cmp-para-vos b { color: var(--c); }
.cmp-para-vos.no-apto { background: #ffe3e3; color: #b42318; font-weight: 800; }
.cmp-sellos { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 4px; }
.cmp-sello { padding: 3px 8px; border-radius: 999px; font-size: .66rem; font-weight: 700; }
.cmp-sello.oct { background: #1c2620; color: #fff; }
.cmp-sello.ok { background: #e3f4e8; color: #1e6b3c; }
.cmp-sello.ultra { background: #ffe9dc; color: #a1481c; }
.cmp-sello.restr { background: #fff3d9; color: #8a5a00; }

.cmp-veredicto-caja { margin-top: 16px; padding: 14px 16px; border-radius: 20px; background: #f1faf4; border: 1px solid #cfead8; }
.cmp-veredicto-caja.parejo { background: var(--dorado-suave); border-color: #f5dfa8; }
.cmp-veredicto-titulo { margin: 0 0 6px; font-size: 1.05rem; line-height: 1.3; }
.cmp-veredicto-titulo strong { color: #1e6b3c; }
.cmp-veredicto-sub { margin: 8px 0 4px; font-size: .78rem; color: var(--texto-suave); font-weight: 700; }
.cmp-ventajas { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.cmp-ventajas li { display: flex; align-items: flex-start; gap: 7px; font-size: .88rem; line-height: 1.3; }
.cmp-ventajas li .icono { width: 17px; height: 17px; flex: none; color: #1e8f4e; margin-top: 1px; }
.cmp-ventajas small { color: var(--texto-suave); font-size: .76rem; white-space: nowrap; }
.cmp-a-favor { margin-top: 10px; padding-top: 8px; border-top: 1px dashed #cfead8; }
.cmp-a-favor .cmp-ventajas li .icono { color: var(--texto-suave); }
.cmp-aviso-vos { margin: 10px 0 0; padding: 8px 11px; border-radius: 12px; background: #fff; font-size: .82rem; font-weight: 700; color: var(--primario-oscuro); }

.cmp-nutri { margin-top: 16px; }
.cmp-nutri-cabecera { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px; margin-bottom: 6px; }
.cmp-nutri h2 { margin: 0; font-size: 1rem; }
.cmp-leyenda { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .72rem; color: var(--texto-suave); min-width: 0; }
.cmp-leyenda span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.cmp-punto { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
.cmp-punto.a, .cmp-barra.a { background: #1f2a23; }
.cmp-punto.b, .cmp-barra.b { background: var(--primario); }
.cmp-fila { padding: 9px 0; border-bottom: 1px solid #e6f2ea; }
.cmp-fila:last-of-type { border-bottom: 0; }
.cmp-fila-titulo { font-size: .8rem; font-weight: 700; margin-bottom: 5px; }
.cmp-barra-linea { display: grid; grid-template-columns: minmax(0, 1fr) 92px; align-items: center; gap: 8px; margin: 3px 0; }
.cmp-barra-pista { height: 10px; border-radius: 999px; background: #eaf5ee; overflow: hidden; }
.cmp-barra { height: 100%; border-radius: 999px; opacity: .55; }
.cmp-barra-linea.es-mejor .cmp-barra { opacity: 1; }
.cmp-valor { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; font-size: .82rem; font-variant-numeric: tabular-nums; color: var(--texto-suave); }
.cmp-barra-linea.es-mejor .cmp-valor { color: #1e6b3c; font-weight: 800; }
.cmp-valor .icono { width: 15px; height: 15px; color: #1e8f4e; }
.cmp-nota { font-size: .74rem; color: var(--texto-suave); margin-top: 10px; }
.cmp-nota .icono { width: 13px; height: 13px; vertical-align: -2px; color: #1e8f4e; }

.cmp-acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.cmp-acciones .boton { flex: 1 1 0; min-width: 0; white-space: nowrap; justify-content: center; padding-left: 12px; padding-right: 12px; }
.cmp-invertir { flex: 1 1 100%; text-align: center; padding: 4px; font-size: .82rem; font-weight: 700; color: var(--texto-suave); text-decoration: none; }

.cmp-duelo-vacio .cmp-vs { top: 50%; transform: translate(-50%, -50%); }
.cmp-hueco { justify-content: center; min-height: 150px; border-style: dashed; background: #fbfdfb; color: var(--texto-suave); font-size: .82rem; font-weight: 600; }
.cmp-hueco.activo { border-color: var(--primario); color: var(--primario-oscuro); background: var(--primario-suave); }
.cmp-hueco-num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px dashed currentColor; font-weight: 800; }
.cmp-elegido { justify-content: center; }
.cmp-elegido .cmp-foto img { width: 72px; height: 72px; }
.cmp-escanear { display: flex; justify-content: center; margin-top: 14px; background: #1c2620; }
.cmp-buscador { margin-top: 14px; }
.cmp-label { display: flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 700; margin-bottom: 6px; }
.cmp-label .icono { width: 16px; height: 16px; }
.cmp-buscador input { width: 100%; }
.cmp-sin-resultados { padding: 10px; font-size: .84rem; color: var(--texto-suave); }
.cmp-sugeridos { margin-top: 18px; }
.cmp-sugeridos h2 { font-size: 1rem; margin: 0 0 8px; }
.cmp-sugeridos-grilla { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cmp-sugerido { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 6px 8px;
  border-radius: 16px; background: #fff; border: 1px solid var(--borde); text-decoration: none; color: var(--texto); min-width: 0; }
.cmp-sugerido:hover { border-color: var(--primario); }
.cmp-sugerido-foto img { width: 58px; height: 58px; object-fit: contain; display: block; }
.cmp-sugerido-nombre { font-size: .72rem; line-height: 1.25; text-align: center; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cmp-sugerido .letra-chica { position: absolute; top: 6px; right: 6px; }

/* Aviso en el inicio cuando se escanea el segundo producto */
.aviso-comparar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; padding: 10px 14px;
  border-radius: 16px; background: var(--primario-suave); color: var(--texto); font-size: .86rem; font-weight: 600; }
.aviso-comparar a { color: var(--primario-oscuro); font-weight: 800; white-space: nowrap; }
.inicio-comparar { background: linear-gradient(135deg, #eef9f2, #fff); border-color: #d0edda; }
.inicio-comparar .inicio-comparar-icono { width: 54px; height: 54px; border-radius: 14px; flex: none; display: grid; place-items: center;
  background: #1c2620; color: #fff; font-weight: 800; font-size: .9rem; }
@media (max-width: 380px) {
  .cmp-foto img { width: 74px; height: 74px; }
  .cmp-nota strong { font-size: 1.6rem; }
  .cmp-barra-linea { grid-template-columns: minmax(0, 1fr) 80px; }
  .cmp-sugeridos-grilla { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Páginas de error (404 / 500) */
.pagina-error { text-align: center; padding-top: 30px; padding-bottom: 26px; }
.pagina-error-mascota { width: 96px; height: 96px; border-radius: 50%; background: var(--primario-suave); object-fit: cover; }
.pagina-error-codigo { margin: 10px 0 0; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 2.6rem; font-weight: 800; color: var(--primario); line-height: 1; }
.pagina-error h1 { margin: 6px 0 6px; font-size: 1.4rem; }
.pagina-error-acciones { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.pagina-error-acciones .boton { flex: 1 1 150px; justify-content: center; }
.pagina-error-nota { margin-top: 16px; font-size: .82rem; color: var(--texto-suave); }
.pagina-error-nota a { color: var(--primario-oscuro); font-weight: 700; }

/* --- Insignias de logro (20 escaneos, 4 aportes) -------------------------- */
.tarjeta-logros { margin-top: 14px; }
.grilla-logros { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.logro {
  border-radius: 18px; padding: 10px 10px 14px; text-align: center;
  border: 1px solid var(--borde); background: #fff;
}
.logro-verde.ganada { background: linear-gradient(180deg, #eaf7ee 0%, #fff 70%); border-color: rgba(30, 143, 78, 0.35); }
.logro-azul.ganada { background: linear-gradient(180deg, #e8f0fd 0%, #fff 70%); border-color: rgba(47, 111, 219, 0.35); }
.logro-imagen { position: relative; }
.logro-imagen img { width: 100%; height: auto; max-width: 190px; border-radius: 14px; display: block; margin: 0 auto; }
.logro.ganada .logro-imagen img { box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.55); }
.logro.bloqueada .logro-imagen img { filter: grayscale(1) brightness(0.8) contrast(0.9); opacity: 0.55; }
.logro-candado {
  position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: rgba(43, 33, 24, 0.72);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}
.logro-titulo { margin: 10px 0 2px; font-size: 1rem; }
.logro-estado { margin: 0; font-size: 0.85rem; font-weight: 700; color: #1e8f4e; }
.logro-azul .logro-estado { color: #2f6fdb; }
.logro-desc { margin: 0 0 8px; font-size: 0.82rem; color: var(--texto-suave); line-height: 1.35; }
.logro-barra { height: 8px; border-radius: 99px; background: #deede3; overflow: hidden; }
.logro-barra span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #1e8f4e, #7cb518); }
.logro-azul .logro-barra span { background: linear-gradient(90deg, #2f6fdb, #58a6ff); }
.logro-progreso { margin: 6px 0 0; font-size: 0.8rem; font-weight: 700; color: var(--texto-suave); }

.celebracion-fondo {
  position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 16px;
  background: rgba(8, 24, 14, 0.9); opacity: 0; transition: opacity 0.25s ease; overflow: hidden;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.celebracion-azul { background: rgba(6, 16, 40, 0.9); }
.celebracion-fondo.visible { opacity: 1; }
.celebracion {
  position: relative; z-index: 2; width: min(360px, 100%); text-align: center; color: #fff;
  transform: scale(0.6) translateY(20px); transition: transform 0.45s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.celebracion-fondo.visible .celebracion { transform: none; }
.celebracion-etiqueta {
  display: inline-block; margin: 0 0 10px; padding: 6px 16px; border-radius: 99px;
  font-weight: 800; letter-spacing: 0.02em; color: #1f2a23; background: linear-gradient(180deg, #ffd35a, #ffb020);
  box-shadow: 0 6px 18px rgba(255, 176, 32, 0.45);
}
.celebracion-brillo { position: relative; width: min(250px, 72vw); margin: 0 auto; }
.celebracion-brillo::before {
  content: ""; position: absolute; inset: -30%; z-index: -1; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 10%, rgba(124, 181, 24, 0.55) 12%, transparent 16% 35%,
    rgba(88, 166, 255, 0.55) 37%, transparent 41% 60%, rgba(255, 211, 90, 0.6) 62%, transparent 66% 85%,
    rgba(124, 181, 24, 0.55) 87%, transparent 91%);
  animation: celebracion-giro 6s linear infinite; filter: blur(2px);
}
.celebracion-brillo img {
  width: 100%; height: auto; display: block; border-radius: 18px;
  box-shadow: 0 18px 50px -12px rgba(0, 0, 0, 0.7); animation: celebracion-latido 1.6s ease-in-out 0.5s 2;
}
.celebracion h2 { margin: 14px 0 4px; font-size: 1.45rem; color: #fff; }
.celebracion-texto { margin: 0 0 16px; opacity: 0.92; }
.celebracion-acciones { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.celebracion-acciones .secundario { background: rgba(255, 255, 255, 0.14); color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.celebracion-confeti { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.confeti {
  position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; opacity: 0.95;
  animation-name: confeti-cae; animation-timing-function: cubic-bezier(0.3, 0.6, 0.6, 1); animation-fill-mode: forwards;
}
@keyframes confeti-cae {
  to { transform: translate(var(--deriva, 0), 105vh) rotate(var(--giro, 360deg)); opacity: 0.2; }
}
@keyframes celebracion-giro { to { transform: rotate(360deg); } }
@keyframes celebracion-latido { 50% { transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) {
  .celebracion, .celebracion-fondo { transition: none; }
  .celebracion-brillo::before, .celebracion-brillo img { animation: none; }
}

/* Sello "natural, la porción importa" en el inicio (aceite de oliva, manteca, frutos secos) */
.foto-mini img.sello-natural-mini {
  position: absolute; top: 6px; left: 6px; width: 40px; height: 40px; object-fit: contain;
  border-radius: 50%; background: #fff; padding: 0;
  box-shadow: 0 3px 10px -3px rgba(60, 90, 40, 0.55); animation: none; z-index: 2;
}
.etiqueta-natural-mini {
  display: block; margin-top: 3px; font-size: 0.68rem; font-weight: 700; line-height: 1.2;
  color: #3f7a2f;
}

/* --- Nivel y puntos --------------------------------------------------------- */
.tarjeta-nivel { margin-top: 14px; display: flex; gap: 14px; align-items: flex-start;
  background: linear-gradient(120deg, #eaf7ee 0%, #eef8f1 60%, #ffe8ef 100%); border: 1px solid rgba(30, 143, 78, 0.25); }
.nivel-mascota { width: 64px; height: 64px; flex-shrink: 0; }
.nivel-cuerpo { flex: 1; min-width: 0; }
.nivel-numero { margin: 0; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: #1e8f4e; }
.nivel-nombre { margin: 2px 0 8px; font-size: 1.25rem; }
.nivel-barra { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.85); overflow: hidden; }
.nivel-barra span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #1e8f4e, #2aa35e 65%, #ff5c84); }
.nivel-detalle { margin: 6px 0 0; font-size: 0.85rem; color: var(--texto-suave); }
.nivel-como { margin-top: 8px; font-size: 0.85rem; }
.nivel-como summary { cursor: pointer; font-weight: 700; color: #2f6fdb; }
.nivel-como ul { margin: 6px 0 0; padding-left: 1.1rem; line-height: 1.5; }

/* --- Juego "¿Adiviná la letra?" -------------------------------------------- */
html.sin-scroll, html.sin-scroll body { overflow: hidden; }
.juego-fondo {
  position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; padding: 16px;
  background: linear-gradient(160deg, rgba(10, 44, 24, 0.96), rgba(8, 22, 52, 0.96));
  opacity: 0; transition: opacity 0.2s ease;
}
.juego-fondo.visible { opacity: 1; }
.juego { width: min(380px, 100%); text-align: center; color: #fff; transform: translateY(16px); transition: transform 0.3s ease; }
.juego-fondo.visible .juego { transform: none; }
.juego-etiqueta { display: inline-block; margin: 0 0 12px; padding: 5px 14px; border-radius: 99px; font-size: 0.8rem; font-weight: 800;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.25); }
.juego-producto { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.juego-producto img { width: 120px; height: 120px; object-fit: contain; background: #fff; border-radius: 18px; padding: 6px; }
.juego-nombre { font-weight: 700; font-size: 0.95rem; opacity: 0.92; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.juego h2 { margin: 14px 0 12px; font-size: 1.3rem; color: #fff; }
.juego-letras { display: flex; justify-content: center; gap: 8px; }
.juego-letra {
  width: 56px; height: 56px; border-radius: 16px; border: 3px solid rgba(255, 255, 255, 0.9); cursor: pointer;
  font-size: 1.6rem; font-weight: 900; color: #fff; background: var(--color-letra);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.25); transition: transform 0.12s ease, opacity 0.2s ease;
}
.juego-letra:hover:not(:disabled), .juego-letra:focus-visible { transform: translateY(-3px); }
.juego-letra:disabled { opacity: 0.35; cursor: default; }
.juego-letra.correcta { opacity: 1; transform: scale(1.15); box-shadow: 0 0 0 4px #ffd35a, 0 6px 0 rgba(0, 0, 0, 0.25); }
.juego-letra.elegida-mal { opacity: 0.8; text-decoration: line-through; }
.juego-resultado { margin-top: 16px; animation: juego-aparece 0.35s ease; }
.juego-letra-real { display: none; }
.juego-mensaje { margin: 0; font-size: 1.15rem; font-weight: 800; }
.juego-acierto .juego-mensaje { color: #a6f07a; }
.juego-casi .juego-mensaje { color: #ffd35a; }
.juego-puntos { margin: 4px 0 0; font-weight: 700; opacity: 0.9; }
.juego-extra { margin: 6px 0 0; font-size: 0.85rem; opacity: 0.8; }
.juego-extra:empty { display: none; }
.juego-seguir { margin-top: 16px; }
.juego [hidden] { display: none !important; }
.juego-saltar { margin-top: 16px; background: none; border: 0; color: rgba(255, 255, 255, 0.75); text-decoration: underline; cursor: pointer; font: inherit; }
@keyframes juego-aparece { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: none; } }

.aviso-puntos {
  position: fixed; left: 50%; bottom: 88px; z-index: 8000; max-width: calc(100% - 32px);
  transform: translate(-50%, 20px); opacity: 0; transition: all 0.3s ease;
  padding: 10px 16px; border-radius: 99px; font-weight: 800; font-size: 0.88rem; color: #fff; text-align: center;
  background: linear-gradient(90deg, #1e8f4e, #2aa35e 65%, #ff5c84); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.5);
}
.aviso-puntos.visible { transform: translate(-50%, 0); opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .juego-fondo, .juego, .aviso-puntos, .juego-letra { transition: none; }
  .juego-resultado { animation: none; }
}

/* === Comunidad: red social de hábitos (verde Chequeá + acento rosa) ========= */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.com-pantalla {
  --verde: #1e8f4e; --verde-2: #2aa35e; --verde-suave: #eaf6ee; --rosa: #ff4d7a; --rosa-suave: #ffe8ef;
  padding-bottom: 24px;
}
/* Banner de saludo */
.com-banner {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; margin-bottom: 14px;
  padding: 18px 16px; border-radius: 26px; color: #fff; text-decoration: none;
  background: var(--degrade);
  box-shadow: 0 16px 30px -18px rgba(23, 138, 71, 0.9);
}
.com-banner-hojas { position: absolute; right: -6px; bottom: -8px; width: 130px; height: 110px; fill: rgba(255, 255, 255, 0.14); pointer-events: none; }
.com-banner-avatar {
  position: relative; width: 60px; height: 60px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  font-size: 1.6rem; font-weight: 900; color: var(--verde); background: #fff; border: 3px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 3px var(--rosa); object-fit: contain;
}
.com-banner-texto { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.com-banner-texto h1 { margin: 0; font-size: 1.3rem; line-height: 1.15; color: #fff; }
.com-banner-texto span { font-size: 0.9rem; line-height: 1.35; opacity: 0.95; }
.com-banner-flecha { position: relative; font-size: 2rem; line-height: 1; opacity: 0.9; }
/* Buscador y pastillas */
.com-buscador {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 12px 16px; border-radius: 99px;
  background: #fff; border: 1.5px solid #e3eee6; box-shadow: 0 6px 14px -12px rgba(0, 0, 0, 0.3);
}
.com-buscador .icono { width: 20px; height: 20px; color: var(--verde); flex-shrink: 0; }
.com-buscador input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 0.95rem; color: var(--texto); }
.com-pills { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 14px; scrollbar-width: none; }
.com-pills::-webkit-scrollbar { display: none; }
.com-pills-envuelve { flex-wrap: wrap; overflow: visible; padding-bottom: 4px; }
.com-pills-centradas { justify-content: flex-start; }
.com-pill {
  flex-shrink: 0; padding: 9px 16px; border-radius: 99px; font-size: 0.88rem; font-weight: 700; text-decoration: none; cursor: pointer;
  color: #276b43; background: #fff; border: 1.5px solid #d6eadc; transition: background 0.15s ease, color 0.15s ease;
}
.com-pill.activo, .com-pill-radio:has(input:checked) { color: #fff; background: var(--grupo, var(--verde)); border-color: var(--grupo, var(--verde)); box-shadow: 0 6px 14px -8px rgba(30, 143, 78, 0.9); }
.com-pill-radio input { position: absolute; opacity: 0; pointer-events: none; }
.com-pill-radio:focus-within { outline: 2px solid var(--verde); outline-offset: 2px; }
/* Secciones */
.com-seccion { margin-bottom: 16px; }
.com-seccion-titulo { display: flex; align-items: baseline; justify-content: space-between; margin: 4px 2px 10px; }
.com-seccion-titulo h2 { margin: 0; font-size: 1.1rem; }
.com-seccion-titulo a, .com-ver-todos { font-size: 0.85rem; font-weight: 800; color: var(--verde); text-decoration: none; }
.com-ver-todos { display: block; text-align: right; margin: 2px 4px 0; }
/* Carrusel de grupos (tarjetas grandes) */
.com-carrusel-grupos { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 8px; scrollbar-width: none; }
.com-carrusel-grupos::-webkit-scrollbar { display: none; }
.grupo-hero-card {
  position: relative; flex: 0 0 84%; max-width: 360px; min-height: 176px; border-radius: 24px; overflow: hidden; scroll-snap-align: start;
  color: #fff; box-shadow: 0 14px 26px -16px rgba(0, 0, 0, 0.55);
}
.grupo-hero-card-fondo, .grupo-hero-card-fondo .portada-grupo { position: absolute; inset: 0; width: 100%; height: 100%; }
.grupo-hero-card-fondo .portada-grupo g[transform] { transform: translate(245px, 92px) scale(0.62); }
.grupo-hero-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, 0.28) 0%, transparent 70%); pointer-events: none; }
.grupo-hero-card-texto { position: relative; z-index: 1; padding: 42px 16px 16px; max-width: 64%; }
.grupo-hero-card h2 { margin: 0 0 4px; font-size: 1.35rem; line-height: 1.1; }
.grupo-hero-card h2 a { color: #fff; text-decoration: none; }
.grupo-hero-card p { margin: 0 0 12px; font-size: 0.82rem; line-height: 1.3; opacity: 0.95; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chip-miembros {
  position: absolute; top: 12px; left: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 99px; font-size: 0.78rem; font-weight: 800; color: #fff; background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
}
.chip-miembros .icono { width: 14px; height: 14px; }
/* Botón Unirme */
.form-unirme { margin: 0; }
.boton-unirme {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 18px; border-radius: 99px; border: 0; cursor: pointer;
  font: inherit; font-weight: 800; font-size: 0.9rem; text-decoration: none; color: var(--rosa); background: #fff;
  box-shadow: 0 6px 14px -8px rgba(0, 0, 0, 0.45); transition: transform 0.1s ease;
}
.boton-unirme .icono { width: 17px; height: 17px; }
.boton-unirme:active { transform: scale(0.96); }
.boton-unirme.es-miembro { color: #fff; background: rgba(255, 255, 255, 0.25); box-shadow: inset 0 0 0 2px #fff; }
.com-pantalla > .com-vacio .boton-unirme, .lista-grupos .boton-unirme, .grupo-promo .boton-unirme, .tarjeta-grupo .boton-unirme {
  color: #fff; background: var(--verde);
}
.grupo-promo .boton-unirme.es-miembro, .tarjeta-grupo .boton-unirme.es-miembro { color: var(--verde); background: var(--verde-suave); box-shadow: none; }
.boton-unirme.grande { width: 100%; padding: 15px 18px; font-size: 1.05rem; color: #fff; background: var(--verde); box-shadow: 0 6px 0 #16703c; }
.boton-unirme.grande.es-miembro { color: var(--verde); background: var(--verde-suave); box-shadow: 0 0 0 2px var(--verde) inset; }
/* Reto de la semana */
.com-reto {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 14px; border-radius: 22px;
  background: linear-gradient(120deg, #fff 0%, var(--rosa-suave) 100%); border: 1.5px solid #ffd3df;
}
.com-reto-icono { width: 44px; height: 44px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--rosa); }
.com-reto-icono .icono { width: 24px; height: 24px; }
.com-reto-texto { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 0.88rem; line-height: 1.3; }
.com-reto-texto strong { color: var(--rosa); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.com-reto-texto small { color: var(--texto-suave); }
.com-reto form { margin: 0; }
.com-reto-boton {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 10px; border-radius: 16px; border: 0; cursor: pointer;
  font: inherit; font-size: 0.72rem; font-weight: 800; color: var(--rosa); background: #fff; box-shadow: 0 4px 10px -6px rgba(255, 77, 122, 0.7);
}
.com-reto-boton .icono { width: 22px; height: 22px; }
.com-reto-boton.cumplido { color: #fff; background: var(--verde); }
/* Tarjeta de publicación */
.com-pantalla .feed-comunidad { display: flex; flex-direction: column; gap: 14px; }
.com-pantalla .tarjeta-post, .tarjeta-post {
  border-radius: 24px; padding: 14px; background: #fff; border: 1px solid #edf2ee; box-shadow: 0 10px 24px -20px rgba(0, 0, 0, 0.45);
}
.cabecera-post { display: flex; align-items: center; gap: 10px; }
.avatar-post {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-weight: 900; color: #fff;
  background: var(--degrade); box-shadow: 0 0 0 2px #fff, 0 0 0 4px #ffc1d2;
}
.avatar-chico { width: 30px; height: 30px; font-size: 0.8rem; box-shadow: 0 0 0 2px #fff; }
.datos-autor-post { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.autor-post { font-weight: 800; }
.fecha-post { font-size: 0.8rem; color: var(--texto-suave); }
.grupo-en-post { color: var(--grupo, #1e8f4e); font-weight: 700; text-decoration: none; }
.menu-post { position: relative; }
.menu-post summary { list-style: none; cursor: pointer; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--texto-suave); }
.menu-post summary::-webkit-details-marker { display: none; }
.menu-post summary .icono { width: 20px; height: 20px; }
.menu-post[open] summary { background: #f3f5f3; }
.menu-post-opciones {
  position: absolute; right: 0; top: 38px; z-index: 5; width: 220px; padding: 8px; border-radius: 16px; background: #fff;
  box-shadow: 0 16px 34px -12px rgba(0, 0, 0, 0.35); display: flex; flex-direction: column; gap: 6px;
}
.menu-post-opciones form { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.menu-post-opciones select { width: 100%; padding: 8px; border-radius: 10px; border: 1px solid #e3e3e3; font: inherit; font-size: 0.85rem; }
.opcion-menu-post { display: flex; align-items: center; gap: 6px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: #f6f6f6; font: inherit; font-size: 0.88rem; font-weight: 700; cursor: pointer; text-align: left; }
.opcion-menu-post .icono { width: 16px; height: 16px; }
.texto-post { margin: 12px 2px 10px; font-size: 1rem; line-height: 1.45; white-space: pre-line; }
.marco-imagen-post { position: relative; margin-bottom: 10px; }
.marco-imagen-post .imagen-post { width: 100%; max-height: 360px; object-fit: cover; border-radius: 20px; display: block; margin: 0; }
.chip-sobre-foto {
  position: absolute; left: 10px; bottom: 10px; padding: 5px 12px; border-radius: 99px; font-size: 0.78rem; font-weight: 800;
  color: var(--verde); background: rgba(255, 255, 255, 0.94);
}
.acciones-post { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; padding-top: 4px; border-top: 0; }
.acciones-post form { margin: 0; }
.acciones-post-espacio { flex: 1; }
.boton-reaccion {
  display: inline-flex; align-items: center; gap: 5px; padding: 7px 9px; border-radius: 99px; border: 0; background: transparent;
  font: inherit; font-weight: 700; font-size: 0.9rem; color: #5d6a61; text-decoration: none; cursor: pointer;
}
.boton-reaccion .icono-reaccion { width: 22px; height: 22px; }
.boton-reaccion.activo { color: var(--verde); background: var(--verde-suave); }
.reaccion-corazon.activo { color: var(--rosa); background: var(--rosa-suave); }
.reaccion-corazon.activo .icono-reaccion { fill: currentColor; }
.boton-guardar.activo { color: var(--rosa); background: transparent; }
.boton-guardar.activo .icono-reaccion { fill: currentColor; }
.boton-comentar {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 99px; font-size: 0.85rem; font-weight: 800;
  color: var(--verde); border: 1.5px solid #cfe6d6; text-decoration: none;
}
.boton-comentar .icono { width: 16px; height: 16px; }
.vista-previa-comentarios {
  display: flex; gap: 10px; margin-top: 10px; padding: 12px; border-radius: 18px; background: var(--verde-suave, #eaf6ee);
  text-decoration: none; color: var(--texto);
}
.vista-previa-cuerpo { display: flex; flex-direction: column; gap: 3px; font-size: 0.9rem; min-width: 0; }
.autor-comentario { font-weight: 800; }
.autor-comentario small { font-weight: 500; color: var(--texto-suave); margin-left: 4px; }
.vista-previa-mas { display: inline-flex; align-items: center; gap: 4px; color: var(--texto-suave); font-weight: 700; }
.vista-previa-mas .icono { width: 14px; height: 14px; }
/* Promo de grupo dentro del feed */
.grupo-promo { display: flex; gap: 12px; padding: 12px; border-radius: 24px; background: #fff; border: 1px solid #edf2ee; box-shadow: 0 10px 24px -20px rgba(0, 0, 0, 0.45); }
.grupo-promo-portada { flex: 0 0 42%; border-radius: 18px; overflow: hidden; min-height: 120px; }
.grupo-promo-portada .portada-grupo { width: 100%; height: 100%; display: block; }
.grupo-promo-texto { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.chip-grupo { padding: 3px 10px; border-radius: 99px; font-size: 0.75rem; font-weight: 800; color: #fff; background: var(--rosa); }
.grupo-promo h3 { margin: 2px 0 0; font-size: 1.02rem; }
.grupo-promo h3 a { color: var(--texto); text-decoration: none; }
.grupo-promo p { margin: 0 0 6px; display: inline-flex; align-items: center; gap: 4px; font-size: 0.82rem; color: var(--texto-suave); }
.grupo-promo p .icono { width: 15px; height: 15px; }
/* Botón flotante */
.com-fab {
  position: fixed; right: 18px; bottom: calc(104px + env(safe-area-inset-bottom, 0px)); z-index: 14; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #ff6a8e, var(--rosa));
  box-shadow: 0 12px 24px -8px rgba(255, 77, 122, 0.8); border: 3px solid #fff;
}
.com-fab .icono { width: 28px; height: 28px; }
/* Vacío */
.com-vacio { text-align: center; padding: 24px 16px; border-radius: 24px; background: #fff; border: 1.5px dashed #d6eadc; }
.com-vacio img { margin: 0 auto 8px; display: block; }
.com-vacio p { margin: 0 0 12px; color: var(--texto-suave); }
.com-resultados-busqueda { margin: -4px 4px 12px; font-size: 0.9rem; color: var(--texto-suave); }
/* Subcabecera con volver */
.com-subcabecera { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.com-subcabecera h1 { flex: 1; margin: 0; text-align: center; font-size: 1.25rem; }
.com-subcabecera-espacio { width: 42px; }
.com-volver { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--texto); background: #fff; box-shadow: 0 6px 14px -10px rgba(0, 0, 0, 0.5); }
.com-volver .icono { width: 22px; height: 22px; }
/* Pantalla de grupos */
.grilla-grupos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tarjeta-grupo { border-radius: 22px; overflow: hidden; background: #fff; border: 1px solid #edf2ee; box-shadow: 0 10px 22px -18px rgba(0, 0, 0, 0.5); display: flex; flex-direction: column; }
.tarjeta-grupo-portada { position: relative; display: block; aspect-ratio: 16 / 10; }
.tarjeta-grupo-portada .portada-grupo { width: 100%; height: 100%; display: block; }
.tarjeta-grupo-cuerpo { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tarjeta-grupo-cuerpo h3 { margin: 0; font-size: 0.98rem; line-height: 1.2; }
.tarjeta-grupo-cuerpo h3 a { color: var(--texto); text-decoration: none; }
.tarjeta-grupo-cuerpo p { margin: 0; font-size: 0.78rem; line-height: 1.35; color: var(--texto-suave); flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tarjeta-grupo-cuerpo .boton-unirme { width: 100%; }
.lista-grupos { display: flex; flex-direction: column; gap: 10px; }
.fila-grupo { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 20px; background: #fff; border: 1px solid #edf2ee; text-decoration: none; color: var(--texto); }
.fila-grupo-portada { width: 74px; height: 74px; border-radius: 16px; overflow: hidden; flex-shrink: 0; }
.fila-grupo-portada .portada-grupo { width: 100%; height: 100%; display: block; }
.fila-grupo-texto { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.fila-grupo-texto small { display: inline-flex; align-items: center; gap: 4px; color: var(--texto-suave); }
.fila-grupo-texto small .icono { width: 14px; height: 14px; }
.fila-grupo-flecha { font-size: 1.6rem; color: var(--texto-suave); }
/* Portada del grupo */
.grupo-hero { position: relative; margin: -4px -4px 16px; }
.grupo-hero-portada { height: 210px; border-radius: 0 0 28px 28px; overflow: hidden; }
.grupo-hero-portada .portada-grupo { width: 100%; height: 100%; display: block; }
.grupo-hero-volver { position: absolute; top: 12px; left: 12px; }
.grupo-hero-tarjeta { position: relative; margin: -46px 8px 0; padding: 44px 16px 16px; border-radius: 26px; background: #fff; box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.5); display: flex; flex-direction: column; gap: 8px; }
.grupo-hero-icono { position: absolute; top: -34px; left: 16px; width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--grupo); border: 4px solid #fff; }
.grupo-hero-icono .icono { width: 32px; height: 32px; }
.grupo-hero-tarjeta h1 { margin: 0; font-size: 1.5rem; }
.grupo-hero-miembros { margin: 0; color: var(--texto-suave); }
.grupo-hero-miembros strong { color: var(--texto); }
.grupo-hero-desc { margin: 0; line-height: 1.45; }
.pila-avatares { display: flex; align-items: center; }
.pila-avatares .avatar-post { margin-left: -8px; }
.pila-avatares .avatar-post:first-child { margin-left: 0; }
.pila-mas { margin-left: 6px; padding: 3px 9px; border-radius: 99px; font-size: 0.8rem; font-weight: 800; color: var(--verde); background: var(--verde-suave); }
.boton-publicar-grupo { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 11px; border-radius: 99px; font-weight: 800; color: var(--rosa); background: var(--rosa-suave); text-decoration: none; }
/* Crear publicación */
.form-publicar { display: flex; flex-direction: column; gap: 14px; }
.publicar-caja { position: relative; display: flex; gap: 10px; padding: 14px 14px 52px; border-radius: 24px; background: #fff; border: 1.5px solid #e3eee6; }
.publicar-caja textarea { flex: 1; min-height: 130px; border: 0; outline: none; resize: vertical; font: inherit; font-size: 1rem; background: transparent; }
.publicar-foto-boton { position: absolute; right: 12px; bottom: 10px; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: var(--verde); background: var(--verde-suave); cursor: pointer; }
.publicar-foto-boton .icono { width: 24px; height: 24px; }
.publicar-preview { position: relative; }
.publicar-preview img { width: 100%; max-height: 300px; object-fit: cover; border-radius: 22px; display: block; }
.publicar-quitar { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; border: 0; color: #fff; background: rgba(0, 0, 0, 0.55); font-size: 1.3rem; cursor: pointer; }
.publicar-grupo { border: 0; margin: 0; padding: 0; }
.publicar-grupo legend { font-weight: 800; margin-bottom: 8px; }
.com-boton-grande {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 16px; border-radius: 99px; border: 0; cursor: pointer;
  font: inherit; font-weight: 900; font-size: 1.05rem; color: #fff; background: var(--degrade); box-shadow: 0 6px 0 #16703c;
}
.com-boton-grande .icono { width: 20px; height: 20px; }
.com-boton-grande:active { transform: translateY(4px); box-shadow: 0 2px 0 #16703c; }
.publicar-nota { margin: 0; text-align: center; font-size: 0.8rem; color: var(--texto-suave); }
/* Detalle de una publicación */
.comentarios-detalle { margin-top: 14px; padding-top: 12px; border-top: 1px solid #eef2ef; display: flex; flex-direction: column; gap: 10px; }
.titulo-comentarios { margin: 0 0 4px; font-size: 1rem; }
.comentario-burbuja { display: flex; gap: 10px; }
.comentario-cuerpo { flex: 1; padding: 10px 12px; border-radius: 4px 18px 18px 18px; background: var(--verde-suave, #eaf6ee); }
.comentario-cuerpo p { margin: 3px 0 0; line-height: 1.4; }
.com-pantalla-post { padding-bottom: 170px; }
.form-comentar-fijo {
  position: fixed; left: 12px; right: 12px; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); z-index: 14; max-width: 560px; margin: 0 auto;
  display: flex; gap: 8px; padding: 6px 6px 6px 16px; border-radius: 99px; background: #fff; box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.45);
}
.form-comentar-fijo input { flex: 1; min-width: 0; border: 0; outline: none; font: inherit; }
.form-comentar-fijo button { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; background: var(--verde); cursor: pointer; }
.form-comentar-fijo button .icono { width: 20px; height: 20px; }
/* Barra de abajo con botón central de escanear */
.nav-inferior-tarjeta { align-items: center; }
.nav-escanear {
  flex: 0 0 64px; height: 64px; margin: -26px 2px 0; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: var(--degrade); border: 4px solid #fff; box-shadow: 0 10px 22px -8px rgba(30, 143, 78, 0.9);
}
.nav-escanear .icono { width: 30px; height: 30px; }
.nav-escanear:active { transform: scale(0.95); }
@media (min-width: 720px) {
  .grupo-hero-card { flex-basis: 360px; }
  .grilla-grupos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Barra de abajo: el activo en verde Chequeá */
.nav-item.activo { background: #eaf6ee; color: #1e8f4e; box-shadow: none; }
@media (max-width: 420px) { .boton-comentar { display: none; } }

/* === Coherencia con Comunidad: pestañas y botones en pastilla ============== */
.tab-ranking { border-radius: 99px; background: #fff; color: #276b43; border: 1.5px solid #d6eadc; }
.tab-ranking.activa { background: #1e8f4e; color: #fff; border-color: #1e8f4e; box-shadow: 0 6px 14px -8px rgba(30, 143, 78, 0.9); }
.boton-para-vos { background: #eaf6ee; color: #1e8f4e; border: 1.5px solid #cfe6d6; }
.boton { border-radius: 99px; }
.tarjeta { border-radius: 24px; }

.boton-escanear { background: var(--degrade); box-shadow: 0 6px 0 #16703c, 0 16px 26px -14px rgba(30, 143, 78, 0.9); }
.boton-escanear:active { transform: translateY(4px); box-shadow: 0 2px 0 #16703c; }
.inicio-comparar-icono { background: linear-gradient(135deg, #ff6a8e, #ff4d7a) !important; color: #fff !important; }
.progreso-banner { margin-bottom: 14px; }
.com-banner-titulo { font-size: 1.3rem; line-height: 1.15; font-family: 'Plus Jakarta Sans', sans-serif; }

/* Degradé de marca (70 % verde, 30 % rosa) también en pastillas activas */
.com-pill.activo, .tab-ranking.activa { background: var(--degrade); border-color: transparent; }
.com-pill-radio:has(input:checked) { background: var(--grupo, var(--verde)); }

/* === Juegos ================================================================ */
.logro.recortada .logro-imagen img { aspect-ratio: 3 / 4; object-fit: contain; border-radius: 0; box-shadow: none; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.25)); }
.logro.recortada.bloqueada .logro-imagen img { filter: grayscale(1) brightness(0.85); }
.juegos-banner { cursor: default; }
.mision {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 14px; border-radius: 22px;
  background: #fff; border: 1.5px solid #d6eadc; box-shadow: 0 10px 22px -18px rgba(0, 0, 0, 0.5);
}
.mision-lista { border-color: var(--rosa); background: linear-gradient(120deg, #fff 0%, var(--rosa-suave) 100%); animation: mision-late 1.6s ease-in-out infinite; }
.mision-hecha { background: var(--verde-suave); }
@keyframes mision-late { 50% { box-shadow: 0 0 0 5px rgba(255, 77, 122, 0.18); } }
.mision-icono { width: 46px; height: 46px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--degrade); }
.mision-icono .icono { width: 24px; height: 24px; }
.mision-texto { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mision-texto strong { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--verde); }
.mision-texto > span { font-weight: 700; line-height: 1.3; }
.mision-texto small { color: var(--texto-suave); font-weight: 600; }
.mision form { margin: 0; }
.mision-boton {
  display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 64px; padding: 8px 10px; border-radius: 16px; border: 0;
  font: inherit; font-weight: 900; font-size: 1rem; text-decoration: none; color: var(--verde); background: var(--verde-suave); cursor: pointer;
}
.mision-boton span { font-size: 0.7rem; font-weight: 800; }
.mision-boton.reclamar { color: #fff; background: var(--degrade); box-shadow: 0 5px 0 #16703c; }
.mision-boton.hecha { color: #fff; background: var(--verde); }
.mision-boton .icono { width: 22px; height: 22px; }
.juegos-grilla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.juego-tarjeta {
  display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 22px; text-decoration: none; color: var(--texto);
  background: #fff; border: 1px solid #edf2ee; box-shadow: 0 10px 22px -18px rgba(0, 0, 0, 0.5);
}
.juego-tarjeta strong { font-size: 1rem; line-height: 1.2; }
.juego-tarjeta > span:not(.juego-tarjeta-dibujo):not(.juego-tarjeta-boton) { font-size: 0.8rem; color: var(--texto-suave); line-height: 1.35; flex: 1; }
.juego-tarjeta-dibujo { height: 76px; border-radius: 16px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.juego-duelo .juego-tarjeta-dibujo { background: linear-gradient(120deg, #1e8f4e, #2aa35e 60%, #ff5c84); }
.juego-tarjeta-letra .juego-tarjeta-dibujo { background: linear-gradient(120deg, #eaf6ee, #ffe8ef); }
.duelo-caja { width: 38px; height: 46px; border-radius: 10px; display: grid; place-items: center; font-weight: 900; color: var(--verde); background: #fff; }
.duelo-vs { font-weight: 900; color: #fff; font-size: 0.9rem; }
.letra-dado { width: 24px; height: 30px; border-radius: 7px; display: grid; place-items: center; font-weight: 900; font-size: 0.85rem; color: #fff; transform: rotate(-6deg); }
.letra-dado:nth-child(even) { transform: rotate(6deg) translateY(4px); }
.juego-tarjeta-boton { align-self: flex-start; padding: 7px 16px; border-radius: 99px; font-weight: 800; font-size: 0.85rem; color: #fff; background: var(--degrade); }
.icono-titulo { width: 20px; height: 20px; color: var(--dorado-oscuro); vertical-align: -3px; }
.ranking-semanal { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ranking-semanal li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 18px; background: #fff; border: 1px solid #edf2ee; }
.ranking-semanal li.soy-yo { border-color: var(--rosa); background: var(--rosa-suave); }
.rs-puesto { width: 28px; text-align: center; font-weight: 900; color: var(--texto-suave); }
.rs-puesto .icono { width: 24px; height: 24px; }
.puesto-1 .rs-puesto { color: #e8a50a; } .puesto-2 .rs-puesto { color: #9aa5ad; } .puesto-3 .rs-puesto { color: #c8793a; }
.rs-nombre { flex: 1; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-nombre small { color: var(--rosa); font-weight: 800; }
.rs-puntos { font-weight: 900; color: var(--verde); }
.ranking-semanal-nota { margin: 8px 4px 0; font-size: 0.8rem; color: var(--texto-suave); }
/* Duelo */
.duelo-marcador { display: flex; justify-content: space-between; align-items: center; margin: 0 4px 6px; font-weight: 700; color: var(--texto-suave); }
.duelo-aciertos { padding: 4px 12px; border-radius: 99px; color: #fff; background: var(--verde); }
.duelo-progreso { height: 8px; border-radius: 99px; background: #e3eee6; overflow: hidden; margin-bottom: 14px; }
.duelo-progreso span { display: block; height: 100%; width: 0; background: var(--degrade); transition: width 0.3s ease; }
.duelo-pregunta { text-align: center; margin: 0 0 12px; font-size: 1.05rem; }
.duelo-pregunta span { color: var(--texto-suave); }
.duelo-arena { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.duelo-vs-centro {
  position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); z-index: 2; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 900; color: #fff; background: var(--degrade); border: 3px solid #fff; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.5);
}
.duelo-opcion {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 10px 14px; border-radius: 22px; cursor: pointer;
  font: inherit; color: var(--texto); background: #fff; border: 2.5px solid #e3eee6; box-shadow: 0 10px 22px -18px rgba(0, 0, 0, 0.6);
  transition: transform 0.12s ease, border-color 0.2s ease;
}
.duelo-opcion:not(:disabled):hover, .duelo-opcion:not(:disabled):focus-visible { transform: translateY(-3px); border-color: var(--verde); }
.duelo-foto { width: 100%; aspect-ratio: 1; border-radius: 16px; background: #f4f7f5; overflow: hidden; display: grid; place-items: center; }
.duelo-foto img { width: 100%; height: 100%; object-fit: contain; }
.duelo-nombre { font-weight: 800; font-size: 0.88rem; line-height: 1.25; text-align: center; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.duelo-marca { font-size: 0.75rem; color: var(--texto-suave); }
.duelo-revelado { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; }
.duelo-letra { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 900; }
.duelo-opcion.gano { border-color: var(--verde); background: var(--verde-suave); }
.duelo-opcion.perdio { opacity: 0.75; }
.duelo-opcion.elegido.perdio { border-color: var(--rosa); background: var(--rosa-suave); opacity: 1; }
.duelo-opcion:disabled { cursor: default; }
.duelo-feedback { margin-top: 14px; text-align: center; }
.duelo-feedback p { margin: 0 0 12px; font-weight: 700; line-height: 1.4; }
.duelo-final { text-align: center; padding: 20px 16px; border-radius: 26px; background: #fff; border: 1px solid #edf2ee; }
.duelo-final img { display: block; margin: 0 auto 6px; }
.duelo-final h2 { margin: 0; }
.duelo-final-numero { margin: 8px 0; font-size: 1.1rem; color: var(--texto-suave); }
.duelo-final-numero strong { font-size: 2.6rem; color: var(--verde); }
.duelo-final-acciones { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 14px; }
@media (prefers-reduced-motion: reduce) { .mision-lista { animation: none; } }
.inicio-juegos { background: linear-gradient(120deg, #eaf6ee 0%, #f3fbf6 60%, #ffe8ef 100%); border-color: #cfe6d6; }
.inicio-naturales img.inicio-juegos-img { object-fit: contain; background: transparent; box-shadow: none; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2)); }
.com-pill-juegos { color: #fff; background: linear-gradient(120deg, #ff5c84, #ff4d7a); border-color: transparent; }

/* === Juego "Limpiá la etiqueta" (combinar 3) =============================== */
.lim-intro { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px; margin-bottom: 14px; border-radius: 24px; text-align: center;
  background: linear-gradient(120deg, #eaf6ee 0%, #f3fbf6 60%, #ffe8ef 100%); border: 1px solid #d6eadc; }
.lim-intro-fichas { display: flex; }
.lim-intro-fichas img:nth-child(odd) { transform: rotate(-8deg); } .lim-intro-fichas img:nth-child(even) { transform: rotate(8deg) translateY(4px); }
.lim-intro p { margin: 0; line-height: 1.45; }
.lim-lista-niveles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.lim-boton-nivel { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border-radius: 20px; cursor: pointer;
  font: inherit; color: var(--texto); background: #fff; border: 2px solid #d6eadc; box-shadow: 0 5px 0 #cfe6d6; }
.lim-boton-nivel:active { transform: translateY(3px); box-shadow: 0 2px 0 #cfe6d6; }
.lim-boton-nivel.bloqueado { opacity: 0.55; cursor: default; box-shadow: none; }
.lim-num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 1.2rem; color: #fff; background: var(--degrade); }
.lim-boton-nivel.bloqueado .lim-num { background: #b8c7bd; }
.lim-mini-objetivos { display: flex; gap: 2px; min-height: 26px; }
.lim-mini-objetivos img { width: 26px; height: 26px; }
.lim-est { color: #f2b01e; letter-spacing: 2px; font-size: 0.95rem; }
.lim-barra { display: flex; align-items: stretch; gap: 8px; margin-bottom: 6px; }
.lim-dato-caja { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 58px; padding: 6px; border-radius: 16px; background: #fff; border: 1.5px solid #d6eadc; }
.lim-dato-caja small { font-size: 0.68rem; font-weight: 800; color: var(--texto-suave); text-transform: uppercase; }
.lim-dato-caja strong { font-size: 1.4rem; line-height: 1; color: var(--verde); }
.lim-caja-movs strong { color: var(--rosa); }
.lim-objetivos { flex: 1; display: flex; justify-content: center; gap: 6px; padding: 6px; border-radius: 16px; background: #fff; border: 1.5px solid #d6eadc; }
.lim-objetivo { display: flex; align-items: center; gap: 2px; font-weight: 900; }
.lim-objetivo img { width: 36px; height: 36px; }
.lim-objetivo.listo span { color: var(--verde); }
.lim-puntaje { margin: 4px 4px 8px; text-align: right; font-size: 0.85rem; color: var(--texto-suave); }
.lim-tablero {
  position: relative; width: 100%; max-width: 440px; margin: 0 auto; aspect-ratio: 1; border-radius: 22px; overflow: hidden;
  touch-action: none; user-select: none; -webkit-user-select: none;
  border: 2px solid #cfe6d6; background: repeating-conic-gradient(#eef7f1 0% 25%, #ffffff 0% 50%) 0 0 / calc(200% / 7) calc(200% / 7);
}
.lim-ficha {
  position: absolute; left: 0; top: 0; width: calc(100% / 7); height: calc(100% / 7); padding: 2px; border: 0; background: transparent; cursor: pointer;
  transform: translate(calc(var(--x) * 100%), calc(var(--y) * 100%)); transition: transform 0.19s ease-in;
  -webkit-tap-highlight-color: transparent;
}
.lim-ficha img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; transition: transform 0.19s ease; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.18)); }
.lim-ficha.lim-elegida img { transform: scale(1.14); filter: drop-shadow(0 0 6px rgba(255, 77, 122, 0.9)); }
.lim-ficha:focus-visible { outline: 3px solid var(--rosa); outline-offset: -3px; border-radius: 12px; }
.lim-ficha.lim-sale img { transform: scale(0) rotate(40deg); opacity: 0; transition: transform 0.19s ease, opacity 0.19s ease; }
.lim-ficha.lim-no img { animation: lim-no 0.3s ease; }
@keyframes lim-no { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.lim-festejo {
  position: absolute; left: 50%; top: 45%; z-index: 5; transform: translate(-50%, -50%); pointer-events: none; white-space: nowrap;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 900; font-size: 1.7rem; color: #fff;
  padding: 6px 18px; border-radius: 99px; background: var(--degrade); box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.5);
  animation: lim-festejo 1.1s ease forwards;
}
@keyframes lim-festejo { 0% { opacity: 0; transform: translate(-50%, -30%) scale(0.6); } 20% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -80%) scale(1); } }
.lim-dato { display: flex; align-items: center; gap: 10px; margin: 10px auto 0; max-width: 440px; padding: 10px 12px; border-radius: 18px;
  background: #fff; border: 1.5px solid #ffd3df; font-size: 0.88rem; line-height: 1.35; animation: juego-aparece 0.3s ease; }
.lim-dato img { width: 42px; height: 42px; flex-shrink: 0; }
.lim-dato strong { color: var(--rosa); }
.lim-salir { display: block; margin: 12px auto 0; background: #fff; cursor: pointer; font: inherit; font-weight: 800; }
.lim-cartel { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; padding: 16px; background: rgba(8, 30, 18, 0.72); backdrop-filter: blur(4px); }
.lim-cartel-caja { width: min(360px, 100%); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 18px; border-radius: 28px; background: #fff; text-align: center; animation: juego-aparece 0.35s ease; }
.lim-cartel-caja h2 { margin: 0; font-size: 1.5rem; }
.lim-cartel-estrellas { margin: 0; font-size: 2.2rem; letter-spacing: 6px; color: #f2b01e; }
.lim-cartel-texto, .lim-cartel-puntos { margin: 0; }
.lim-cartel-puntos { font-weight: 800; color: var(--verde); }
.lim-cartel.perdio .lim-cartel-caja img { filter: grayscale(0.3); }
.lim-reintentar { background: #fff; cursor: pointer; font: inherit; font-weight: 800; }
.lim-a-niveles { border: 0; background: none; color: var(--texto-suave); text-decoration: underline; cursor: pointer; font: inherit; }
.juego-tarjeta-limpiar .juego-tarjeta-dibujo { background: linear-gradient(120deg, #eaf6ee, #fff 60%, #ffe8ef); }
.juego-tarjeta-limpiar .juego-tarjeta-dibujo img { width: 40px; height: 40px; }
@media (prefers-reduced-motion: reduce) { .lim-ficha, .lim-ficha img { transition: none; } .lim-festejo { animation-duration: 0.01s; } }
.juego-destacado { margin-bottom: 12px; }
.juego-destacado .juego-tarjeta-dibujo { height: 86px; }
.juego-destacado .juego-tarjeta-dibujo img { width: 56px; height: 56px; }
.juego-destacado .juego-tarjeta-dibujo img:nth-child(odd) { transform: rotate(-8deg); }
.juego-destacado .juego-tarjeta-dibujo img:nth-child(even) { transform: rotate(8deg) translateY(4px); }
#limpiar [hidden] { display: none !important; }
.lim-reintentar { display: inline-flex !important; }
/* Sello "natural, la porción importa": sobresale de la foto, con borde dorado */
.fila-carrusel { padding-top: 12px; padding-left: 14px; scroll-padding-left: 14px; }
.tarjeta-producto-mini { position: relative; }
.tarjeta-producto-mini img.sello-natural-mini, .foto-mini img.sello-natural-mini {
  position: absolute; top: -10px; left: -8px; z-index: 3; width: 46px; height: 46px; padding: 2px; object-fit: contain;
  border-radius: 50%; background: #fff; border: 3px solid #f2b01e; animation: none;
  box-shadow: 0 0 0 2px #fff, 0 6px 14px -4px rgba(232, 150, 10, 0.75);
}
/* Acceso a Juegos en el inicio, apenas debajo del escáner */
.inicio-juegos-banner {
  display: flex; align-items: center; gap: 10px; margin: 12px 0; padding: 12px 14px; border-radius: 22px; text-decoration: none; color: #fff;
  background: var(--degrade); box-shadow: 0 12px 24px -14px rgba(30, 143, 78, 0.9);
}
.inicio-juegos-fichas { display: flex; flex-shrink: 0; }
.inicio-juegos-fichas img { width: 44px; height: 44px; margin-right: -12px; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.25)); }
.inicio-juegos-fichas img:nth-child(odd) { transform: rotate(-10deg); } .inicio-juegos-fichas img:nth-child(even) { transform: rotate(8deg) translateY(3px); }
.inicio-juegos-texto { flex: 1; min-width: 0; display: flex; flex-direction: column; margin-left: 12px; }
.inicio-juegos-texto strong { font-size: 1.1rem; }
.inicio-juegos-texto small { font-size: 0.8rem; opacity: 0.95; }
.inicio-juegos-boton { flex-shrink: 0; padding: 8px 14px; border-radius: 99px; font-weight: 900; color: var(--verde); background: #fff; }
.inicio-naturales img.inicio-comparar-img { width: 96px; height: 58px; border-radius: 14px; object-fit: cover; flex: none; box-shadow: 0 6px 14px -8px rgba(0, 0, 0, 0.45); }
/* Mascota de "Naturales y a granel" */
.inicio-granel { position: relative; margin-top: 22px; padding-left: 92px; min-height: 84px; overflow: visible; }
.inicio-naturales img.inicio-granel-img {
  position: absolute; left: 8px; bottom: 4px; width: 76px; height: auto; border-radius: 0; object-fit: contain;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.25)); transform: rotate(-4deg);
}
.nat-hero { padding-right: 132px; min-height: 190px; }
.nat-hero-mascota { position: absolute; right: 6px; bottom: 0; width: 130px; height: auto; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.35)); }
@media (max-width: 380px) { .nat-hero { padding-right: 104px; } .nat-hero-mascota { width: 104px; } }
/* Rankings: filtro por país con banderitas redondas */
.rk-paises { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin: -6px 2px 14px; }
.rk-paises-texto { margin-right: auto; font-size: 0.85rem; font-weight: 700; color: var(--texto-suave); }
.rk-pais {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: #fff; border: 2.5px solid #d6eadc; box-shadow: 0 4px 10px -6px rgba(0, 0, 0, 0.4); text-decoration: none;
  transition: transform 0.12s ease, border-color 0.15s ease;
}
.rk-pais img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.25); }
.rk-pais-todos { width: auto; padding: 0 12px; border-radius: 99px; font-size: 0.8rem; font-weight: 800; color: var(--verde); }
.rk-pais.activo { border-color: var(--verde); box-shadow: 0 0 0 3px rgba(30, 143, 78, 0.25); transform: scale(1.08); }
.rk-pais-todos.activo { color: #fff; background: var(--degrade); border-color: transparent; transform: none; }
/* Modo juego "¿Adiviná la letra?" en el inicio */
.modo-letra { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; padding: 14px; border-radius: 22px; color: #fff; background: var(--degrade); box-shadow: 0 12px 24px -14px rgba(30, 143, 78, 0.9); }
.modo-letra-dados { display: flex; gap: 3px; }
.modo-letra-dados span { width: 22px; height: 28px; border-radius: 6px; display: grid; place-items: center; font-weight: 900; font-size: 0.8rem; border: 2px solid #fff; }
.modo-letra-dados span:nth-child(even) { transform: translateY(3px) rotate(5deg); }
.modo-letra-texto { flex: 1 1 200px; display: flex; flex-direction: column; gap: 2px; font-size: 0.88rem; line-height: 1.35; }
.modo-letra-texto strong { font-size: 1rem; }
.modo-letra-acciones { display: flex; gap: 8px; width: 100%; }
.modo-letra-escanear { flex: 1; padding: 10px; border: 0; border-radius: 99px; font: inherit; font-weight: 900; color: var(--verde); background: #fff; cursor: pointer; }
.modo-letra-salir { padding: 10px 14px; border: 1.5px solid rgba(255, 255, 255, 0.7); border-radius: 99px; font: inherit; font-weight: 700; color: #fff; background: transparent; cursor: pointer; }
.modo-letra[hidden] { display: none; }
.juego-otro { display: block; margin-top: 10px; color: #fff; font-weight: 800; text-decoration: underline; }
.aviso-sin-letra { text-decoration: none; }

/* === Efectos de juego (static/js/efectos.js) =============================== */
.fx-capa { position: fixed; inset: 0; z-index: 10050; pointer-events: none; overflow: hidden; }
.fx-chispa {
  position: absolute; width: var(--tam, 9px); height: var(--tam, 9px); margin: calc(var(--tam, 9px) / -2) 0 0 calc(var(--tam, 9px) / -2);
  border-radius: 50%; box-shadow: 0 0 8px currentColor; animation: fx-chispa 0.85s cubic-bezier(0.15, 0.8, 0.3, 1) forwards;
}
.fx-chispa.fx-estrella {
  border-radius: 0; width: calc(var(--tam, 9px) * 1.8); height: calc(var(--tam, 9px) * 1.8);
  clip-path: polygon(50% 0, 61% 38%, 100% 50%, 61% 62%, 50% 100%, 39% 62%, 0 50%, 39% 38%);
}
@keyframes fx-chispa {
  0% { transform: translate(0, 0) scale(0.3) rotate(0); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(1) rotate(160deg); opacity: 0; }
}
.fx-confeti {
  position: absolute; top: -14px; width: 9px; height: 14px; border-radius: 2px;
  animation-name: fx-confeti; animation-timing-function: cubic-bezier(0.3, 0.6, 0.6, 1); animation-fill-mode: forwards;
}
@keyframes fx-confeti { to { transform: translate(var(--deriva, 0), 105vh) rotate(var(--giro, 360deg)); opacity: 0.2; } }
.fx-flotante {
  position: absolute; transform: translate(-50%, -50%); white-space: nowrap;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 900; font-size: 2rem; color: #ffd35a;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.35), 0 0 16px rgba(255, 211, 90, 0.7);
  animation: fx-flotante 1.25s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}
.fx-flotante.fx-verde { color: #a6f07a; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.35), 0 0 16px rgba(166, 240, 122, 0.7); }
.fx-flotante.fx-chico { font-size: 1.3rem; }
@keyframes fx-flotante {
  0% { opacity: 0; transform: translate(-50%, -30%) scale(0.5); }
  18% { opacity: 1; transform: translate(-50%, -60%) scale(1.25); }
  35% { transform: translate(-50%, -80%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -190%) scale(1); }
}
.fx-destello { background: rgba(255, 255, 255, 0.55); animation: fx-destello 0.45s ease-out forwards; }
@keyframes fx-destello { from { opacity: 1; } to { opacity: 0; } }
.fx-sacudir { animation: fx-sacudir 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97); }
@keyframes fx-sacudir {
  15%, 85% { transform: translateX(-3px); } 30%, 70% { transform: translateX(6px); } 45%, 55% { transform: translateX(-8px); } 50% { transform: translateX(8px); }
}
.fx-rebotar { animation: fx-rebotar 0.5s cubic-bezier(0.2, 1.6, 0.4, 1); }
@keyframes fx-rebotar { 0% { transform: scale(1); } 35% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* --- Celebración de insignias: rayos, brillo que pasa, estrellitas --- */
.celebracion-rayos {
  position: absolute; left: 50%; top: 50%; width: 180%; aspect-ratio: 1; z-index: -2; pointer-events: none;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: repeating-conic-gradient(rgba(255, 211, 90, 0.34) 0 7deg, transparent 7deg 22deg);
  -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 68%); mask-image: radial-gradient(circle, #000 20%, transparent 68%);
  animation: celebracion-rayos 14s linear infinite, celebracion-rayos-entra 0.6s ease-out;
}
@keyframes celebracion-rayos { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes celebracion-rayos-entra { from { opacity: 0; } }
.celebracion-brillo .celebracion-medalla { position: relative; display: block; }
.celebracion-fondo.visible .celebracion-medalla { animation: celebracion-medalla 0.9s cubic-bezier(0.2, 1.5, 0.4, 1) both; }
@keyframes celebracion-medalla {
  0% { transform: scale(0) rotate(-35deg); opacity: 0; }
  55% { transform: scale(1.18) rotate(8deg); opacity: 1; }
  75% { transform: scale(0.95) rotate(-3deg); }
  100% { transform: scale(1) rotate(0); }
}
.celebracion-reflejo {
  position: absolute; inset: 0; pointer-events: none; border-radius: 18px;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.85) 48%, transparent 60%) no-repeat;
  background-size: 250% 100%; background-position: 130% 0;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  animation: celebracion-reflejo 1.1s ease-in-out 0.8s 2 both;
}
@keyframes celebracion-reflejo { from { background-position: 130% 0; } to { background-position: -40% 0; } }
.celebracion-destellos { position: absolute; inset: -12%; pointer-events: none; }
.celebracion-destellos i {
  position: absolute; width: 22px; height: 22px; background: #fff7c2;
  clip-path: polygon(50% 0, 61% 38%, 100% 50%, 61% 62%, 50% 100%, 39% 62%, 0 50%, 39% 38%);
  filter: drop-shadow(0 0 6px #ffd35a); opacity: 0; animation: celebracion-titila 1.6s ease-in-out infinite;
}
.celebracion-destellos i:nth-child(1) { left: 2%; top: 12%; animation-delay: 0.9s; }
.celebracion-destellos i:nth-child(2) { right: 0; top: 4%; width: 28px; height: 28px; animation-delay: 1.2s; }
.celebracion-destellos i:nth-child(3) { right: -4%; top: 58%; width: 16px; height: 16px; animation-delay: 1.5s; }
.celebracion-destellos i:nth-child(4) { left: -4%; top: 66%; width: 26px; height: 26px; animation-delay: 1.05s; }
.celebracion-destellos i:nth-child(5) { left: 44%; top: -6%; width: 14px; height: 14px; animation-delay: 1.8s; }
.celebracion-destellos i:nth-child(6) { left: 40%; bottom: -8%; width: 18px; height: 18px; animation-delay: 1.35s; }
@keyframes celebracion-titila { 0%, 100% { opacity: 0; transform: scale(0.2) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }
.celebracion-fondo.visible .celebracion-etiqueta { animation: celebracion-cartel 0.7s cubic-bezier(0.2, 1.6, 0.4, 1) 0.15s both; }
@keyframes celebracion-cartel { from { transform: translateY(-40px) scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
.celebracion-fondo.visible .celebracion h2 { animation: celebracion-titulo 0.6s cubic-bezier(0.2, 1.5, 0.4, 1) 0.55s both; }
@keyframes celebracion-titulo { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }
.celebracion-fondo.visible .celebracion-texto, .celebracion-fondo.visible .celebracion-acciones { animation: juego-aparece 0.4s ease 0.8s both; }
@media (prefers-reduced-motion: reduce) {
  .celebracion-rayos, .celebracion-reflejo, .celebracion-destellos i, .celebracion-medalla,
  .celebracion-etiqueta, .celebracion h2, .celebracion-texto, .celebracion-acciones { animation: none !important; }
  .celebracion-destellos i { opacity: 0.8; }
}

/* --- ¿Adiviná la letra?: más "juego" --- */
.juego-fondo { overflow-y: auto; }
.juego-letras { gap: 9px; transition: transform 0.3s ease; }
.juego-letra {
  width: 60px; height: 60px; font-size: 1.8rem; border-radius: 18px;
  box-shadow: 0 7px 0 rgba(0, 0, 0, 0.28), inset 0 -4px 0 rgba(0, 0, 0, 0.12), inset 0 3px 0 rgba(255, 255, 255, 0.25);
  animation: juego-letra-entra 0.5s cubic-bezier(0.2, 1.6, 0.4, 1) calc(var(--i, 0) * 70ms + 150ms) both;
}
.juego-letra:active:not(:disabled) { transform: translateY(5px); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.28); }
@keyframes juego-letra-entra { from { transform: translateY(30px) scale(0.3); opacity: 0; } to { transform: none; opacity: 1; } }
.juego-letra.pensando { opacity: 1; animation: juego-pensando 0.55s ease-in-out infinite; box-shadow: 0 0 0 5px #fff, 0 0 26px 6px rgba(255, 255, 255, 0.55); }
@keyframes juego-pensando { 50% { transform: scale(1.14); } }
.juego-letra.correcta { animation: juego-correcta 1.4s ease-in-out infinite; }
@keyframes juego-correcta {
  0%, 100% { transform: scale(1.15); box-shadow: 0 0 0 4px #ffd35a, 0 0 14px 4px rgba(255, 211, 90, 0.5); }
  50% { transform: scale(1.22); box-shadow: 0 0 0 5px #ffd35a, 0 0 30px 10px rgba(255, 211, 90, 0.75); }
}
.juego-letra.elegida-mal { opacity: 0.85; }
/* Después de responder: se achica la pregunta y la letra real pasa a ser la protagonista */
.juego-fondo.respondido .juego h2 { display: none; }
.juego-fondo.respondido .juego-producto img { width: 72px; height: 72px; transition: width 0.3s ease, height 0.3s ease; }
.juego-fondo.respondido .juego-letras { transform: scale(0.82); margin-top: 8px; }
.juego-resultado { margin-top: 6px; animation: none; }
.juego-revelacion { position: relative; width: 116px; height: 116px; margin: 6px auto 4px; display: grid; place-items: center; }
.juego-letra-real {
  position: relative; z-index: 1; display: grid; place-items: center; width: 104px; height: 104px; border-radius: 30px;
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 4.2rem; font-weight: 900; color: #fff; line-height: 1;
  border: 5px solid #fff; box-shadow: 0 10px 0 rgba(0, 0, 0, 0.28), 0 18px 40px -10px rgba(0, 0, 0, 0.6);
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.2);
  animation: juego-letra-pop 0.7s cubic-bezier(0.2, 1.6, 0.4, 1) both;
}
@keyframes juego-letra-pop {
  0% { transform: scale(0) rotate(-25deg); } 60% { transform: scale(1.2) rotate(6deg); } 100% { transform: scale(1) rotate(0); }
}
.juego-error .juego-letra-real { animation: juego-letra-cae 0.6s ease both; }
@keyframes juego-letra-cae { 0% { transform: translateY(-30px); opacity: 0; } 60% { transform: translateY(4px) rotate(-4deg); opacity: 1; } 100% { transform: none; } }
.juego-rayos {
  position: absolute; left: 50%; top: 50%; width: 300%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(rgba(255, 211, 90, 0.45) 0 8deg, transparent 8deg 24deg);
  -webkit-mask-image: radial-gradient(circle, #000 18%, transparent 62%); mask-image: radial-gradient(circle, #000 18%, transparent 62%);
  animation: juego-rayos 9s linear infinite, celebracion-rayos-entra 0.5s ease-out; display: none;
}
.juego-acierto .juego-rayos { display: block; }
.juego-casi .juego-rayos { display: block; opacity: 0.45; }
@keyframes juego-rayos { to { transform: translate(-50%, -50%) rotate(360deg); } }
.juego-titulo-res {
  margin: 8px 0 0; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 2.3rem; font-weight: 900; line-height: 1.05;
  text-transform: uppercase; letter-spacing: 0.02em; color: #ff8fab; text-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
  animation: celebracion-titulo 0.55s cubic-bezier(0.2, 1.6, 0.4, 1) 0.15s both;
}
.juego-acierto .juego-titulo-res { color: #a6f07a; }
.juego-casi .juego-titulo-res { color: #ffd35a; }
.juego-mensaje { margin-top: 4px; font-size: 1.05rem; animation: juego-aparece 0.35s ease 0.3s both; }
.juego-acierto .juego-mensaje, .juego-casi .juego-mensaje { color: #fff; }
.juego-puntos {
  display: inline-flex; align-items: center; gap: 8px; margin: 10px 0 0; padding: 6px 16px 6px 8px; border-radius: 99px;
  font-size: 1.15rem; opacity: 1; background: rgba(255, 255, 255, 0.13); border: 1.5px solid rgba(255, 211, 90, 0.5);
  animation: juego-aparece 0.35s ease 0.35s both;
}
.juego-moneda {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: 0.95rem; color: #8a5a00;
  background: radial-gradient(circle at 35% 30%, #fff3b0, #ffd35a 45%, #e8a100); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.2);
  animation: juego-moneda 1.2s ease-in-out 0.5s 2;
}
@keyframes juego-moneda { 50% { transform: rotateY(180deg) scale(1.15); } }
.juego-puntos.sin-puntos { border-color: rgba(255, 255, 255, 0.25); font-size: 0.95rem; }
.juego-puntos.sin-puntos .juego-moneda { filter: grayscale(1); opacity: 0.6; animation: none; }
.juego-racha {
  display: inline-block; margin: 10px 0 0; padding: 5px 14px; border-radius: 99px; font-weight: 900; font-size: 0.92rem; color: #fff;
  background: linear-gradient(90deg, #ff9f1c, #ff4d7a); box-shadow: 0 6px 18px -6px rgba(255, 77, 122, 0.8);
  animation: celebracion-titulo 0.5s cubic-bezier(0.2, 1.6, 0.4, 1) 0.55s both;
}
.juego-resultado > p { margin-left: auto; margin-right: auto; }
.juego-extra { display: block; }
@media (prefers-reduced-motion: reduce) {
  .juego-letra, .juego-letra.pensando, .juego-letra.correcta, .juego-letra-real, .juego-rayos, .juego-titulo-res,
  .juego-mensaje, .juego-puntos, .juego-moneda, .juego-racha { animation: none !important; }
}

/* --- Duelo y Limpiá la etiqueta: más "juego" --- */
.duelo-opcion.elegido.gano { animation: duelo-gano 0.55s cubic-bezier(0.2, 1.6, 0.4, 1); box-shadow: 0 0 0 4px rgba(42, 163, 94, 0.25), 0 14px 28px -16px rgba(23, 138, 71, 0.9); }
@keyframes duelo-gano { 40% { transform: scale(1.07) rotate(-1.5deg); } 100% { transform: none; } }
.duelo-revelado:not([hidden]) { animation: juego-letra-pop 0.5s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
.duelo-aciertos { display: inline-block; }
.duelo-final-numero strong { display: inline-block; font-size: 2.6rem; }
.lim-estrella { display: inline-block; animation: lim-estrella 0.6s cubic-bezier(0.2, 1.7, 0.4, 1) both; }
.lim-estrella:not(.llena) { color: #d6dcd8; }
.lim-estrella.llena { color: #f2b01e; text-shadow: 0 0 14px rgba(242, 176, 30, 0.7); }
@keyframes lim-estrella { from { transform: scale(0) rotate(-120deg); opacity: 0; } to { transform: none; opacity: 1; } }
.lim-puntos { display: inline-block; }
.lim-festejo { font-size: 2rem; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.2); }
/* Juegos: los dibujitos de las tarjetas "respiran" */
.juego-tarjeta-dibujo img, .juego-tarjeta-dibujo svg { animation: juego-flota 3.2s ease-in-out infinite; }
.juego-tarjeta-dibujo > :nth-child(2) { animation-delay: 0.4s; }
.juego-tarjeta-dibujo > :nth-child(3) { animation-delay: 0.8s; }
.juego-tarjeta-dibujo > :nth-child(4) { animation-delay: 1.2s; }
@keyframes juego-flota { 50% { translate: 0 -5px; } }
.juego-tarjeta:active { transform: scale(0.97); }
@media (prefers-reduced-motion: reduce) {
  .duelo-opcion.elegido.gano, .duelo-revelado, .lim-estrella, .juego-tarjeta-dibujo img, .juego-tarjeta-dibujo svg { animation: none !important; }
}
/* La letra que elegiste mal queda marcada con una cruz rosa */
.juego-letra { position: relative; }
.juego-letra.elegida-mal { opacity: 1; box-shadow: 0 0 0 4px #ff4d7a, 0 6px 0 rgba(0, 0, 0, 0.25); }
.juego-letra.elegida-mal::after {
  content: "✕"; position: absolute; top: -9px; right: -9px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.8rem; font-weight: 900; color: #fff; background: #ff4d7a; border: 2px solid #fff;
  text-decoration: none; animation: juego-letra-pop 0.4s cubic-bezier(0.2, 1.6, 0.4, 1) both;
}
/* Sombra que sigue la forma de la insignia (no un cuadrado) */
.celebracion-brillo img { box-shadow: none; filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.55)); }

/* === ¿Cuál es más sano?: versión más "juego" ================================ */
.duelo-marcador { margin-bottom: 8px; }
.duelo-aciertos { padding: 5px 14px; font-size: 1rem; background: var(--degrade); box-shadow: 0 6px 14px -8px rgba(23, 138, 71, 0.9); }
.duelo-progreso { height: 10px; background: #e3eee6; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08); }
.duelo-progreso span { box-shadow: 0 0 10px rgba(255, 92, 132, 0.6); transition: width 0.45s cubic-bezier(0.2, 1.2, 0.4, 1); }
.duelo-pregunta { display: block; text-align: center; margin: 4px 0 16px; font-size: 1.35rem; font-weight: 800; }
.duelo-pregunta strong { background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent; }
.duelo-familia { display: table; margin: 6px auto 0; font-size: 0.8rem; font-weight: 800; padding: 3px 12px; border-radius: 99px; color: var(--verde) !important; background: var(--verde-suave); text-transform: capitalize; }
.duelo-familia:empty { display: none; }
.duelo-arena { gap: 14px; }
.duelo-vs-centro {
  width: 56px; height: 56px; font-size: 1.15rem; top: 36%; border-width: 4px;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.6), 0 10px 20px -8px rgba(23, 138, 71, 0.8); animation: duelo-vs 1.6s ease-in-out infinite;
}
@keyframes duelo-vs { 50% { transform: translate(-50%, -50%) scale(1.12) rotate(-6deg); } }
.duelo-opcion {
  position: relative; padding: 14px 10px 16px; border-radius: 26px; border-width: 3px;
  box-shadow: 0 16px 30px -20px rgba(20, 70, 45, 0.7), inset 0 -4px 0 rgba(20, 70, 45, 0.06);
  transition: transform 0.15s ease, border-color 0.2s ease, opacity 0.3s ease, filter 0.3s ease;
}
.duelo-opcion:not(:disabled):hover, .duelo-opcion:not(:disabled):focus-visible { transform: translateY(-5px) rotate(-1deg); border-color: var(--verde-2); }
.duelo-opcion[data-lado="b"]:not(:disabled):hover { transform: translateY(-5px) rotate(1deg); }
.duelo-opcion:not(:disabled):active { transform: scale(0.96); }
.duelo-foto { background: #fff; border: 1px solid #eef3ef; }
.duelo-arena.entra .duelo-opcion[data-lado="a"] { animation: duelo-entra-izq 0.5s cubic-bezier(0.2, 1.3, 0.4, 1) both; }
.duelo-arena.entra .duelo-opcion[data-lado="b"] { animation: duelo-entra-der 0.5s cubic-bezier(0.2, 1.3, 0.4, 1) 0.08s both; }
.duelo-arena.entra .duelo-vs-centro { animation: duelo-vs-entra 0.5s cubic-bezier(0.2, 1.6, 0.4, 1) 0.2s both, duelo-vs 1.6s ease-in-out 0.7s infinite; }
@keyframes duelo-entra-izq { from { transform: translateX(-40px) rotate(-6deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes duelo-entra-der { from { transform: translateX(40px) rotate(6deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes duelo-vs-entra { from { transform: translate(-50%, -50%) scale(0) rotate(-90deg); } to { transform: translate(-50%, -50%) scale(1); } }
/* Resultado de la ronda: queda clarísimo cuál ganó */
.duelo-sello {
  position: absolute; top: -13px; left: 50%; z-index: 3; transform: translateX(-50%); white-space: nowrap;
  padding: 4px 12px; border-radius: 99px; font-size: 0.78rem; font-weight: 900; letter-spacing: 0.01em;
  animation: duelo-sello 0.5s cubic-bezier(0.2, 1.7, 0.4, 1) both;
}
.duelo-sello.es-mejor { color: #fff; background: linear-gradient(90deg, #178a47, #2aa35e); box-shadow: 0 6px 14px -6px rgba(23, 138, 71, 0.9); }
.duelo-sello.es-peor { color: #6f7d74; background: #eef2ef; animation-delay: 0.15s; }
@keyframes duelo-sello { from { transform: translateX(-50%) scale(0) rotate(-12deg); } to { transform: translateX(-50%) scale(1); } }
.duelo-opcion.gano { border-color: #2aa35e; background: linear-gradient(180deg, #f1fbf4, #e3f5e9); box-shadow: 0 0 0 5px rgba(42, 163, 94, 0.18), 0 18px 30px -18px rgba(23, 138, 71, 0.9); }
.duelo-opcion.perdio { opacity: 0.6; filter: grayscale(0.55); transform: scale(0.95); }
.duelo-opcion.elegido.perdio { opacity: 0.85; filter: grayscale(0.3); border-color: var(--rosa); background: var(--rosa-suave); }
.duelo-revelado { gap: 8px; margin-top: 2px; }
.duelo-letra { width: 38px; height: 38px; font-size: 1.25rem; border: 3px solid #fff; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.15); }
.duelo-puntaje { display: inline-flex; align-items: baseline; gap: 1px; }
.duelo-puntaje strong { font-size: 1.5rem; font-weight: 900; line-height: 1; }
.duelo-puntaje small { font-size: 0.75rem; font-weight: 800; color: var(--texto-suave); }
.duelo-opcion.gano .duelo-puntaje strong { color: #178a47; }
/* Cartel de la ronda */
.duelo-feedback { margin-top: 18px; padding: 14px 16px 16px; border-radius: 22px; background: #fff; border: 2px solid #e3eee6; animation: juego-aparece 0.35s ease; }
.duelo-feedback.bien { border-color: #bfe6cc; background: linear-gradient(180deg, #f3fcf6, #fff); }
.duelo-feedback.mal { border-color: #ffd3df; background: linear-gradient(180deg, #fff5f8, #fff); }
.duelo-feedback .duelo-feedback-titulo { margin: 0 0 4px; font-size: 1.45rem; font-weight: 900; }
.duelo-feedback.bien .duelo-feedback-titulo { color: #178a47; }
.duelo-feedback.mal .duelo-feedback-titulo { color: #e23a66; }
.duelo-feedback #duelo-mensaje { font-weight: 600; color: var(--texto-suave); font-size: 0.92rem; }
/* Final */
.duelo-final { box-shadow: var(--tarjeta-sombra); animation: juego-aparece 0.4s ease; }
.duelo-final-estrellas { margin: 6px 0 0; font-size: 2.6rem; letter-spacing: 8px; }
@media (prefers-reduced-motion: reduce) {
  .duelo-vs-centro, .duelo-arena.entra .duelo-opcion, .duelo-arena.entra .duelo-vs-centro, .duelo-sello, .duelo-feedback, .duelo-final { animation: none !important; }
}

/* Botón de parlante (prender/apagar sonidos de los juegos) */
.fx-sonido {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; border: 1.5px solid #e3eee6; background: #fff; cursor: pointer;
  display: grid; place-items: center; font-size: 1.15rem; line-height: 1; box-shadow: 0 4px 10px -6px rgba(20, 70, 45, 0.5);
  transition: transform 0.12s ease;
}
.fx-sonido:active { transform: scale(0.9); }
.fx-sonido[aria-pressed="false"] { opacity: 0.6; }
.juego { position: relative; }
.juego-sonido { position: absolute; top: -4px; right: 0; width: 38px; height: 38px; font-size: 1rem;
  background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.3); box-shadow: none; }

/* Manzanita de /bienvenida: al tocarla se abre la presentación */
.landing-personaje { position: relative; display: inline-block; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; -webkit-tap-highlight-color: transparent; }
.landing-personaje:focus-visible { outline: 3px solid var(--rosa); outline-offset: 4px; border-radius: 24px; }
.landing-logo-boton .landing-logo { animation: landing-salta 2.6s ease-in-out infinite; transition: transform 0.15s ease; }
.landing-personaje:hover .landing-logo, .landing-personaje:hover .mascota-landing { transform: scale(1.08) rotate(-4deg); }
.landing-personaje:active img { transform: scale(0.92); }
@keyframes landing-salta {
  0%, 52%, 100% { transform: translateY(0) rotate(0); }
  56% { transform: translateY(-12px) rotate(-8deg) scale(1.06); }
  60% { transform: translateY(0) rotate(7deg); }
  64% { transform: rotate(-6deg); } 68% { transform: rotate(5deg); } 72% { transform: rotate(-3deg); } 76% { transform: rotate(0); }
}
/* La mascota de abajo también se mueve, desfasada de la manzanita */
.landing-personaje .mascota-landing { animation: landing-mascota 3.4s ease-in-out 1.2s infinite; }
@keyframes landing-mascota {
  0%, 60%, 100% { transform: rotate(-5deg); }
  65% { transform: rotate(-12deg) translateY(-6px); } 70% { transform: rotate(2deg); } 75% { transform: rotate(-9deg); } 80% { transform: rotate(-5deg); }
}
/* Anillo que "late" alrededor de la manzanita para invitar a tocarla */
.landing-logo-boton::after {
  content: ""; position: absolute; left: 50%; top: 46%; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%;
  border: 3px solid rgba(42, 163, 94, 0.55); pointer-events: none; animation: landing-onda 2.6s ease-out infinite;
}
@keyframes landing-onda { 0%, 50% { transform: scale(0.8); opacity: 0; } 55% { opacity: 0.9; } 100% { transform: scale(1.5); opacity: 0; } }
.landing-tocame {
  position: absolute; top: -6px; left: calc(100% - 14px); white-space: nowrap; padding: 4px 10px; border-radius: 99px 99px 99px 4px;
  font-size: 0.72rem; font-weight: 900; color: #fff; background: var(--degrade); box-shadow: 0 6px 14px -6px rgba(23, 138, 71, 0.8);
  animation: landing-tocame 2.6s ease-in-out infinite;
}
@keyframes landing-tocame { 0%, 55%, 100% { transform: scale(1); } 68% { transform: scale(1.12) rotate(-4deg); } }
a.hero-marca { text-decoration: none; transition: transform 0.15s ease; }
a.hero-marca:active { transform: scale(0.94); }
@media (prefers-reduced-motion: reduce) { .landing-logo-boton .landing-logo, .landing-tocame, .landing-personaje .mascota-landing, .landing-logo-boton::after { animation: none; } }

/* === ¿Adiviná la letra? con productos al azar (/juegos/letra) ============== */
.letra-intro { text-align: center; padding: 22px 18px 24px; border-radius: 28px; background: #fff; box-shadow: var(--tarjeta-sombra); animation: juego-aparece 0.4s ease; }
.letra-intro h2 { margin: 14px 0 6px; font-size: 1.45rem; }
.letra-intro p { margin: 0 0 12px; color: var(--texto-suave); line-height: 1.45; }
.letra-intro-dados { display: flex; justify-content: center; gap: 8px; }
.letra-intro-dados span {
  width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 1.5rem;
  border: 3px solid #fff; box-shadow: 0 6px 0 rgba(0, 0, 0, 0.18), 0 10px 18px -10px rgba(0, 0, 0, 0.5);
  animation: letra-dado 2.4s ease-in-out calc(var(--i) * 0.15s) infinite;
}
@keyframes letra-dado { 0%, 70%, 100% { transform: translateY(0); } 80% { transform: translateY(-12px) rotate(-8deg); } 90% { transform: translateY(0) rotate(4deg); } }
.letra-reglas { list-style: none; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 0; margin: 0 0 18px; }
.letra-reglas li { padding: 6px 12px; border-radius: 99px; background: var(--verde-suave); font-size: 0.88rem; font-weight: 700; }
.letra-reglas strong { color: var(--verde); }
.letra-empezar { font-size: 1.15rem; padding: 14px 34px; animation: letra-late 1.6s ease-in-out infinite; }
@keyframes letra-late { 50% { transform: scale(1.06); } }
.letra-final-puntos { font-weight: 800; color: var(--verde); margin: 4px 0 12px; }
.letra-repaso { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 4px; text-align: left; }
.letra-repaso-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 16px; background: #f7faf8; border: 1.5px solid #edf2ee; color: var(--texto); text-decoration: none; }
.letra-repaso-item.bien { background: #f1fbf4; border-color: #bfe6cc; }
.letra-repaso-item img { width: 40px; height: 40px; object-fit: contain; border-radius: 10px; background: #fff; flex-shrink: 0; }
.letra-repaso-nombre { flex: 1; font-size: 0.85rem; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.letra-repaso-tuya { font-size: 0.75rem; font-weight: 800; color: #e23a66; white-space: nowrap; }
.letra-repaso-item.bien .letra-repaso-tuya { color: var(--verde); font-size: 1rem; }
.letra-repaso-letra { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 900; flex-shrink: 0; }
@media (prefers-reduced-motion: reduce) { .letra-intro-dados span, .letra-empezar { animation: none; } }

/* === Trivia "¿Cuánto sabés de lo que comés?" (/juegos/quiz) =============== */
.juego-tarjeta-quiz .juego-tarjeta-dibujo { background: linear-gradient(120deg, #eaf6ee, #fff 55%, #ffe8ef); overflow: hidden; }
.juego-tarjeta-quiz .juego-tarjeta-dibujo img { width: 46px; height: 46px; object-fit: contain; }
.juego-tarjeta-quiz .juego-tarjeta-dibujo img.quiz-tarjeta-persona { width: auto; height: 84px; align-self: flex-end; margin-bottom: -6px; }
.quiz-intro {
  position: relative; overflow: hidden; text-align: center; padding: 0 18px 24px; border-radius: 28px;
  background: linear-gradient(180deg, #e6f6ec 0%, #fff 55%, #fff4f7 100%); box-shadow: var(--tarjeta-sombra); animation: juego-aparece 0.4s ease;
}
.quiz-intro-escena { position: relative; height: 190px; margin: 0 -18px 4px; }
.quiz-intro-chico, .quiz-intro-chica { position: absolute; bottom: 0; height: 150px; max-width: 49%; object-fit: contain; object-position: bottom; width: auto; filter: drop-shadow(0 8px 10px rgba(20, 70, 45, 0.25)); }
.quiz-intro-chico { left: 2%; animation: quiz-flota 3s ease-in-out infinite; }
.quiz-intro-chica { right: 2%; animation: quiz-flota 3s ease-in-out 1.5s infinite; }
.quiz-intro-simbolo { position: absolute; width: 50px; height: 50px; object-fit: contain; animation: quiz-flota 2.6s ease-in-out infinite; }
.quiz-simbolo-1 { left: 42%; top: 14px; animation-delay: 0.3s; }
.quiz-simbolo-2 { left: 30%; top: 86px; width: 40px; height: 40px; animation-delay: 0.9s; }
.quiz-simbolo-3 { right: 30%; top: 70px; width: 42px; height: 42px; animation-delay: 1.4s; }
.quiz-simbolo-4 { left: 55%; top: 120px; width: 36px; height: 36px; animation-delay: 0.6s; }
@keyframes quiz-flota { 50% { transform: translateY(-8px) rotate(-3deg); } }
.quiz-intro h2 { margin: 6px 0 6px; font-size: 1.5rem; line-height: 1.15; }
.quiz-intro > p { margin: 0 0 14px; color: var(--texto-suave); line-height: 1.45; }
.quiz-intro-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 18px; }
.quiz-intro-chips span { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px 4px 4px; border-radius: 99px; background: #fff; border: 1.5px solid #e3eee6; font-size: 0.78rem; font-weight: 800; }
.quiz-intro-chips img { width: 22px; height: 22px; object-fit: contain; }
.quiz-comenzar { font-size: 1.15rem; letter-spacing: 0.04em; padding: 15px 40px; animation: letra-late 1.6s ease-in-out infinite; }
/* Barra superior */
.quiz-barra { display: flex; align-items: center; gap: 8px; margin: 0 2px 8px; font-weight: 700; color: var(--texto-suave); }
.quiz-numero { flex: 1; }
.quiz-numero strong { color: var(--texto); font-size: 1.1rem; }
.quiz-racha { padding: 4px 10px; border-radius: 99px; font-weight: 900; font-size: 0.85rem; color: #fff; background: linear-gradient(90deg, #ff9f1c, #ff4d7a); display: inline-block; }
.quiz-puntos { padding: 5px 12px; border-radius: 99px; color: #fff; background: var(--degrade); font-size: 0.9rem; display: inline-block; }
.quiz-progreso { margin-bottom: 12px; }
/* Escena de la pregunta */
.quiz-escena { position: relative; display: flex; align-items: flex-end; gap: 4px; min-height: 150px; margin-bottom: 12px; }
.quiz-presentador { width: 118px; height: auto; flex-shrink: 0; align-self: flex-end; filter: drop-shadow(0 6px 8px rgba(20, 70, 45, 0.25)); animation: quiz-flota 3.2s ease-in-out infinite; }
.quiz-globo {
  position: relative; flex: 1; align-self: center; padding: 16px 16px 16px 18px; border-radius: 22px; background: #fff;
  border: 2.5px solid #d7ecdf; box-shadow: 0 12px 24px -18px rgba(20, 70, 45, 0.8);
}
.quiz-globo::before { content: ""; position: absolute; left: -12px; bottom: 26px; border: 10px solid transparent; border-right-color: #d7ecdf; border-left: 0; }
.quiz-globo p { margin: 0; font-size: 1.08rem; font-weight: 800; line-height: 1.35; }
.quiz-simbolo { position: absolute; right: -6px; top: -18px; width: 58px; height: 58px; object-fit: contain; z-index: 2; animation: quiz-flota 2.4s ease-in-out infinite; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2)); }
.quiz-simbolo.asustado { animation: quiz-susto 0.5s ease-in-out 2; }
@keyframes quiz-susto { 25% { transform: rotate(-14deg) scale(1.1); } 75% { transform: rotate(12deg) scale(1.1); } }
.quiz-escena.entra .quiz-presentador { animation: duelo-entra-izq 0.5s cubic-bezier(0.2, 1.3, 0.4, 1) both, quiz-flota 3.2s ease-in-out 0.5s infinite; }
.quiz-escena.entra .quiz-globo { animation: celebracion-titulo 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) 0.1s both; }
.quiz-escena.entra .quiz-simbolo { animation: juego-letra-pop 0.6s cubic-bezier(0.2, 1.6, 0.4, 1) 0.3s both, quiz-flota 2.4s ease-in-out 0.9s infinite; }
/* Opciones */
.quiz-opciones { display: flex; flex-direction: column; gap: 10px; }
.quiz-opcion {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 18px; cursor: pointer; text-align: left;
  font: inherit; font-weight: 700; font-size: 0.98rem; color: var(--texto); background: #fff; border: 2.5px solid #e3eee6;
  box-shadow: 0 5px 0 #e3eee6; transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.2s ease, opacity 0.3s ease;
  animation: juego-letra-entra 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) calc(var(--i) * 80ms + 250ms) both;
}
.quiz-opcion:not(:disabled):hover { border-color: var(--verde-2); transform: translateY(-2px); }
.quiz-opcion:not(:disabled):active { transform: translateY(4px); box-shadow: 0 1px 0 #e3eee6; }
.quiz-opcion-letra { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-weight: 900; color: #fff; background: var(--degrade); }
.quiz-opcion.correcta { border-color: #2aa35e; background: #eefaf2; box-shadow: 0 5px 0 #bfe6cc; animation: duelo-gano 0.5s cubic-bezier(0.2, 1.6, 0.4, 1); }
.quiz-opcion.correcta .quiz-opcion-letra { background: #178a47; }
.quiz-opcion.correcta .quiz-opcion-letra::after { content: "✓"; position: absolute; }
.quiz-opcion.correcta .quiz-opcion-letra { color: transparent; position: relative; }
.quiz-opcion.correcta .quiz-opcion-letra::after { color: #fff; }
.quiz-opcion.incorrecta { border-color: var(--rosa); background: var(--rosa-suave); box-shadow: 0 5px 0 #ffd3df; }
.quiz-opcion.incorrecta .quiz-opcion-letra { background: #e23a66; }
.quiz-opcion.apagada { opacity: 0.45; }
.quiz-opcion:disabled { cursor: default; }
/* Respuesta inmediata */
.quiz-respuesta { position: relative; margin-top: 16px; padding: 18px 16px 18px; border-radius: 24px; text-align: center; border: 2px solid #e3eee6; background: #fff; animation: juego-aparece 0.35s ease; }
.quiz-respuesta.bien { border-color: #bfe6cc; background: linear-gradient(180deg, #effbf3, #fff); }
.quiz-respuesta.mal { border-color: #ffd3df; background: linear-gradient(180deg, #fff3f6, #fff); }
.quiz-respuesta-personaje { width: 92px; height: 92px; object-fit: contain; margin: -54px auto 2px; display: block; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.2)); }
.quiz-respuesta.bien .quiz-respuesta-personaje { animation: quiz-festeja 0.8s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
.quiz-respuesta.mal .quiz-respuesta-personaje { animation: juego-letra-pop 0.5s ease both, quiz-susto 0.5s ease-in-out 0.5s 2; }
@keyframes quiz-festeja { 0% { transform: scale(0) rotate(-20deg); } 50% { transform: scale(1.2) translateY(-10px) rotate(8deg); } 100% { transform: none; } }
.quiz-respuesta-titulo { margin: 0 0 10px; font-size: 1.45rem; font-weight: 900; animation: celebracion-titulo 0.5s cubic-bezier(0.2, 1.6, 0.4, 1) 0.1s both; }
.quiz-respuesta-titulo span { display: inline-block; font-size: 1rem; padding: 3px 10px; border-radius: 99px; color: #8a5a00; background: linear-gradient(180deg, #fff3b0, #ffd35a); vertical-align: middle; }
.quiz-respuesta.bien .quiz-respuesta-titulo { color: #178a47; }
.quiz-respuesta.mal .quiz-respuesta-titulo { color: #e23a66; }
.quiz-dato { display: flex; align-items: flex-end; gap: 8px; margin: 0 0 14px; text-align: left; }
.quiz-dato-chica { width: 64px; height: auto; flex-shrink: 0; }
.quiz-dato p { margin: 0; flex: 1; padding: 12px 14px; border-radius: 18px 18px 18px 4px; background: #fff; border: 1.5px solid #edf2ee; font-size: 0.92rem; line-height: 1.45; color: var(--texto); animation: juego-aparece 0.35s ease 0.25s both; }
/* Final */
.quiz-final { padding-top: 10px; }
.quiz-final-escena { display: flex; justify-content: center; align-items: flex-end; gap: 0; height: 130px; }
.quiz-final-escena img { height: 120px; width: auto; }
.quiz-final-escena .quiz-final-mascota { height: 96px; margin: 0 -14px; position: relative; z-index: 1; }
.quiz-final h2 { margin: 6px 0 0; font-size: 1.6rem; }
.quiz-final-etiqueta { margin: 8px 0 0; font-weight: 800; color: var(--texto-suave); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.08em; }
.quiz-final-numero { margin: 0; font-size: 1.3rem; font-weight: 800; color: var(--texto-suave); }
.quiz-final-numero strong { font-size: 3.2rem; font-weight: 900; background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent; }
.quiz-final-mensaje { margin: 4px 0 14px; font-weight: 700; line-height: 1.4; }
.quiz-medallas { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin-bottom: 14px; }
.quiz-medallas:empty { display: none; }
.quiz-medalla { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 8px; border-radius: 18px; background: linear-gradient(180deg, #fff8e1, #fff); border: 2px solid #ffe08a; animation: juego-letra-pop 0.6s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
.quiz-medalla-icono { font-size: 2rem; line-height: 1.1; }
.quiz-medalla strong { font-size: 0.88rem; }
.quiz-medalla small { font-size: 0.72rem; color: var(--texto-suave); text-align: center; }
.quiz-aprendiste { text-align: left; display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.quiz-lista { padding: 12px 14px; border-radius: 18px; border: 1.5px solid #e3eee6; }
.quiz-lista.bien { background: #f1fbf4; border-color: #bfe6cc; }
.quiz-lista.repasar { background: #fff8f1; border-color: #ffe0c2; }
.quiz-lista p { margin: 0 0 6px; font-weight: 800; }
.quiz-lista ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.quiz-lista li { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px 3px 3px; border-radius: 99px; background: #fff; font-size: 0.82rem; font-weight: 700; }
.quiz-lista.bien li::before { content: "✓"; color: var(--verde); font-weight: 900; margin-left: 6px; }
.quiz-lista li img { width: 24px; height: 24px; object-fit: contain; }
@media (prefers-reduced-motion: reduce) {
  .quiz-intro-chico, .quiz-intro-chica, .quiz-intro-simbolo, .quiz-comenzar, .quiz-presentador, .quiz-simbolo, .quiz-opcion,
  .quiz-escena.entra *, .quiz-respuesta *, .quiz-medalla { animation: none !important; }
}

/* === Tarjetas estilo Comunidad: Rankings del inicio ======================= */
.inicio-rankings-carrusel { gap: 12px; padding: 12px 4px 18px; }
.inicio-ranking {
  width: 150px; padding: 0; gap: 0; color: var(--texto); background: #fff; border: 1px solid #edf2ee; border-radius: 22px; overflow: hidden;
  box-shadow: 0 12px 24px -18px rgba(20, 70, 45, 0.7); transition: transform 0.15s ease;
}
.inicio-ranking:active { transform: scale(0.96); }
.inicio-ranking-portada {
  position: relative; display: grid; place-items: center; height: 92px; overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--acento) 85%, #fff) 0%, var(--acento) 100%);
}
.inicio-ranking-circulo { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.inicio-ranking-circulo.c1 { width: 90px; height: 90px; right: -24px; top: -30px; }
.inicio-ranking-circulo.c2 { width: 54px; height: 54px; left: -14px; bottom: -18px; }
.inicio-ranking-dibujo { position: relative; font-size: 2.6rem; line-height: 1; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.25)); transition: transform 0.2s ease; }
.inicio-ranking:hover .inicio-ranking-dibujo { transform: scale(1.12) rotate(-6deg); }
.inicio-ranking-top {
  position: absolute; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 3px; padding: 3px 8px 3px 6px; border-radius: 99px;
  font-size: 0.66rem; font-weight: 900; color: #8a5a00; background: linear-gradient(180deg, #fff3b0, #ffd35a); box-shadow: 0 3px 8px -4px rgba(0, 0, 0, 0.4);
}
.inicio-ranking-top .icono { width: 11px; height: 11px; }
.inicio-ranking-cuerpo { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; }
.inicio-ranking-tipo { display: inline-flex; align-items: center; gap: 4px; font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; color: var(--acento); }
.inicio-ranking-tipo .icono { width: 13px; height: 13px; }
.inicio-ranking-cuerpo strong { font-size: 1rem; line-height: 1.2; }
.inicio-ranking-ver { margin-top: 4px; align-self: flex-start; padding: 5px 12px; border-radius: 99px; font-size: 0.75rem; font-weight: 800; color: #fff; background: var(--degrade); }

/* === Mi progreso: "Mi actividad en Comunidad" ============================= */
.actividad-com, .pref-seccion { margin-top: 20px; }
.actividad-com-cabecera { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; margin-bottom: 10px; }
.actividad-com-cabecera h2 { display: flex; align-items: center; gap: 8px; margin: 0; }
.actividad-com-cabecera h2 .icono { width: 20px; height: 20px; color: var(--verde); }
.actividad-com-cabecera a { font-weight: 700; font-size: 0.9rem; }
.actividad-com-tarjeta { border-radius: 24px; overflow: hidden; background: #fff; border: 1px solid #edf2ee; box-shadow: 0 14px 28px -20px rgba(20, 70, 45, 0.7); }
.actividad-com-portada { position: relative; height: 130px; overflow: hidden; background: var(--degrade); }
.actividad-com-portada .com-banner-hojas { right: auto; left: -10px; bottom: -10px; }
.actividad-com-persona { position: absolute; right: 8px; bottom: -4px; height: 128px; width: auto; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.3)); }
.actividad-com-burbuja {
  position: absolute; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--verde);
  box-shadow: 0 8px 16px -8px rgba(0, 0, 0, 0.45); animation: quiz-flota 3s ease-in-out infinite;
}
.actividad-com-burbuja .icono { width: 20px; height: 20px; }
.actividad-com-burbuja.b1 { left: 22px; top: 18px; }
.actividad-com-burbuja.b2 { left: 84px; top: 52px; color: var(--rosa); animation-delay: 0.8s; }
.actividad-com-burbuja.b3 { left: 146px; top: 14px; animation-delay: 1.5s; }
.actividad-com-cuerpo { padding: 14px 16px 16px; }
.actividad-com-cuerpo strong { display: block; font-size: 1.08rem; margin-bottom: 4px; }
.actividad-com-cuerpo p { margin: 0 0 12px; font-size: 0.88rem; line-height: 1.45; color: var(--texto-suave); }
.actividad-com-acciones { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.actividad-com-boton { display: inline-flex; padding: 10px 20px; border-radius: 99px; font-weight: 800; color: #fff; text-decoration: none; background: var(--degrade); box-shadow: 0 8px 18px -10px rgba(23, 138, 71, 0.9); }
.actividad-com-link { font-weight: 800; font-size: 0.9rem; text-decoration: none; }

/* === "Lo que querés priorizar" (Mi progreso y /preferencias) ============== */
.pref-intro { margin: 0 4px 12px; font-size: 0.88rem; color: var(--texto-suave); line-height: 1.45; }
.pref-tarjetas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pref-tarjeta {
  --pref: var(--verde);
  position: relative; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; cursor: pointer; background: #fff;
  border: 2px solid #edf2ee; box-shadow: 0 10px 22px -18px rgba(20, 70, 45, 0.7); transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.pref-tarjeta:active { transform: scale(0.97); }
.pref-check { position: absolute; opacity: 0; pointer-events: none; }
.pref-tarjeta-portada {
  position: relative; display: grid; place-items: center; height: 84px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--pref) 22%, #fff), color-mix(in srgb, var(--pref) 45%, #fff));
}
.pref-tarjeta-portada img { width: 66px; height: 66px; object-fit: contain; filter: drop-shadow(0 5px 6px rgba(0, 0, 0, 0.2)); transition: transform 0.2s ease; }
.pref-tarjeta-cuerpo { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 34px; }
.pref-tarjeta-cuerpo strong { font-size: 0.95rem; line-height: 1.2; }
.pref-tarjeta-cuerpo small { font-size: 0.74rem; line-height: 1.3; color: var(--texto-suave); }
.pref-interruptor { position: absolute; left: 12px; bottom: 10px; width: 38px; height: 22px; border-radius: 99px; background: #dfe7e2; transition: background 0.2s ease; }
.pref-interruptor span { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.2s ease; }
.pref-activo { position: absolute; right: 8px; top: 8px; padding: 3px 8px; border-radius: 99px; font-size: 0.68rem; font-weight: 900; color: #fff; background: var(--pref); opacity: 0; transform: scale(0.6); transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.2, 1.6, 0.4, 1); }
.pref-tarjeta:has(.pref-check:checked) { border-color: var(--pref); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pref) 18%, transparent), 0 14px 24px -18px rgba(0, 0, 0, 0.6); }
.pref-tarjeta:has(.pref-check:checked) .pref-interruptor { background: var(--pref); }
.pref-tarjeta:has(.pref-check:checked) .pref-interruptor span { transform: translateX(16px); }
.pref-tarjeta:has(.pref-check:checked) .pref-activo { opacity: 1; transform: none; }
.pref-tarjeta:has(.pref-check:checked) .pref-tarjeta-portada img { transform: scale(1.08) rotate(-4deg); }
.pref-tarjeta:has(.pref-check:focus-visible) { outline: 3px solid var(--rosa); outline-offset: 2px; }
.form-preferencias .pref-tarjetas { margin-bottom: 8px; }
.form-preferencias > .pref-tarjetas label { padding: 0; border: 2px solid #edf2ee; }
@media (max-width: 340px) { .pref-tarjetas { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .actividad-com-burbuja { animation: none; } }
.form-preferencias .pref-tarjeta { align-items: stretch; gap: 0; padding: 0; font-weight: 400; }
/* Si quedan en número impar, la última ocupa todo el ancho (horizontal) */
.pref-tarjeta:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; align-items: stretch; }
.pref-tarjeta:last-child:nth-child(odd) .pref-tarjeta-portada { width: 110px; height: auto; min-height: 96px; flex-shrink: 0; }
.pref-tarjeta:last-child:nth-child(odd) .pref-tarjeta-cuerpo { justify-content: center; padding-bottom: 38px; }
.pref-tarjeta:last-child:nth-child(odd) .pref-interruptor { left: 122px; }

/* === Versión más sobria de las tarjetas (menos infantil) ================== */
/* Rankings */
.inicio-ranking { box-shadow: 0 8px 20px -16px rgba(20, 50, 35, 0.55); }
.inicio-ranking-portada { height: 76px; background: color-mix(in srgb, var(--acento) 12%, #fff); }
.inicio-ranking-circulo { background: color-mix(in srgb, var(--acento) 10%, transparent); }
.inicio-ranking-dibujo {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; font-size: 1rem; filter: none;
  color: #fff; background: var(--acento); box-shadow: 0 8px 16px -8px color-mix(in srgb, var(--acento) 80%, transparent);
}
.inicio-ranking-dibujo .icono { width: 22px; height: 22px; }
.inicio-ranking:hover .inicio-ranking-dibujo { transform: none; }
.inicio-ranking-top { padding: 2px 8px; font-size: 0.64rem; font-weight: 800; letter-spacing: 0.02em; color: color-mix(in srgb, var(--acento) 80%, #1f2a23); background: #fff; box-shadow: none; border: 1px solid color-mix(in srgb, var(--acento) 25%, #fff); }
.inicio-ranking-tipo { font-size: 0.66rem; letter-spacing: 0.05em; }
.inicio-ranking-ver { padding: 0; background: none; color: var(--verde); font-size: 0.8rem; }
/* Mi actividad en Comunidad */
.actividad-com-portada { height: 112px; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 0 18px; }
.actividad-com-avatares { position: relative; display: flex; }
.actividad-com-avatares span {
  display: grid; place-items: center; width: 38px; height: 38px; margin-left: -8px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.9);
  font-weight: 800; font-size: 0.9rem; color: #1f2a23; background: #fff;
}
.actividad-com-avatares span:first-child { margin-left: 0; background: #d8f0e1; }
.actividad-com-avatares span:nth-child(2) { background: #ffe1e9; }
.actividad-com-avatares span:nth-child(3) { background: #fff1cc; }
.actividad-com-avatares span.mas { color: #fff; background: rgba(255, 255, 255, 0.22); }
.actividad-com-chips { position: relative; display: flex; gap: 6px; flex-wrap: wrap; }
.actividad-com-chips span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px; font-size: 0.74rem; font-weight: 700; color: #fff; background: rgba(255, 255, 255, 0.18); border: 1px solid rgba(255, 255, 255, 0.3); }
.actividad-com-chips .icono { width: 14px; height: 14px; }
/* Lo que querés priorizar */
.pref-tarjeta { border-width: 1.5px; box-shadow: 0 6px 16px -14px rgba(20, 50, 35, 0.6); }
.pref-tarjeta-portada { height: auto; display: block; padding: 14px 12px 0; background: none; }
.pref-icono { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: var(--pref); background: color-mix(in srgb, var(--pref) 12%, #fff); transition: background 0.2s ease, color 0.2s ease; }
.pref-icono svg { width: 22px; height: 22px; }
.pref-tarjeta-cuerpo { padding: 10px 12px 38px; }
.pref-activo { top: 12px; right: 12px; padding: 2px 8px; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.02em; color: var(--pref); background: color-mix(in srgb, var(--pref) 12%, #fff); transform: none; }
.pref-tarjeta:has(.pref-check:checked) { border-color: var(--pref); box-shadow: 0 8px 18px -14px color-mix(in srgb, var(--pref) 70%, transparent); background: color-mix(in srgb, var(--pref) 4%, #fff); }
.pref-tarjeta:has(.pref-check:checked) .pref-icono { color: #fff; background: var(--pref); }
.pref-tarjeta:last-child:nth-child(odd) .pref-tarjeta-portada { width: auto; min-height: 0; padding: 0 0 0 12px; display: grid; place-items: center; }
.pref-tarjeta:last-child:nth-child(odd) .pref-interruptor { left: 66px; }
.pref-tarjeta:last-child:nth-child(odd) .pref-tarjeta-cuerpo { padding-bottom: 40px; }
.pref-tarjeta:not(:last-child:nth-child(odd)) .pref-tarjeta-portada { display: flex; justify-content: flex-start; }

/* === Guías y páginas de la app (contenido para Google) ==================== */
.contenido-seo { max-width: 680px; margin: 0 auto; }
.contenido-migas { font-size: 0.8rem; color: var(--texto-suave); margin: 0 4px 10px; }
.contenido-migas a { color: var(--texto-suave); }
.contenido-cabecera { position: relative; overflow: hidden; padding: 24px 20px; border-radius: 26px; color: #fff; background: var(--degrade); box-shadow: 0 16px 30px -18px rgba(23, 138, 71, 0.9); margin-bottom: 18px; }
.contenido-etiqueta { display: inline-block; margin: 0 0 8px; padding: 3px 10px; border-radius: 99px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; background: rgba(255, 255, 255, 0.2); }
.contenido-cabecera h1 { margin: 0 0 8px; font-size: 1.6rem; line-height: 1.15; color: #fff; }
.contenido-bajada { margin: 0; font-size: 1rem; line-height: 1.45; opacity: 0.95; }
.contenido-cta-arriba { margin-top: 16px; background: #fff; color: var(--verde); box-shadow: none; }
.contenido-seccion { padding: 18px 18px 14px; margin-bottom: 12px; border-radius: 22px; background: #fff; border: 1px solid #edf2ee; }
.contenido-seccion h2 { margin: 0 0 8px; font-size: 1.15rem; }
.contenido-seccion p { margin: 0 0 10px; line-height: 1.6; color: #34423a; }
.contenido-seccion ul { margin: 0 0 10px; padding-left: 20px; line-height: 1.6; color: #34423a; }
.contenido-seccion li { margin-bottom: 4px; }
.contenido-faq details { border-top: 1px solid #edf2ee; padding: 10px 0; }
.contenido-faq summary { font-weight: 700; cursor: pointer; }
.contenido-faq details p { margin: 8px 0 0; }
.contenido-enlace-grande { display: block; margin-bottom: 12px; padding: 14px 18px; border-radius: 18px; font-weight: 800; text-decoration: none; color: var(--verde); background: var(--verde-suave); }
.contenido-enlace-grande .icono { width: 18px; height: 18px; vertical-align: -3px; }
.contenido-cierre { text-align: center; padding: 22px 18px; margin: 16px 0; border-radius: 22px; background: linear-gradient(180deg, #eef8f1, #fff); border: 1px solid #d7ecdf; }
.contenido-cierre strong { display: block; font-size: 1.15rem; margin-bottom: 6px; }
.contenido-cierre p { margin: 0 0 14px; color: var(--texto-suave); line-height: 1.45; }
.contenido-relacionadas { display: grid; gap: 10px; }
.contenido-relacionadas-grande { margin-bottom: 8px; }
.contenido-tarjeta { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 18px; background: #fff; border: 1px solid #edf2ee; text-decoration: none; color: var(--texto); box-shadow: 0 6px 16px -14px rgba(20, 50, 35, 0.6); }
.contenido-tarjeta-icono { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: var(--verde); background: var(--verde-suave); margin-bottom: 4px; }
.contenido-tarjeta-icono .icono { width: 18px; height: 18px; }
.contenido-tarjeta strong { font-size: 1rem; line-height: 1.25; }
.contenido-tarjeta small { color: var(--texto-suave); line-height: 1.4; }
.landing-guias { padding: 20px 18px; margin: 16px 0; border-radius: 22px; background: #fff; border: 1px solid #edf2ee; }
.landing-guias h2 { margin: 0 0 10px; }
.landing-guias-lista { margin: 0 0 12px; padding-left: 18px; line-height: 1.8; }
.landing-guias-mas { margin: 0; font-size: 0.85rem; line-height: 1.7; color: var(--texto-suave); }

/* Guías en /bienvenida: filas tipo tarjeta en vez de lista de enlaces */
.landing-guias { padding: 18px 14px 16px; }
.landing-guias-cabecera { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 4px; margin-bottom: 12px; }
.landing-guias-cabecera h2 { margin: 0; font-size: 1.2rem; }
.landing-guias-cabecera a { font-weight: 700; font-size: 0.88rem; white-space: nowrap; text-decoration: none; color: var(--verde); }
.landing-guias-lista { display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; padding: 0; }
.landing-guia { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: #f7faf8; border: 1px solid #edf2ee; text-decoration: none; color: var(--texto); transition: background 0.15s ease, transform 0.15s ease; }
.landing-guia:hover { background: var(--verde-suave); }
.landing-guia:active { transform: scale(0.98); }
.landing-guia-num { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 11px; font-weight: 800; color: var(--verde); background: #fff; border: 1px solid #d7ecdf; }
.landing-guia-texto { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.landing-guia-texto strong { font-size: 0.92rem; line-height: 1.3; }
.landing-guia-texto small { font-size: 0.78rem; line-height: 1.35; color: var(--texto-suave); }
.landing-guia-flecha { font-size: 1.4rem; color: var(--texto-suave); }
.landing-guias-subtitulo { margin: 0 4px 8px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--texto-suave); }
.landing-guias-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.landing-guias-chips a { padding: 6px 12px; border-radius: 99px; font-size: 0.8rem; font-weight: 700; text-decoration: none; color: var(--verde); background: var(--verde-suave); }

/* Mascota que se balancea en la cabecera de guías y páginas de la app */
.contenido-cabecera { padding-right: 104px; }
.contenido-mascota {
  position: absolute; top: 14px; right: 12px; width: 84px; height: auto; pointer-events: none;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.18)); transform-origin: 50% 90%;
  animation: contenido-mascota 3.6s ease-in-out infinite;
}
@keyframes contenido-mascota {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-6px) rotate(4deg); }
  62% { transform: translateY(-3px) rotate(-2deg); }
}
@media (max-width: 420px) {
  .contenido-cabecera { padding-right: 20px; padding-top: 86px; }
  .contenido-mascota { width: 70px; top: 10px; right: 14px; }
}
@media (prefers-reduced-motion: reduce) { .contenido-mascota { animation: none; } }

/* Puntaje provisional (la etiqueta no declara azúcares) */
.provisional { display: flex; align-items: center; gap: 14px; margin: 14px 0; padding: 16px; border-radius: 20px; background: #fff; border: 1.5px dashed #cfdcd3; }
.provisional-letras { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.provisional-letra { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: #fff; font-weight: 800; font-size: 1.4rem; box-shadow: 0 6px 14px -8px rgba(0, 0, 0, 0.45); }
.provisional-guion { font-size: 0.8rem; font-weight: 700; color: var(--texto-suave); }
.provisional-texto { min-width: 0; }
.provisional-tag { display: inline-block; margin-bottom: 4px; padding: 2px 9px; border-radius: 99px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: #8a6a12; background: #fff4d6; }
.provisional-texto strong { display: block; font-size: 0.95rem; }
.provisional-texto p { margin: 4px 0 0; font-size: 0.84rem; line-height: 1.5; color: var(--texto-suave); }
.letra-provisional { width: auto; min-width: 26px; padding: 0 6px; font-size: 0.72rem; white-space: nowrap; outline: 1.5px dashed rgba(255, 255, 255, 0.9); outline-offset: -3px; }
@media (max-width: 380px) { .provisional { flex-direction: column; align-items: flex-start; } }
