/* Ambientaza · reseñas de compras verificadas (página, cuenta y panel) */
:root { --rs-oro: #DE9A12; --rs-vacia: rgba(20, 26, 19, .17); }

/* ─── las estrellas: una fila vacía y otra llena recortada encima ─── */
.rs-estrellas { position: relative; display: inline-block; flex: none; width: 5.6em; height: 1.12em; vertical-align: -.16em; font-size: 1rem; line-height: 0; }
.rs-estrellas svg { width: 5.6em; height: 1.12em; max-width: none; }
.rs-estrellas__fondo, .rs-estrellas__lleno { position: absolute; inset: 0 auto 0 0; overflow: hidden; }
.rs-estrellas__fondo { width: 100%; fill: var(--rs-vacia); }
.rs-estrellas__lleno { fill: var(--rs-oro); }
.rs-estrellas--grande { font-size: 1.55rem; }

/* ════════════════════════ LA SECCIÓN DE LA PÁGINA ════════════════════════ */
.resenas { background: var(--papel); padding-block: clamp(4.5rem, 11vh, 8.5rem); border-top: 1px solid var(--linea-s); }
.resenas .encabezado { margin-bottom: clamp(2.2rem, 5vh, 3.6rem); }
.rs__rejilla { display: grid; gap: 2.6rem; }
.rs-resumen { align-self: start; }
.rs-resumen__t { font-size: 1.35rem; }
.rs-resumen__nota { display: flex; align-items: center; gap: .7rem; margin-top: .9rem; }
.rs-resumen__nota b { font-size: 1.15rem; font-weight: 620; font-stretch: 108%; letter-spacing: -.01em; }
.rs-resumen__n { margin-top: .35rem; color: var(--tinta-3); font-size: .95rem; }
.rs-barras { display: grid; gap: .45rem; margin-top: 1.4rem; }
.rs-barra { display: grid; grid-template-columns: 5.6rem minmax(0, 1fr) 2.8rem; align-items: center; gap: .75rem; width: 100%; min-height: 34px; padding: 0 .4rem; border: 0; border-radius: 3px; background: none; text-align: left; font-size: .94rem; color: var(--tinta-2); transition: background .2s; }
.rs-barra:not(:disabled):hover { background: rgba(20, 26, 19, .05); }
.rs-barra:not(:disabled):hover .rs-barra__k { text-decoration: underline; text-underline-offset: 3px; }
.rs-barra:disabled { cursor: default; color: var(--tinta-3); }
.rs-barra__riel { height: 18px; border-radius: 3px; background: var(--papel-3); box-shadow: inset 0 0 0 1px var(--linea); overflow: hidden; }
.rs-barra__riel i { display: block; height: 100%; background: var(--rs-oro); border-radius: 3px 0 0 3px; }
.rs-barra__pct { text-align: right; font-variant-numeric: tabular-nums; }
.rs-barra.es-activa { background: var(--tinta); color: var(--papel); }
.rs-barra.es-activa .rs-barra__riel { background: rgba(239, 234, 223, .16); box-shadow: none; }
.rs-resumen__pie { display: grid; justify-items: start; gap: 1rem; margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--linea); }
.rs-resumen__pie p { max-width: 36ch; color: var(--tinta-2); font-size: .95rem; line-height: 1.45; }
.rs-resumen__pie b { color: var(--tinta); font-weight: 620; }

.rs-cuerpo { min-width: 0; }
.rs-cuerpo__t { font-size: 1.2rem; }
.rs-fotos { padding-bottom: 1.8rem; margin-bottom: 1.4rem; border-bottom: 1px solid var(--linea); }
.rs-fotos__tira { display: flex; gap: .6rem; margin-top: 1rem; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; scroll-snap-type: x proximity; }
.rs-fotos__tira li { flex: none; scroll-snap-align: start; }
.rs-fotos__tira button, .rs-item__fotos button { display: block; padding: 0; border: 0; border-radius: 3px; overflow: hidden; background: var(--papel-2); }
.rs-fotos__tira img { width: 132px; height: 132px; object-fit: cover; transition: transform .4s var(--suave); }
.rs-fotos__tira button:hover img, .rs-item__fotos button:hover img { transform: scale(1.04); }

