:root {
  --fondo: #131a22;
  --tarjeta: #1b2530;
  --suave: #24313f;
  --texto: #eef2f6;
  --texto-2: #a5b3c3;
  --texto-3: #74849a;
  --linea: rgba(170, 200, 235, .12);
  --acento: #f2a232;
  --estrella: #f2a232;
  --estrella-vacia: #3a495b;
  --radio: 12px;
  --error: #ff8370;
  color-scheme: dark;
}
/* modo claro (se elige en el menú de la cuenta) */
:root[data-tema="claro"] {
  --fondo: #f6f7f9;
  --tarjeta: #ffffff;
  --suave: #e8ecf1;
  --texto: #16202b;
  --texto-2: #4d5b6b;
  --texto-3: #788596;
  --linea: rgba(20, 40, 70, .15);
  --acento: #c97a10;
  --estrella: #f2a232;
  --estrella-vacia: #cdd5de;
  --error: #c0392b;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--fondo); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--fondo); color: var(--texto);
  font: 400 16px/1.5 "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; }
main { flex: 1; width: 100%; max-width: 960px; margin: 0 auto; padding: 0 16px 48px; }
[hidden] { display: none !important; }

/* barra superior */
.barra {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 16px;
  padding: 10px 16px; background: var(--fondo); border-bottom: 1px solid var(--linea);
}
.logo { font-weight: 700; font-size: 22px; letter-spacing: -.5px; }
.logo::after { content: "."; color: var(--acento); }

.barra.en-inicio { border-bottom-color: transparent; }
.barra.en-inicio .logo, .barra.en-inicio .buscador { visibility: hidden; }
.cuenta { margin-left: auto; flex-shrink: 0; }
.boton-entrar { padding: 7px 16px; }
.boton-avatar { background: none; border: 0; padding: 0; cursor: pointer; border-radius: 50%; display: block; }
.foto-32 { width: 40px; height: 40px; }
.foto-24 { width: 24px; height: 24px; }

/* buscador */
.buscador { position: relative; flex: 1; max-width: 560px; }
.buscador input {
  width: 100%; height: 52px; padding: 0 18px 0 46px; border-radius: 999px;
  border: 1px solid var(--linea); background: var(--tarjeta); color: var(--texto);
  font: inherit; font-size: 17px; outline: none; transition: border-color .15s;
}
.buscador input:focus { border-color: var(--acento); }
.buscador.chico input { height: 40px; font-size: 15px; padding-left: 40px; }
.lupa { position: absolute; left: 17px; top: 50%; transform: translateY(-52%); font-size: 22px; color: var(--texto-3); pointer-events: none; }
.buscador.chico .lupa { left: 14px; font-size: 19px; }

/* portada */
.inicio { padding: 7vh 0 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; text-align: center; }
.inicio .logo { font-size: 56px; letter-spacing: -2px; }
.inicio p { margin: -8px 0 8px; color: var(--texto-2); font-size: 17px; }
.inicio .buscador { width: 100%; flex: none; }
.titulo-seccion { font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--texto-2); border-bottom: 1px solid var(--linea); padding-bottom: 8px; margin: 34px 0 14px; }
.grilla-actividad { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px 12px; }
.tarjeta-actividad { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.tarjeta-actividad .tapa { width: 100%; }
.tarjeta-actividad .t { font-size: 14px; font-weight: 500; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tarjeta-actividad .a { font-size: 12px; color: var(--texto-2); margin-top: -4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quien { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; min-width: 0; }
.quien span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quien:hover { color: var(--acento); }
.foto-20 { width: 20px; height: 20px; flex: none; }
.pie-actividad { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.pie-actividad .gris-3 { margin-left: auto; white-space: nowrap; }
.pie-actividad .prom { color: var(--estrella); font-weight: 500; }
.con-resena { display: flex; color: var(--texto-3); }
.con-resena svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.tapa-64 { width: 64px; height: 64px; flex: none; }
.linea-resena .quien { margin-right: 4px; }
.recorte { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip { padding: 7px 14px; border-radius: 999px; background: var(--suave); color: var(--texto-2); font-size: 14px; cursor: pointer; border: 0; font-family: inherit; }
.chip:hover { color: var(--texto); }

/* títulos */
h1 { font-size: 30px; line-height: 1.15; letter-spacing: -.5px; margin: 0; font-weight: 700; }
h2 { font-size: 19px; margin: 32px 0 12px; font-weight: 700; display: flex; align-items: baseline; gap: 8px; }
h2 small { font-size: 14px; font-weight: 400; color: var(--texto-3); }
.gris { color: var(--texto-2); }
.gris-3 { color: var(--texto-3); font-size: 14px; }

/* filas del buscador */
.lista { display: flex; flex-direction: column; }
.fila { display: flex; align-items: center; gap: 14px; padding: 10px 8px; margin: 0 -8px; border-radius: 10px; }
.fila:hover { background: var(--suave); }
.fila .texto { min-width: 0; }
.fila .nombre { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fila .sub { font-size: 14px; color: var(--texto-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* fotos y tapas */
.foto { position: relative; flex-shrink: 0; border-radius: 50%; overflow: hidden; background: var(--suave); display: flex; align-items: flex-end; justify-content: center; }
.silueta { width: 72%; height: 72%; fill: var(--texto-3); opacity: .45; }
.tapa { position: relative; flex-shrink: 0; border-radius: 6px; overflow: hidden; background: var(--suave); aspect-ratio: 1; }
/* sin tapa: un vinilo negro con etiqueta neutra (nunca colores inventados) */
.tapa::before { content: ""; position: absolute; inset: 9%; border-radius: 50%;
  background: radial-gradient(circle, var(--fondo) 0 2.5%, #d8d4ca 3% 30%, #0e0e0e 31% 33%, transparent 34%),
              repeating-radial-gradient(circle, #1c1c1c 0 1px, #262626 1px 2.5px);
  box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.tapa.cargando::before { display: none; }
.foto img, .tapa img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.foto-48 { width: 48px; height: 48px; font-size: 17px; }
.tapa-48 { width: 48px; }

/* página de artista */
.cabecera { display: flex; gap: 24px; align-items: center; padding: 28px 0 8px; }
.foto-grande { width: 168px; height: 168px; font-size: 52px; }
.cabecera .datos { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.etiquetas { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.etiqueta { padding: 3px 10px; border-radius: 999px; background: var(--suave); color: var(--texto-2); font-size: 13px; }
.enlaces { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.enlace { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--linea); font-size: 13px; color: var(--texto-2); background: none; font-family: inherit; cursor: pointer; }
.enlace:hover { color: var(--texto); border-color: var(--texto-3); }

.grilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 18px 14px; }
.disco .tapa { width: 100%; }
.disco .t { margin-top: 7px; font-size: 14px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.disco .a { font-size: 13px; color: var(--texto-3); }
.disco:hover .t { color: var(--acento); }
.ver-mas { margin-top: 14px; background: none; border: 1px solid var(--linea); color: var(--texto-2); border-radius: 999px; padding: 7px 16px; font: inherit; font-size: 14px; cursor: pointer; }
.ver-mas:hover { color: var(--texto); }

/* álbum y canción */
.tapa-grande { width: 220px; box-shadow: 0 8px 28px rgba(0,0,0,.18); }
.artistas { font-size: 17px; font-weight: 500; }
.link:hover { color: var(--acento); }
.temas { list-style: none; margin: 0; padding: 0; }
.tema { display: flex; align-items: center; gap: 10px; padding: 9px 8px; margin: 0 -8px; border-radius: 10px; border-bottom: 1px solid var(--linea); }
.tema:last-child { border-bottom: 0; }
.tema.resaltado { background: var(--suave); }
.tema .num { width: 22px; text-align: right; color: var(--texto-3); font-size: 14px; flex-shrink: 0; }
.tema .texto { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tema .nombre { font-weight: 500; line-height: 1.3; }
.tema .sub, .fila .sub { font-size: 13px; color: var(--texto-2); }
.titulo-temas { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.titulo-temas h2 { margin: 0 0 8px; }
.dur { color: var(--texto-3); font-size: 14px; font-variant-numeric: tabular-nums; flex-shrink: 0; margin-left: auto; }

/* estrellas */
.st { display: inline-flex; gap: 2px; cursor: pointer; user-select: none; -webkit-user-select: none; flex-shrink: 0; font-size: 23px; line-height: 1; outline-offset: 3px; padding: 4px 0; touch-action: pan-y; -webkit-tap-highlight-color: transparent; }
.st.eligiendo .lleno { color: #ffc266; }
.st-grande { font-size: 34px; gap: 3px; }
.st .e { position: relative; color: var(--estrella-vacia); }
.st .lleno { position: absolute; left: 0; top: 0; overflow: hidden; color: var(--estrella); white-space: nowrap; pointer-events: none; }

/* cuadraditos de reseña */
.cuadradito { width: 28px; height: 28px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--linea); border-radius: 7px; background: none; color: var(--texto-3); cursor: pointer; padding: 0; }
.cuadradito:hover { color: var(--texto); border-color: var(--texto-3); }
.cuadradito svg, .boton-resena svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.cuadradito.hecho { color: var(--acento); border-color: var(--acento); }

/* recuadro "Tu puntaje" del disco */
.mi-puntaje { background: var(--tarjeta); border: 1px solid var(--linea); border-radius: var(--radio); padding: 14px 16px; margin-top: 20px; display: flex; flex-direction: column; gap: 12px; max-width: 520px; }
.fila-puntaje { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.boton-resena { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 40px; border: 1px solid var(--linea); border-radius: 10px; background: none; color: var(--texto); font: inherit; font-size: 15px; cursor: pointer; }
.boton-resena:hover { background: var(--suave); }
.botones-album { display: flex; gap: 8px; }
#mi-estado { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
#mi-estado .fila-puntaje { width: 100%; }
.mi-puntaje .st-fijo { font-size: 19px; }
.enlace-texto { background: none; border: 0; padding: 0; color: var(--texto-2); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.enlace-texto:hover { color: var(--acento); }
.gente { display: flex; gap: 8px; align-items: center; margin-top: 2px; }
.gente .enlace-texto { text-decoration: none; font-size: 14px; color: var(--texto); }
.gente .enlace-texto:hover { color: var(--acento); }
.hoja textarea#texto-escucha { min-height: 90px; }
.tilde { display: flex; align-items: center; gap: 8px; font-size: 15px; cursor: pointer; }
.tilde input { width: 18px; height: 18px; accent-color: var(--acento); margin: 0; }
.tilde svg, .icono-reescucha svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--texto-2); }
.campo input[type=date] { font-size: 15px; }
.diario { max-width: 680px; }
.diario .mes { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--texto-2); margin: 16px 0 4px; }
.diario .mes::first-letter { text-transform: uppercase; }
.entrada { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--linea); }
.entrada .dia { width: 30px; text-align: center; font-size: 20px; font-weight: 600; color: var(--texto-2); flex: none; }
.entrada .texto { flex: 1; min-width: 0; }
.entrada .nombre { font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entrada .nombre:hover { color: var(--acento); }
.entrada .sub { font-size: 13px; color: var(--texto-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icono-reescucha { display: flex; flex: none; }
.borrar-escucha { background: none; border: 0; color: var(--texto-3, var(--texto-2)); font-size: 20px; line-height: 1; cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.borrar-escucha:hover { background: var(--suave); color: var(--texto); }

/* comunidad */
.comunidad { font-size: 15px; color: var(--texto-2); min-height: 22px; }
.estrellita { color: var(--estrella); }
.cuadradito.leer { position: relative; }
.num-resenas { position: absolute; top: -6px; right: -6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--texto); color: var(--fondo); font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; }
.st-fijo { cursor: default; font-size: 13px; gap: 1px; padding: 0; touch-action: auto; }

/* artista: seguir */
.acciones-artista { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.boton-seguir { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--linea); background: none; color: var(--texto); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.boton-seguir svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.boton-seguir.activo { border-color: var(--acento); color: var(--acento); }
.boton-seguir.activo svg { fill: currentColor; }
.mini-prom { white-space: nowrap; }

/* perfil */
.frase { margin: 2px 0; font-size: 16px; }
.cifras { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; margin-top: 20px; max-width: 680px; }
.cifra { background: var(--tarjeta); border: 1px solid var(--linea); border-radius: var(--radio); padding: 12px; display: flex; flex-direction: column; align-items: center; }
.cifra strong { font-size: 22px; }
.cifra span { font-size: 13px; color: var(--texto-2); }
.disco .a .st-fijo { font-size: 13px; }
.lista-resenas-perfil { display: flex; flex-direction: column; }
.resena-perfil { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--linea); }
.resena-perfil .texto { flex: 1; min-width: 0; }
.resena-perfil .nombre { font-weight: 700; display: block; line-height: 1.3; }
.resena-perfil .sub { font-size: 14px; color: var(--texto-2); }
.resena-perfil .sub b { font-weight: 500; color: var(--texto); }
/* nada se sale de la pantalla: las palabras larguísimas se cortan */
p, h1, h3, .nombre, .sub, .frase { overflow-wrap: anywhere; }
.ver-texto { font-size: inherit; white-space: nowrap; }
.pais { font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--texto-2); margin-left: 6px; white-space: nowrap; }
.campo select { height: 40px; border: 1px solid var(--linea); border-radius: 10px; background: var(--fondo); color: var(--texto); font: inherit; font-size: 15px; padding: 0 8px; outline: none; width: 100%; }
#hoja { overflow-y: auto; }
.resena-perfil .nombre:hover { color: var(--acento); }
.resena-perfil p { margin: 6px 0 0; white-space: pre-wrap; }
.linea-resena { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.artistas-seguidos { display: flex; flex-wrap: wrap; gap: 16px; }
.artista-seguido { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 84px; text-align: center; font-size: 13px; line-height: 1.25; }
.artista-seguido:hover span { color: var(--acento); }
.foto-64 { width: 64px; height: 64px; }
.autor { display: inline-flex; align-items: center; gap: 8px; }
.autor:hover span { color: var(--acento); }
.campo { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--texto-2); }
.campo input { height: 40px; border: 1px solid var(--linea); border-radius: 10px; background: var(--fondo); color: var(--texto); font: inherit; font-size: 15px; padding: 0 12px; outline: none; width: 100%; }
.campo input:focus { border-color: var(--acento); }
.con-arroba { display: flex; align-items: center; gap: 4px; }
.con-arroba b { color: var(--texto-3); font-weight: 500; }

/* ventanita de reseñas */
#hoja { border: 0; padding: 0; background: transparent; width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); }
#hoja::backdrop { background: rgba(0,0,0,.45); }
.hoja { background: var(--tarjeta); color: var(--texto); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.hoja h3 { margin: -6px 0 0; font-size: 20px; }
.hoja p { margin: 0; }
.hoja textarea { width: 100%; resize: vertical; min-height: 120px; border: 1px solid var(--linea); border-radius: 10px; background: var(--fondo); color: var(--texto); font: inherit; padding: 10px 12px; outline: none; }
.hoja textarea:focus { border-color: var(--acento); }
.editar-foto { display: flex; align-items: center; gap: 14px; }
.editar-foto .enlaces { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.hoja-botones { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.boton-suave { background: none; border: 1px solid var(--linea); color: var(--texto-2); border-radius: 999px; padding: 8px 16px; font: inherit; cursor: pointer; }
.error { color: var(--error); font-size: 13px; }
.resena { border-top: 1px solid var(--linea); padding-top: 10px; }
.resena-autor { font-weight: 500; font-size: 14px; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fecha-resena { font-weight: 400; margin-left: auto; }
#lista-resenas { max-height: 60vh; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.yo { display: flex; align-items: center; gap: 12px; background: none; border: 0; padding: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.yo:hover .nombre-yo { color: var(--acento); }
.pais img { display: inline-block; width: 22px; height: auto; border-radius: 2px; margin-right: 6px; vertical-align: -2px; }
/* calendario de "¿Cuándo lo escuchaste?" */
.fecha-boton { display: flex; align-items: center; gap: 10px; width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--linea); border-radius: 12px; background: var(--fondo); color: var(--texto); font: inherit; font-size: 15px; cursor: pointer; text-align: left; }
.fecha-boton svg { width: 18px; height: 18px; fill: none; stroke: var(--acento); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.fecha-boton:hover, .fecha-boton.abierto { border-color: var(--acento); }
.calendario { margin-top: 8px; padding: 12px; border: 1px solid var(--linea); border-radius: 14px; background: var(--fondo); color: var(--texto); }
.cal-cabeza { display: flex; align-items: center; gap: 2px; margin-bottom: 8px; }
.cal-cabeza strong { flex: 1; text-align: center; }
.cal-cabeza strong { font-size: 15px; display: inline-block; }
.cal-cabeza strong::first-letter { text-transform: uppercase; }
.cal-cabeza button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: none; color: var(--texto); font-size: 22px; line-height: 1; cursor: pointer; }
.cal-cabeza button:hover:not(:disabled) { background: var(--suave); }
.cal-cabeza button:disabled { opacity: .25; cursor: default; }
.cal-grilla { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; justify-items: center; }
.cal-sem { font-size: 11px; text-transform: uppercase; color: var(--texto-3); padding: 4px 0; }
.cal-dia { width: 36px; height: 36px; border-radius: 50%; border: 1px solid transparent; background: none; color: var(--texto); font: inherit; font-size: 14px; cursor: pointer; padding: 0; }
.cal-dia:hover:not(:disabled) { background: var(--suave); }
.cal-dia.es-hoy { border-color: var(--texto-3); }
.cal-dia.elegido { background: var(--acento); border-color: var(--acento); color: #16202b; font-weight: 700; }
.cal-dia:disabled { color: var(--texto-3); opacity: .4; cursor: default; }
.cal-atajos { display: flex; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--linea); }
.cal-atajos button { padding: 5px 14px; border-radius: 999px; border: 1px solid var(--linea); background: none; color: var(--texto-2); font: inherit; font-size: 13px; cursor: pointer; }
.cal-atajos button:hover { color: var(--texto); border-color: var(--texto-3); }
:root[data-tema="claro"] .cal-dia.elegido { color: #fff; }
.pie-resena-perfil { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.pie-resena-perfil:empty { display: none; }
.pie-resena-perfil .likes-perfil { margin-top: 0; }
.acciones-resena { display: flex; gap: 14px; }
.acciones-resena .enlace-texto { color: var(--texto-3); text-decoration: none; }
.acciones-resena .enlace-texto:hover { color: var(--acento); text-decoration: underline; }
.pestanas { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 32px 0 4px; border-bottom: 1px solid var(--linea); }
.pestana { background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 0 0 8px; font: inherit; font-size: 19px; font-weight: 700; color: var(--texto-3); cursor: pointer; }
.pestana small { font-size: 14px; font-weight: 400; }
.pestana:hover { color: var(--texto-2); }
.pestana.activa { color: var(--texto); border-bottom-color: var(--acento); }
.nombre-yo { font-weight: 700; font-size: 17px; }
.boton-google { min-height: 44px; display: flex; justify-content: center; align-items: center; color-scheme: light; }
.prueba { border-top: 1px dashed var(--linea); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.fila-prueba { display: flex; gap: 8px; }
.fila-prueba input { flex: 1; min-width: 0; height: 40px; border: 1px solid var(--linea); border-radius: 10px; background: var(--fondo); color: var(--texto); font: inherit; padding: 0 12px; outline: none; }
.fila-prueba input:focus { border-color: var(--acento); }
.resena p { white-space: pre-wrap; }
.like { display: inline-flex; align-items: center; gap: 5px; background: none; border: 0; padding: 4px 6px 4px 0; color: var(--texto-3); font: inherit; font-size: 13px; cursor: pointer; }
.like svg, .likes-perfil svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.like:hover:not([disabled]) { color: var(--acento); }
.like.activo { color: var(--acento); }
.like.activo svg { fill: currentColor; }
.like[disabled] { cursor: default; }
.pie-resena { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.denunciar { background: none; border: 0; padding: 4px 0; color: var(--texto-3); font: inherit; font-size: 12px; cursor: pointer; margin-left: auto; }
.denunciar:hover { color: var(--texto); text-decoration: underline; }
.cabecera .denunciar { margin: 6px 0 0; align-self: flex-start; display: block; }
.motivos { display: flex; flex-direction: column; gap: 10px; }
.num-pendientes { background: var(--acento); color: #fff; border-radius: 999px; font-size: 12px; min-width: 20px; height: 20px; display: inline-grid; place-items: center; padding: 0 6px; }
.casos { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.caso { background: var(--tarjeta); border: 1px solid var(--linea); border-radius: var(--radio); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.caso-cabeza { display: flex; align-items: baseline; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.caso-cabeza .autor { font-weight: 500; }
.caso-de { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 14px; }
.caso-de a:hover, .caso-cabeza a:hover { color: var(--acento); }
.caso-texto { margin: 0; white-space: pre-wrap; }
.caso-motivos { font-size: 13px; color: var(--texto-2); }
.aviso-oculta { color: var(--error); }
.caso-foto { flex-direction: row; align-items: center; gap: 16px; }
.caso-foto .foto-grande { width: 120px; height: 120px; flex: none; }
.likes-perfil { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; color: var(--texto-3); font-size: 13px; }

/* estados */
.cargando { background: var(--suave); border-radius: 6px; animation: late 1.2s ease-in-out infinite; }
@keyframes late { 50% { opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .cargando { animation: none; } }
.aviso { padding: 48px 0; text-align: center; color: var(--texto-2); }
.aviso button { margin-top: 12px; }
.boton { background: var(--texto); color: var(--fondo); border: 0; border-radius: 999px; padding: 9px 18px; font: inherit; font-weight: 500; cursor: pointer; }

/* pie */
.pie { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 16px; border-top: 1px solid var(--linea); color: var(--texto-3); font-size: 13px; }
.pie a { text-decoration: underline; }
.legal { max-width: 680px; padding-top: 24px; }
.legal h2 { font-size: 17px; margin: 26px 0 6px; }
.legal p { margin: 0 0 10px; color: var(--texto-2); }
.pie .enlace-texto { color: var(--texto-3); }
.redes:empty { display: none; }
.hoja .campo input[type=email] { font-size: 15px; }
.pie select { background: var(--tarjeta); color: var(--texto-2); border: 1px solid var(--linea); border-radius: 8px; padding: 4px 6px; font: inherit; }

@media (max-width: 600px) {
  .barra { gap: 12px; }
  .barra .logo { font-size: 19px; }
  .inicio .logo { font-size: 44px; }
  .cabecera { flex-direction: column; text-align: center; gap: 14px; padding-top: 20px; }
  .cabecera .etiquetas, .cabecera .enlaces { justify-content: center; }
  .foto-grande { width: 148px; height: 148px; }
  .tapa-grande { width: 200px; }
  .mi-puntaje { max-width: none; }
  .acciones-artista { justify-content: center; }
  .cifras { gap: 6px; }
  .cifra { padding: 10px 2px; }
  .cifra span { font-size: 11px; }
  .cifra strong { font-size: 19px; }
  .tema { gap: 7px; }
  .tema .num { width: 16px; font-size: 13px; }
  .tema .nombre { font-size: 15px; }
  .cuadradito { width: 26px; height: 26px; }
  .st { font-size: 21px; gap: 1px; }
  .st-fijo { font-size: 13px; }
  .st-grande { font-size: 34px; }
  h1 { font-size: 26px; }
  .grilla { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; }
  .disco .t { font-size: 13px; }
}
.foto.cargando { border-radius: 50%; }
@media (max-width: 600px) {
  .grilla-actividad { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; }
  .inicio { padding-top: 4vh; }
  .pie-actividad { flex-wrap: wrap; gap: 2px 6px; }
  .pie-actividad .gris-3 { margin-left: 0; }
  .pie-actividad .st-fijo { font-size: 12px; }
}
@media (max-width: 600px) {
  /* las dos pestañas de reseñas, una al lado de la otra también en el celular */
  .pestanas { flex-wrap: nowrap; gap: 14px; overflow-x: auto; scrollbar-width: none; }
  .pestana { font-size: 14.5px; white-space: nowrap; flex: none; }
  .pestana small { font-size: 12px; }
}
@media (max-width: 600px) {
  .cal-cabeza strong { font-size: 14px; white-space: nowrap; }
  .cal-cabeza button { width: 30px; height: 30px; }
}

/* la fecha escrita (día / mes / año) y el cuadradito del calendario a la derecha */
.fecha-fila { display: flex; align-items: center; gap: 6px; }
.fecha-fila input { height: 44px; border: 1px solid var(--linea); border-radius: 12px; background: var(--fondo); color: var(--texto); font: inherit; font-size: 16px; text-align: center; padding: 0; outline: none; width: 54px; font-variant-numeric: tabular-nums; }
.fecha-fila input.f-anio { width: 76px; }
.fecha-fila input:focus { border-color: var(--acento); }
.fecha-fila.mal input { border-color: var(--error); }
.fecha-fila > span { color: var(--texto-3); }
.fecha-cal { margin-left: auto; width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 1px solid var(--linea); border-radius: 12px; background: var(--fondo); cursor: pointer; padding: 0; }
.fecha-cal svg { width: 20px; height: 20px; fill: none; stroke: var(--acento); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fecha-cal:hover, .fecha-cal.abierto { border-color: var(--acento); }
/* menú de la cuenta: chico, arriba a la derecha, debajo de la foto, sin oscurecer la página */
#hoja.menu { margin: 58px 12px auto auto; width: min(270px, calc(100vw - 24px)); overflow: visible; }
#hoja.menu::backdrop { background: transparent; }
#hoja.menu .hoja { padding: 14px; gap: 8px; border: 1px solid var(--linea); box-shadow: 0 10px 30px rgba(0,0,0,.35); border-radius: 14px; }
#hoja.menu .boton-resena { height: 36px; font-size: 14px; }
#hoja.menu .hoja-botones .boton, #hoja.menu .hoja-botones .boton-suave { padding: 7px 14px; font-size: 14px; }
#hoja.menu .foto-48 { width: 40px; height: 40px; }
#hoja.menu .nombre-yo { font-size: 15px; }

/* listas de seguidores / seguidos: la persona y, a la derecha, el botón para seguirla */
.fila-gente { display: flex; align-items: center; gap: 10px; }
.fila-gente .fila { flex: 1; min-width: 0; margin: 0; }
.boton-seguir.chico { height: 32px; padding: 0 12px; font-size: 13px; flex: none; white-space: nowrap; }
.boton-seguir.chico:not(.activo) { background: var(--texto); color: var(--fondo); border-color: var(--texto); }
.boton-seguir.chico.activo { border-color: var(--linea); color: var(--texto-2); }
.boton-seguir.chico.activo:hover { border-color: var(--error); color: var(--error); }
#lista-gente { max-height: 60vh; overflow-y: auto; }

/* campanita de notificaciones */
.cuenta { display: flex; align-items: center; gap: 10px; }
.campana { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: none; color: var(--texto-2); cursor: pointer; border-radius: 50%; padding: 0; }
.campana:hover { color: var(--texto); background: var(--suave); }
.campana svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.campana b { position: absolute; top: 2px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--acento); color: #16202b; font-size: 11px; font-weight: 700; line-height: 17px; text-align: center; }
#hoja.menu.avisos { width: min(340px, calc(100vw - 24px)); }
#hoja.menu.avisos h3 { margin: 0; font-size: 16px; }
#lista-avisos { display: flex; flex-direction: column; max-height: min(60vh, 420px); overflow-y: auto; margin: 0 -6px; }
.aviso-fila { display: flex; align-items: flex-start; gap: 10px; padding: 8px 6px; border-radius: 10px; font-size: 14px; line-height: 1.35; }
.aviso-fila:hover { background: var(--suave); }
.aviso-fila.nuevo { background: color-mix(in srgb, var(--acento) 12%, transparent); }
.aviso-texto b { font-weight: 700; }
.aviso-texto .gris-3 { font-size: 12px; white-space: nowrap; }
#lista-avisos > p { margin: 4px 6px; }
/* los 4 favoritos del perfil */
.favoritos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; max-width: 680px; }
.favorito { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.favorito .disco { width: 100%; }
.favorito.vacio { aspect-ratio: 1; align-items: center; justify-content: center; border: 1.5px dashed var(--linea); border-radius: 6px; background: none; color: var(--texto-3); cursor: pointer; font: inherit; }
.favorito.vacio span { font-size: 30px; line-height: 1; }
.favorito.vacio:hover { border-color: var(--acento); color: var(--acento); }
.favorito.hueco { aspect-ratio: 1; border-radius: 6px; background: var(--tarjeta); opacity: .5; }
.cambiar-favorito { margin-top: 4px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--linea); background: none; color: var(--texto); font: inherit; font-size: 12px; font-weight: 500; cursor: pointer; }
.cambiar-favorito:hover { border-color: var(--acento); color: var(--acento); }
.fila-boton.elegida { background: var(--suave); box-shadow: inset 0 0 0 1.5px var(--acento); }
.boton:disabled { opacity: .4; cursor: default; }
.fila-boton { width: calc(100% + 16px); background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
#lista-favorito { max-height: 46vh; overflow-y: auto; padding: 0 8px; margin: 0 -8px; }
#lista-favorito:empty { display: none; }
.hoja .campo input[type=search] { font-size: 16px; }
@media (max-width: 600px) {
  .favoritos { gap: 8px; }
  .favorito .t { font-size: 12px; }
  .favorito .a { font-size: 11px; }
  .cuenta { gap: 4px; }
}

/* listas */
.titulo-con-boton { display: flex; align-items: center; gap: 14px; margin: 32px 0 12px; }
.titulo-con-boton h2 { margin: 0; }
.boton.chico { padding: 5px 13px; font-size: 13px; }
.listas { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px 16px; }
.lista-tarjeta { min-width: 0; }
.lista-tarjeta .mosaico { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; border-radius: 6px; overflow: hidden; }
.lista-tarjeta .mosaico .tapa { width: 100%; border-radius: 0; }
.tapa.hueca { aspect-ratio: 1; background: var(--tarjeta); }
.lista-tarjeta .t { margin-top: 7px; font-size: 14px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lista-tarjeta .a { font-size: 13px; color: var(--texto-3); }
.lista-tarjeta:hover .t { color: var(--acento); }
.cabecera-lista { display: flex; flex-direction: column; gap: 6px; padding: 28px 0 22px; }
.cabecera-lista h1 { margin: 0; }
.cabecera-lista .frase { max-width: 640px; white-space: pre-line; }
.cabecera-lista .enlaces { align-items: center; margin-top: 10px; }
.cabecera-lista .enlaces .boton { padding: 8px 16px; }
.en-lista { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.en-lista .disco { flex: 1; }
.en-lista .puesto { color: var(--acento); font-weight: 600; }
.mover { display: flex; gap: 4px; }
.mover button { flex: 1; height: 28px; border: 1px solid var(--linea); border-radius: 8px; background: none; color: var(--texto); font: inherit; font-size: 17px; line-height: 1; cursor: pointer; }
.mover button:hover:not(:disabled) { border-color: var(--acento); color: var(--acento); }
.mover button:disabled { opacity: .3; cursor: default; }
.boton-suave.peligro { border-color: var(--error); color: var(--error); }
#mis-listas { max-height: 46vh; overflow-y: auto; padding: 0 8px; margin: 0 -8px; }
.fila-lista { align-items: center; }
.tilde-lista { flex: none; width: 22px; height: 22px; border: 1.5px solid var(--linea); border-radius: 6px; display: grid; place-items: center; }
.fila-lista.elegida .tilde-lista { background: var(--acento); border-color: var(--acento); }
.fila-lista.elegida .tilde-lista::after { content: ""; width: 10px; height: 5px; border-left: 2px solid #111; border-bottom: 2px solid #111; transform: rotate(-45deg) translateY(-1px); }
.hoja textarea#descripcion-lista { min-height: 70px; }
@media (max-width: 600px) {
  .listas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .cabecera-lista { padding-top: 20px; }
}

/* estadísticas */
.enlace-claro { display: inline-flex; align-items: center; gap: 6px; color: var(--texto); text-decoration: none; }
.enlace-claro:hover { border-color: var(--acento); color: var(--acento); }
.enlace-claro svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.pestanas-anios { margin-top: 0; }
.columnas { display: grid; grid-template-columns: repeat(var(--cuantas), minmax(0, 1fr)); gap: 6px; align-items: end; max-width: 680px; }
.columna { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; min-width: 0; }
.columna i { display: block; width: 100%; min-height: 2px; background: var(--acento); border-radius: 4px 4px 0 0; }
.columna .n { font-size: 12px; color: var(--texto-2); }
.columna .e { font-size: 12px; color: var(--texto-3); white-space: nowrap; overflow: hidden; max-width: 100%; }
.renglones { display: flex; flex-direction: column; gap: 12px; max-width: 680px; }
.renglon .arriba { display: flex; align-items: baseline; gap: 10px; font-size: 14px; }
.renglon .nombre { flex: 1; min-width: 0; font-weight: 500; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.renglon .nombre a:hover { color: var(--acento); }
.renglon .riel { margin-top: 5px; height: 6px; border-radius: 3px; background: var(--tarjeta); overflow: hidden; }
.renglon .riel i { display: block; height: 100%; background: var(--acento); border-radius: 3px; }
.prom { color: var(--acento); font-size: 14px; white-space: nowrap; }
@media (max-width: 600px) {
  .columnas { gap: 3px; }
  .columna .e, .columna .n { font-size: 10px; }
}

/* imagen para compartir "Mi año en música" */
.boton.chico svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vertical-align: -2px; margin-right: 6px; }
#vista-imagen { display: flex; justify-content: center; }
#vista-imagen img { max-height: 58vh; max-width: 100%; border-radius: 10px; border: 1px solid var(--linea); }
#botones-imagen { display: flex; gap: 8px; align-items: center; }
#botones-imagen a { text-decoration: none; display: inline-block; }

/* el nombre del artista lleva a su página */
.a-artista:hover { color: var(--acento); text-decoration: underline; }

/* perfil condensado: resumen en dos columnas y pestañas para ver todo */
a.cifra { text-decoration: none; color: inherit; }
a.cifra:hover { border-color: var(--acento); }
.nav-perfil { display: flex; gap: 22px; margin: 22px 0 0; border-bottom: 1px solid var(--linea); overflow-x: auto; scrollbar-width: none; }
.nav-perfil::-webkit-scrollbar { display: none; }
.nav-perfil a { padding: 0 0 9px; margin-bottom: -1px; border-bottom: 2px solid transparent; font-size: 15px; font-weight: 500; color: var(--texto-3); white-space: nowrap; text-decoration: none; }
.nav-perfil a:hover { color: var(--texto); }
.nav-perfil a.activa { color: var(--texto); border-bottom-color: var(--acento); }
.perfil-resumen { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 0 48px; align-items: start; }
.perfil-resumen .favoritos { max-width: none; }
.titulo-seccion { display: flex; align-items: baseline; gap: 12px; margin: 28px 0 12px; }
.titulo-seccion h2 { margin: 0; font-size: 17px; }
.titulo-seccion h2 a { color: inherit; text-decoration: none; }
.titulo-seccion h2 a:hover { color: var(--acento); }
.titulo-seccion .ver-todo { margin-left: auto; font-size: 13px; color: var(--texto-3); text-decoration: none; white-space: nowrap; }
.titulo-seccion .ver-todo:hover { color: var(--acento); }
.grilla.de-cuatro { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.listas.de-dos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lateral .lista-tarjeta .t { font-size: 13px; }
.lateral .lista-tarjeta .a { font-size: 12px; }
.diario-corto .mes { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--texto-3); margin: 10px 0 2px; }
.diario-corto .mes:first-child { margin-top: 0; }
.renglon-diario { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--linea); font-size: 14px; text-decoration: none; color: inherit; }
.renglon-diario .dia { width: 22px; text-align: center; font-weight: 600; color: var(--texto-2); flex: none; }
.renglon-diario .nombre { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.renglon-diario:hover .nombre { color: var(--acento); }
.renglon-diario .st-fijo { font-size: 11px; flex: none; }
.mini-puntajes { display: flex; align-items: flex-end; gap: 3px; height: 46px; text-decoration: none; }
.mini-puntajes i { flex: 1; background: var(--suave); border-radius: 2px 2px 0 0; }
.mini-puntajes:hover i { background: var(--acento); }
.mini-puntajes span { font-size: 10px; color: var(--estrella); letter-spacing: -1px; line-height: 1; }
.mini-artistas { display: flex; flex-wrap: wrap; gap: 8px; }
.foto-40 { width: 40px; height: 40px; }
.mini-artistas a:hover .foto { outline: 2px solid var(--acento); }
@media (max-width: 860px) {
  .perfil-resumen { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .nav-perfil { gap: 18px; margin-top: 18px; }
  .grilla.de-cuatro { gap: 8px; }
  .grilla.de-cuatro .t { font-size: 12px; }
  .grilla.de-cuatro .st-fijo { font-size: 10px; }
}

/* reseñas en la página del disco */
#resenas-album { max-width: 720px; margin-top: 12px; }
#resenas-album:empty { display: none; }
button.ver-todo { background: none; border: 0; padding: 0; font: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; }
.resenas-en-pagina .resena { padding: 12px 0; border-top: 0; border-bottom: 1px solid var(--linea); }
.resenas-en-pagina .resena:last-child { border-bottom: 0; }

/* página del disco: "Lo escuché" (resaltado) y "Agregar a una lista" en una fila, sin recuadro */
.mi-puntaje { background: none; border: 0; padding: 0; }
.acciones-disco { display: flex; gap: 10px; }
.acciones-disco .boton-resena { flex: 1; width: auto; height: 42px; white-space: nowrap; }
.boton-resena.principal { background: var(--texto); color: var(--fondo); border-color: var(--texto); font-weight: 500; }
.boton-resena.principal:hover { background: var(--texto); opacity: .9; }
.mi-puntaje #mi-estado { background: var(--tarjeta); border: 1px solid var(--linea); border-radius: var(--radio); padding: 12px 16px; }
.mi-puntaje #mi-estado[hidden] { display: none; }
@media (max-width: 420px) {
  .acciones-disco { flex-direction: column; }
  .acciones-disco .boton-resena { flex: none; width: 100%; }
}

/* buscador: toda la fila lleva al disco o a la canción, y además el artista y el disco tienen su propio enlace */
.fila { position: relative; }
.fila a.nombre { display: block; }
.fila .estirado::after { content: ""; position: absolute; inset: 0; border-radius: 10px; }
.fila .sub a { position: relative; z-index: 1; }
/* calendario: siempre 6 filas (no cambia de alto entre un mes y otro) */
.cal-hueco { width: 36px; height: 36px; }
/* página del disco: mis fechas del diario */
#mis-fechas { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; }
#mis-fechas:empty { display: none; }
.fecha-escucha { display: inline-flex; align-items: center; gap: 2px; padding: 2px 4px 2px 10px; border: 1px solid var(--linea); border-radius: 999px; color: var(--texto-2); }
.fecha-escucha button { background: none; border: 0; color: var(--texto-3); font-size: 16px; line-height: 1; cursor: pointer; padding: 2px 5px; border-radius: 50%; }
.fecha-escucha button:hover { color: var(--error); }
#poner-fecha { align-self: flex-start; }
/* página del artista: mi puntaje */
.mi-puntaje.puntaje-artista { background: var(--tarjeta); border: 1px solid var(--linea); border-radius: var(--radio); padding: 12px 16px; gap: 6px; align-items: flex-start; }
.puntaje-artista .fila-puntaje { width: 100%; }

/* la ventanita de puntuar y reseñar */
.puntuar-cabeza h3 { margin: 2px 0 0; }
.puntuar-estrellas { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 0 12px; background: var(--fondo); border: 1px solid var(--linea); border-radius: 14px; }
.fila-estrellas { position: relative; display: flex; align-items: center; }
.fila-estrellas .st-grande { font-size: 40px; gap: 4px; }
.fila-estrellas .quitar-puntaje { position: absolute; left: calc(100% + 10px); }
.puntuar-valor { font-size: 13px; color: var(--texto-2); }
.quitar-puntaje { width: 24px; height: 24px; flex: none; display: inline-grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid var(--linea); background: none; color: var(--texto-3); font: inherit; font-size: 15px; line-height: 1; cursor: pointer; }
.quitar-puntaje[hidden] { display: none; }
.quitar-puntaje:hover { color: var(--error); border-color: var(--error); }
#mis-estrellas { display: inline-flex; align-items: center; gap: 8px; }
.pastilla-fecha { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px dashed var(--linea); border-radius: 999px; background: none; color: var(--texto-2); font: inherit; font-size: 14px; cursor: pointer; }
.pastilla-fecha:hover { color: var(--texto); border-color: var(--texto-3); }
.pastilla-fecha.puesta { border-style: solid; border-color: var(--acento); color: var(--texto); }
.pastilla-fecha svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hoja textarea#texto-resena { min-height: 110px; }
.pie-resena .acciones-resena { display: inline-flex; gap: 12px; margin-left: auto; }
@media (max-width: 600px) {
  .fila-estrellas .st-grande { font-size: 36px; }
}

/* historial del buscador */
.fila .quitar-historial { margin-left: auto; position: relative; z-index: 1; width: 30px; height: 30px; font-size: 18px; }

.historial-buscador { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60; background: var(--fondo); border: 1px solid var(--linea); border-radius: 14px; padding: 4px 16px 8px; box-shadow: 0 16px 40px rgba(0, 0, 0, .45); max-height: min(70vh, 640px); overflow-y: auto; text-align: left; }
.historial-buscador[hidden] { display: none; }
.historial-buscador .titulo-seccion { margin: 12px 0 6px; }
.historial-buscador .titulo-seccion h2 { font-size: 13px; }
@media (max-width: 640px) {
  /* en celular el buscador es angosto: la ventanita ocupa todo el ancho de la pantalla */
  .barra .historial-buscador { position: fixed; left: 8px; right: 8px; top: 62px; }
}

/* ---------- pulido para celular (etapa 6) ---------- */
#hoja { max-height: calc(100dvh - 32px); }
.barra { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
@media (max-width: 600px) {
  /* el iPhone agranda toda la pantalla al tocar un campo con letra de menos de 16px */
  input, textarea, select { font-size: 16px !important; }
  .foto-grande { width: 120px; height: 120px; }
  /* todo lo que se toca con el dedo, con lugar suficiente */
  .like { min-height: 36px; padding: 6px 12px 6px 0; }
  .enlace-texto.editar-resena, .enlace-texto.borrar-resena, .acciones-resena .enlace-texto { padding: 9px 5px; }
  .borrar-escucha { min-width: 36px; min-height: 36px; }
  .cuadradito { width: 30px; height: 30px; }
  .quitar-puntaje { width: 30px; height: 30px; }
  .titulo-seccion .ver-todo { padding: 8px 0 8px 12px; }
  .gente .enlace-texto { padding: 7px 2px; }
  .denunciar { padding: 8px 4px; }
  /* el perfil, compacto: la foto a la izquierda y los datos al lado (lo importante se ve sin bajar) */
  .cabecera.de-perfil { flex-direction: row; align-items: flex-start; text-align: left; gap: 16px; padding-top: 18px; }
  .cabecera.de-perfil .foto-grande { width: 88px; height: 88px; flex: none; }
  .cabecera.de-perfil .datos { flex: 1; gap: 3px; }
  .cabecera.de-perfil h1 { font-size: 22px; margin: 0; }
  .cabecera.de-perfil .enlaces { justify-content: flex-start; margin-top: 6px; }
  .cabecera.de-perfil .gente { flex-wrap: wrap; gap: 0 8px; }
  .cabecera.de-perfil .frase { font-size: 15px; }
}

.comunidad:empty { display: none; }
