/* ==========================================================================
   Loomkin, Estudio de Diseño
   Extends styles.css (main Loomkin web style): same tokens, buttons, nav,
   footer, eyebrows, reveal, .phases, .doors, .costs, .traits, .final__*.
   ========================================================================== */

/* Hero: full-width two-line headline, then copy + one real piece ------ */
.st-hero { min-height: auto; padding-bottom: clamp(56px, 7vw, 96px); }
.st-hero > .wrap { width: 100%; }
.st-hero__title { font-size: clamp(2.4rem, 4.4vw, 4rem); }
.st-hero__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  margin-top: clamp(28px, 4vh, 48px);
}
.st-hero__copy .hero__sub { margin-bottom: 32px; max-width: 42ch; }
.st-hero__copy .hero__ctas { flex-wrap: nowrap; }
.st-hero__media {
  border-radius: var(--r-outer);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: 0 40px 90px -40px rgba(107, 63, 212, 0.75);
}
.st-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }

/* Meta band: availability facts, moved out of the hero ---------------- */
.st-band { background: var(--ink); padding-bottom: clamp(48px, 6vw, 80px); }
.st-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--hair);
}
.st-meta > div { padding: 24px 24px 0 0; }
.st-meta > div + div { padding-left: 24px; border-left: 1px solid var(--hair); }
.st-meta dt { font-size: 13px; font-weight: 500; color: var(--peri); margin-bottom: 4px; }
.st-meta dd { font-size: clamp(1.1rem, 1.6vw, 1.35rem); font-weight: 700; letter-spacing: -0.01em; color: #fff; }

/* 01. El brief ----------------------------------------------------------- */
.st-brief { background: var(--ink-2); }
.st-brief__title { max-width: 20ch; }
.st-brief__lead { max-width: 56ch; margin-top: 24px; color: var(--muted); }
.st-brief__lead strong { color: #fff; }
.st-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 64px);
  margin-top: clamp(48px, 6vw, 88px);
}
.st-pillars li { padding-top: 28px; border-top: 1px solid var(--faint); }
.st-pillars i {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  font-size: 26px;
  color: var(--peri);
  background: rgba(141, 141, 239, 0.1);
  margin-bottom: 22px;
}
.st-pillars h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); letter-spacing: -0.03em; margin-bottom: 8px; }
.st-pillars p { color: var(--muted); font-size: 15.5px; max-width: 32ch; }

/* 02. Quiénes somos ------------------------------------------------------- */
.st-who { background: var(--ink); }
.st-who__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: stretch;
}
.st-who__copy h2 { margin-bottom: 24px; }
.st-who__copy .lead { color: var(--muted); }
.st-who__copy .lead strong { color: #fff; }
.st-who__copy .traits { margin-top: 36px; }
.st-who__media { border-radius: var(--r-outer); overflow: hidden; min-height: 420px; }
.st-who__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }

/* 03. Trayectoria -------------------------------------------------------- */
.st-track {
  background:
    radial-gradient(50% 60% at 90% 10%, rgba(107, 63, 212, 0.3), transparent 70%),
    var(--ink-3);
}
.st-track__title { max-width: 22ch; }
.st-track__lead { max-width: 62ch; margin-top: 24px; color: var(--muted); }
.st-track__lead strong { color: #fff; }
.st-flow {
  margin-top: clamp(48px, 6vw, 80px);
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--r-outer);
  background: var(--tile-glow), var(--ink-2);
  border: 1px solid var(--hair);
}
.st-flow__lead { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; color: #fff; letter-spacing: -0.02em; margin-bottom: 28px; }
.st-flow__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.st-flow__steps li { position: relative; display: grid; gap: 8px; align-content: start; }
.st-flow__steps li + li::before {
  content: "→";
  position: absolute;
  left: -34px;
  top: 10px;
  font-size: 1.4rem;
  color: var(--peri);
}
.st-flow__num { font-size: clamp(2.4rem, 4.4vw, 3.6rem); font-weight: 800; line-height: 1; letter-spacing: -0.04em; padding-bottom: 4px; }
.st-flow__steps li > span:last-child { color: var(--muted); font-size: 15px; max-width: 28ch; }
.st-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(48px, 6vw, 80px);
  row-gap: 48px;
}
.st-stats > div { padding: 0 clamp(16px, 2.4vw, 36px); border-left: 1px solid var(--hair); }
.st-stats > div:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
.st-stats dt { font-size: clamp(2.6rem, 5vw, 4.2rem); font-weight: 800; line-height: 1; letter-spacing: -0.045em; padding-bottom: 6px; margin-bottom: 12px; }
.st-stats dd { color: var(--muted); font-size: 15px; max-width: 30ch; }

