/* Indahouse España — landing. Fiel a "Indahouse España - Landing v2.dc.html" (Claude Design). */

:root {
  --navy: #27215F;
  --violet: #4A3AFF;
  --cyan: #32E0E1;
  --text: #4B4862;
  --ink: #2F2C47;
  --muted: #75738A;
  --muted-2: #9A98AE;
  --fine: #8A889C;
  --lilac: #CFCBEA;
  --line: #E5E4EE;
  --line-2: #DAD9E6;
  --line-3: #EEEDF4;
  --track: #ECEBF3;
  --navy-line: #4A4483;
  --soft: #F6F6FA;
  --pill: #F1F0F8;
  --white: #FFFFFF;

  --f-display: 'Schibsted Grotesk', sans-serif;
  --f-body: 'Urbanist', sans-serif;
  --f-logo: 'Poppins', sans-serif;

  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(72px, 9vw, 128px);
  --split-gap: 40px clamp(40px, 6vw, 96px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}
@media print { [data-reveal] { opacity: 1 !important; transform: none !important; } }
a { color: var(--violet); text-decoration: none; }
a:hover { color: var(--navy); }
button { font: inherit; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
img { display: block; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.cta-box :focus-visible { outline-color: var(--cyan); }
/* Las anclas no quedan bajo la cabecera fija. */
section[id] { scroll-margin-top: 64px; }

.container { max-width: 1200px; margin: 0 auto; }
.split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--split-gap);
}
.section { padding: var(--section-y) var(--gutter); }
.section--soft { background: var(--soft); }

.h2 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.028em;
  color: var(--navy);
}
.text-muted-2 { color: var(--muted-2); }
.body-copy { font-size: 18px; line-height: 1.6; color: var(--text); max-width: 44ch; }

/* ---------- Botones y enlaces ---------- */
.btn {
  font-family: var(--f-display);
  font-weight: 600;
  color: var(--white);
  background: var(--navy);
  border-radius: 6px;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--violet); color: var(--white); }
.btn--sm { font-size: 15px; padding: 10px 18px; transition: background .2s; }
.btn--lg { font-size: 17px; padding: 17px 28px; }
.btn--lg:hover { transform: translateY(-2px); }
.btn--block {
  display: block;
  text-align: center;
  margin-top: 22px;
  font-size: 16.5px;
  padding: 15px 22px;
  transition: background .2s;
}
.btn--light {
  display: block;
  text-align: center;
  font-size: 18px;
  color: var(--navy);
  background: var(--white);
  padding: 18px 26px;
}
.btn--light:hover { background: var(--cyan); color: var(--navy); transform: translateY(-2px); }

.link-underline {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--navy);
  border-bottom: 1.5px solid var(--navy);
  padding-bottom: 2px;
}
.link-underline:hover { color: var(--violet); border-bottom-color: var(--violet); }

/* ---------- Marca ---------- */
.wordmark {
  font-family: var(--f-logo);
  font-weight: 700;
  color: var(--navy);
}
.wordmark .in { color: var(--violet); }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { height: 26px; width: auto; }
.brand .wordmark { font-size: 20px; letter-spacing: -0.3px; }
.brand-region {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 13px;
  color: var(--muted);
  padding-left: 10px;
  border-left: 1px solid var(--line);
}
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 26px; }
.nav-link {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--text);
}
.nav-link:hover { color: var(--navy); }
/* Móvil: solo logotipo y botón, en una fila (como en el PDF móvil del handoff). */
@media (max-width: 640px) {
  .nav-link { display: none; }
  .header-inner { gap: 10px; }
}
@media (max-width: 480px) {
  .brand { gap: 8px; }
  .brand-mark { height: 24px; }
  .brand .wordmark { font-size: 18px; }
  .brand-region { display: none; }
  .btn--sm { font-size: 14px; padding: 9px 12px; }
}

/* ---------- 01 Portada ---------- */
.hero {
  padding: clamp(48px, 7vw, 104px) var(--gutter) clamp(56px, 7vw, 96px);
  overflow: hidden;
}
.hero-copy { flex: 1.15 1 440px; }
.eyebrow {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--muted);
}
.hero h1 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(38px, 5vw, 70px);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--navy);
  margin-top: 20px;
}
.hero-lead {
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.55;
  color: var(--text);
  margin-top: 24px;
  max-width: 46ch;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  margin-top: 32px;
}
.hero-visual {
  flex: 1 1 360px;
  position: relative;
  height: clamp(340px, 38vw, 460px);
}
.op-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(270px, 78%);
  background: var(--navy);
  color: var(--white);
  border-radius: 10px;
  padding: 22px 22px 18px;
  transition: transform .9s cubic-bezier(.2, .8, .2, 1), opacity .9s, box-shadow .9s;
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0.45;
  box-shadow: 0 10px 30px rgba(39, 33, 95, 0.10);
}
.op-card-brand { display: flex; align-items: center; gap: 8px; }
.op-card-brand img { height: 20px; width: auto; }
.op-card-brand .wordmark { font-size: 17px; color: var(--white); }
.op-card-brand .wordmark .in { color: var(--cyan); }
.op-card-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--lilac);
  margin-top: 12px;
}
.op-card-rows {
  font-family: var(--f-display);
  font-size: 14px;
  margin-top: 12px;
  font-variant-numeric: tabular-nums;
}
.op-card-rows div {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-top: 1px solid var(--navy-line);
}
.op-card-rows strong { font-weight: 600; }
.op-card-rows .ok { color: var(--cyan); }
.chip {
  position: absolute;
  white-space: nowrap;
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: 5px;
  padding: 9px 14px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--text);
  box-shadow: 0 6px 18px rgba(39, 33, 95, 0.08);
  transition:
    left .9s cubic-bezier(.6, 0, .2, 1),
    top .9s cubic-bezier(.6, 0, .2, 1),
    transform .9s cubic-bezier(.6, 0, .2, 1),
    opacity .7s;
}

