/* =========================================================
   TERAPIA PSICOLÓGICA — estilos de página (tp-*)
   Depende de base.css del tema Codhise para variables y reset.
========================================================= */

/* ── HERO ─────────────────────────────────────────── */
.tp-hero {
  position: relative;
  min-height: 100vh;
  background: url("../img/terapia/1.jpg") 72% center / cover no-repeat;
}

.tp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(11, 61, 145, 0.93) 0%,
    rgba(11, 61, 145, 0.78) 22%,
    rgba(11, 61, 145, 0.36) 44%,
    rgba(11, 61, 145, 0)    64%
  );
  pointer-events: none;
}

.tp-hero .container {
  position: relative;
  z-index: 1;
}

.tp-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 0 80px;
}

/* Eyebrow sobre fondo oscuro */
.tp-hero .eyebrow {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
}
.tp-hero .eyebrow::before {
  background: rgba(255, 255, 255, 0.72);
}

.tp-hero h1 {
  margin: 22px 0 16px;
  max-width: 820px;
  font-size: clamp(40px, 4.8vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.05em;
  font-weight: 800;
  color: #ffffff;
}

.tp-hero-lead {
  max-width: 680px;
  margin: 0 0 40px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.35rem;
  line-height: 1.6;
}

.tp-video-frame {
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 50px rgba(11, 61, 145, 0.28);
}

.tp-video-frame video,
.tp-video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--blue-900);
}

.tp-video-note {
  margin: 18px 0 38px;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.2rem;
  line-height: 1.55;
}

.tp-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 32px;
  border-radius: 12px;
  background: var(--white);
  color: var(--blue-900);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(11, 61, 145, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.tp-hero-btn:hover {
  transform: translateY(-2px);
  background: var(--blue-100);
  box-shadow: 0 20px 42px rgba(11, 61, 145, 0.38);
  color: var(--blue-900);
}
.tp-hero-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ── BENEFITS ─────────────────────────────────────── */
.tp-benefits {
  padding: 84px 0 92px;
  background: #f8fbff;
}

.tp-section-title {
  margin: 0 0 38px;
  text-align: center;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
  font-weight: 800;
  color: var(--blue-900);
}

.tp-benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1.45fr 1.15fr;
  gap: 16px;
}

.tp-card {
  min-height: 230px;
  padding: 28px 26px 24px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: 0 12px 28px rgba(11, 61, 145, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.tp-card:hover {
  transform: translateY(-6px);
  border-color: rgba(11, 61, 145, 0.15);
  box-shadow: 0 22px 40px rgba(11, 61, 145, 0.1);
}
.tp-card h3 {
  margin: 14px 0 10px;
  font-size: 1.18rem;
  line-height: 1.25;
  font-weight: 700;
  color: var(--blue-900);
}
.tp-card p {
  margin: 0;
  color: var(--gray-700);
  font-size: 0.94rem;
  line-height: 1.55;
}
.tp-card strong { color: var(--gray-900); }

.tp-card-icon {
  width: 38px;
  height: 38px;
  color: var(--blue-700);
}

.tp-visual-card {
  overflow: hidden;
  padding: 0;
  background: var(--gray-200);
}
.tp-visual-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
}

.tp-cta-tile {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-800));
  color: var(--white);
}
.tp-cta-tile::after {
  content: "Health";
  position: absolute;
  right: 10px;
  bottom: -4px;
  font-size: 74px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.06);
  font-weight: 700;
  pointer-events: none;
}
.tp-cta-tile p {
  max-width: 240px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.98rem;
  line-height: 1.5;
  font-weight: 500;
}

.tp-inline-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  padding: 10px 10px 10px 20px;
  border-radius: 999px;
  background: var(--white);
  color: var(--blue-900);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tp-inline-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(11, 61, 145, 0.16);
  color: var(--blue-900);
}
.tp-inline-btn span:last-child {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--blue-100);
  font-size: 1rem;
  color: var(--blue-900);
}
.tp-inline-btn--solid {
  background: linear-gradient(135deg, var(--blue-800), var(--blue-900));
  color: var(--white);
  box-shadow: 0 12px 28px rgba(11, 61, 145, 0.22);
}
.tp-inline-btn--solid:hover { color: var(--white); }
.tp-inline-btn--solid span:last-child {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
}

/* ── STEPS ────────────────────────────────────────── */
.tp-steps {
  padding: 82px 0 92px;
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 100%);
  color: var(--white);
}
.tp-steps h2 {
  margin: 0 0 52px;
  text-align: center;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--white);
}

