/* ===========================
   INICIO (index.html) — homepage sections only.
   Tokens, base, nav and buttons live in assets/css/base/site.css.
=========================== */

/* The shared footer sits in a .container; without Bootstrap on this page it needs a width */
.inicio .container { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- 01 Hero — three-slide cross-fade ---------- */
.t-hero {
  position: relative; height: 92vh; min-height: 600px; overflow: hidden;
  display: grid; grid-template-rows: 1fr auto; padding: 7.5rem var(--gutter) 3.5rem;
  color: var(--white); isolation: isolate;
}
.t-hero-media { position: absolute; inset: 0; z-index: -2; }
.t-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s var(--ease); }
.t-hero-media img.is-active { opacity: 1; }
.t-hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(6,14,28,.7) 0%, rgba(6,14,28,.15) 70%),
    linear-gradient(180deg, rgba(6,14,28,.35) 0%, rgba(6,14,28,0) 30%, rgba(6,14,28,.2) 55%, rgba(6,14,28,.9) 100%);
}
.t-hero-top { display: flex; justify-content: space-between; color: var(--mist); }
.t-hero-slides { display: grid; align-self: end; margin-bottom: 2.5rem; }
/* All titles share one cell, so the block keeps the height of the longest */
.t-hero-title {
  grid-area: 1 / 1; align-self: end; max-width: 20ch; margin: 0; color: var(--white);
  opacity: 0; visibility: hidden; transition: opacity .9s var(--ease), visibility .9s; font-size: var(--fs-display); font-weight: 600;
  letter-spacing: var(--track-display); line-height: 1.08; text-wrap: balance;
}
.t-hero-title.is-active { opacity: 1; visibility: visible; }
.t-hero-foot { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; }
.t-ctas { display: flex; gap: .75rem; flex-wrap: wrap; }
.t-hero-controls { display: flex; align-items: center; gap: 1.25rem; color: var(--mist); }
.t-hero-dots { display: flex; gap: .4rem; }
.t-hero-dots button { position: relative; width: 2.5rem; height: 1.75rem; padding: 0; border: 0; background: none; }
.t-hero-dots button::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px;
  background: rgba(255,255,255,.3); transition: background .3s var(--ease);
}
.t-hero-dots button:hover::after { background: rgba(255,255,255,.6); }
.t-hero-dots button.is-active::after { background: var(--white); }
.t-hero-pause {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; padding: 0;
  border: 1px solid rgba(255,255,255,.35); border-radius: var(--radius); background: none; color: var(--white); font-size: .7rem;
  transition: border-color .3s var(--ease);
}
.t-hero-pause:hover { border-color: var(--white); }

/* ---------- 02 Band — the four pillars ---------- */
.t-marquee { padding: 1.5rem var(--gutter); border-block: 1px solid var(--line-dark); background: var(--navy); }
.t-marquee-row { width: min(var(--max), 100%); margin-inline: auto; }
.t-marquee-track {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 2rem;
  font-size: var(--fs-mono); font-weight: 600; letter-spacing: var(--track-mono); text-transform: uppercase; color: var(--blue);
}

/* ---------- 03 Intro — numbered steps on a rail + sticky photo swap ---------- */
.t-intro { padding: var(--section) 0; background: var(--ink); }
.t-intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 7rem); align-items: start; }
.t-intro-media { position: sticky; top: 12vh; height: 72vh; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy); }
.t-intro-media::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(transparent, rgba(6,14,28,.55)); pointer-events: none; }
.t-intro-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s var(--ease); }
.t-intro-media img.is-active { opacity: 1; }
.t-intro-count { position: absolute; left: 1rem; bottom: 1rem; z-index: 1; padding: .45rem .7rem; border-radius: var(--radius); background: rgba(6,14,28,.75); color: var(--white); }
.t-intro-text { padding-bottom: 6vh; }
.t-intro-text .t-h2 { margin-bottom: clamp(2rem, 5vh, 3.5rem); }

