/* ══════════════════════════════════════════════════════
   testimonio.css — Página de Testimonios
   Tema Noir Doré (--azul-noche / dorado)
   Prefijo: .ts-
   ══════════════════════════════════════════════════════ */

/* ── HERO ─────────────────────────────────────────── */
.ts-hero {
  background: linear-gradient(160deg, #0B1724 0%, #1E3550 60%, #0B1724 100%);
  padding: 110px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ts-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(196,151,58,.18) 0%, transparent 70%);
  pointer-events: none;
}
.ts-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(196,151,58,.15);
  border: 1px solid rgba(196,151,58,.35);
  color: #D4AB52;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 40px;
  margin-bottom: 22px;
}
.ts-hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 600;
  color: #FAFAF8;
  line-height: 1.15;
  margin-bottom: 20px;
}
.ts-hero__title em {
  color: #D4AB52;
  font-style: italic;
}
.ts-hero__divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #D4AB52, transparent);
  margin: 0 auto 22px;
}
.ts-hero__verso {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-style: italic;
  color: #EDD9A3;
  max-width: 620px;
  margin: 0 auto 8px;
  line-height: 1.6;
}
.ts-hero__cita {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  color: rgba(212,171,82,.7);
  letter-spacing: .08em;
}

/* ── MAIN SECTION ─────────────────────────────────── */
.ts-section {
  background: #F4F0E6;
  padding: 72px 24px;
}
.ts-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

/* ── LEFT: descripción ────────────────────────────── */
.ts-info {
  position: sticky;
  top: 90px;
}
.ts-info__tag {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #C4973A;
  margin-bottom: 14px;
}
.ts-info h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 600;
  color: #0B1724;
  line-height: 1.2;
  margin-bottom: 16px;
}
.ts-info__divider {
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, #C4973A, #EDD9A3);
  margin-bottom: 22px;
}
.ts-info p {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  color: #37506A;
  line-height: 1.75;
  margin-bottom: 14px;
}
.ts-info__points {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ts-info__points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: #37506A;
}
.ts-info__points li i {
  color: #C4973A;
  font-size: 15px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ── RIGHT: formulario ────────────────────────────── */
.ts-form-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow: 0 8px 40px rgba(11,23,36,.10);
  border: 1px solid #E0DAD0;
}
.ts-form-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: #0B1724;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ts-form-card h3 i { color: #C4973A; font-size: 1.3rem; }
.ts-form-card > p {
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  color: #7A8490;
  margin-bottom: 28px;
  line-height: 1.6;
}

/* ── FORM GROUPS ──────────────────────────────────── */
.ts-grupo {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.ts-grupo label {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #37506A;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.ts-input-wrap {
  position: relative;
}
.ts-input-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #C4973A;
  font-size: 14px;
  pointer-events: none;
}
.ts-input-wrap input,
.ts-input-wrap textarea {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border: 2px solid #E0DAD0;
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: #1A1E24;
  background: #FAFAF8;
  outline: none;
  transition: border-color .25s, box-shadow .25s;
}
.ts-input-wrap textarea {
  min-height: 120px;
  resize: vertical;
  padding-top: 14px;
}
.ts-input-wrap textarea + i,
.ts-textarea-wrap i {
  top: 16px;
  transform: none;
}
.ts-input-wrap input:focus,
.ts-input-wrap textarea:focus {
  border-color: #C4973A;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(196,151,58,.12);
}

/* ── TEXTAREA (sin ícono posicionado) ─────────────── */
.ts-textarea-wrap {
  position: relative;
}
.ts-textarea-wrap i {
  position: absolute;
  left: 14px;
  top: 14px;
  color: #C4973A;
  font-size: 14px;
  pointer-events: none;
}
.ts-textarea-wrap textarea {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border: 2px solid #E0DAD0;
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: #1A1E24;
  background: #FAFAF8;
  outline: none;
  transition: border-color .25s, box-shadow .25s;
  min-height: 120px;
  resize: vertical;
}
.ts-textarea-wrap textarea:focus {
  border-color: #C4973A;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(196,151,58,.12);
}
.ts-char-count {
  text-align: right;
  font-size: 11px;
  color: #7A8490;
  margin-top: 4px;
}

/* ── FILE UPLOAD ZONE ─────────────────────────────── */
.ts-upload-zone {
  border: 2px dashed #C4973A;
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  background: rgba(196,151,58,.04);
  cursor: pointer;
  transition: background .25s, border-color .25s;
  position: relative;
}
.ts-upload-zone:hover,
.ts-upload-zone.ts-drag-over {
  background: rgba(196,151,58,.1);
  border-color: #D4AB52;
}
.ts-upload-zone i {
  font-size: 2rem;
  color: #C4973A;
  display: block;
  margin-bottom: 10px;
}
.ts-upload-zone p {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: #37506A;
  margin-bottom: 4px;
}
.ts-upload-zone small {
  font-size: 11px;
  color: #7A8490;
}
.ts-upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.ts-file-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ts-file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F4F0E6;
  border-radius: 8px;
  padding: 8px 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  color: #37506A;
}
.ts-file-item i { color: #C4973A; font-size: 14px; flex-shrink: 0; }
.ts-file-item span { flex: 1; word-break: break-all; }
.ts-file-item small { color: #7A8490; white-space: nowrap; }
.ts-file-remove {
  background: none;
  border: none;
  color: #dc2626;
  cursor: pointer;
  font-size: 14px;
  padding: 2px 4px;
  border-radius: 4px;
  transition: background .2s;
}
.ts-file-remove:hover { background: rgba(220,38,38,.1); }
.ts-upload-error {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  color: #dc2626;
  margin-top: 6px;
}

/* ── SUBMIT BUTTON ────────────────────────────────── */
.ts-submit {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #1E3550, #37506A);
  color: #EDD9A3;
  border: none;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s, background .25s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}
.ts-submit:hover:not(:disabled) {
  background: linear-gradient(135deg, #0B1724, #1E3550);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(11,23,36,.25);
}
.ts-submit:disabled {
  opacity: .65;
  cursor: not-allowed;
}
.ts-submit .ts-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(237,217,163,.4);
  border-top-color: #EDD9A3;
  border-radius: 50%;
  animation: ts-spin .7s linear infinite;
  display: none;
}
.ts-submit.ts-loading .ts-spinner { display: block; }
.ts-submit.ts-loading .ts-btn-text { display: none; }
@keyframes ts-spin { to { transform: rotate(360deg); } }

/* ── SUCCESS / ERROR ──────────────────────────────── */
.ts-success {
  display: none;
  text-align: center;
  padding: 36px 20px;
}
.ts-success__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(196,151,58,.15);
  border: 2px solid #C4973A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #C4973A;
  margin: 0 auto 20px;
}
.ts-success h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  color: #0B1724;
  margin-bottom: 10px;
}
.ts-success p {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: #37506A;
  line-height: 1.7;
}

/* ── PRIVACIDAD CHECK ─────────────────────────────── */
.ts-check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  color: #37506A;
  line-height: 1.5;
}
.ts-check-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #C4973A;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}
.ts-check-label a { color: #C4973A; }

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 860px) {
  .ts-container {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .ts-info {
    position: static;
  }
  .ts-form-card {
    padding: 28px 22px;
  }
}
@media (max-width: 520px) {
  .ts-hero {
    padding: 90px 16px 60px;
  }
  .ts-section {
    padding: 48px 16px;
  }
  .ts-form-card {
    padding: 24px 16px;
  }
}
