/* ══════════════════════════════════════════════════════════
   TU PROYECTO. NUESTRA OBRA.
   Línea de construcción para clientes — Home + Constructora.
   Prefijo tp- para no pisar estilos del resto del sitio.
══════════════════════════════════════════════════════════ */

:root {
  --tp-ink: oklch(20% 0.008 30);
  --tp-ink-soft: oklch(38% 0.008 30);
  --tp-paper: oklch(99.5% 0.004 20);
  --tp-paper-warm: oklch(96.5% 0.008 30);
  --tp-rule: oklch(86% 0.01 28);
  --tp-red: var(--color-primary, #7d1626);
  --tp-red-deep: var(--color-primary-dark, #5a0f1b);
  --tp-on-dark: oklch(96% 0.008 30);
  --tp-on-dark-soft: oklch(82% 0.012 30);
  --tp-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Piezas compartidas ───────────────────────────────────── */
.tp-claim {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  margin: 0;
  font-family: var(--font-family-serif);
  font-weight: 800;
  font-size: clamp(2.1rem, 6.4vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

.tp-claim span {
  display: inline-block;
  padding: 0.12em 0.32em 0.16em;
  color: var(--tp-paper);
}

.tp-claim span:first-child { background: var(--tp-red); }
.tp-claim span:last-child { background: var(--tp-ink); }

.tp-claim--sm { font-size: clamp(1.7rem, 4.4vw, 2.75rem); }

.tp-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 var(--spacing-4);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tp-red);
}

.tp-label::after {
  content: "";
  flex: 0 0 3rem;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.tp-label--center { justify-content: center; }
.tp-label--center::after { display: none; }

.tp-h2 {
  font-family: var(--font-family-serif);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--tp-ink);
  margin: 0 0 var(--spacing-4);
  max-width: 22ch;
  text-wrap: balance;
}

.tp-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  color: var(--tp-ink-soft);
  max-width: 62ch;
  margin: 0 0 var(--spacing-6);
}

.tp-section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.tp-section--warm { background: var(--tp-paper-warm); }
.tp-section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.tp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-3);
  align-items: center;
}

.tp-btn-ghost {
  background: transparent;
  border: 1.5px solid currentColor;
  color: var(--tp-ink);
}

.tp-btn-ghost:hover {
  background: var(--tp-ink);
  border-color: var(--tp-ink);
  color: var(--tp-paper);
}

.tp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  font-weight: 600;
  color: var(--tp-red);
  text-decoration: underline;
  text-underline-offset: 0.25em;
  text-decoration-thickness: 1px;
}

.tp-link::after {
  content: "→";
  transition: transform 200ms var(--tp-ease);
}

.tp-link:hover::after { transform: translateX(4px); }

.tp-wa-icon { width: 1.15em; height: 1.15em; flex: none; }

/* Respaldo: +30 · +150 · Garantía */
.tp-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--tp-rule);
  border-bottom: 1px solid var(--tp-rule);
}

