/* Testimonios lista */
.test-hero {
  background: linear-gradient(135deg, var(--t-accent-mid, #4fa98c) 0%, var(--t-accent, #0f7a5c) 100%);
  color: #fff;
  text-align: center;
  padding: 3.5rem 1rem 2.5rem;
}
.test-hero-inner { max-width: 700px; margin: 0 auto; }
.test-hero-title { font-size: 2.2rem; font-weight: 800; margin: 0 0 .5rem; color: #fff; }
.test-hero-sub { color: #fff; opacity: .9; font-size: 1.05rem; margin: 0; }

.test-section { padding: 3rem 1rem 4rem; background: var(--t-bg); }
.test-inner { max-width: 1000px; margin: 0 auto; }

.test-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

/* Stats bar */
.test-stats-bar { background: var(--t-panel); border-bottom: 1px solid var(--t-line); padding: 2rem 1.5rem; }
.test-stats-inner {
  max-width: 600px; margin: 0 auto;
  display: flex; align-items: center; gap: 2.5rem; flex-wrap: wrap;
}
.test-stats-score { display: flex; align-items: center; gap: 1rem; }
.test-big-score { font-size: 4rem; font-weight: 900; color: var(--t-accent); line-height: 1; }
.test-big-stars { color: #f5a623; font-size: 1.3rem; letter-spacing: .1em; }
.test-count-label { font-size: .8rem; color: var(--t-muted); }
.test-stats-dist { display: flex; flex-direction: column; gap: .3rem; flex: 1; min-width: 180px; }
.test-dist-row { display: flex; align-items: center; gap: .6rem; }
.test-dist-n { font-size: .78rem; color: var(--t-muted); width: 1.8rem; }
.test-dist-bar-wrap { flex: 1; height: 8px; background: var(--t-line); border-radius: 4px; overflow: hidden; }
.test-dist-bar { height: 100%; background: var(--t-accent); border-radius: 4px; transition: width .4s; }

/* Cards */
.test-card {
  background: var(--t-panel);
  border: 1px solid var(--t-line);
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .8rem;
  transition: box-shadow .2s;
}
.test-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.08); }

/* Card top: avatar + name + stars */
.test-card-top { display: flex; align-items: center; gap: .8rem; }
.test-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--t-accent); color: #fff;
  font-size: 1.1rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.test-nombre { color: var(--t-text); font-size: .92rem; display: block; }
.test-ciudad { color: var(--t-muted); font-size: .8rem; display: block; }
.test-stars { color: var(--t-accent, #0057A8); font-size: 1.05rem; letter-spacing: .05em; }
.test-stars--right { margin-left: auto; }

.test-texto {
  margin: 0;
  color: var(--t-text);
  font-size: .95rem;
  line-height: 1.65;
  font-style: italic;
  border-left: 3px solid var(--t-line);
  padding-left: .9rem;
}

.test-empty { text-align: center; color: var(--t-muted); padding: 3rem 0; }

.test-cta {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--t-panel);
  border: 1px solid var(--t-line);
  border-radius: 16px;
}
.test-cta p { margin: 0 0 1.2rem; color: var(--t-text); font-size: 1.05rem; }

.btn-wa-big {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #25d366;
  color: #fff;
  padding: .75rem 1.8rem;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s;
}
.btn-wa-big:hover { background: #1da851; }

/* -- Form section ----------------------------------------------- */
.test-form-section {
  background: var(--t-bg);
  padding: 3rem 1.5rem 4rem;
  border-top: 1px solid var(--t-line);
}
.test-form-inner { max-width: 640px; margin: 0 auto; }
.test-form-titulo { font-size: 1.6rem; font-weight: 800; margin: 0 0 .4rem; color: var(--t-text); }
.test-form-sub { color: var(--t-muted); font-size: .95rem; margin: 0 0 1.8rem; }

.test-form { display: flex; flex-direction: column; gap: 1.2rem; }
.test-form-row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.test-field { display: flex; flex-direction: column; gap: .35rem; }
.test-field-label {
  font-size: .8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--t-muted);
}
.test-field input, .test-field textarea {
  border: 1.5px solid var(--t-line);
  border-radius: 8px;
  padding: .65rem .9rem;
  font-size: .97rem;
  color: var(--t-text);
  background: var(--t-panel);
  transition: border-color .15s;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}
.test-field input:focus, .test-field textarea:focus {
  outline: none; border-color: var(--t-accent);
}
.test-field-error { color: #c0392b; font-size: .82rem; margin: 0; }

/* Star radio buttons */
.test-form-stars-wrap { display: flex; flex-direction: column; gap: .5rem; }
.test-stars-radio {
  display: flex; flex-direction: row-reverse; gap: .25rem; justify-content: flex-end;
}
.star-radio-label { display: flex; align-items: center; gap: .3rem; cursor: pointer; }
.star-radio-label input[type=radio] { display: none; }
.star-radio-label span {
  font-size: 1.8rem; color: #ddd; transition: color .1s; cursor: pointer;
  user-select: none;
}
.star-radio-label:has(input:checked) ~ .star-radio-label span,
.star-radio-label:has(input:checked) span { color: #f5a623; }

.test-submit-btn {
  background: var(--t-accent); color: #fff; border: none;
  padding: .85rem 2.2rem; border-radius: 8px; font-size: 1rem;
  font-weight: 700; cursor: pointer; align-self: flex-start;
  transition: background .15s;
}
.test-submit-btn:hover { background: var(--t-accent-hover, #0c6249); }

/* Success state */
.test-form-ok {
  text-align: center; padding: 3rem 2rem;
  background: var(--t-panel); border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.test-ok-icon { font-size: 3rem; display: block; margin-bottom: 1rem; }
.test-form-ok h2 { font-size: 1.5rem; color: var(--t-text); margin: 0 0 .5rem; }
.test-form-ok p { color: var(--t-muted); margin: 0; }

@media (max-width: 560px) {
  .test-form-row--2 { grid-template-columns: 1fr; }
}

/* Star filter */
.test-filtro-wrap { background: var(--t-bg, #fdf6f0); padding: 1rem 1.5rem; border-bottom: 1px solid var(--t-line, #e8ddd5); }
.test-filtro-inner { max-width: 1000px; margin: 0 auto; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.test-filtro-label { font-size: .82rem; color: var(--t-muted, #7a6a5a); font-weight: 600; margin-right: .3rem; }
.test-filtro-btn {
  background: var(--t-panel, #fff);
  border: 1.5px solid var(--t-line, #e8ddd5);
  color: var(--t-text, #2d2d2d);
  padding: .4rem .9rem;
  border-radius: 99px;
  font-size: .82rem;
  cursor: pointer;
  transition: all .15s;
}
.test-filtro-btn:hover { border-color: var(--t-accent, #3aada8); color: var(--t-accent, #3aada8); }
.test-filtro-btn--active { background: var(--t-accent, #3aada8); color: #fff; border-color: var(--t-accent, #3aada8); }

/* Card improvements */
.test-card-info { flex: 1; }
.star-on { color: #f5a623; }
.star-off { color: #ddd; }
.test-fecha { font-size: .72rem; color: var(--t-muted, #7a6a5a); margin-top: .8rem; text-align: right; }
.test-empty-filter { text-align: center; padding: 3rem; color: var(--t-muted, #7a6a5a); }

/* Star distribution percentage label */
.test-dist-pct { font-size: .72rem; color: var(--t-muted, #7a6a5a); min-width: 2.5rem; text-align: right; }

/* CTA Peña Malaguista */
.test-malaga-cta {
  background: var(--t-accent, #0057A8);
  padding: 1.25rem 1.5rem;
}
.test-malaga-cta-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.test-malaga-icon { font-size: 2rem; flex-shrink: 0; }
.test-malaga-texto { flex: 1; color: #fff; }
.test-malaga-texto strong { display: block; font-size: .95rem; }
.test-malaga-texto span { font-size: .82rem; opacity: .9; }
.test-malaga-btn {
  background: #fff;
  color: var(--t-accent, #0057A8);
  padding: .6rem 1.25rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  font-size: .88rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.test-malaga-btn:hover { background: rgba(255,255,255,.9); }
