/* AM Vivencial Tours - carrusel de reseñas (mu-plugins/am-resenas.php). Blue Nova Consulting.
   Escala fluida con la regla del sistema: tope en 1440px (coeficiente vw = tope / 1440 * 100). */
.am-resenas{ overflow:clip; }
.am-resenas__head{ display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:22px 48px; margin:0 0 clamp(28px,3.333vw,48px); }
.am-resenas__titles{ min-width:0; max-width:760px; }
.am-resenas__titles .am-eyebrow{ margin-bottom:14px; }
.am-page .am-resenas__score{ display:flex; align-items:center; gap:14px; margin:0; padding:12px 20px 12px 16px; border-radius:var(--am-r-pill,999px);
  background:rgba(255,255,255,.72); border:1px solid var(--am-line,#e6dccf); color:var(--am-ink,#251E18); }
.am-resenas__score-num{ font-family:var(--am-font-display); font-weight:600; font-size:clamp(1.9rem,2.778vw,2.5rem); line-height:1; color:var(--am-green-800,#1f2a1b); }
.am-resenas__score-side{ display:grid; gap:4px; }
.am-resenas__score-txt{ font-size:max(.86rem,12px); line-height:1.3; color:var(--am-muted,#5d675f); }

/* estrellas */
.am-resenas-stars{ display:inline-flex; gap:2px; color:var(--am-terracotta,#A2573A); line-height:0; }
.am-resenas-stars svg{ width:17px; height:17px; flex:none; }
.am-resenas-stars .is-off{ opacity:.22; }

/* carrusel: se deja ver la tarjeta siguiente por la derecha, nunca por la izquierda */
.am-resenas__slider{ position:relative; }
.am-resenas .am-resenas__swiper{ overflow:visible; clip-path:inset(-40px -100vw -40px 0); }
.am-resenas .swiper-wrapper{ align-items:stretch; }
.am-resenas__slide{ height:auto; display:flex; }
.am-resenas__slide > .am-resena{ flex:1 1 auto; width:100%; }
.am-resenas.is-static .swiper-wrapper{ display:grid; grid-auto-flow:column; grid-auto-columns:minmax(280px,86%); gap:16px; overflow-x:auto; scroll-snap-type:x mandatory; padding-bottom:8px; }
.am-resenas.is-static .am-resenas__slide{ scroll-snap-align:start; width:auto; }
@media (min-width:700px){ .am-resenas.is-static .swiper-wrapper{ grid-auto-columns:calc(50% - 10px); } }
@media (min-width:1100px){ .am-resenas.is-static .swiper-wrapper{ grid-auto-columns:calc(33.333% - 16px); } }

/* tarjeta */
.am-resena{ position:relative; display:flex; flex-direction:column; gap:16px; min-height:100%; padding:clamp(22px,2.222vw,32px); border-radius:var(--am-r,18px);
  background:#fff; border:1px solid var(--am-line,#e6dccf); box-shadow:0 14px 34px rgba(37,30,24,.07); }
.am-resena::before{ content:'\201C'; position:absolute; top:10px; right:22px; font-family:Georgia,'Times New Roman',serif; font-weight:400; font-size:4.6rem; line-height:1;
  color:var(--am-beige,#E1C5AF); pointer-events:none; }
.am-resena__top{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.am-page .am-resena__src{ font-family:var(--am-font-display); font-size:max(.74rem,12px); font-weight:500; letter-spacing:.14em; text-transform:uppercase; color:var(--am-olive,#5F6A30); }
.am-resena__quote{ margin:0; padding:0; border:0; quotes:none; }
.am-resena__quote::before, .am-resena__quote::after{ content:none; }
.am-resena__txt{ position:relative; font-family:var(--am-font-body); font-size:clamp(1rem,1.181vw,1.0625rem); line-height:1.6; color:var(--am-ink,#251E18);
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:5; line-clamp:5; overflow:hidden; }
.am-resenas .am-resena__txt p{ margin:0 0 .7em; color:inherit; font-size:inherit; line-height:inherit; }
.am-resenas .am-resena__txt p:last-child{ margin-bottom:0; }
.am-resena.is-open .am-resena__txt{ display:block; -webkit-line-clamp:unset; line-clamp:none; overflow:visible; }
.am-page button.am-resena__more{ align-self:flex-start; min-height:32px; margin:-8px 0 0; padding:4px 0; border:0; background:none; box-shadow:none; cursor:pointer;
  font-family:var(--am-font-display); font-size:.95rem; font-weight:500; letter-spacing:.01em; text-transform:none; color:var(--am-green-800,#1f2a1b);
  text-decoration:underline; text-decoration-color:var(--am-terracotta,#A2573A); text-decoration-thickness:1.5px; text-underline-offset:5px; }
.am-page button.am-resena__more:hover{ color:var(--am-terracotta,#A2573A); background:none; }
.am-resena__more[hidden]{ display:none !important; }
.am-resena__foot{ display:flex; align-items:center; gap:12px; margin-top:auto; padding-top:16px; border-top:1px solid var(--am-line,#e6dccf); }
.am-resena__avatar{ flex:none; display:inline-grid; place-items:center; width:44px; height:44px; border-radius:50%; background:var(--am-green,#374631); color:var(--am-cream-brand,#FAEDE4);
  font-family:var(--am-font-display); font-weight:600; font-size:.95rem; letter-spacing:.04em; }
.am-resena__avatar--foto{ overflow:hidden; background:none; }   /* 30-oct: foto opcional de quien escribio la reseña */
.am-resena__avatar--foto img{ display:block; width:100%; height:100%; object-fit:cover; border-radius:50%; }
.am-resena__who{ display:grid; gap:2px; min-width:0; }
.am-resena__autor{ font-family:var(--am-font-display); font-weight:600; font-size:1rem; line-height:1.25; color:var(--am-green-800,#1f2a1b); overflow-wrap:anywhere; }
.am-resena__meta{ display:flex; flex-wrap:wrap; gap:2px 12px; font-size:max(.86rem,12px); line-height:1.4; color:var(--am-muted,#5d675f); }
.am-page .am-resena__meta a{ color:var(--am-green-800,#1f2a1b); text-decoration:underline; text-underline-offset:3px; }
.am-page .am-resena__meta a:hover{ color:var(--am-terracotta,#A2573A); }

/* barra: progreso + flechas + pausa */
.am-resenas__bar{ display:flex; align-items:center; gap:clamp(16px,2.222vw,32px); margin-top:clamp(24px,2.5vw,36px); }
.am-resenas__progress{ position:relative; flex:1 1 auto; height:3px; border-radius:3px; background:rgba(37,30,24,.12); overflow:hidden; }
.am-resenas .am-resenas__progress .swiper-pagination-progressbar-fill{ position:absolute; inset:0; background:var(--am-terracotta,#A2573A); border-radius:3px; transform-origin:0 50%; }
.am-resenas__ctrl{ display:flex; gap:10px; flex:none; }
.am-page button.am-resenas__btn{ display:inline-grid; place-items:center; width:48px; height:48px; min-width:0; padding:0 !important; border-radius:50%;
  border:1.5px solid var(--am-green,#374631); background:transparent; color:var(--am-green,#374631); cursor:pointer; box-shadow:none;
  transition:background .3s var(--am-ease), color .3s var(--am-ease), border-color .3s, opacity .3s; }
.am-page button.am-resenas__btn:hover{ background:var(--am-green,#374631); color:#fff; }
.am-page button.am-resenas__btn:focus-visible{ outline:2px solid var(--am-terracotta,#A2573A); outline-offset:3px; }
.am-page button.am-resenas__btn.swiper-button-disabled{ opacity:.35; cursor:default; background:transparent; color:var(--am-green,#374631); }
.am-resenas__prev .am-ico{ transform:rotate(180deg); }
.am-resenas__btn .am-ico{ width:20px; height:20px; }
.am-resenas__btn[hidden]{ display:none !important; }
.am-resenas__i-play{ display:none; }
.am-resenas__pause[aria-pressed="true"] .am-resenas__i-play{ display:block; }
.am-resenas__pause[aria-pressed="true"] .am-resenas__i-pause{ display:none; }
.am-resenas.is-locked .am-resenas__bar{ display:none; }

.am-resenas__links{ display:flex; flex-wrap:wrap; gap:12px; margin-top:clamp(24px,2.5vw,36px); }

/* tono oscuro */
.am-section--coffee.am-resenas .am-resena{ background:rgba(250,237,228,.06); border-color:rgba(225,197,175,.2); box-shadow:none; }
.am-section--coffee.am-resenas .am-resena__txt, .am-section--coffee.am-resenas .am-resena__autor{ color:#FAEDE4; }
.am-section--coffee.am-resenas .am-resena__meta, .am-section--coffee.am-resenas .am-resenas__score-txt{ color:#e6d9ca; }
.am-page .am-section--coffee.am-resenas .am-resena__meta a, .am-page .am-section--coffee.am-resenas button.am-resena__more{ color:#FAEDE4; }
.am-section--coffee.am-resenas .am-resena__src{ color:var(--am-beige,#E1C5AF); }
.am-section--coffee.am-resenas .am-resenas-stars{ color:var(--am-beige,#E1C5AF); }
.am-section--coffee.am-resenas .am-resena::before{ color:rgba(225,197,175,.28); }
.am-section--coffee.am-resenas .am-resena__foot{ border-color:rgba(225,197,175,.2); }
.am-page .am-section--coffee.am-resenas .am-resenas__score{ background:rgba(250,237,228,.08); border-color:rgba(225,197,175,.22); }
.am-section--coffee.am-resenas .am-resenas__score-num{ color:#FAEDE4; }
.am-section--coffee.am-resenas .am-resenas__progress{ background:rgba(225,197,175,.2); }
.am-section--coffee.am-resenas .am-resenas__progress .swiper-pagination-progressbar-fill{ background:var(--am-beige,#E1C5AF); }
.am-page .am-section--coffee.am-resenas button.am-resenas__btn{ border-color:var(--am-beige,#E1C5AF); color:var(--am-beige,#E1C5AF); }
.am-page .am-section--coffee.am-resenas button.am-resenas__btn:hover{ background:var(--am-beige,#E1C5AF); color:var(--am-coffee,#251E18); }
.am-section--coffee.am-resenas .am-resenas__links .am-btn--outline{ --b-bd:var(--am-beige); --b-fg:var(--am-beige); --b-hover:var(--am-beige); --b-hfg:var(--am-coffee); }

@media (max-width:640px){
  .am-resenas__head{ align-items:flex-start; }
  .am-page .am-resenas__score{ padding:10px 16px 10px 12px; }
  .am-resenas__links .am-btn{ width:100%; justify-content:center; white-space:normal; text-align:center; }
}
@media (prefers-reduced-motion:reduce){ .am-page button.am-resenas__btn{ transition:none; } }
.am-section--coffee.am-resenas .am-resena__avatar{ background:var(--am-beige,#E1C5AF); color:var(--am-coffee,#251E18); }