.tp-proof li {
  padding: clamp(1rem, 2.4vw, 1.6rem) clamp(0.6rem, 2vw, 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.tp-proof li + li { border-left: 1px solid var(--tp-rule); }
.tp-proof li:first-child { padding-left: 0; }

.tp-proof strong {
  font-family: var(--font-family-serif);
  font-weight: 800;
  font-size: clamp(1.6rem, 4.2vw, 2.6rem);
  line-height: 1;
  color: var(--tp-red);
}

.tp-proof span {
  font-size: clamp(0.82rem, 1.5vw, 1rem);
  line-height: 1.3;
  color: var(--tp-ink-soft);
}

/* ── Qué construimos: filas alternadas ────────────────────── */
.tp-build__intro { margin-bottom: clamp(2rem, 5vw, 3.5rem); }

.tp-build__row {
  display: grid;
  gap: clamp(1.25rem, 4vw, 3.5rem);
  align-items: center;
  padding-block: clamp(1.75rem, 4vw, 3rem);
  border-top: 1px solid var(--tp-rule);
  scroll-margin-top: 90px;
}

@media (min-width: 820px) {
  .tp-build__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tp-build__row:nth-of-type(even) .tp-build__media { order: 2; }
}

.tp-build__media { margin: 0; }

.tp-build__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.tp-build__num {
  font-family: var(--font-family-serif);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  color: var(--tp-red);
  text-transform: uppercase;
  margin: 0 0 0.6rem;
}

.tp-build__row h3 {
  font-family: var(--font-family-serif);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.15;
  color: var(--tp-ink);
  margin: 0 0 var(--spacing-3);
  max-width: 20ch;
  text-wrap: balance;
}

.tp-build__row p { color: var(--tp-ink-soft); line-height: 1.65; max-width: 52ch; }

.tp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  margin: var(--spacing-4) 0 var(--spacing-6);
  padding: 0;
  list-style: none;
}

.tp-tags li {
  font-size: 0.85rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--tp-rule);
  border-radius: 999px;
  color: var(--tp-ink);
  background: var(--tp-paper);
}

/* ── Banda oscura: ¿Ya tenés planos? / garantía ───────────── */
.tp-band {
  background: var(--tp-ink);
  color: var(--tp-on-dark);
}

.tp-band .tp-h2 { color: var(--tp-on-dark); max-width: 24ch; }
.tp-band .tp-lead { color: var(--tp-on-dark-soft); line-height: 1.7; }
.tp-band .tp-label { color: oklch(78% 0.09 25); }

.tp-band__grid {
  display: grid;
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: end;
}

@media (min-width: 900px) {
  .tp-band__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); }
  .tp-band__grid .tp-actions { justify-content: flex-end; }
}

.tp-band .btn-primary { background: var(--tp-paper); color: var(--tp-ink); }
.tp-band .btn-primary:hover { background: oklch(92% 0.01 30); color: var(--tp-ink); }

/* ── Niveles de terminación ───────────────────────────────── */
.tp-levels {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
}

@media (min-width: 820px) {
  .tp-levels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.tp-level { display: flex; flex-direction: column; }

.tp-level img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

.tp-level__name {
  font-family: var(--font-family-serif);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tp-ink);
  margin: var(--spacing-4) 0 0.25rem;
  padding-top: var(--spacing-3);
  border-top: 2px solid var(--tp-ink);
}

.tp-level__claim { font-weight: 600; color: var(--tp-red); margin: 0 0 var(--spacing-3); }

.tp-level ul { margin: 0; padding: 0; list-style: none; }

.tp-level li {
  position: relative;
  padding: 0.3rem 0 0.3rem 1.1rem;
  color: var(--tp-ink-soft);
  line-height: 1.45;
}

.tp-level li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 0.5rem;
  height: 1px;
  background: var(--tp-red);
}

.tp-note {
  margin: clamp(1.5rem, 4vw, 2.5rem) 0 0;
  padding: var(--spacing-4) 0 0;
  border-top: 1px solid var(--tp-rule);
  font-size: 1.02rem;
  color: var(--tp-ink);
  max-width: 70ch;
}

/* ── Fotos de proceso ─────────────────────────────────────── */
.tp-process-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.5rem, 1.5vw, 1rem);
  margin: clamp(2rem, 5vw, 3rem) 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 760px) { .tp-process-photos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.tp-process-photos figure { margin: 0; }

.tp-process-photos img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.tp-process-photos figcaption {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tp-ink);
  padding-top: 0.5rem;
}

/* ── Obras realizadas: se traen de proyectos-entregados.html ─ */
.tp-obras { min-height: 28rem; margin-top: var(--spacing-6); }
.tp-obras__loading { color: var(--tp-ink-soft); }
.tp-obras .obras-filters { margin-bottom: var(--spacing-6); }