/* Each line is a step; together their left borders form one rail */
.t-intro-step {
  position: relative; min-height: 24vh; display: flex; flex-direction: column; justify-content: center; gap: .9rem;
  padding: 1.5rem 0 1.5rem clamp(1.25rem, 2.5vw, 2.25rem); border-left: 1px solid var(--line-dark);
  font-size: clamp(1.2rem, 1.7vw, 1.6rem); font-weight: 500; letter-spacing: -0.01em; line-height: 1.35; color: var(--white);
  transition: opacity .6s var(--ease);
}
.t-intro-step::after {
  content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--blue);
  transform: scaleY(0); transform-origin: 50% 0; transition: transform .8s var(--ease);
}
.t-intro-step.is-active::after { transform: scaleY(1); }
.js-motion .t-intro-step { opacity: .45; }
.js-motion .t-intro-step.is-active { opacity: 1; }

/* Desktop: lines get room to scroll past while the photo stays put beside them */
@media (min-width: 901px) {
  .t-intro-media { top: 14vh; }
  .t-intro-step { min-height: 36vh; }
  .t-intro-text { padding-bottom: 26vh; }
}

/* ---------- 04 Statement — full-bleed photo ---------- */
.t-statement { position: relative; min-height: 80vh; padding: var(--section) 0; display: flex; align-items: center; overflow: hidden; isolation: isolate; color: var(--white); }
.t-statement-bg { position: absolute; inset: 0; z-index: -2; }
.t-statement-bg img { width: 100%; height: 100%; object-fit: cover; }
.t-statement::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6,14,28,.94) 0%, rgba(6,14,28,.72) 50%, rgba(6,14,28,.35) 100%); }
.t-statement .t-h2 { max-width: 26ch; }
.t-statement-body { display: grid; grid-template-columns: repeat(2, minmax(0, 28rem)); gap: 2rem 3rem; margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.2); }
.t-statement-body p { color: var(--mist); font-size: var(--fs-lede); line-height: 1.55; }

/* ---------- 05 Reality — static three-column grid ---------- */
.t-stack { padding: var(--section) 0; background: var(--ink); }
.t-stack-head { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.t-stack-head .t-h2 { max-width: 22ch; }
.t-stack-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.t-card { display: flex; flex-direction: column; gap: 1.5rem; }
.t-card-media { order: -1; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy); }
.t-card-media img { width: 100%; height: 100%; object-fit: cover; }
.t-card-text { display: flex; flex-direction: column; gap: 1rem; padding-top: 1.25rem; border-top: 1px solid var(--line-dark); }
.t-card-num { color: var(--blue); }
.t-card-title { font-size: clamp(1.2rem, 1.6vw, 1.5rem); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; color: var(--white); text-wrap: balance; }

