/* RESEÑAS VIVAS (va después de reviews.css). Para quitarlo: borra su línea en index.html. */
html body .reviews-dialog{--rv-a:#46bdff;--rv-b:#2f78e6;--rv-gold:#ffd166;--rv-e:cubic-bezier(.22,1,.36,1);
  background:radial-gradient(70% 40% at 50% 0%,rgba(47,120,230,.32),transparent 70%),radial-gradient(50% 40% at 100% 100%,rgba(255,209,102,.07),transparent 70%),linear-gradient(170deg,#0f1a2e,#0a0e18 60%,#080b12);
  border:1px solid rgba(120,170,255,.22);box-shadow:0 0 0 1px rgba(70,189,255,.08),0 40px 110px -30px rgba(47,120,230,.55),0 30px 80px rgba(0,0,0,.6)}
/* fondo: sin desenfoque (era lo que trababa), oscuro con halo azul */
html body .reviews-dialog::backdrop{background:radial-gradient(55% 50% at 50% 45%,rgba(47,120,230,.18),transparent 70%),rgba(3,5,10,.84);-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
html body .reviews-dialog[open]::backdrop{animation:rv-bd .28s ease-out both}
html body .reviews-dialog.rv-out::backdrop{animation:rv-bd-out .2s ease-in both}
@keyframes rv-bd{from{opacity:0}}@keyframes rv-bd-out{to{opacity:0}}

/* encabezado más compacto, con brillo que recorre "clientes" */
html body .reviews-head{position:relative;padding:22px 26px 14px;border-bottom:0;box-shadow:none;background:none;text-align:center;justify-content:center}
html body .reviews-head>div{flex:1}
html body .reviews-head small{letter-spacing:.32em;color:#8fc3ff}
html body .reviews-head h2{margin:6px 0 4px;font-size:clamp(24px,3.4vw,34px)}
html body .reviews-head h2 span{background:linear-gradient(100deg,#46bdff 0%,#9ad8ff 45%,#46bdff 60%,#2f78e6 100%);background-size:220% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:rv-shine 3.6s ease-in-out infinite}
@keyframes rv-shine{0%,100%{background-position:100% 0}50%{background-position:0 0}}
html body .reviews-head p{margin:0;color:rgba(255,255,255,.62);font-size:13px}
html body .reviews-head .reviews-close{position:absolute;top:16px;right:16px;transition:transform .25s var(--rv-e),background .2s}
html body .reviews-head .reviews-close:hover{transform:rotate(90deg);background:rgba(255,255,255,.12)}

/* resumen original oculto: lo reemplaza .rv-summary */
html body .reviews-dialog .reviews-summary{display:none}
html body .reviews-content{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:16px;align-items:stretch;padding:8px 26px 26px}
html body .reviews-content>#reviews-list,html body .reviews-content>.reviews-more,html body .reviews-content>.reviews-status{grid-column:1/-1}
.rv-summary{display:grid;grid-template-columns:auto 1fr;gap:22px;align-items:center;padding:18px 22px;border-radius:18px;
  background:linear-gradient(135deg,rgba(47,120,230,.18),rgba(255,255,255,.03));border:1px solid rgba(120,170,255,.22)}
.rv-score{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:120px}
.rv-num{font-size:50px;line-height:1;font-weight:800;letter-spacing:-.03em;color:#fff;text-shadow:0 6px 30px rgba(70,189,255,.35);font-variant-numeric:tabular-nums}
.rv-stars{position:relative;display:inline-block;font-size:18px;letter-spacing:2px;line-height:1}
.rv-stars>span:first-child{color:#3a3f4c}
.rv-stars .rv-fill{position:absolute;inset:0;overflow:hidden;white-space:nowrap;color:var(--rv-gold);text-shadow:0 0 10px rgba(255,209,102,.55);width:0;transition:width .9s var(--rv-e) .15s}
.reviews-dialog.rv-in .rv-stars .rv-fill,.rv-summary .rv-stars .rv-fill{width:var(--f)}
.rv-score small{font-size:12px;color:rgba(255,255,255,.65);white-space:nowrap}
.rv-bars{display:flex;flex-direction:column;gap:7px}
.rv-bar{display:grid;grid-template-columns:28px 1fr 38px;align-items:center;gap:10px;font-size:12px;color:rgba(255,255,255,.75)}
.rv-bar i{height:8px;border-radius:99px;background:rgba(255,255,255,.08);overflow:hidden}
.rv-bar b{display:block;height:100%;width:var(--w);border-radius:inherit;background:linear-gradient(90deg,#ffb84d,var(--rv-gold));box-shadow:0 0 10px rgba(255,209,102,.5);transform-origin:left;animation:rv-grow .8s var(--rv-e) both;animation-delay:calc(.2s + var(--d))}
.rv-bar em{font-style:normal;text-align:right;color:rgba(255,255,255,.55)}
@keyframes rv-grow{from{transform:scaleX(0)}}

/* llamada a escribir */
html body .reviews-compose{display:flex;flex-direction:column;justify-content:center;gap:12px;padding:18px 20px;border-radius:18px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.1);margin:0}
.rv-cta{margin:0;display:flex;flex-direction:column;gap:3px;text-align:center}
.rv-cta b{font-size:15px;color:#fff}.rv-cta span{font-size:12.5px;color:rgba(255,255,255,.62)}
html body .reviews-write{position:relative;overflow:hidden;align-self:center;padding:11px 20px;border-radius:12px;font-weight:700;
  background:linear-gradient(135deg,#2f78e6,#46bdff);border:0;color:#fff;box-shadow:0 10px 26px -8px rgba(70,189,255,.7);transition:transform .2s var(--rv-e),box-shadow .2s}
html body .reviews-write:hover{transform:translateY(-2px);box-shadow:0 14px 32px -8px rgba(70,189,255,.85)}
html body .reviews-write::after{content:"";position:absolute;inset:0;background:linear-gradient(100deg,transparent 30%,rgba(255,255,255,.35) 50%,transparent 70%);transform:translateX(-120%);animation:rv-sweep 3.2s ease-in-out 1s infinite}
@keyframes rv-sweep{0%,60%{transform:translateX(-120%)}85%,100%{transform:translateX(120%)}}
html body .reviews-form:not([hidden]){animation:rv-drop .35s var(--rv-e) both}
@keyframes rv-drop{from{opacity:0;transform:translateY(-8px)}}
html body .reviews-form label,html body .reviews-form fieldset{margin-top:12px}
html body .reviews-form>label:first-child{margin-top:0}

/* tarjetas */
html body #reviews-list{gap:14px;margin-top:6px}
html body .review-item.rv-card{position:relative;margin:0;padding:18px 18px 14px;border-radius:18px;
  background:linear-gradient(160deg,hsla(var(--h),70%,60%,.08),rgba(255,255,255,.02) 55%),rgba(10,14,26,.6);border:1px solid rgba(255,255,255,.1);
  transition:transform .3s var(--rv-e),border-color .3s,box-shadow .3s}
html body .review-item.rv-card::before{content:"\201C";position:absolute;top:2px;right:14px;font:800 54px/1 Georgia,serif;color:hsla(var(--h),80%,70%,.16);pointer-events:none}
@media(hover:hover){html body .review-item.rv-card:hover{transform:translateY(-4px);border-color:hsla(var(--h),80%,70%,.4);box-shadow:0 16px 36px -14px hsla(var(--h),80%,55%,.5)}}
html body .review-item.rv-card .review-avatar{background:linear-gradient(135deg,hsl(var(--h),70%,55%),hsl(calc(var(--h) + 40),70%,45%));color:#fff;border:0;font-weight:800;box-shadow:0 6px 16px -6px hsla(var(--h),80%,50%,.8)}
html body .review-item.rv-card p{color:rgba(255,255,255,.85)}
html body .review-item.rv-card footer{border-top-color:rgba(255,255,255,.07)}
html body .reviews-dialog .review-approved{display:none}
@media(prefers-reduced-motion:no-preference){
  html body .review-item.rv-card{animation:rv-card .5s var(--rv-e) both;animation-delay:calc(.12s + var(--i) * 45ms)}
  html body .reviews-dialog.rv-in .reviews-head>div>*{animation:rv-up .4s var(--rv-e) both}
  html body .reviews-dialog.rv-in .reviews-head h2{animation-delay:.05s}
  html body .reviews-dialog.rv-in .reviews-head p{animation-delay:.09s}
  html body .reviews-dialog.rv-in .rv-summary,html body .reviews-dialog.rv-in .reviews-compose{animation:rv-up .45s var(--rv-e) .08s both}
  html body .reviews-dialog.rv-in .reviews-compose{animation-delay:.13s}
  html body .reviews-dialog.rv-out .reviews-content,html body .reviews-dialog.rv-out .reviews-head{opacity:0;transition:opacity .1s}
}
@keyframes rv-card{from{opacity:0;transform:translateY(14px) scale(.97)}}
@keyframes rv-up{from{opacity:0;transform:translateY(10px)}}
/* gracias al enviar: check más grande con onda */
html body .reviews-success-check{position:relative;display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#3ee07f;color:#04210f;font-weight:900;margin-right:8px}
html body .reviews-success-check::after{content:"";position:absolute;inset:-2px;border-radius:50%;border:2px solid #3ee07f;animation:rv-ring .8s ease-out both}
@keyframes rv-ring{from{transform:scale(.8);opacity:1}to{transform:scale(1.9);opacity:0}}

/* celular: una columna, resumen compacto para que las reseñas se vean pronto */
@media(max-width:760px){
  html body .reviews-head{padding:18px 54px 10px}
  html body .reviews-head h2{font-size:24px}
  html body .reviews-content{grid-template-columns:1fr;gap:12px;padding:6px 14px 18px}
  .rv-summary{grid-template-columns:auto 1fr;gap:14px;padding:14px}
  .rv-score{min-width:86px}.rv-num{font-size:38px}.rv-stars{font-size:14px;letter-spacing:1px}
  .rv-bars{gap:5px}.rv-bar{grid-template-columns:24px 1fr 32px;gap:7px;font-size:11px}.rv-bar i{height:6px}
  html body .reviews-compose{flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:12px 14px}
  .rv-cta{text-align:left}.rv-cta span{display:none}
  html body .reviews-write{padding:10px 14px;font-size:13px}
  html body .reviews-form{flex-basis:100%}
}
@media(prefers-reduced-motion:reduce){html body .reviews-head h2 span,html body .reviews-write::after{animation:none}}

/* ajustes de prioridad sobre reviews.css */
html body .reviews-dialog .reviews-compose .reviews-write{width:auto;margin-top:0;background:linear-gradient(135deg,#2f78e6,#46bdff)!important;border:0!important;color:#fff!important}
html body .reviews-dialog .reviews-compose .reviews-write:hover{background:linear-gradient(135deg,#3a86f0,#5cc8ff)!important}
html body .reviews-dialog .review-item.rv-card{padding:4px 0 0}
html body .reviews-dialog .reviews-compose{width:auto;max-width:none;text-align:center}
@media(max-width:760px){
  html body .reviews-dialog .reviews-head p{display:none}
  html body .reviews-dialog .reviews-head h2{font-size:22px}
  html body .reviews-dialog .reviews-head h2 br{display:none}
  html body .reviews-dialog .reviews-compose{flex-direction:row!important;align-items:center;justify-content:space-between;text-align:left}
  html body .reviews-dialog .rv-cta b{font-size:13.5px}
  html body .reviews-dialog .reviews-compose .reviews-write{flex:none;padding:9px 13px;font-size:12.5px}
  html body .reviews-dialog .reviews-form{flex-basis:100%;text-align:left}
}

/* ===== v3: filtro, fechas, leer más, WhatsApp, formulario y franja en la portada ===== */
html body .reviews-dialog .rv-bar{all:unset;box-sizing:border-box;display:grid;grid-template-columns:28px 1fr 38px;align-items:center;gap:10px;font-size:12px;color:rgba(255,255,255,.75);cursor:pointer;padding:2px 6px;margin:0 -6px;border-radius:8px;transition:background .2s}
html body .reviews-dialog .rv-bar:hover:not(:disabled){background:rgba(255,255,255,.06)}
html body .reviews-dialog .rv-bar:disabled{cursor:default;opacity:.55}
html body .reviews-dialog .rv-bar.on{background:rgba(255,209,102,.12);color:#fff}
html body .reviews-dialog .rv-bar:focus-visible{outline:2px solid var(--rv-a);outline-offset:1px}
.rv-hint{font-size:11px;color:rgba(255,255,255,.45);margin-top:2px}
.rv-clear{all:unset;align-self:flex-start;margin-top:4px;padding:4px 10px;border-radius:99px;font-size:11.5px;font-weight:700;color:#04121f;background:var(--rv-gold);cursor:pointer}
.rv-empty{grid-column:1/-1;text-align:center;color:rgba(255,255,255,.6);font-size:13px;margin:6px 0}
html body .reviews-dialog .review-item[hidden]{display:none!important}
html body .reviews-dialog .review-author{flex-wrap:wrap;row-gap:0}
.rv-date{flex-basis:100%;margin-left:42px;margin-top:-2px;font-size:11px;color:rgba(255,255,255,.5)}
html body .reviews-dialog .review-item .rv-text{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
html body .reviews-dialog .review-item.rv-open .rv-text{-webkit-line-clamp:unset;display:block}
.rv-more{all:unset;cursor:pointer;margin:-8px 15px 12px;font-size:12px;font-weight:700;color:var(--rv-a)}
.rv-more:hover{text-decoration:underline}
.rv-buy{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-top:6px;padding:16px 18px;border-radius:18px;background:linear-gradient(110deg,rgba(37,211,102,.16),rgba(255,255,255,.03));border:1px solid rgba(37,211,102,.35)}
.rv-buy b{display:block;font-size:16px;color:#fff}.rv-buy span{font-size:12.5px;color:rgba(255,255,255,.7)}
.rv-buy a{display:inline-flex;align-items:center;gap:8px;padding:11px 18px;border-radius:12px;background:#25d366;color:#04210f;font-weight:800;text-decoration:none;box-shadow:0 10px 26px -10px rgba(37,211,102,.8);transition:transform .2s var(--rv-e)}
.rv-buy a:hover{transform:translateY(-2px)}.rv-buy svg{width:18px;height:18px}
.rv-word{display:inline-block;min-height:18px;margin-top:6px;font-size:13px;font-weight:800;color:var(--rv-gold)}
.rv-word[data-s="1"],.rv-word[data-s="2"]{color:#ff9a8b}
.rv-word:not(:empty){animation:rv-up .25s var(--rv-e) both}
.rv-count{display:block;text-align:right;font-size:11px;color:#ff9a8b;margin-top:4px}.rv-count.ok{color:rgba(255,255,255,.5)}
html body .reviews-dialog .reviews-submit:disabled{opacity:.45;cursor:not-allowed}

/* franja en la portada */
.rv-strip{max-width:1180px;margin:34px auto 10px;padding:0 16px;font-family:'Montserrat',system-ui,sans-serif;color:#fff}
.rv-strip-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:16px}
.rv-strip-kicker{font-size:11px;font-weight:800;letter-spacing:.18em;text-transform:uppercase;color:#8fc3ff}
.rv-strip h2{margin:6px 0 0;font-size:clamp(22px,3vw,30px);font-weight:800;letter-spacing:-.02em}.rv-strip h2 span{color:#46bdff}
.rv-strip-score{display:flex;align-items:center;gap:10px}.rv-strip-score b{font-size:30px;font-weight:800}.rv-strip-score small{font-size:12px;color:rgba(255,255,255,.6)}
.rv-strip .rv-stars{position:relative;display:inline-block;font-size:16px;letter-spacing:1px;line-height:1}.rv-strip .rv-stars>span:first-child{color:#3a3f4c}
.rv-strip .rv-stars .rv-fill{position:absolute;inset:0;overflow:hidden;white-space:nowrap;color:#ffd166;width:var(--f)}
.rv-strip-btn{padding:10px 16px;border-radius:99px;border:1px solid rgba(120,170,255,.35);background:rgba(47,120,230,.15);color:#fff;font:700 13px 'Montserrat',system-ui,sans-serif;cursor:pointer;transition:background .2s}
.rv-strip-btn:hover{background:rgba(47,120,230,.3)}
.rv-track-wrap{overflow:hidden;-webkit-mask:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);mask:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent)}
.rv-track{display:flex;gap:14px;width:max-content;animation:rv-marquee var(--dur,40s) linear infinite}
.rv-track-wrap:hover .rv-track{animation-play-state:paused}
@keyframes rv-marquee{to{transform:translateX(calc(-50% - 7px))}}
.rv-sc{flex:none;width:300px;padding:16px;border-radius:18px;background:linear-gradient(160deg,hsla(var(--h),70%,60%,.1),rgba(255,255,255,.02) 60%),rgba(10,14,26,.65);border:1px solid rgba(255,255,255,.1)}
.rv-sc header{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.rv-av{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;font-weight:800;background:linear-gradient(135deg,hsl(var(--h),70%,55%),hsl(calc(var(--h) + 40),70%,45%))}
.rv-sc header div{flex:1;min-width:0}.rv-sc header b{display:block;font-size:14px}.rv-sc header small{font-size:11px;color:rgba(255,255,255,.5)}
.rv-sc-stars{color:#ffd166;font-size:13px;letter-spacing:1px}
.rv-sc p{margin:0;font-size:13px;line-height:1.5;color:rgba(255,255,255,.82);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
@media(max-width:760px){.rv-sc{width:250px}.rv-strip-head{align-items:flex-start}.rv-strip-btn{width:100%}.rv-buy a{width:100%;justify-content:center}}
@media(prefers-reduced-motion:reduce){.rv-track{animation:none}.rv-track-wrap{overflow-x:auto}}
/* el texto recortado no debe asomarse por el relleno inferior */
html body .reviews-dialog .review-item .rv-text{padding-bottom:0!important;margin-bottom:12px}
html body .reviews-dialog .review-item .rv-more{margin:-6px 15px 12px}

/* ===== v4: resumen compacto y modo escritura ===== */
html body .reviews-content{align-items:start}
.rv-summary{padding:14px 18px;gap:18px;align-self:start}
.rv-num{font-size:42px}
.rv-bars{gap:4px}
html body .reviews-dialog .rv-bar{padding:1px 6px}
.rv-bar i{height:6px}
html body .reviews-dialog .reviews-compose{align-self:stretch}
/* el formulario va a lo ancho, debajo del resumen y del botón */
html body .reviews-dialog .reviews-content>.reviews-form{grid-column:1/-1;max-width:760px;width:100%;justify-self:center;margin:0;padding:20px 22px;border-radius:18px;
  background:linear-gradient(180deg,rgba(47,120,230,.10),rgba(255,255,255,.02)),rgba(9,13,26,.7);border:1px solid rgba(120,170,255,.25);box-shadow:0 20px 50px -30px rgba(70,189,255,.6)}
.rv-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:start}
.rv-col{display:flex;flex-direction:column;gap:8px}
html body .reviews-dialog .rv-row fieldset{margin:0;border:0;padding:0;min-width:0}
html body .reviews-dialog .rv-row label{margin-top:0}
/* estrellas: grandes, vista previa, destello */
html body .reviews-dialog .reviews-rating{gap:8px;margin-top:8px}
html body .reviews-dialog .reviews-rating label{position:relative}
html body .reviews-dialog .reviews-rating span{position:relative;width:46px;height:46px;font-size:26px;transition:transform .18s cubic-bezier(.3,1.6,.5,1),color .15s,background .2s,border-color .2s}
html body .reviews-dialog .reviews-rating label:hover span{transform:translateY(-3px) scale(1.08)}
html body .reviews-dialog .reviews-rating label.rv-hover span{color:#ffe39a;border-color:#edc77788;background:linear-gradient(145deg,#be935533,#9161250d);text-shadow:0 0 10px #ffcf6390}
html body .reviews-dialog .reviews-rating input:checked+span{animation:rv-pick .35s cubic-bezier(.3,1.6,.5,1)}
@keyframes rv-pick{40%{transform:scale(1.25) rotate(-8deg)}}
.rv-spark{position:absolute;left:50%;top:50%;width:6px;height:6px;margin:-3px;border-radius:50%;background:#ffd166;box-shadow:0 0 8px #ffd166;pointer-events:none;animation:rv-spark .6s ease-out forwards}
@keyframes rv-spark{0%{transform:rotate(var(--a)) translateY(0) scale(1);opacity:1}100%{transform:rotate(var(--a)) translateY(-34px) scale(.2);opacity:0}}
.rv-word{font-size:14px}
.rv-word.rv-placeholder{color:rgba(255,255,255,.45);font-weight:600}
.rv-word[data-s="1"]{color:#ff7a6b}.rv-word[data-s="2"]{color:#ffa45c}.rv-word[data-s="3"]{color:#ffd166}.rv-word[data-s="4"]{color:#b6f36a}.rv-word[data-s="5"]{color:#ffd166;text-shadow:0 0 12px rgba(255,209,102,.6)}
/* sugerencias rápidas */
.rv-chips{display:flex;flex-wrap:wrap;gap:7px;margin:4px 0 10px}
.rv-chip{padding:6px 11px;border-radius:99px;border:1px solid rgba(120,170,255,.3);background:rgba(47,120,230,.12);color:#dbe9ff;font:600 12px 'Montserrat',system-ui,sans-serif;cursor:pointer;transition:background .2s,transform .2s cubic-bezier(.3,1.6,.5,1)}
.rv-chip:hover{background:rgba(47,120,230,.25);transform:translateY(-1px)}
.rv-chip.used{background:rgba(62,224,127,.18);border-color:rgba(62,224,127,.5);color:#bff5d4}
.rv-chip.used::before{content:"✓ "}
.rv-chips:not([hidden]){animation:rv-up .3s var(--rv-e) both}
/* botón enviar: gris hasta completar, luego degradado */
html body .reviews-dialog .reviews-submit{width:auto;min-width:180px;transition:background .3s,box-shadow .3s,transform .2s}
html body .reviews-dialog .reviews-submit:not(:disabled){background:linear-gradient(135deg,#2f78e6,#46bdff);color:#fff;border:0;box-shadow:0 12px 28px -10px rgba(70,189,255,.8);animation:rv-ready .5s cubic-bezier(.3,1.6,.5,1)}
html body .reviews-dialog .reviews-submit:not(:disabled):hover{transform:translateY(-2px)}
@keyframes rv-ready{40%{transform:scale(1.05)}}
@media(max-width:760px){
  .rv-row{grid-template-columns:1fr;gap:12px}
  html body .reviews-dialog .reviews-content>.reviews-form{padding:16px 14px}
  html body .reviews-dialog .reviews-rating span{width:44px;height:44px}
  html body .reviews-dialog .reviews-submit{width:100%}
}