/* ── FAQ ──────────────────────────────────────────────────── */
.tp-faq { max-width: 780px; }
.tp-faq .faq-question { color: var(--tp-ink); gap: 1rem; min-height: 44px; }
.tp-faq .faq-icon { color: var(--tp-red); font-size: 0.8em; }

/* ── Formulario de primera evaluación ─────────────────────── */
.tp-form-section { scroll-margin-top: 80px; }

.tp-form__grid {
  display: grid;
  gap: clamp(1.75rem, 5vw, 4rem);
  align-items: start;
}

@media (min-width: 960px) {
  .tp-form__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .tp-form__intro { position: sticky; top: 110px; }
}

.tp-form {
  background: var(--tp-paper);
  border: 1px solid var(--tp-rule);
  padding: clamp(1.25rem, 4vw, 2.5rem);
  display: grid;
  gap: clamp(1.5rem, 3vw, 2rem);
}

.tp-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

.tp-form legend,
.tp-form .tp-field > label {
  display: block;
  padding: 0;
  margin-bottom: 0.6rem;
  font-weight: 600;
  color: var(--tp-ink);
  font-size: 1rem;
}

.tp-form legend small,
.tp-form label small { font-weight: 400; color: var(--tp-ink-soft); }

.tp-choices { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.tp-choice { position: relative; }

.tp-choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.tp-choice span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 1px solid var(--tp-rule);
  border-radius: 999px;
  background: var(--tp-paper);
  color: var(--tp-ink);
  font-size: 0.95rem;
  transition: background-color 160ms var(--tp-ease), border-color 160ms var(--tp-ease), color 160ms var(--tp-ease);
}

.tp-choice input:hover + span { border-color: var(--tp-ink); }

.tp-choice input:checked + span {
  background: var(--tp-red);
  border-color: var(--tp-red);
  color: var(--tp-paper);
  font-weight: 600;
}

.tp-choice input:focus-visible + span { outline: 2px solid var(--tp-ink); outline-offset: 2px; }

.tp-fields { display: grid; gap: var(--spacing-5); }

@media (min-width: 620px) { .tp-fields--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.tp-field input,
.tp-field textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--tp-rule);
  border-radius: var(--radius-md);
  background: var(--tp-paper);
  color: var(--tp-ink);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 160ms var(--tp-ease), box-shadow 160ms var(--tp-ease);
}

.tp-field textarea { min-height: 120px; resize: vertical; }

.tp-field input:focus,
.tp-field textarea:focus {
  outline: none;
  border-color: var(--tp-red);
  box-shadow: 0 0 0 3px oklch(55% 0.15 20 / 0.18);
}

.tp-field input[aria-invalid="true"],
.tp-field textarea[aria-invalid="true"] { border-color: oklch(50% 0.19 27); }

.tp-error {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: oklch(45% 0.19 27);
}

.tp-form__submit { width: 100%; font-size: 1.1rem; padding-block: 0.95rem; }
.tp-form__submit[disabled] { opacity: 0.65; cursor: progress; }

.tp-form__legal { font-size: 0.85rem; color: var(--tp-ink-soft); margin: 0; }
.tp-form__legal a { color: inherit; text-decoration: underline; }

.tp-form__status {
  padding: var(--spacing-4);
  border: 1px solid oklch(50% 0.19 27);
  color: oklch(40% 0.17 27);
  background: oklch(96% 0.025 27);
  font-size: 0.95rem;
}

.tp-form__done {
  border: 1px solid var(--tp-rule);
  background: var(--tp-paper);
  padding: clamp(1.5rem, 5vw, 3rem);
}

.tp-form__done h3 {
  font-family: var(--font-family-serif);
  font-size: 1.8rem;
  color: var(--tp-ink);
  margin: 0 0 var(--spacing-3);
}

.tp-hp { position: absolute; left: -9999px; }

