/* ============================================================
   PLANTILLA DE TESTIMONIOS (2026-10-06)
   La misma en Real State Master (confirmación + gracias) y en la
   confirmación de EMS. Autocontenida: sus colores van en variables
   propias (--tt-*) para que encaje en cualquiera de los dos temas;
   cada página las ajusta con `#testimonios.tt-grid { --tt-name: ... }`.
   COPIA para EMS. El ORIGINAL está en webs/real-state-master-confirmacion/:
   cambiar allí y volver a copiar aquí.
   ============================================================ */

.tt-grid {
  --tt-card: rgba(255, 255, 255, .05);
  --tt-line: rgba(255, 255, 255, .12);
  --tt-name: #8ff7be;
  --tt-text: rgba(244, 248, 245, .8);
  --tt-avatar: #16482c;
  --tt-head: 'Sora', 'Segoe UI', sans-serif;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 40px;
  align-items: start;
}
.tt-card {
  background: var(--tt-card);
  border: 1px solid var(--tt-line);
  border-radius: 18px;
  padding: 24px;
  position: relative;
}
.tt-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.tt-avatar {
  width: 58px; height: 58px; flex: none;
  border-radius: 50%;
  object-fit: cover;
  background: var(--tt-avatar);
  border: 2px solid var(--tt-line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--tt-head); font-weight: 700; font-size: 1.3rem; color: var(--tt-name);
}
.tt-name { font-family: var(--tt-head); font-weight: 700; color: var(--tt-name); line-height: 1.3; }
.tt-where { font-size: .85rem; color: var(--tt-text); }
.tt-card p { color: var(--tt-text); margin-bottom: 12px; font-size: .97rem; line-height: 1.6; }

/* Marca de los datos de EJEMPLO: no se quita hasta que el testimonio sea real */
.tt-card.tt-ejemplo::before {
  content: 'EJEMPLO — NO PUBLICAR';
  position: absolute; top: 12px; right: 12px; z-index: 5;
  background: #e5484d; color: #fff;
  font: 700 .68rem/1 'Inter', sans-serif; letter-spacing: .08em;
  padding: 6px 9px; border-radius: 6px;
}