/* ---------- 06 Stats — static 3×2 grid ---------- */
.t-stats { padding: var(--section) 0; background: var(--paper); color: var(--navy); }
.t-stats .t-index { color: var(--blue-deep); margin-bottom: 1.25rem; }
.t-stats .t-h2 { color: var(--navy); }
.t-stats-head { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.t-stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.t-stat {
  display: flex; flex-direction: column; gap: 1.25rem; min-height: 300px; padding: 1.75rem;
  border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line-light); border-top: 3px solid var(--navy);
}
.t-stat-top { color: #6b7d99; }
.t-stat-value { font-size: clamp(2.2rem, 3.4vw, 3.4rem); font-weight: 600; letter-spacing: var(--track-display); line-height: 1; color: var(--navy); }
.t-stat-value-word { font-size: clamp(1.9rem, 2.8vw, 2.8rem); }
/* Same-height band for every value (number or word) so all descriptions start on one line */
.t-stat > div:nth-child(2) { display: flex; align-items: flex-end; height: clamp(2.2rem, 3.4vw, 3.4rem); margin-top: 1.5rem; }
.t-stat p { margin-top: .5rem; color: var(--slate); font-size: clamp(1rem, 1.15vw, 1.1rem); line-height: 1.55; }
.t-stat-photo { position: relative; padding: 0; overflow: hidden; background: var(--navy); border: 0; }
.t-stat-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.t-stat-logo { display: grid; place-items: center; background: var(--white) !important; border: 1px solid var(--line-light) !important; }
.t-stat-logo img { width: 78%; height: auto; }

/* ---------- 07 Pillars — hover-preview list ---------- */
.t-pillars { position: relative; padding: var(--section) 0; background: var(--paper); color: var(--navy); border-top: 1px solid var(--line-light); }
.t-pillars-intro { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem 4rem; align-items: start; margin-bottom: clamp(3rem, 6vw, 6rem); }
.t-pillars .t-h2 { color: var(--navy); font-size: var(--fs-h2); }
.t-pillars-intro p { color: var(--slate); font-size: clamp(1.135rem, 1.35vw, 1.285rem); line-height: 1.65; }
.t-pillars-label { display: block; margin-bottom: 1.5rem; color: var(--blue-deep); font-size: 15.5px; }
.t-pillar-list { border-top: 1px solid var(--line-light); }
.t-pillar-list a {
  display: grid; grid-template-columns: 5rem 1fr 2rem; align-items: center; gap: 1.5rem;
  padding: clamp(1.25rem, 2vw, 1.75rem) 0; border-bottom: 1px solid var(--line-light);
  transition: color .3s var(--ease);
}
.t-pillar-list .t-mono { color: #6b7d99; }
.t-pillar-name { font-size: clamp(1.6rem, 3vw, 2.75rem); font-weight: 600; letter-spacing: var(--track-h2); line-height: 1.1; }
.t-pillar-arrow { font-size: 1.35rem; justify-self: end; }
.t-pillar-list a:hover, .t-pillar-list a:focus-visible { color: var(--blue-deep); }
.t-pillar-grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(260px, 26vw, 380px); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.t-preview { position: relative; align-self: center; aspect-ratio: 4 / 5; pointer-events: none; }
.t-preview-card { width: 100%; height: 100%; border-radius: var(--radius-lg); overflow: hidden; }
.t-preview img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }

/* ---------- 08 Quote ---------- */
.t-quote { padding: var(--section) 0; background: var(--ink); }
.t-quote blockquote { max-width: 56rem; padding-left: clamp(1.25rem, 3vw, 2.5rem); border-left: 2px solid var(--blue); }
.t-quote-text {
  font-size: clamp(1.35rem, 2.3vw, 2rem); font-weight: 400; letter-spacing: -0.01em; line-height: 1.45; font-style: normal; color: var(--white);
}
.t-quote-text a { color: inherit; }
.t-quote-author { display: block; margin-top: 2rem; color: var(--blue); font-style: normal; }

/* ---------- 09 Contact CTA ---------- */
.t-cta { position: relative; background: var(--ink); }
.t-cta-mask { padding: var(--section) 0; background: var(--navy-2); color: var(--white); border-top: 1px solid var(--line-dark); }
.t-cta-inner { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 1.75rem; }
.t-cta-inner > .t-mono { color: var(--blue); }
.t-cta-title { font-size: var(--fs-h2); font-weight: 600; letter-spacing: var(--track-h2); line-height: 1.12; max-width: 22ch; text-wrap: balance; }
.t-cta-mail { display: inline-flex; align-items: center; gap: 1rem; text-align: left; }
.t-cta-mail i { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: var(--radius); background: rgba(255,255,255,.1); font-size: 1.05rem; }
.t-cta-mail strong { display: block; font-size: 1.15rem; font-weight: 600; }
.t-cta-mail span { color: var(--mist); font-size: .9rem; }


/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .t-intro-grid { grid-template-columns: 1fr; }
  .t-intro-media { position: relative; top: 0; height: 60vh; }
  .t-intro-text { padding-block: 0; }
  .t-intro-text .t-h2 { margin-bottom: 2rem; }
  .t-intro-step { min-height: 0; padding: 1.25rem 0 1.25rem 1.25rem; }
  .js-motion .t-intro-step { opacity: 1; }
  .t-intro-step::after { transform: scaleY(1); }
  .t-statement-body { grid-template-columns: 1fr; }
  .t-stack-cards { grid-template-columns: 1fr; gap: 2.5rem; }
  .t-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-pillars-intro { grid-template-columns: 1fr; }
  .t-pillar-list a { grid-template-columns: 3rem 1fr 1.5rem; }
  .t-preview { display: none; }
  .t-pillar-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .t-stats-grid { grid-template-columns: 1fr; }
  .t-stat { min-height: 0; }
  .t-stat-photo { aspect-ratio: 3 / 4; }
  .t-stat-logo { aspect-ratio: 16 / 9; }
  .t-hero-slides { margin-bottom: 1.75rem; }
  .t-hero-count { display: none; }
  .t-marquee-track { display: grid; grid-template-columns: 1fr 1fr; }
  .t-hero-top > :last-child { display: none; }
}