/* ── CTA final ────────────────────────────────────────────── */
.tp-final { text-align: left; }
.tp-final__motto {
  font-family: var(--font-family-serif);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  color: var(--tp-on-dark);
  margin: var(--spacing-6) 0;
  max-width: 28ch;
}

.tp-own {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-4);
}

.tp-own p { margin: 0; color: var(--tp-ink); font-size: 1.05rem; max-width: 56ch; }

/* ══════════════════════════════════════════════════════════
   CONSTRUCTORA — landing
══════════════════════════════════════════════════════════ */

.tp-center { text-align: center; }
.tp-center .tp-h2,
.tp-center .tp-lead { margin-inline: auto; }
.tp-actions--center { justify-content: center; margin-top: clamp(1.5rem, 4vw, 2.5rem); }

.tp-h3 {
  font-family: var(--font-family-serif);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.15;
  color: var(--tp-ink);
  margin: 0 0 var(--spacing-3);
  max-width: 22ch;
  text-wrap: balance;
}

/* ── Hero con foto a sangre ───────────────────────────────── */
.tp-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--tp-ink);
  color: var(--tp-on-dark);
}

.tp-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
  z-index: -2;
}

.tp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, oklch(16% 0.012 30 / 0.82) 0%, oklch(16% 0.012 30 / 0.6) 34%, oklch(16% 0.012 30 / 0.12) 62%, oklch(16% 0.012 30 / 0) 100%),
    linear-gradient(180deg, oklch(16% 0.012 30 / 0) 60%, oklch(16% 0.012 30 / 0.55) 100%);
}

.tp-hero__bg { filter: brightness(1.12) saturate(1.15) contrast(1.03); }

@media (max-width: 899px) {
  .tp-hero::after {
    background: linear-gradient(180deg, oklch(16% 0.012 30 / 0.62) 0%, oklch(16% 0.012 30 / 0.72) 100%);
  }
}

.tp-hero__inner {
  padding-block: clamp(1.25rem, 3vw, 2rem) clamp(1.75rem, 4vw, 2.75rem);
}

.tp-crumb {
  font-size: 0.82rem;
  color: var(--tp-on-dark-soft);
  margin-bottom: clamp(1.5rem, 5vw, 3.5rem);
}

.tp-crumb a { color: inherit; text-decoration: underline; text-underline-offset: 0.2em; }
.tp-crumb span { margin: 0 0.4em; opacity: 0.6; }

/* Sobre foto: primera línea en blanco, segunda en bloque rojo */
.tp-hero .tp-claim span:first-child {
  background: none;
  padding-inline: 0;
  color: var(--tp-paper);
}

.tp-hero .tp-claim span:last-child { background: var(--tp-red); }

.tp-hero h1 {
  font-family: var(--font-family-serif);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  line-height: 1.2;
  color: var(--tp-paper);
  margin: clamp(1.1rem, 2.6vw, 1.6rem) 0 0.35rem;
}

.tp-hero__sub {
  font-weight: 600;
  font-size: 1.05rem;
  color: oklch(86% 0.06 30);
  margin: 0 0 var(--spacing-4);
}

.tp-hero__text {
  color: var(--tp-on-dark);
  font-size: 1.06rem;
  line-height: 1.65;
  max-width: 52ch;
  margin: 0 0 var(--spacing-6);
}

.tp-btn-main {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  padding: 1.1rem 2.25rem;
  box-shadow: 0 8px 24px oklch(16% 0.012 30 / 0.35);
}

@media (max-width: 560px) {
  .tp-btn-main { width: 100%; padding-inline: 1rem; }
}

.tp-btn-onphoto {
  border: 1.5px solid oklch(96% 0.008 30 / 0.7);
  color: var(--tp-paper);
  background: transparent;
}

.tp-btn-onphoto:hover {
  background: var(--tp-paper);
  border-color: var(--tp-paper);
  color: var(--tp-ink);
}