/* ---------- Captura real (imagen) en marco de navegador ---------- */
.tt-browser {
  margin-top: 16px;
  border-radius: 12px;
  overflow: hidden;
  background: #1e1f22;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 18px 40px rgba(0,0,0,.35);
}
.tt-browser-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #2a2b2f; }
.tt-browser-bar i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.tt-browser-bar i:nth-child(1) { background: #ff5f57; }
.tt-browser-bar i:nth-child(2) { background: #febc2e; }
.tt-browser-bar i:nth-child(3) { background: #28c840; }
.tt-browser img { display: block; width: 100%; height: auto; }

/* ---------- Captura de app de anfitrión (modo oscuro) ----------
   Diseño GENÉRICO a propósito: sin logo, nombre ni color de marca de
   Airbnb o Booking. */
.tt-phone {
  --a: #ff5a6a;          /* acento de la app */
  --ok: #34c77b;
  --bg: #000;
  --surface: #151517;
  --surface-2: #1f1f22;
  --sep: #2a2a2e;
  --t1: #f5f5f7;
  --t2: #a1a1a8;
  --t3: #6e6e75;

  margin: 18px auto 0;
  max-width: 330px;
  padding: 11px;
  border-radius: 48px;
  background: linear-gradient(145deg, #3a3a3e, #121214 40%, #2b2b2f);
  box-shadow: 0 0 0 1px #4a4a4f, 0 30px 60px rgba(0,0,0,.55);
  position: relative;
}
.tt-screen {
  background: var(--bg);
  border-radius: 38px;
  overflow: hidden;
  color: var(--t1);
  font-family: -apple-system, 'SF Pro Text', 'Inter', 'Segoe UI', sans-serif;
  font-size: 13px;
  line-height: 1.3;
  position: relative;
  -webkit-font-smoothing: antialiased;
}
/* Barra de estado + isla */
.tt-status { display: flex; justify-content: space-between; align-items: center; padding: 14px 26px 6px; font-weight: 600; font-size: 13.5px; position: relative; }
.tt-island { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); width: 92px; height: 26px; background: #000; border-radius: 20px; box-shadow: 0 0 0 1px #111; }
.tt-status-icons { display: flex; align-items: center; gap: 5px; }
.tt-status-icons svg { display: block; fill: var(--t1); }

/* Cabecera */
.tt-nav { display: flex; justify-content: space-between; align-items: center; padding: 8px 18px 0; color: var(--a); font-size: 15px; }
.tt-nav span:last-child { color: var(--t1); }
.tt-large-title { font-size: 28px; font-weight: 700; letter-spacing: -.02em; padding: 4px 18px 10px; }

.tt-seg { display: flex; margin: 0 18px 14px; background: var(--surface-2); border-radius: 9px; padding: 2px; }
.tt-seg span { flex: 1; text-align: center; padding: 5px 0; font-size: 12px; font-weight: 600; color: var(--t2); border-radius: 7px; }
.tt-seg span.on { background: #3a3a3e; color: var(--t1); box-shadow: 0 1px 3px rgba(0,0,0,.4); }

/* Total + círculo dibujado a mano alrededor */
.tt-total-box { padding: 0 18px; }
.tt-total-label { font-size: 12.5px; color: var(--t2); }
.tt-total-wrap { position: relative; display: inline-block; margin: 8px 0 10px 10px; }
.tt-total { font-size: 34px; font-weight: 700; letter-spacing: -.025em; padding: 2px 6px; position: relative; z-index: 1; }
.tt-total small { font-size: 20px; font-weight: 600; }
.tt-circle { position: absolute; left: -20px; top: -15px; width: calc(100% + 40px); height: calc(100% + 30px); z-index: 2; pointer-events: none; overflow: visible; }
.tt-circle path { fill: none; stroke: #ff2d2d; stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; }
.tt-card.in .tt-circle path, .tt-circle.on path { animation: tt-draw 1.1s .5s ease-out forwards; }
@keyframes tt-draw { to { stroke-dashoffset: 0; } }
.tt-total-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--t2); }
.tt-delta { color: var(--ok); font-weight: 600; }

/* Gráfico */
.tt-chart { position: relative; margin: 16px 18px 0; height: 118px; }
.tt-gridline { position: absolute; left: 0; right: 26px; border-top: 1px dashed var(--sep); }
.tt-gridline b { position: absolute; right: -26px; top: -7px; font-size: 9.5px; font-weight: 500; color: var(--t3); }
.tt-bars { position: absolute; left: 0; right: 26px; bottom: 0; top: 0; display: flex; align-items: flex-end; gap: 9px; }
.tt-bar { flex: 1; background: #3a3a40; border-radius: 5px 5px 2px 2px; position: relative; min-height: 4px; }
.tt-bar.on { background: var(--a); }
.tt-bar.on::after {
  content: attr(data-v);
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  background: var(--t1); color: #000; font-size: 9.5px; font-weight: 700;
  padding: 3px 6px; border-radius: 6px; white-space: nowrap;
}
.tt-months { display: flex; gap: 9px; margin: 6px 44px 0 18px; font-size: 10px; color: var(--t3); }
.tt-months span { flex: 1; text-align: center; }

/* Cifras clave */
.tt-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 16px 18px 0; background: var(--surface); border-radius: 12px; }
.tt-stats div { padding: 10px 8px; text-align: center; }
.tt-stats div + div { border-left: 1px solid var(--sep); }
.tt-stats b { display: block; font-size: 15px; font-weight: 700; }
.tt-stats span { font-size: 10px; color: var(--t2); }

/* Cobros */
.tt-section-title { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 18px 6px; font-size: 15px; font-weight: 700; }
.tt-section-title span { font-size: 12px; font-weight: 500; color: var(--a); }
.tt-list { margin: 0 18px; background: var(--surface); border-radius: 12px; }
.tt-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; }
.tt-row + .tt-row { border-top: 1px solid var(--sep); }
.tt-thumb { width: 36px; height: 36px; border-radius: 8px; flex: none; display: flex; align-items: center; justify-content: center; }
.tt-thumb svg { width: 18px; height: 18px; fill: rgba(255,255,255,.9); }
.tt-row-main { flex: 1; min-width: 0; }
.tt-row-main div { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-row-main small { font-size: 10.5px; color: var(--t2); }
.tt-row-amt { text-align: right; }
.tt-row-amt div { font-size: 12.5px; font-weight: 600; }
.tt-row-amt small { font-size: 10px; color: var(--ok); font-weight: 600; }

/* Barra de pestañas + indicador de inicio */
.tt-tabbar { display: flex; justify-content: space-around; margin-top: 16px; padding: 8px 6px 4px; border-top: 1px solid var(--sep); background: rgba(21,21,23,.94); }
.tt-tab { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 9.5px; color: var(--t3); }
.tt-tab svg { width: 21px; height: 21px; fill: var(--t3); }
.tt-tab.on { color: var(--a); }
.tt-tab.on svg { fill: var(--a); }
.tt-home { width: 120px; height: 5px; border-radius: 3px; background: var(--t1); margin: 8px auto 8px; opacity: .9; }

@media (max-width: 720px) {
  .tt-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .tt-circle path { stroke-dashoffset: 0; animation: none !important; }
}