.tp-steps-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 44px;
}
.tp-steps-grid::before {
  content: "";
  position: absolute;
  left: 16.66%;
  right: 16.66%;
  top: 154px;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
}

.tp-step-card { text-align: center; }

.tp-step-icon-box {
  width: 116px;
  height: 116px;
  margin: 0 auto 22px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.tp-step-icon { width: 48px; height: 48px; color: var(--white); }

.tp-step-number {
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.72);
  background: var(--blue-900);
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 700;
}

.tp-step-card h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--white);
}
.tp-step-card p {
  max-width: 310px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  line-height: 1.55;
}

.tp-steps-cta {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}
.tp-steps-cta a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--blue-900);
  text-decoration: none;
  font-size: 1.02rem;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(11, 61, 145, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.tp-steps-cta a:hover {
  transform: translateY(-2px);
  background: var(--blue-100);
  box-shadow: 0 22px 40px rgba(11, 61, 145, 0.36);
  color: var(--blue-900);
}
.tp-steps-cta svg { width: 22px; height: 22px; }

/* ── WHY ONLINE ───────────────────────────────────── */
.tp-why {
  padding: 84px 0 92px;
  background: var(--white);
}

.tp-why-header {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) auto;
  align-items: end;
  gap: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--gray-200);
}
.tp-why-copy { max-width: 820px; }
.tp-why-copy h2 {
  margin: 0 0 18px;
  max-width: 760px;
  font-size: clamp(2rem, 2.8vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 700;
  color: var(--blue-900);
}
.tp-why-copy p {
  margin: 0;
  max-width: 700px;
  color: var(--gray-700);
  font-size: 1.05rem;
  line-height: 1.6;
}

.tp-why-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.92fr) minmax(300px, 390px);
  gap: 34px;
  padding-top: 34px;
  align-items: start;
}

.tp-why-item {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(260px, 1fr);
  gap: 26px;
  padding: 24px 0 26px;
  border-bottom: 1px solid var(--gray-200);
}
.tp-why-item h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.22;
  font-weight: 700;
  color: var(--blue-900);
}
.tp-why-item p {
  margin: 0;
  color: var(--gray-700);
  font-size: 1rem;
  line-height: 1.6;
}

.tp-why-visual {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--gray-200);
  min-height: 420px;
  box-shadow: 0 14px 32px rgba(11, 61, 145, 0.08);
}
.tp-why-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.tp-session-card {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 28px rgba(11, 61, 145, 0.12);
  backdrop-filter: blur(8px);
}
.tp-session-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--blue-900);
  background: var(--blue-100);
  border: 1px solid var(--gray-200);
  flex: 0 0 auto;
}
.tp-session-text { min-width: 0; }
.tp-session-tag {
  display: inline-block;
  margin-bottom: 4px;
  color: #22c55e;
  font-size: 0.82rem;
  font-weight: 700;
}
.tp-session-time {
  margin: 0 0 6px;
  color: var(--gray-900);
  font-size: 0.86rem;
  line-height: 1.35;
  font-weight: 600;
}
.tp-session-link {
  color: var(--blue-700);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── TESTIMONIALS ─────────────────────────────────── */
.tp-testimonials {
  padding: 76px 0 88px;
  background: var(--blue-050);
  overflow: hidden;
}
.tp-testimonials-head {
  text-align: center;
  margin-bottom: 32px;
}
.tp-testimonials-head h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: var(--blue-900);
}
.tp-testimonials-head p {
  margin: 0;
  color: var(--gray-700);
  font-size: 1.05rem;
}

.tp-marquee {
  overflow: hidden;
  padding: 10px 0 18px;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.tp-marquee-track {
  display: flex;
  width: max-content;
  gap: 18px;
  animation: tp-scroll 34s linear infinite;
}
.tp-marquee:hover .tp-marquee-track { animation-play-state: paused; }

@keyframes tp-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 9px)); }
}

.tp-tcard {
  width: 360px;
  min-height: 268px;
  padding: 24px 22px 20px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: 0 12px 28px rgba(11, 61, 145, 0.06);
  flex: 0 0 auto;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tp-tcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(11, 61, 145, 0.1);
}
.tp-tcard-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.tp-tcard-user { display: flex; align-items: flex-start; gap: 12px; }