/* ---------- 02 Problema ---------- */
.problem-copy { flex: 1 1 420px; }
.problem-copy .body-copy { margin-top: 20px; }
.segmented {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--white);
}
.problem-copy .segmented { margin-top: 28px; }
.seg {
  border: 0;
  cursor: pointer;
  border-radius: 5px;
  padding: 9px 18px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 15px;
  transition: background .25s, color .25s;
  background: transparent;
  color: var(--navy);
}
.seg.is-active { background: var(--navy); color: var(--white); }
.view-toggle .seg { padding: 9px 16px; }
.problem-caption {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--navy);
  margin-top: 20px;
  min-height: 30px;
}
.dots {
  flex: 1 1 360px;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: clamp(6px, 0.9vw, 12px);
  max-width: 420px;
}
.dot {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--navy);
  display: block;
  transition: opacity .45s ease, transform .45s cubic-bezier(.2, .8, .2, 1);
  opacity: 0.13;
  transform: scale(0.55);
}

/* ---------- 03 Cómo funciona ---------- */
.how .h2 { max-width: 20ch; }
.steps-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(32px, 4vw, 48px);
}
.step-tab {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 6px;
  padding: 12px 16px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 15px;
  transition: background .25s, color .25s, border-color .25s;
  border: 1px solid var(--line-2);
  background: var(--white);
  color: var(--navy);
}
.step-tab.is-active { border-color: var(--navy); background: var(--navy); color: var(--white); }
.step-tab .num { opacity: 0.6; font-variant-numeric: tabular-nums; }
.progress {
  height: 2px;
  background: var(--track);
  margin-top: 16px;
  overflow: hidden;
}
.progress-bar { height: 100%; background: var(--violet); width: 0%; }
.step-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 28px clamp(40px, 6vw, 96px);
  margin-top: clamp(32px, 4vw, 48px);
  min-height: 190px;
}
.step-main { flex: 1 1 380px; }
.step-count {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 16px;
  color: var(--violet);
  font-variant-numeric: tabular-nums;
}
.step-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.022em;
  color: var(--navy);
  margin-top: 10px;
}
.step-main .body-copy { margin-top: 14px; }
.step-items {
  flex: 1 1 380px;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
  list-style: none;
}
.step-items li {
  font-size: 16px;
  color: var(--navy);
  background: var(--pill);
  border-radius: 999px;
  padding: 9px 16px;
}

/* ---------- 04 Panel ---------- */
.panel-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 20px 40px;
}
.panel-stage { margin-top: clamp(28px, 3.5vw, 44px); }
.dash {
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(39, 33, 95, 0.09);
}
.dash-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
}
.dash-name { font-family: var(--f-display); font-weight: 600; font-size: 15px; color: var(--navy); }
.dash-note { font-size: 13.5px; color: var(--muted); }
.dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  border-bottom: 1px solid var(--line);
}
.dash-stat { padding: 18px 22px; border-right: 1px solid var(--line-3); }
.dash-stat:last-child { border-right: 0; }
.dash-stat-label { font-size: 14px; color: var(--muted); }
.dash-stat-value {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 30px;
  color: var(--navy);
  margin-top: 2px;
}
.dash-stat-value.accent { color: var(--violet); }
.dash-rows { padding: 8px 22px 18px; }
.dash-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-3);
  font-variant-numeric: tabular-nums;
}
.dash-row-name {
  flex: 1 1 180px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--navy);
}
.dash-row-name span { font-weight: 400; font-size: 14px; color: var(--muted); }
.dash-row-meta { flex: 0 0 auto; font-size: 15px; color: var(--text); }
.dash-row-progress { flex: 1 1 200px; display: flex; align-items: center; gap: 10px; }
.dash-track { flex: 1; height: 6px; background: var(--line-3); border-radius: 3px; overflow: hidden; }
.dash-fill {
  height: 100%;
  background: var(--navy);
  border-radius: 3px;
  transition: width 1.3s cubic-bezier(.2, .8, .2, 1);
  width: 0%;
}
.dash-frac { font-size: 14px; color: var(--muted); }