.tp-proof--onphoto {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem clamp(1.25rem, 4vw, 2.75rem);
  border: 0;
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  padding-top: var(--spacing-5);
  border-top: 1px solid oklch(96% 0.008 30 / 0.28);
}

.tp-proof--onphoto li {
  flex-direction: row;
  align-items: center;
  gap: 0.7rem;
  padding: 0;
  border: 0;
}

.tp-proof--onphoto li + li { border: 0; }

.tp-proof--onphoto svg {
  flex: none;
  width: 2rem;
  height: 2rem;
  color: var(--tp-paper);
}

.tp-proof--onphoto span {
  color: var(--tp-on-dark);
  font-size: 0.95rem;
  line-height: 1.25;
}

.tp-proof--onphoto strong {
  display: block;
  font-family: var(--font-family-sans);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--tp-paper);
}

/* ── Índice: tres tarjetas ────────────────────────────────── */
.tp-cards {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 820px) { .tp-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.tp-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.tp-card__body {
  display: flex;
  gap: 0.9rem;
  padding-top: var(--spacing-4);
}

/* En celular el índice va sin fotos: las mismas obras aparecen más abajo */
@media (max-width: 819px) {
  .tp-cards { gap: 0; }
  .tp-card img { display: none; }
  .tp-card { padding-block: var(--spacing-4); border-top: 1px solid var(--tp-rule); }
  .tp-card:first-child { border-top: 0; padding-top: 0; }
  .tp-card__body { padding-top: 0; }
}

.tp-card__icon { flex: none; color: var(--tp-red); }
.tp-card__icon svg { width: 2.25rem; height: 2.25rem; }

.tp-card h3 {
  font-family: var(--font-family-serif);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.2;
  color: var(--tp-ink);
  margin: 0 0 0.35rem;
}

.tp-card p { color: var(--tp-ink-soft); line-height: 1.55; margin: 0 0 0.25rem; font-size: 0.98rem; }

/* ── Nos ocupamos de todo: fila de servicios ──────────────── */
.tp-services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem) 0.75rem;
  margin: clamp(1.5rem, 4vw, 2.5rem) 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) { .tp-services { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 900px) { .tp-services { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .tp-services { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0.5rem; } }

.tp-services li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
  font-size: 0.88rem;
  line-height: 1.25;
  font-weight: 500;
  color: var(--tp-ink);
}

.tp-services svg { width: 2.1rem; height: 2.1rem; color: var(--tp-red); }

/* ── Dúo: planos + invertir ───────────────────────────────── */
.tp-duo { display: grid; gap: clamp(2rem, 5vw, 4rem); }

@media (min-width: 900px) {
  .tp-duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-duo__col + .tp-duo__col { padding-left: clamp(2rem, 5vw, 4rem); border-left: 1px solid var(--tp-rule); }
}

.tp-duo__col p { color: var(--tp-ink-soft); line-height: 1.65; max-width: 54ch; margin: 0 0 var(--spacing-5); }

.tp-checks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.15rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tp-checks li {
  display: flex;
  gap: 0.65rem;
  align-items: baseline;
  padding: 0.4rem 0;
  font-weight: 500;
  color: var(--tp-ink);
}

.tp-checks li::before {
  content: "";
  flex: none;
  width: 0.7rem;
  height: 0.4rem;
  border-left: 2px solid var(--tp-red);
  border-bottom: 2px solid var(--tp-red);
  transform: translateY(-0.2em) rotate(-45deg);
}

.tp-checks--light li { color: var(--tp-on-dark); }
.tp-checks--light li::before { border-color: var(--tp-paper); }

.tp-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.5rem;
  margin: var(--spacing-3) 0 0;
  padding: 0;
  list-style: none;
}

.tp-inline li {
  font-size: 0.85rem;
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--tp-rule);
  border-radius: 999px;
  color: var(--tp-ink);
}

/* ── Trío: sin estar atrás · responsable · a distancia ────── */
.tp-trio { display: grid; }

