/* =============================================================
   SECCION: TESTIMONIOS
   Carrusel de resenas + modal de resena completa + invitacion a Google.
   ============================================================= */


/* ---------- Testimonios ---------- */
/* =============================================
   TESTIMONIOS
============================================= */
.testimonios {
  padding: 6rem 0;
  background: linear-gradient(160deg, var(--azul-dark) 0%, #1A2DB8 100%);
  position: relative;
  overflow: hidden;
}
.testimonios::before {
  content: '"';
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-titulo);
  font-size: 18rem;
  font-weight: 800;
  color: rgba(255,255,255,0.025);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.testimonios-header {
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative; z-index: 2;
}
.testimonios-header h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  font-weight: 800;
  color: var(--blanco);
  margin-bottom: 0.7rem;
}
.testimonios-header p { font-size: 1rem; color: rgba(255,255,255,0.58); }

/* ── Carrusel ── */
.testimonios-track-wrap {
  position: relative;
  overflow: hidden;
  z-index: 2;
}
.testimonios-track-wrap::before,
.testimonios-track-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 60px;
  z-index: 3;
  pointer-events: none;
}
.testimonios-track-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--azul-dark), transparent);
}
.testimonios-track-wrap::after {
  right: 0;
  background: linear-gradient(to left, #1A2DB8, transparent);
}

.testimonios-grid {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding: 0.5rem 1.5rem 1.5rem;
  scrollbar-width: none;
  cursor: grab;
}
.testimonios-grid:active { cursor: grabbing; }
.testimonios-grid::-webkit-scrollbar { display: none; }

.test-card {
  flex: 0 0 320px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--r-l);
  padding: 1.75rem;
  transition: background 0.25s, border-color 0.25s;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}
.test-card:hover { background: rgba(255,255,255,0.1); }
.test-card.destacado {
  flex: 0 0 380px;
  background: rgba(240,165,0,0.07);
  border-color: rgba(240,165,0,0.18);
}

.stars-row { display: flex; gap: 3px; margin-bottom: 0.9rem; }
.star { color: var(--amarillo); font-size: 0.95rem; }

.test-card blockquote {
  font-size: 0.93rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.78;
  margin: 0 0 1.1rem;
  flex: 1;
  position: relative;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 7;
  line-clamp: 7;
  -webkit-box-orient: vertical;
}

.test-card.is-clamped blockquote::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2.4em;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.06) 75%);
  pointer-events: none;
}
.test-card.destacado.is-clamped blockquote::after {
  background: linear-gradient(to bottom, transparent, rgba(36,40,80,0.6) 75%);
}

.test-readmore {
  display: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0 0 1rem;
  color: var(--amarillo);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-align: left;
  transition: opacity 0.2s;
}
.test-card.is-clamped .test-readmore { display: inline-block; }
.test-readmore:hover { opacity: 0.75; }
.test-readmore::after { content: ' →'; transition: transform 0.2s; display: inline-block; }
.test-readmore:hover::after { transform: translateX(3px); }

.test-autor strong {
  display: block;
  font-family: var(--font-titulo);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--blanco);
}
.test-autor span { font-size: 0.78rem; color: rgba(255,255,255,0.42); }

/* ---------- Modal de resena completa ---------- */
/* ============================================
   MODAL DE RESEÑA COMPLETA
   ============================================ */
.test-modal {
  position: fixed;
  inset: 0;
  background: rgba(5,7,20,0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.test-modal.is-open { opacity: 1; visibility: visible; }

.test-modal-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  background: linear-gradient(160deg, var(--azul-dark) 0%, #1A2DB8 100%);
  border: 1px solid rgba(240,165,0,0.22);
  border-radius: var(--r-l);
  padding: 2.5rem 2.25rem 2rem;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  scrollbar-width: thin;
  scrollbar-color: rgba(240,165,0,0.4) transparent;
}
.test-modal.is-open .test-modal-card { transform: translateY(0) scale(1); }
.test-modal-card::-webkit-scrollbar { width: 6px; }
.test-modal-card::-webkit-scrollbar-thumb {
  background: rgba(240,165,0,0.4);
  border-radius: 3px;
}

.test-modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.7);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.test-modal-close:hover {
  background: rgba(255,255,255,0.12);
  color: var(--blanco);
  transform: rotate(90deg);
}

.test-modal-stars { color: var(--amarillo); font-size: 1rem; margin-bottom: 1.1rem; letter-spacing: 2px; }
.test-modal-quote {
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.88);
  margin-bottom: 1.75rem;
  white-space: pre-line;
}
.test-modal-autor {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.1rem;
}
.test-modal-autor strong {
  display: block;
  font-family: var(--font-titulo);
  font-size: 1rem;
  color: var(--blanco);
  margin-bottom: 0.2rem;
}
.test-modal-autor span { font-size: 0.85rem; color: rgba(255,255,255,0.5); }

body.modal-open { overflow: hidden; }

@media (max-width: 600px) {
  .test-modal-card { padding: 2rem 1.5rem 1.5rem; max-height: 90vh; }
  .test-modal-quote { font-size: 0.95rem; line-height: 1.78; }
}

/* ── Flechas ── */
.test-nav {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  position: relative; z-index: 2;
}
.test-nav button {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.test-nav button:hover {
  background: rgba(255,255,255,0.14);
  transform: scale(1.08);
}

/* ---------- Invitacion a resena Google ---------- */
/* =============================================
   INVITACIÓN A RESEÑA GOOGLE
============================================= */
.resena-cta {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  position: relative;
  z-index: 2;
}

.resena-cta-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--r-l);
  padding: 2rem 2.5rem;
  max-width: 680px;
  width: 100%;
  transition: background 0.25s, border-color 0.25s;
}
.resena-cta-inner:hover {
  background: rgba(255,255,255,0.11);
  border-color: rgba(240,165,0,0.3);
}

.resena-google-icon { flex-shrink: 0; width: 52px; height: 52px; }
.resena-texto { flex: 1; }
.resena-texto h4 {
  font-family: var(--font-titulo);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--blanco);
  margin-bottom: 0.35rem;
}
.resena-texto p {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.60);
  line-height: 1.55;
}

.btn-resena {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-titulo);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--azul-dark);
  background: var(--amarillo);
  border-radius: 999px;
  padding: 0.75em 1.6em;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 18px rgba(240,165,0,0.3);
}
.btn-resena:hover {
  background: var(--amarillo-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(240,165,0,0.4);
}
.btn-resena svg { width: 15px; height: 15px; fill: var(--azul-dark); }

.resena-stars-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.38);
}
.resena-stars-hint .stars-mini {
  display: flex;
  gap: 2px;
  color: var(--amarillo);
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  .resena-cta-inner {
    flex-direction: column;
    text-align: center;
    padding: 1.6rem 1.4rem;
    gap: 1.2rem;
  }
  .btn-resena { width: 100%; justify-content: center; }
}