.investor {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px clamp(40px, 6vw, 80px);
}
.investor img {
  flex: 1 1 320px;
  width: 100%;
  max-width: 500px;
  height: auto;
}
.investor-copy { flex: 1 1 320px; }
.investor-copy h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.investor-copy p { font-size: 17.5px; line-height: 1.6; color: var(--text); margin-top: 14px; }
.investor-docs { margin-top: 20px; font-size: 15.5px; color: var(--ink); list-style: none; }
.investor-docs li {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  border-top: 1px solid var(--line-2);
}
.investor-docs li:last-child { border-bottom: 1px solid var(--line-2); }
.investor-docs .st { color: var(--muted); }
.investor-docs .st--new { color: var(--violet); font-weight: 600; }
.panel-close {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(19px, 1.8vw, 24px);
  line-height: 1.35;
  color: var(--navy);
  margin-top: clamp(36px, 4.5vw, 56px);
  max-width: 40ch;
}
[hidden] { display: none !important; }

/* ---------- 05 Visión ---------- */
.vision { padding: var(--section-y) var(--gutter) 0; }
.vision-frame {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  height: clamp(360px, 44vw, 580px);
  border-radius: 8px;
  overflow: hidden;
  background: #1C1745;
}
.vision-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vision-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(24px, 4vw, 48px);
  background: linear-gradient(180deg, rgba(28, 23, 69, 0) 0%, rgba(28, 23, 69, 0.82) 72%);
  pointer-events: none;
}
.vision-overlay p {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.028em;
  color: var(--white);
  max-width: 20ch;
}
.vision-overlay span { color: var(--cyan); }

/* ---------- 06 Calculadora ---------- */
.calc { margin-top: var(--section-y); }
.calc-copy { flex: 1 1 400px; }
.calc-copy .h2 { max-width: 18ch; }
.calc-copy .body-copy { margin-top: 16px; }
.calc-fields {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 34px;
  max-width: 480px;
}
.field-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--navy);
}
.field-head output { font-size: 24px; font-variant-numeric: tabular-nums; }
.field input[type="range"] {
  width: 100%;
  margin-top: 10px;
  accent-color: var(--navy);
  cursor: pointer;
}
.field-note { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.calc-card {
  flex: 1 1 380px;
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: clamp(24px, 3vw, 36px);
  box-shadow: 0 24px 60px rgba(39, 33, 95, 0.08);
  font-variant-numeric: tabular-nums;
}
.calc-label { font-size: 14.5px; color: var(--muted); }
.calc-hours {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(38px, 4vw, 54px);
  line-height: 1.05;
  color: var(--navy);
  margin-top: 4px;
}
.calc-fte { font-size: 15px; color: var(--muted); margin-top: 4px; }
.calc-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  margin-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  color: var(--text);
}
.calc-row strong { font-family: var(--f-display); font-weight: 600; color: var(--navy); }
.calc-save { padding: 18px 20px; background: var(--pill); border-radius: 8px; }
.calc-save-label { font-size: 14.5px; color: var(--text); }
.calc-save-value {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.1;
  color: var(--violet);
  margin-top: 4px;
}
.calc-altas { font-size: 14.5px; color: var(--muted); margin-top: 14px; }
.calc-fine { font-size: 12.5px; line-height: 1.5; color: var(--fine); margin-top: 14px; }

/* ---------- 07 Diagnóstico ---------- */
.cta-box {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--navy);
  color: var(--white);
  border-radius: 10px;
  padding: clamp(32px, 5vw, 72px);
}
.cta-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 28px 48px;
}
.cta-copy { flex: 1 1 440px; }
.cta-copy h2 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(30px, 3.6vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 17ch;
}
.cta-copy p { font-size: 18px; line-height: 1.6; color: var(--lilac); margin-top: 18px; max-width: 46ch; }
.cta-action { flex: 0 1 340px; }
.cta-action p { font-size: 14.5px; color: var(--lilac); margin-top: 12px; text-align: center; }
.cta-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 18px 16px;
  margin-top: clamp(40px, 5vw, 64px);
  font-family: var(--f-display);
}
.cta-steps li { padding-top: 14px; border-top: 1px solid var(--navy-line); }
.cta-steps li:hover { border-top-color: var(--cyan); }
.cta-steps .n { font-weight: 500; font-size: 14px; color: var(--cyan); }
.cta-steps .t { font-weight: 600; font-size: 17px; margin-top: 4px; }
.cta-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px 32px;
  margin-top: clamp(36px, 4vw, 52px);
  padding-top: 24px;
  border-top: 1px solid var(--navy-line);
}
.cta-bottom p { font-size: 16.5px; line-height: 1.5; color: var(--lilac); max-width: 56ch; }
.cta-bottom a {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 16.5px;
  color: var(--white);
  border-bottom: 1.5px solid var(--cyan);
  padding-bottom: 2px;
}
.cta-bottom a:hover { color: var(--cyan); }

/* ---------- Pie ---------- */
.site-footer {
  padding: 40px var(--gutter) 36px;
  border-top: 1px solid var(--line);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { height: 22px; width: auto; }
.footer-brand .wordmark { font-size: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; }
.footer-links a { color: var(--text); }
.footer-links a:hover { color: var(--navy); }
.legal {
  max-width: 1200px;
  margin: 24px auto 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--fine);
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}