@media (min-width: 960px) { .tp-trio { grid-template-columns: 1.25fr 1fr 1fr; } }

.tp-trio > * { padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 3.5vw, 2.75rem); }

.tp-trio__photo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--tp-ink);
  color: var(--tp-on-dark);
}

.tp-trio__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.tp-trio__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: oklch(16% 0.012 30 / 0.84);
}

.tp-trio h2 {
  font-family: var(--font-family-serif);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  line-height: 1.15;
  margin: 0 0 var(--spacing-4);
  color: inherit;
  text-wrap: balance;
}

.tp-trio__photo p { color: var(--tp-on-dark); line-height: 1.65; margin: 0 0 var(--spacing-5); }
.tp-trio__photo .tp-checks { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }

.tp-trio__mid {
  background: var(--tp-paper-warm);
  display: grid;
  gap: var(--spacing-8);
  align-content: center;
}

.tp-trio__mid h3 {
  font-family: var(--font-family-serif);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--tp-ink);
  margin: 0 0 0.5rem;
}

.tp-trio__mid p { color: var(--tp-ink-soft); line-height: 1.6; margin: 0; }
.tp-trio__mid > div + div { padding-top: var(--spacing-6); border-top: 1px solid var(--tp-rule); }

.tp-trio__away {
  background: var(--tp-red);
  color: var(--tp-paper);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.tp-trio__away p { color: oklch(94% 0.02 25); line-height: 1.65; margin: 0 0 var(--spacing-6); }
.tp-trio__away .btn-primary { background: var(--tp-paper); color: var(--tp-ink); }
.tp-trio__away .btn-primary:hover { background: var(--tp-ink); color: var(--tp-paper); }

/* ── Cómo trabajamos: pasos numerados ─────────────────────── */
.tp-steps {
  counter-reset: step;
  display: grid;
  gap: var(--spacing-6) clamp(1rem, 2.5vw, 1.75rem);
  margin: clamp(1.75rem, 4vw, 2.75rem) 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 560px) { .tp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 820px) { .tp-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1140px) { .tp-steps { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.tp-steps li {
  counter-increment: step;
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.9rem;
  align-items: start;
}

.tp-steps li::before {
  content: counter(step);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--tp-red);
  color: var(--tp-paper);
  font-family: var(--font-family-serif);
  font-weight: 800;
  font-size: 1.15rem;
}

.tp-steps h3 {
  font-family: var(--font-family-serif);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.2;
  color: var(--tp-ink);
  margin: 0.35rem 0 0.3rem;
}

.tp-steps p { color: var(--tp-ink-soft); line-height: 1.5; margin: 0; font-size: 0.95rem; }

@media (min-width: 1140px) {
  .tp-steps li { grid-template-columns: 1fr; text-align: center; justify-items: center; row-gap: 0.4rem; }
  .tp-steps li::before { grid-row: auto; }
  .tp-steps li + li::after {
    content: "";
    position: absolute;
    top: 1.2rem;
    right: calc(50% + 1.9rem);
    width: calc(100% - 3.8rem + clamp(1rem, 2.5vw, 1.75rem));
    height: 1px;
    background: var(--tp-rule);
  }
}

#como-trabajamos .tp-note { margin-inline: auto; text-align: center; }

/* ── Banda de garantía ────────────────────────────────────── */
.tp-band__proof {
  margin: 0;
  font-family: var(--font-family-serif);
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.6;
  color: var(--tp-on-dark);
}

@media (min-width: 900px) { .tp-band__proof { text-align: right; } }

/* ── Formulario en rojo ───────────────────────────────────── */
.tp-form {
  background: var(--tp-red);
  border: 0;
  color: var(--tp-paper);
}

.tp-form legend,
.tp-form .tp-field > label { color: var(--tp-paper); }

.tp-form legend small,
.tp-form label small { color: oklch(90% 0.03 25); }

.tp-form .tp-choice span { border-color: oklch(96% 0.008 30 / 0.45); background: transparent; color: var(--tp-paper); }
.tp-form .tp-choice input:hover + span { border-color: var(--tp-paper); }

.tp-form .tp-choice input:checked + span {
  background: var(--tp-paper);
  border-color: var(--tp-paper);
  color: var(--tp-red-deep);
}

.tp-form .tp-choice input:focus-visible + span { outline: 2px solid var(--tp-paper); outline-offset: 2px; }

.tp-form .tp-field input,
.tp-form .tp-field textarea { border-color: transparent; }

.tp-form .tp-field input:focus,
.tp-form .tp-field textarea:focus {
  border-color: var(--tp-ink);
  box-shadow: 0 0 0 3px oklch(96% 0.008 30 / 0.45);
}

.tp-form .tp-field input[aria-invalid="true"],
.tp-form .tp-field textarea[aria-invalid="true"] { box-shadow: 0 0 0 3px oklch(88% 0.12 85); }

.tp-form .tp-error { color: oklch(93% 0.09 90); font-weight: 600; }

.tp-form__submit { background: var(--tp-ink); color: var(--tp-paper); }
.tp-form__submit:hover { background: oklch(12% 0.008 30); color: var(--tp-paper); transform: translateY(-2px); }
.tp-form__submit:focus-visible { outline-color: var(--tp-paper); }

.tp-form__legal { color: oklch(92% 0.025 25); }

.tp-form__status {
  border-color: oklch(93% 0.09 90);
  background: oklch(25% 0.06 25);
  color: var(--tp-paper);
}

.tp-form__alt { margin: var(--spacing-6) 0 0; color: var(--tp-ink-soft); }

.tp-final .tp-claim span:first-child { background: var(--tp-red); }
.tp-final .tp-claim span:last-child { background: var(--tp-paper); color: var(--tp-ink); }

/* El header es fijo: las anclas no deben quedar tapadas */
#casas, #locales, #renta, #obras, #evaluacion,
#planos, #niveles, #como-trabajamos, #preguntas { scroll-margin-top: 90px; }

/* ── CTA fijo inferior (mobile) ───────────────────────────── */
.tp-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  display: none;
  padding: 0.6rem 5.25rem 0.6rem 0.75rem;
  padding-bottom: calc(0.6rem + env(safe-area-inset-bottom, 0px));
  background: var(--tp-paper);
  border-top: 1px solid var(--tp-rule);
  box-shadow: 0 -6px 18px oklch(20% 0.02 25 / 0.1);
  transform: translateY(110%);
  transition: transform 320ms var(--tp-ease);
}

.tp-sticky.is-on { transform: translateY(0); }
.tp-sticky .btn { width: 100%; }

@media (max-width: 767px) {
  .tp-sticky { display: block; }
  body.tp-has-sticky .whatsapp-float { bottom: 0.45rem; right: 0.75rem; width: 54px; height: 54px; }
  body.tp-has-sticky .site-footer { padding-bottom: 5rem; }
}

/* ── HOME: bloque de construcción ─────────────────────────── */
.tp-home__head {
  display: grid;
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: end;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

@media (min-width: 900px) {
  .tp-home__head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

.tp-home__head h2 { margin: 0; }

.tp-home__sub {
  font-family: var(--font-family-serif);
  font-weight: 700;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  color: var(--tp-ink);
  margin: 0 0 0.5rem;
}

.tp-doors {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 820px) { .tp-doors { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.tp-door {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--tp-paper);
  color: var(--tp-ink);
}

.tp-door__media { overflow: hidden; }

.tp-door img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 500ms var(--tp-ease);
}

.tp-door:hover img { transform: scale(1.04); }

.tp-door__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--spacing-5) var(--spacing-5) var(--spacing-6);
  border: 1px solid var(--tp-rule);
  border-top: 0;
}

.tp-door h3 {
  font-family: var(--font-family-serif);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.2;
  margin: 0 0 0.5rem;
  color: var(--tp-ink);
}

.tp-door p { color: var(--tp-ink-soft); line-height: 1.55; margin: 0 0 var(--spacing-4); }

.tp-door__cta {
  margin-top: auto;
  font-weight: 600;
  color: var(--tp-red);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
}

.tp-door__cta::after { content: "→"; transition: transform 200ms var(--tp-ease); }
.tp-door:hover .tp-door__cta::after { transform: translateX(4px); }
.tp-door__cta::before { content: ""; position: absolute; inset: 0; }
.tp-door:focus-within { outline: 2px solid var(--tp-red); outline-offset: 3px; }
.tp-door__cta:focus-visible { outline: none; }

.tp-home__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-4) var(--spacing-8);
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  padding-top: var(--spacing-5);
  border-top: 1px solid var(--tp-rule);
}

