/* ================================================================
   ESTILOS ESPECÍFICOS – página de proyecto The House
   ================================================================ */

/* ── HERO TITLE ── */
.th-hero { padding: 40px 48px 0; }
.th-title {
  font-family: var(--font-inter);
  font-weight: 800;
  font-size: clamp(52px, 7vw, 88px);
  color: var(--blue);
  letter-spacing: -.02em;
  line-height: 1;
}


/* ── INTRO 2 COLUMNAS ── */
.th-intro.th-section-cols {
  padding-top: 40px;
}
.th-logo-img {
  width: 220px;
  margin-bottom: 35px;
  display: block;
  height: auto;
}
.th-desc {
  font-size: var(--text-md);
  color: var(--blue);
  line-height: 1.7;
}
.th-desc strong {
  color: var(--blue);
}
.th-behance {
  margin-top: 24px;
  display: inline-flex;
  font-family: var(--font-didot);
  font-size: 28px;
  color: var(--blue);
  text-decoration: none;
}
.th-marks {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.th-mark-main { width: 72px; height: 72px; display: block; }
.th-mark-row { display: flex; gap: 10px; }
.th-mark-row img { width: 40px; height: 40px; object-fit: contain; }
.th-phones { width: 100%; display: block; }

/* ── SECCIÓN DE DOS COLUMNAS STICKY ── */
.th-section-cols {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
  padding: 0 48px;
}
.th-col-sticky {
  position: sticky;
  top: 40px;
  align-self: start;
}
.th-col {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ── BLOQUES DE IMAGEN ── */
.th-img {
  padding: 0 48px;
}
.th-img img {
  width: 70%;
  margin-left: auto;
  display: block;
}
.th-img--wide img {
  border-radius: 16px;
  width: 100%;
}

/* ── USER FLOW ── */
.th-flow {
  padding: 0 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 1000px;
  margin-left: auto;
}
.th-flow img { max-width: 100%; }

.th-caption {
  font-family: var(--font-didot);
  font-style: italic;
  font-size: 20px;
  color: var(--blue);
  text-align: right;
  display: block;
  padding: 0 48px;
}

/* ── SECCIÓN CON TÍTULO A LA IZQUIERDA ── */
.th-side {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 0 48px;
}
.th-side > .th-caption {
  position: sticky;
  top: 40px;
  flex: 1;
  padding: 0;
  text-align: left;
}
.th-side > :not(.th-caption) {
  flex: 0 0 70%;
  width: 70%;
  max-width: none;
  margin-left: 0;
  padding: 0;
  display: block;
}
.th-side > .th-flow,
.th-side > .th-ui-kit { display: flex; }
.th-caption--center {
  display: block;
  text-align: center;
  margin-top: 16px;
}

/* ── ICONOGRAFÍA Y BOTONES ── */
.th-ui-kit {
  padding: 0 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.th-ui-kit-row {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.th-ui-icons { width: 260px; }
.th-ui-grid { width: 220px; }
.th-ui-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.th-ui-controls img { width: 220px; }
.th-ui-controls-row { display: flex; gap: 16px; }
.th-ui-controls-row img { width: 100px; }

/* ================================================================
   RESPONSIVE – TABLET (≤1024px)
   ================================================================ */
@media (max-width: 1024px) {
  .th-hero { padding: 32px 32px 0; }
  .th-section-cols { padding: 0 32px; gap: 32px; }
  .th-img, .th-flow, .th-ui-kit, .th-side { padding: 0 32px; }
  .th-side > :not(.th-caption) { padding: 0; }
  .th-logo-img { width: 190px; }
  .th-ui-icons { width: 220px; }
  .th-ui-grid { width: 190px; }
}

/* ================================================================
   RESPONSIVE – MÓVIL (≤640px)
   ================================================================ */
@media (max-width: 640px) {
  .th-hero { padding: 24px 20px 0; }

  .th-section-cols {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 20px;
  }
  .th-col-sticky { position: static; }
  .th-col { gap: 24px; }
  .th-logo-img { width: 160px; margin-bottom: 20px; }

  .th-marks { flex-wrap: wrap; gap: 12px; }
  .th-mark-main { width: 56px; height: 56px; }
  .th-mark-row img { width: 32px; height: 32px; }

  .th-img img { width: 100%; margin-left: 0; }

  .th-img, .th-flow, .th-ui-kit { padding: 0 20px; }
  .th-img--wide img, .th-flow img { border-radius: 12px; }
  .th-caption { font-size: 17px; }
  .th-side > .th-caption { position: static; }
  .th-side { flex-direction: column; gap: 12px; padding: 0 20px; }
  .th-side > :not(.th-caption) { flex: none; width: 100%; padding: 0; }

  .th-ui-kit-row { flex-direction: column; align-items: flex-end; gap: 20px; display: none; }
  .th-ui-icons, .th-ui-grid { width: 100%; max-width: 260px; }
  .th-ui-controls img { width: 100%; max-width: 220px; }
  .th-ui-controls-row img { width: 100px; flex: 1 1 auto; max-width: 140px; }
}