.rs-herr { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.4rem; padding-bottom: 1rem; border-bottom: 1px solid var(--linea); }
.rs-herr__cuenta { font-weight: 600; font-size: .98rem; }
.rs-herr__cuenta span { color: var(--tinta-3); font-weight: 400; }
.rs-herr__quitar { margin-left: .4rem; padding: .2rem 0; border: 0; background: none; color: var(--verde); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.rs-herr__orden { display: inline-flex; align-items: center; gap: .6rem; color: var(--tinta-2); font-size: .92rem; }
.rs-herr__orden select { min-height: 40px; padding: 0 2.2rem 0 .8rem; border: 1px solid var(--linea); border-radius: 3px; background: var(--papel-3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1.5 5 5 5-5' fill='none' stroke='%23141A13' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right .8rem center / 11px; font: inherit; color: var(--tinta); appearance: none; -webkit-appearance: none; cursor: pointer; }

.rs-lista { display: grid; }
.rs-lista > .rs-item { padding-block: 1.7rem; border-bottom: 1px solid var(--linea); }
.rs-item { min-width: 0; }
.rs-item__quien { display: flex; align-items: center; gap: .7rem; }
.rs-item__quien b { font-weight: 560; font-size: .98rem; }
.rs-item__avatar { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--verde); color: var(--claro); font-weight: 620; font-size: .9rem; }
.rs-item__nota { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .7rem; margin-top: .7rem; }
.rs-item__titulo { font-weight: 680; font-size: 1.04rem; letter-spacing: -.005em; line-height: 1.3; }
.rs-item__meta { display: flex; flex-wrap: wrap; gap: .2rem .9rem; margin-top: .35rem; color: var(--tinta-3); font-size: .86rem; }
.rs-verificada { display: inline-flex; align-items: center; gap: .3rem; color: var(--verde); font-weight: 650; }
.rs-verificada svg { width: 12px; height: 12px; color: var(--hoja-2); }
.rs-item__compro { margin-top: .35rem; color: var(--tinta-2); font-size: .88rem; }
.rs-item__texto { margin-top: .8rem; max-width: 68ch; font-size: 1rem; line-height: 1.55; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; line-clamp: 6; overflow: hidden; }
.rs-item__texto p + p { margin-top: .6em; }
.rs-item__texto.es-abierta { display: block; -webkit-line-clamp: unset; line-clamp: none; }
.rs-item__mas { margin-top: .4rem; padding: .25rem 0; border: 0; background: none; color: var(--verde); font-weight: 620; font-size: .94rem; text-decoration: underline; text-underline-offset: 3px; }
.rs-item__fotos { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.rs-item__fotos img { width: 96px; height: 96px; object-fit: cover; transition: transform .4s var(--suave); }
.rs-item__respuesta { max-width: 68ch; margin-top: 1.1rem; padding: .9rem 1rem; border-left: 3px solid var(--hoja-2); background: var(--papel-3); font-size: .95rem; line-height: 1.5; color: var(--tinta-2); }
.rs-item__resp-t { margin-bottom: .3rem; color: var(--tinta); font-weight: 650; font-size: .88rem; }
.rs-mas { margin-top: 1.6rem; }

@media (min-width: 900px) {
  .rs__rejilla { grid-template-columns: minmax(260px, 330px) minmax(0, 1fr); gap: clamp(3rem, 6vw, 6.5rem); }
  .rs-resumen { position: sticky; top: calc(var(--barra) + 24px); }
}
@media (max-width: 599px) {
  .rs-fotos__tira img { width: 104px; height: 104px; }
  .rs-item__fotos img { width: 84px; height: 84px; }
  .rs-herr { align-items: stretch; }
  .rs-herr__orden { width: 100%; justify-content: space-between; }
  .rs-herr__orden select { flex: 1; max-width: 70%; }
}

/* ─── la línea de estrellas en la ficha del producto ─── */
.rs-linea { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; margin-top: .55rem; color: var(--tinta-2); font-size: .92rem; }
.rs-linea b { color: var(--tinta); font-weight: 620; }
.rs-linea span:last-child { text-decoration: underline; text-decoration-color: var(--linea); text-underline-offset: 3px; }
.rs-linea:hover span:last-child { text-decoration-color: currentColor; }

/* ─── el visor de fotos ─── */
.rs-visor { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 11, 9, .94); color: #fff; font-family: var(--ios, var(--sans)); }
.rs-visor::backdrop { background: rgba(8, 11, 9, .6); }
.rs-visor__marco { position: relative; display: grid; place-items: center; width: 100%; height: 100%; padding: 64px 72px 24px; box-sizing: border-box; }
.rs-visor__figura { display: grid; justify-items: center; gap: 14px; max-width: 100%; max-height: 100%; }
.rs-visor__figura img { max-width: min(100%, 1200px); max-height: calc(100dvh - 190px); width: auto; height: auto; object-fit: contain; border-radius: 4px; }
.rs-visor__pie { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; max-width: 70ch; text-align: center; font-size: .95rem; color: rgba(255, 255, 255, .82); }
.rs-visor__pie b { color: #fff; font-weight: 600; }
.rs-visor__pie .rs-estrellas { --rs-vacia: rgba(255, 255, 255, .22); }
.rs-visor .rs-estrellas__fondo { fill: rgba(255, 255, 255, .22); }
.rs-visor__ir { padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; background: none; color: #fff; font-size: .88rem; }
.rs-visor__ir:hover { background: rgba(255, 255, 255, .12); }
.rs-visor__flecha, .rs-visor__cerrar { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; transition: background .2s; }
.rs-visor__flecha:hover, .rs-visor__cerrar:hover { background: rgba(255, 255, 255, .24); }
.rs-visor__flecha svg { width: 12px; height: 19px; }
.rs-visor__cerrar svg { width: 15px; height: 15px; }
.rs-visor__flecha--a { left: 14px; top: 50%; transform: translateY(-50%); }
.rs-visor__flecha--b { right: 14px; top: 50%; transform: translateY(-50%); }
.rs-visor__cerrar { top: 12px; right: 12px; }
.rs-visor__cuenta { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); font-size: .9rem; color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; }
.con-visor { overflow: hidden; }
@media (max-width: 599px) {
  .rs-visor__marco { padding: 64px 10px 20px; }
  .rs-visor__flecha { top: auto; bottom: 18px; transform: none; width: 44px; height: 44px; }
  .rs-visor__figura img { max-height: calc(100dvh - 230px); }
  .rs-visor__figura { padding-bottom: 60px; }
}

/* ─── el estado de una reseña (cuenta y panel) ─── */
.rs-estado { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px; font: 600 .76rem/1.35 var(--ios); white-space: nowrap; }
.rs-estado::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.rs-estado--azul { background: #E3ECF5; color: #2A5580; }
.rs-estado--verde { background: #2F6B3A; color: #fff; }
.rs-estado--rojo { background: #F8E3E1; color: #9B2A22; }

/* ════════════════════════ MI CUENTA ════════════════════════ */
.rs-invita { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; margin: 0 0 14px; padding: 12px 10px 12px 14px; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(20, 26, 19, .04); }
.rs-invita__icono { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #FBF1DA; }
.rs-invita__icono svg { width: 20px; height: 20px; fill: var(--rs-oro); }
.rs-invita p { min-width: 0; line-height: 1.3; }
.rs-invita b { display: block; font: 600 .98rem var(--ios); }
.rs-invita p span { color: #6B7068; font-size: .88rem; }
.rs-invita .pastilla { min-height: 36px; }
.rs-invita__cerrar { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; color: #8A9088; }
.rs-invita__cerrar:hover { background: #F0EEE8; }
.rs-invita__cerrar svg { width: 11px; height: 11px; }

.rs-cal { display: grid; gap: 14px; }
.rs-cal .tarjeta__t { margin-bottom: 0; }
.rs-c-cab { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.rs-c-sub, .rs-c-letra { color: #6B7068; font-size: .92rem; line-height: 1.45; }
.rs-c-letra b { color: #3F483D; font-weight: 600; }
.rs-c-form { display: grid; gap: 16px; }
.rs-c-estrellas { display: grid; gap: 6px; }
.rs-c-estrellas legend { margin-bottom: 6px; font: 500 .88rem var(--ios); color: #4A524A; }
.rs-c-estrellas__fila { display: flex; gap: 4px; }
.rs-c-estrella { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; cursor: pointer; transition: transform .15s; }
.rs-c-estrella input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.rs-c-estrella svg { width: 40px; height: 40px; fill: #E4E1D9; transition: fill .15s; pointer-events: none; }
.rs-c-estrella.es-llena svg { fill: var(--rs-oro); }
.rs-c-estrella.es-previa:not(.es-llena) svg, .rs-c-estrellas__fila:hover .rs-c-estrella.es-previa svg { fill: #F0C565; }
.rs-c-estrella:active { transform: scale(.92); }
.rs-c-estrella:has(input:focus-visible) { outline: 2px solid #2F6B3A; outline-offset: 1px; }
.rs-c-estrellas__dice { min-height: 1.3em; font: 600 .95rem var(--ios); color: #3F483D; }
.rs-c-fotos > small { color: #8A9088; font-size: .84rem; }
.rs-c-fotos__fila { display: flex; flex-wrap: wrap; gap: 10px; }
.rs-c-foto { position: relative; width: 92px; height: 92px; border-radius: 12px; overflow: hidden; background: #F4F2EC; }
.rs-c-foto__ver { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; }
.rs-c-foto__ver img { width: 100%; height: 100%; object-fit: cover; }
.rs-c-foto__quitar { position: absolute; top: 5px; right: 5px; display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(20, 26, 19, .72); color: #fff; }
.rs-c-foto__quitar svg { width: 9px; height: 9px; }
.rs-c-foto--cargando { display: grid; place-items: center; }
.rs-c-foto--cargando i { width: 22px; height: 22px; border: 2.5px solid #D6D3CA; border-top-color: #2F6B3A; border-radius: 50%; animation: rs-gira .8s linear infinite; }
@keyframes rs-gira { to { transform: rotate(360deg); } }
.rs-c-agregar { position: relative; display: grid; place-items: center; align-content: center; gap: 4px; width: 92px; height: 92px; border: 1.5px dashed #C9C5BA; border-radius: 12px; background: #FAF9F6; color: #2F6B3A; font: 500 .8rem var(--ios); text-align: center; cursor: pointer; transition: background .2s, border-color .2s; }
.rs-c-agregar:hover { background: #fff; border-color: #2F6B3A; }
.rs-c-agregar svg { width: 24px; height: 24px; }
.rs-c-agregar input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.rs-c-agregar:has(input:focus-visible) { outline: 2px solid #2F6B3A; outline-offset: 2px; }
.rs-c-dos { display: grid; gap: 14px; }
@media (min-width: 640px) { .rs-c-dos { grid-template-columns: 1fr 1fr; } }
.rs-c-form .error { color: #B3261E; font: 500 .92rem var(--ios); }
.rs-c-botones { display: grid; gap: 10px; }
.rs-c-botones .pastilla { justify-content: center; }
.rs-c-botones--fila { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 640px) { .rs-c-form .rs-c-botones { grid-template-columns: minmax(0, 1fr) auto; } .rs-c-form .rs-c-botones .boton-ios:only-child { grid-column: 1 / -1; } }
.rs-c-borrar { color: #B3261E; }
.rs-c-estado { padding: 10px 12px; border-radius: 12px; font-size: .95rem; line-height: 1.4; }
.rs-c-estado--azul { background: #EEF3F8; color: #2A4A6B; }
.rs-c-estado--verde { background: #EEF2DD; color: #2F4A1E; }
.rs-c-estado--rojo { background: #FBEDEB; color: #8A2A22; }
.rs-c-estado a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.rs-c-nota { padding: 10px 12px; border-left: 3px solid #B3261E; background: #FAF9F6; border-radius: 0 10px 10px 0; font-size: .95rem; line-height: 1.4; }
.rs-c-mia { display: grid; gap: 8px; padding: 14px; border-radius: 14px; background: #FAF9F6; }
.rs-c-mia__nota { display: flex; align-items: center; gap: 10px; font: 600 .92rem var(--ios); color: #3F483D; }
.rs-c-mia__titulo { font: 600 1.02rem/1.3 var(--ios); }
.rs-c-mia__texto { color: #3F483D; line-height: 1.5; }
.rs-c-mia__fotos { display: flex; gap: 8px; }
.rs-c-mia__fotos button { padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: none; }
.rs-c-mia__fotos img { width: 72px; height: 72px; object-fit: cover; }
.rs-c-respuesta { padding: 12px 14px; border-left: 3px solid #588028; border-radius: 0 12px 12px 0; background: #F4F6EC; line-height: 1.45; }
.rs-c-respuesta b { display: block; margin-bottom: 3px; font: 600 .9rem var(--ios); }
.rs-c-confirma { display: grid; gap: 12px; padding: 14px; border-radius: 14px; background: #FBEDEB; }
.rs-c-confirma p { line-height: 1.4; }
.rs-c-borrar-si { background: #B3261E; }

/* ════════════════════════ EL PANEL ════════════════════════ */
.rs-globo { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: #B3261E; color: #fff; font: 600 .74rem/1 var(--ios); font-variant-numeric: tabular-nums; }
.rs-a-fila .fila-admin__total { font-size: .9rem; }
.rs-a-fila .rs-estado { grid-area: estado; justify-self: end; }
.rs-a-estrellas { display: flex !important; align-items: center; justify-content: flex-end; gap: 8px; font-size: 1.05rem !important; }
#ad-vistas a:has(.rs-globo) { grid-auto-flow: column; gap: 0; }
.panel__dtotal .rs-estado { margin-top: 6px; }
.panel__dtotal .rs-estado.rs-estado--azul { color: #2A5580; } .panel__dtotal .rs-estado.rs-estado--verde { color: #fff; } .panel__dtotal .rs-estado.rs-estado--rojo { color: #9B2A22; }
.rs-a-dgrid { display: grid; gap: 14px; }
.rs-a-lado { display: grid; gap: 14px; align-content: start; }
.rs-a-previa { padding: 16px 18px; border-radius: 14px; background: var(--papel); color: var(--tinta); font-family: var(--sans); }
.rs-a-fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-top: 14px; }
.rs-a-fotos button { padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #F4F2EC; cursor: zoom-in; }
.rs-a-fotos img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.rs-a-moderar { display: grid; gap: 14px; }
.rs-a-moderar .tarjeta__t { margin-bottom: 0; }
.rs-a-letra { color: #6B7068; font-size: .9rem; line-height: 1.45; }
.rs-a-error { color: #B3261E; font: 500 .92rem var(--ios); }
.rs-a-botones { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 10px; }
.rs-a-botones .boton-ios { min-height: 50px; font-size: .98rem; }
.rs-a-rechazar { background: #fff; color: #B3261E; box-shadow: inset 0 0 0 1px #E8C9C5; }
.rs-a-rechazar:hover { background: #FBEDEB; }
.rs-a-aprobar { background: #2F6B3A; }
.rs-a-pedido__cab, .rs-a-det__cab { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.rs-a-pedido__cab .tarjeta__t, .rs-a-det__cab .tarjeta__t { margin-bottom: 0; }
.rs-a-borrar { color: #B3261E; }
.rs-a-confirma { display: grid; gap: 10px; padding: 12px; border-radius: 12px; background: #FBEDEB; font-size: .94rem; line-height: 1.4; }
.rs-a-det { display: grid; gap: 12px; }
.rs-a-det__cab { margin-bottom: 0; }
.rs-a-det__fila { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; align-items: start; padding: 12px; border-radius: 12px; background: #FAF9F6; }
.rs-a-det__fila > span:nth-child(2) b { display: block; font: 600 .98rem var(--ios); }
.rs-a-det__fila > span:nth-child(2) span { display: block; margin-top: 2px; color: #6B7068; font-size: .9rem; line-height: 1.4; }
.rs-a-det__fotos { grid-column: 1 / -1; display: flex; gap: 6px; }
.rs-a-det__fotos img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }
.rs-a-det .pastilla { justify-self: start; }
@media (min-width: 1240px) { .rs-a-dgrid { grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); align-items: start; } }
@media (min-width: 900px) { .rs-a-atras { display: none; } }
@media (max-width: 899px) {
  .rs-a-con-detalle .rs-a-lista, .rs-a-con-detalle .rs-a-cab, .rs-a-con-detalle .panel__filtros { display: none; }
  #ad-resenas:not(.rs-a-con-detalle) .rs-a-detalle { display: none; }
  #ad-resenas.rs-a-con-detalle .rs-a-detalle { display: block; }
  .rs-a-estrellas { justify-content: flex-start; }
}