.tp-home__foot p {
  margin: 0;
  font-weight: 600;
  color: var(--tp-ink);
}

/* HOME: hero con dos CTAs sobre foto */
.hero--with-image .tp-hero-cta2 {
  background: var(--tp-paper);
  border-color: var(--tp-paper);
  color: var(--tp-ink);
}

.hero--with-image .tp-hero-cta2:hover {
  background: var(--tp-ink);
  border-color: var(--tp-ink);
  color: var(--tp-paper);
}

@media (prefers-reduced-motion: reduce) {
  .tp-sticky,
  .tp-gallery img,
  .tp-door img,
  .tp-link::after,
  .tp-door__cta::after { transition: none; }
}

/* HOME: alto fijo del hero para que la foto (edificio + pileta) se vea entera
   aunque el título sea corto */
.hero.hero--with-image {
  display: flex;
  align-items: center;
  min-height: clamp(38rem, 92vh, 70rem);
}

@media (max-width: 767px) {
  .hero.hero--with-image { min-height: clamp(30rem, 86vh, 40rem); }
}

/* HOME: el texto del hero va sobre una foto clara; necesita velo y sombra */
.hero--with-image::before {
  background:
    linear-gradient(90deg, oklch(16% 0.012 30 / 0.34) 0%, oklch(16% 0.012 30 / 0.2) 50%, oklch(16% 0.012 30 / 0) 100%);
}