.tp-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  flex: 0 0 auto;
}
.tp-avatar--blue   { background: var(--blue-700); }
.tp-avatar--green  { background: #22c55e; }
.tp-avatar--purple { background: #7c3aed; }
.tp-avatar--cyan   { background: var(--blue-800); }

.tp-tcard-meta strong {
  display: block;
  color: var(--gray-900);
  font-size: 0.98rem;
  font-weight: 700;
}
.tp-tcard-meta span {
  display: block;
  color: var(--gray-500);
  font-size: 0.86rem;
}
.tp-google-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--gray-200);
  color: #4285f4;
  font-size: 1.25rem;
  font-weight: 800;
  flex: 0 0 auto;
}
.tp-stars {
  margin-bottom: 14px;
  color: #f59e0b;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
}
.tp-tcard p {
  margin: 0;
  color: var(--gray-700);
  font-size: 0.94rem;
  line-height: 1.6;
}
.tp-testimonials-cta {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

/* ── SOLUTIONS ────────────────────────────────────── */
.tp-solutions {
  padding: 80px 0 92px;
  background: #f8fbff;
}
.tp-solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.tp-solution-card {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  border-radius: var(--radius-lg);
  background: var(--gray-200);
  box-shadow: 0 12px 28px rgba(11, 61, 145, 0.07);
}
.tp-solution-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tp-solution-overlay {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  padding: 20px 20px 18px;
  border-radius: var(--radius-md);
  background: rgba(11, 61, 145, 0.88);
  color: var(--white);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 34px rgba(11, 61, 145, 0.24);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.tp-solution-overlay::before {
  content: "";
  position: absolute;
  left: 18px; right: 18px; top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.34), rgba(255,255,255,0));
  pointer-events: none;
}
.tp-solution-card:hover .tp-solution-overlay {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 22px 44px rgba(11, 61, 145, 0.32);
}
.tp-solution-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.tp-solution-head h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--white);
}
.tp-solution-plus {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.66);
  position: relative;
  flex: 0 0 auto;
}
.tp-solution-plus::before,
.tp-solution-plus::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: var(--white);
  border-radius: 999px;
  transform: translate(-50%, -50%);
}
.tp-solution-plus::before { width: 12px; height: 2px; }
.tp-solution-plus::after  { width: 2px;  height: 12px; }
.tp-solution-divider {
  height: 1px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.18);
}
.tp-solution-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
}

/* ── FAQ ──────────────────────────────────────────── */
.tp-faq {
  padding: 80px 0 92px;
  background: var(--white);
}
.tp-faq-wrap {
  width: min(980px, calc(100% - 88px));
  margin: 0 auto;
}
.tp-faq-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 32px;
}
.tp-faq-item {
  border-radius: var(--radius-md);
  background: var(--blue-050);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: border-color 0.2s ease;
}
.tp-faq-item:hover { border-color: rgba(11, 61, 145, 0.2); }

.tp-faq-question {
  width: 100%;
  min-height: 80px;
  padding: 0 20px 0 22px;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
  cursor: pointer;
  color: var(--gray-900);
  font-family: inherit;
}
.tp-faq-question span:first-child {
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 600;
}
.tp-faq-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-800), var(--blue-900));
  font-size: 1.2rem;
  line-height: 1;
  flex: 0 0 auto;
}
.tp-faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 22px 20px;
  color: var(--gray-700);
  font-size: 0.96rem;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height 260ms ease, opacity 180ms ease, transform 180ms ease;
}
.tp-faq-item.is-open .tp-faq-answer {
  opacity: 1;
  transform: translateY(0);
}
.tp-faq-cta { display: flex; justify-content: center; }

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 980px) {
  .tp-benefits-grid  { grid-template-columns: 1fr 1fr; }
  .tp-steps-grid     { grid-template-columns: 1fr; gap: 34px; }
  .tp-steps-grid::before { display: none; }
  .tp-why-header     { grid-template-columns: 1fr; }
  .tp-why-grid       { grid-template-columns: 1fr; }
  .tp-why-visual     { max-width: 620px; }
  .tp-solutions-grid { grid-template-columns: 1fr 1fr; }
  .tp-solution-card  { min-height: 440px; }
}

@media (max-width: 640px) {
  .tp-hero-inner     { padding: 28px 0 52px; }
  .tp-hero h1        { font-size: clamp(32px, 9vw, 48px); }
  .tp-hero-lead      { font-size: 1.1rem; }
  .tp-video-note     { font-size: 1rem; }
  .tp-hero-btn       { height: 50px; padding: 0 24px; }
  .tp-benefits-grid  { grid-template-columns: 1fr; }
  .tp-card           { min-height: auto; }
  .tp-why-item       { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
  .tp-why-header     { gap: 20px; }
  .tp-faq-wrap       { width: min(100% - 20px, 980px); }
  .tp-faq-question   { min-height: 72px; }
  .tp-solutions-grid { grid-template-columns: 1fr; }
  .tp-solution-card  { min-height: 380px; }
}