/* 04. Trabajos seleccionados ---------------------------------------------- */
.st-work { background: var(--ink); }
.st-work__title { max-width: 20ch; }
.st-work__lead { max-width: 62ch; margin-top: 24px; color: var(--muted); }
.st-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  margin-top: clamp(48px, 6vw, 80px);
}
.st-gallery figure { margin: 0 0 24px; }
.st-gallery__col figure:last-child { margin-bottom: 0; }
.st-gallery img {
  width: 100%;
  height: auto;
  border-radius: var(--r-inner);
  background: var(--ink-2);
  transition: transform 0.6s var(--ease-spring), box-shadow 0.6s var(--ease);
}
/* Portrait posters are cropped to 4:5 so three of them don't stretch the wall. */
.st-gallery .is-tall img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
.st-gallery .is-wide img { aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 35%; }
.st-gallery figure:hover img { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(107, 63, 212, 0.8); }
.st-gallery figcaption { margin-top: 10px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }

/* 05. El modelo: team card + three properties as one bento ------------- */
.st-model { background: var(--ink-2); }
.st-model__lead { color: var(--muted); max-width: 58ch; margin-top: 24px; }
.st-model__bento {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-rows: repeat(3, auto);
  gap: 16px;
  margin-top: clamp(48px, 6vw, 80px);
}
.st-team {
  grid-row: 1 / span 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 3.4vw, 44px);
  border-radius: var(--r-outer);
  background:
    radial-gradient(90% 80% at 100% 0%, rgba(141, 141, 239, 0.3), transparent 70%),
    linear-gradient(160deg, var(--violet), var(--violet-deep) 70%);
  box-shadow: 0 50px 90px -50px rgba(107, 63, 212, 0.95);
}
.st-team i { font-size: 40px; color: #fff; margin-bottom: 24px; }
.st-team h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.03em; margin-bottom: 14px; }
.st-team p { color: rgba(255, 255, 255, 0.88); font-size: 16.5px; }
.st-team strong { color: #fff; }
.st-prop {
  padding: clamp(22px, 2.6vw, 32px);
  border-radius: var(--r-outer);
  background: var(--tile-glow), var(--ink-3);
  border: 1px solid var(--hair);
}
.st-prop h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.02em; margin-bottom: 6px; }
.st-prop p { color: var(--muted); font-size: 15px; max-width: 52ch; }
.st-model__doors { margin-top: clamp(48px, 6vw, 80px); grid-template-columns: minmax(0, 7fr) auto minmax(0, 5fr); }
.st-model__doors .door__kicker { font-size: 1.15rem; font-weight: 700; margin-bottom: 18px; }
/* 7 items: two columns, no rule under every row. */
.st-model__doors .door--full ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.st-model__doors .door li { border-top: 0; padding: 8px 0; }
.st-door-note { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* 06. Inversión ------------------------------------------------------------ */
.st-price { background: var(--ink); }
.st-price__main {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 20px;
  margin-top: clamp(48px, 6vw, 80px);
}
.price {
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--r-outer);
  background: var(--tile-glow), var(--ink-2);
  border: 1px solid var(--faint);
}
.price--flagship {
  border-color: transparent;
  background:
    radial-gradient(90% 80% at 100% 0%, rgba(141, 141, 239, 0.3), transparent 70%),
    linear-gradient(160deg, var(--violet), var(--violet-deep) 70%);
  box-shadow: 0 50px 90px -50px rgba(107, 63, 212, 0.95);
}
.price__name { font-size: 15px; font-weight: 600; color: var(--peri); }
.price--flagship .price__name { color: #fff; opacity: 0.85; }
.price__num {
  margin-top: 18px;
  font-size: clamp(2.2rem, 3.8vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
  color: #fff;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.price__unit { margin-top: 6px; font-size: 15px; color: var(--muted); }
.price--flagship .price__unit { color: rgba(255, 255, 255, 0.8); }
.price__desc { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--hair); color: var(--lilac); font-size: 15.5px; }
.price--flagship .price__desc { border-color: rgba(255, 255, 255, 0.22); color: #fff; }

.st-light { margin-top: clamp(40px, 4.5vw, 64px); padding-top: clamp(32px, 3.5vw, 48px); border-top: 1px solid var(--hair); }
.st-light__head h3 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); letter-spacing: -0.03em; }
.st-light__head p { margin-top: 10px; color: var(--muted); }
.st-light__plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.plan {
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--r-outer);
  background: var(--tile-glow), var(--ink-2);
  border: 1px solid var(--hair);
}
.plan h4 { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; color: #fff; margin: 0 0 6px; }
.plan > p:not(.plan__price) { color: var(--muted); font-size: 15px; }
.plan__price { margin-top: 18px; font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; color: #fff; font-variant-numeric: tabular-nums; }
.plan__price span { font-size: 14px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.plan ul { margin-top: 18px; }
.plan li { padding: 10px 0; border-top: 1px solid var(--hair); font-size: 15px; color: var(--lilac); }
.st-light__note { margin-top: 28px; color: var(--muted); max-width: 64ch; }
.st-light__note strong { color: #fff; }

/* 07. El caso ---------------------------------------------------------------- */
.st-case { background: var(--ink-3); }
.st-case__title { margin-bottom: clamp(40px, 5vw, 64px); }
.st-case .cost-row h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.st-case .cost-row p { max-width: 52ch; }
.st-case .cost-row p strong { color: #fff; }
.st-quote span { white-space: nowrap; }
.st-quote {
  margin: clamp(56px, 7vw, 96px) auto 0;
  max-width: 30ch;
  text-align: center;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: #fff;
}

/* Pasos ------------------------------------------------------------------------ */
.st-start { background: var(--ink); padding-block: clamp(56px, 6vw, 88px) 0; }

/* Responsive -------------------------------------------------------------------- */
@media (max-width: 860px) {
  .st-gallery { grid-template-columns: minmax(0, 1fr); }
  .st-gallery__col figure:last-child { margin-bottom: 24px; }
  .st-who__media { min-height: 0; aspect-ratio: 1; }
  .st-hero__row, .st-who__grid, .st-model__bento, .st-price__main { grid-template-columns: minmax(0, 1fr); }
  .st-team { grid-row: auto; }
  .st-hero__copy .hero__ctas { flex-wrap: wrap; }
  .st-model__doors .door--full ul { grid-template-columns: minmax(0, 1fr); }
  .st-meta { grid-template-columns: minmax(0, 1fr); }
  .st-meta > div, .st-meta > div + div { padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--hair); }
  .st-pillars, .st-flow__steps { grid-template-columns: minmax(0, 1fr); }
  .st-flow__steps { gap: 28px; }
  .st-flow__steps li + li::before { content: "↓"; position: static; font-size: 1.2rem; }
  .st-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-stats > div:nth-child(n) { padding-left: clamp(16px, 2.4vw, 36px); border-left: 1px solid var(--hair); }
  .st-stats > div:nth-child(2n + 1) { padding-left: 0; border-left: 0; }
  .st-model__doors { grid-template-columns: minmax(0, 1fr); }
  .st-light__plans { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .st-stats { grid-template-columns: minmax(0, 1fr); }
  .st-stats > div:nth-child(n) { padding-left: 0; border-left: 0; }
}