@media (max-width: 767px) {
  .hero--with-image::before { background: oklch(16% 0.012 30 / 0.36); }
}

/* La foto queda clara; la lectura la sostiene la sombra del texto */
.hero--with-image .hero-title,
.hero--with-image .hero-subtitle,
.hero--with-image .tp-hero-tagline {
  text-shadow: 0 1px 3px oklch(16% 0.012 30 / 0.75), 0 2px 18px oklch(16% 0.012 30 / 0.6);
}

.hero--with-image .hero-subtitle { color: oklch(97% 0.006 30); }

.hero--with-image .tp-hero-tagline {
  font-family: var(--font-family-serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  color: oklch(99% 0.004 30);
  margin-bottom: var(--spacing-6);
}

/* ── Ajustes del reporte SEO / accesibilidad ──────────────── */
.tp-hero__free {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: var(--spacing-3) 0 0;
  font-weight: 600;
  font-size: 1rem;
  color: var(--tp-paper);
}

.tp-hero__free::before {
  content: "";
  flex: none;
  width: 0.7rem;
  height: 0.4rem;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-0.15em) rotate(-45deg);
}

.tp-card picture { display: block; }

.tp-band .tp-link { color: var(--tp-paper); }

/* Área táctil mínima de 44 px en enlaces de texto sueltos */
.tp-crumb a,
.tp-form__legal a,
.tp-textlinks a {
  display: inline-block;
  padding-block: 0.8rem;
}

.tp-textlinks a { padding-block: 0.95rem; }

.tp-crumb { margin-bottom: clamp(0.75rem, 4vw, 2.75rem); }
.tp-textlinks { line-height: 1.2; }
