
/* ── Redesign: hero, trust, conversion ── */
.hero__headline {
  font-family: var(--font-display, var(--font-mono));
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 12px 0 16px;
  color: var(--ink);
  hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
  text-wrap: balance;
}

.hero__headline-line--short {
  display: none;
}

.hero__rotate {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--muted);
  min-height: 1.6em;
  margin: 0 0 20px;
  transition: opacity 0.28s ease;
}

.hero__rotate--fade { opacity: 0.35; }

.hero__gou-line--motion {
  animation: gou-line-in 0.5s ease-out both;
}

@keyframes gou-line-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__stats--claims strong {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.path-card__cta {
  margin-top: 16px;
  display: inline-flex;
}

.path-card:hover,
.path-card:focus-visible {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-float, 0 12px 40px rgba(0,0,0,0.12));
}

.compare-table {
  width: 100%;
  margin-top: 24px;
  border-collapse: collapse;
  font-size: 14px;
}

.compare-table th,
.compare-table td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
}

.compare-table th { background: var(--surface); font-weight: 700; }
.compare-table td:last-child { font-weight: 600; color: var(--ink); }

.partners {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 32px;
  align-items: center;
  justify-content: center;
}

.partners__item {
  display: flex;
  align-items: center;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.partners__item:hover { opacity: 1; }
.partners__item img { height: 36px; width: auto; filter: grayscale(1); }
.partners__text { font-family: var(--font-mono); font-size: 14px; font-weight: 600; }

.news-list { list-style: none; padding: 0; margin: 0; }
.news-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px 16px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.news-item__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink); margin-top: 6px;
}
.news-item time { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

.fit-quiz {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  background: var(--surface);
}
.fit-quiz__eyebrow { margin-bottom: 10px; }
.fit-quiz__lead {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 10px;
  color: var(--ink);
}
.fit-quiz__sub {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}
.fit-quiz__steps { display: grid; gap: 14px; margin-bottom: 20px; }
.fit-quiz__field { display: block; }
.fit-quiz__field-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
}
.fit-quiz__step-num {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg, #f5f4f0);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.fit-quiz label { display: block; margin-bottom: 16px; }
.fit-quiz select {
  display: block; width: 100%; margin-top: 6px;
  font-size: 16px; padding: 10px 12px;
}
.fit-quiz__result { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.fit-quiz__result-title { font-weight: 600; margin-bottom: 8px; }
.fit-quiz__result-detail { color: var(--muted); margin-bottom: 12px; font-size: 15px; }
.fit-quiz__result-hint { margin-bottom: 16px; font-size: 14px; line-height: 1.5; }

.container--narrow {
  max-width: 640px;
  margin-inline: auto;
}

.case-study__relacion {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 10px;
  line-height: 1.45;
}

.founder-trayectoria-wrap {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.founder-trayectoria-wrap h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.founder-trayectoria {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.founder-trayectoria__item {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.founder-trayectoria__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.founder-trayectoria__title {
  font-weight: 600;
  margin: 0 0 6px;
}

.founder-trayectoria__rel,
.founder-trayectoria__out {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 8px;
  line-height: 1.45;
}

.founder-trayectoria__link {
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}

.founder-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  align-items: start;
}
.founder-card__photo img { border-radius: 50%; width: 160px; height: 160px; object-fit: cover; }
.founder-card__highlights {
  list-style: none; padding: 0; margin: 16px 0 0;
  font-size: 15px; color: var(--muted);
}
.founder-card__highlights li { padding: 4px 0; }
.founder-card__highlights li::before { content: "✓ "; color: var(--ink); }

.brand--rich { padding: 20px; }
.brand__tag { font-size: 13px; color: var(--muted); margin: 8px 0; }
.brand__desc { font-size: 14px; line-height: 1.55; margin: 0 0 12px; }
.brand__link { font-size: 13px; font-weight: 600; display: inline-block; margin-bottom: 8px; }
.brand__status {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.brand__status--live { color: #2d8a4e; }
.brand__status--demo { color: #4a87ff; }
.brand__status--dev { color: var(--muted); }

.field--invalid { border-color: #c0392b !important; outline-color: #c0392b; }
.form-notice--success { color: #2d8a4e; font-weight: 600; }

.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 150;
  padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
  background: rgba(245, 244, 240, 0.96);
  border-top: 1px solid var(--border);
  transform: translateY(100%);
  transition: transform 0.25s ease;
  display: none;
}
.sticky-cta--visible { transform: translateY(0); }
.sticky-cta__btn { width: 100%; justify-content: center; }
@media (max-width: 768px) {
  .sticky-cta { display: block; }
}

.float-contact {
  position: fixed;
  bottom: 80px;
  right: 16px;
  z-index: 140;
  background: var(--ink);
  color: var(--bg, #f5f4f0);
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-card);
}
@media (max-width: 768px) {
  .float-contact { bottom: 72px; }
}

.footer__retro {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 0;
}
.mode-switch--corner {
  position: fixed;
  left: 16px;
  right: auto;
  bottom: 16px;
  padding: 10px 14px;
  z-index: 300;
  pointer-events: auto;
}

.tech-surface .mode-switch--corner a {
  cursor: pointer;
}

.mode-switch--corner a {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .mode-switch--corner { bottom: 72px; }
}

.footer__retro a { color: var(--muted); }

.partners__note {
  width: 100%;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
}

.brand__eta {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 4px;
  line-height: 1.4;
}

.gou-audience__link {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}

html.version-fade-out body {
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}

html.version-enter body.tech-surface main {
  animation: version-in 0.35s ease forwards;
}

@keyframes version-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

html.retro-surface.version-enter body main {
  animation: version-in-retro 0.35s ease forwards;
}

@keyframes version-in-retro {
  from { opacity: 0; }
  to { opacity: 1; }
}

.form input,
.form select,
.form textarea { font-size: 16px; }

@media (max-width: 640px) {
  .founder-card { grid-template-columns: 1fr; text-align: center; }
  .founder-card__photo img { margin-inline: auto; }
}

/* ── UX sprint: hero CTAs ── */
.hero__lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 36rem;
  margin: 0 0 1.25rem;
}

.hero__actions--audience {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1.75rem;
}

@media (max-width: 520px) {
  .hero__actions--audience .btn { flex: 1 1 100%; justify-content: center; }
}

/* ── Case study cards ── */
.case-study--rich {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.case-study__sector {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.case-study__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 8px 0 0;
}

.case-study__text {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  color: var(--ink);
}

.case-study__result {
  font-size: 14px;
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

/* ── Brand specialties grid ── */
.brands-spec {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.brand-spec {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius, 8px);
  background: var(--surface, #fff);
}

.brand-spec__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.brand-spec__head h4 {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.04em;
}

.brand-spec__line {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

.brand-spec__link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}

.section--dark .brand-spec {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.section--dark .brand-spec__line { color: rgba(255, 255, 255, 0.72); }
.section--dark .brand-spec__link { color: #fff; }

/* ── Forms ── */
.form-hint {
  font-size: 13px;
  color: var(--muted);
  margin: 10px 0 0;
}

.board-select-hint {
  margin-top: -4px;
  margin-bottom: 12px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 6px;
  border-left: 3px solid var(--ink);
}

.field--invalid {
  box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.15);
}

.form-notice--success {
  padding: 10px 12px;
  margin-top: 12px;
  background: rgba(45, 138, 78, 0.08);
  border-radius: 6px;
}

.form-notice--error {
  padding: 10px 12px;
  margin-top: 12px;
  background: rgba(192, 57, 43, 0.08);
  border-radius: 6px;
}

/* ═══════════════════════════════════════════════════════════
   MOBILE RESPONSIVE — phones & small tablets
   ═══════════════════════════════════════════════════════════ */

:root {
  --mobile-pad: clamp(16px, 4vw, 24px);
  --mobile-bottom-bar: calc(56px + env(safe-area-inset-bottom, 0px));
}

html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

@media (max-width: 768px) {
  :root {
    --nav-h: 64px;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  body {
    font-size: 16px;
    padding-bottom: var(--mobile-bottom-bar);
  }

  .container,
  .nav__inner {
    width: min(var(--max), 100% - var(--mobile-pad) * 2);
  }

  .nav__inner {
    gap: 12px;
  }

  .nav__brand .logo-plate--nav img {
    height: 28px;
  }

  .nav__toggle {
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  .nav__toggle span {
    background: var(--ink);
  }

  /* Hero */
  .hero,
  .hero--home {
    min-height: auto;
  }

  .hero__grid--home {
    padding-block: 32px 24px;
    gap: 28px;
  }

  .hero--home .hero__visual {
    min-height: 180px;
    order: -1;
  }

  .hero--home .hero__logo-wrap img,
  .hero--home .hero__logo {
    width: min(72vw, 280px);
    margin-inline: auto;
  }

  .hero__headline {
    font-size: clamp(1.65rem, 7vw, 2.25rem);
    line-height: 1.15;
    hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
    text-wrap: balance;
  }

  .hero__headline-line--full {
    display: none;
  }

  .hero__headline-line--short {
    display: block;
  }

  .hero__lead {
    font-size: 1rem;
    max-width: none;
  }

  .hero__stats--claims {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .hero__stats--claims strong {
    font-size: 1.5rem;
  }

  .hero__stats--claims span {
    font-size: 11px;
    line-height: 1.3;
  }

  /* Sections */
  .section {
    padding: 56px 0;
  }

  .section__head {
    margin-bottom: 32px;
  }

  .section__head h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .section__sub {
    font-size: 16px;
  }

  .page-hero {
    padding: calc(var(--nav-h) + 32px) 0 32px;
  }

  .page-hero h1 {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  .page-hero__lead {
    font-size: 16px;
  }

  /* Cards & grids */
  .path-card {
    min-height: auto;
    padding: 24px 20px;
  }

  .path-card h3 {
    font-size: 1.25rem;
  }

  .paths-grid {
    gap: 16px;
  }

  .brands-spec {
    grid-template-columns: 1fr;
  }

  .brand-spec__head {
    flex-wrap: wrap;
  }

  .casos-grid,
  .board-grid,
  .testimonials-grid {
    gap: 16px;
  }

  .case-study,
  .board-card,
  .founder-card {
    padding: 20px 16px;
  }

  /* Gou flow */
  .gou-title {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .gou-flow__inputs {
    font-size: 11px;
    padding: 10px 14px;
    line-height: 1.5;
    max-width: 100%;
    white-space: normal;
  }

  .gou-flow__hub {
    padding: 16px 24px;
    font-size: 1.5rem;
  }

  .gou-flow__audience-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .gou-audience {
    padding: 16px;
  }

  .gou-audience p {
    max-width: none;
  }

  /* Tech / terminal */
  .tech-showcase {
    gap: 24px;
  }

  .tech-terminal {
    font-size: 11px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tech-terminal__body {
    min-width: 0;
  }

  .compare-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 calc(var(--mobile-pad) * -1);
    padding: 0 var(--mobile-pad);
  }

  .compare-table {
    min-width: 320px;
    font-size: 13px;
  }

  .compare-table th,
  .compare-table td {
    padding: 8px 10px;
  }

  /* Partners & news */
  .partners {
    flex-direction: column;
    gap: 16px;
  }

  .partners__item {
    width: 100%;
    justify-content: center;
  }

  .news-item {
    grid-template-columns: auto 1fr;
    gap: 4px 12px;
    font-size: 14px;
  }

  .news-item time {
    grid-column: 2;
  }

  /* Forms */
  .form {
    gap: 16px;
  }

  .fit-quiz {
    padding: 18px 14px;
  }

  .fit-quiz__lead {
    font-size: 1.05rem;
    line-height: 1.4;
  }

  .fit-quiz__sub {
    font-size: 14px;
    margin-bottom: 18px;
  }

  .fit-quiz__field-head {
    font-size: 13px;
    align-items: flex-start;
    line-height: 1.35;
  }

  .fit-quiz select {
    font-size: 16px;
    min-height: 44px;
  }

  .fit-quiz .btn,
  .fit-quiz__result .btn {
    width: 100%;
    justify-content: center;
  }

  .fit-quiz__result-detail,
  .fit-quiz__result-hint {
    font-size: 14px;
  }

  .btn--lg {
    width: 100%;
    padding: 14px 20px;
  }

  .cta__actions {
    flex-direction: column;
    width: 100%;
  }

  .cta__actions .btn {
    width: 100%;
  }

  .contact-actions {
    flex-direction: column;
    width: 100%;
  }

  .contact-actions .btn {
    width: 100%;
  }

  /* FAQ */
  .faq-item summary {
    padding: 14px 16px;
    font-size: 15px;
    line-height: 1.4;
    padding-right: 32px;
  }

  .faq-item p {
    padding: 0 16px 14px;
    font-size: 14px;
  }

  /* Footer */
  .footer__inner {
    text-align: center;
  }

  /* Fixed UI — avoid overlap */
  .float-contact {
    display: none;
  }

  .sticky-cta {
    display: block;
    padding: 8px var(--mobile-pad) calc(8px + env(safe-area-inset-bottom, 0px));
  }

  .mode-switch,
  .mode-switch--corner {
    position: fixed;
    bottom: calc(var(--mobile-bottom-bar) + 8px);
    left: var(--mobile-pad);
    right: auto;
    max-width: calc(100% - var(--mobile-pad) * 2);
    padding: 8px 12px;
    z-index: 300;
  }

  .mode-switch--corner a {
    font-size: 11px;
    white-space: normal;
    line-height: 1.3;
  }

  .to-top {
    right: var(--mobile-pad);
    bottom: calc(var(--mobile-bottom-bar) + 8px);
    width: 42px;
    height: 42px;
    z-index: 155;
  }

  /* Disable hover/magnetic on touch */
  .path-card:hover,
  .path-card:focus-visible {
    transform: none;
    box-shadow: none;
  }

  [data-tilt] {
    transform: none !important;
  }

  .glare {
    display: none;
  }
}

@media (max-width: 400px) {
  .hero__stats--claims {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__actions--audience .btn {
    font-size: 14px;
    padding: 12px 16px;
  }

  .nav__lang-btn {
    min-width: 36px;
    min-height: 36px;
  }
}

@media (hover: none) and (pointer: coarse) {
  .btn:active {
    transform: scale(0.97);
  }

  .path-card:active {
    border-color: var(--border-active);
  }
}
