:root {
  --bg: #FAF8F5;
  --bg-dim: #F1EAE0;
  --bg-dark: #14120F;
  --text: #14120F;
  --text-on-dark: #F4EFE7;
  --mute: #6B655C;
  --mute-on-dark: #9A9184;
  --accent: #E07B3F;
  --accent-soft: rgba(224, 123, 63, 0.16);
  --line: rgba(20, 18, 15, 0.12);
  --line-on-dark: rgba(244, 239, 231, 0.14);
  --card: #FFFFFF;
  --card-border: rgba(20, 18, 15, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Instrument Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
}

.serif {
  font-family: "Fraunces", serif;
}

section {
  padding: 88px 8vw;
}

@media (max-width: 640px) {
  section {
    padding: 56px 6vw;
  }
}

.kicker {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 16px;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.01em;
}

em {
  font-style: italic;
  color: var(--accent);
}

/* Scroll reveal: only hidden by default once JS confirms it can reveal them. */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* NAV */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 8vw;
  background: rgba(250, 248, 245, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: padding 0.25s ease;
}

nav.condensed {
  padding: 12px 8vw;
}

.logo {
  font-family: "Fraunces", serif;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.logo em {
  font-style: normal;
}

.navlinks {
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: var(--mute);
}

.navlinks a {
  color: inherit;
  text-decoration: none;
  position: relative;
}

.navlinks a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.navlinks a:hover::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-toggle {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--mute);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 13px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.lang-toggle:hover {
  border-color: var(--accent);
  color: var(--text);
}

.navlinks a:hover {
  color: var(--text);
}

@media (max-width: 760px) {
  .navlinks {
    display: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
  font-family: inherit;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}

.btn-link {
  padding: 13px 4px;
  color: var(--text);
  font-weight: 500;
  border: none;
}

.btn-link:hover {
  color: var(--accent);
}

/* HERO */
.hero {
  padding-top: 72px;
  padding-bottom: 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero-inner {
  max-width: 620px;
}

.hero-highlight {
  position: relative;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  background: var(--card);
  padding: 26px;
  margin-top: 6px;
}

@media (max-width: 900px) {
  .hero-highlight {
    max-width: 340px;
  }
}

.hero-highlight-stat {
  padding: 14px 0;
}

.hero-highlight-stat + .hero-highlight-stat {
  border-top: 1px solid var(--line);
}

.hero-highlight .case-num {
  font-size: 26px;
}

.hero-highlight .case-label {
  margin-top: 6px;
  line-height: 1.4;
}

.hero h1 {
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.08;
  margin-top: 16px;
}

.hero p.lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--mute);
  margin: 22px 0 30px;
  max-width: 52ch;
}

.hero-ctas {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}

/* QUÉ HACEMOS */
.band-dim {
  background: var(--bg-dim);
}

.statement {
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.25;
  max-width: 820px;
  margin: 0 0 26px;
}

.band-dim p.support {
  max-width: 60ch;
  color: var(--mute);
  font-size: 15.5px;
  line-height: 1.6;
}

/* PROCESO */
.proceso-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
}

.proceso-head p {
  max-width: 32ch;
  font-size: 14.5px;
  color: var(--mute);
  line-height: 1.55;
  margin: 0;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 44px;
}

@media (max-width: 860px) {
  .process-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 540px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
}

.process-card {
  position: relative;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 30px 24px;
  background: var(--card);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.process-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 16px 32px rgba(20, 18, 15, 0.08);
}

.process-card .dot,
.hero-highlight .dot {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.process-num {
  font-family: "Fraunces", serif;
  font-size: clamp(44px, 5vw, 58px);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 20px;
}

.process-card h4 {
  font-family: "Fraunces", serif;
  font-size: 19px;
  margin: 0 0 8px;
  font-weight: 500;
}

.process-card p {
  font-size: 14px;
  color: var(--mute);
  line-height: 1.55;
  margin: 0;
}

/* PERFILES / EMPRESAS — dark band */
.band-dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.band-dark .kicker {
  color: var(--accent);
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-top: 8px;
}

@media (max-width: 860px) {
  .split-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.split-col .statement {
  color: var(--text-on-dark);
  font-size: clamp(22px, 2.6vw, 30px);
  margin-bottom: 24px;
}

.split-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.split-col li {
  font-size: 14.5px;
  color: var(--mute-on-dark);
  padding: 6px 0;
}

/* CASO REAL */
.case-featured {
  margin-top: 40px;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  background: var(--card);
  padding: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 24px;
}

@media (max-width: 760px) {
  .case-featured {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 460px) {
  .case-featured {
    grid-template-columns: 1fr;
  }
}

.case-profile {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 24px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.case-avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #14120f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Fraunces", serif;
  font-size: 17px;
  overflow: hidden;
}

.case-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.case-profile-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.case-profile-text strong {
  font-size: 15.5px;
  font-weight: 500;
}

.case-profile-text span {
  font-size: 13px;
  color: var(--mute);
}

.case-profile-link {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--accent);
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.case-profile:hover .case-profile-link {
  opacity: 0.7;
}

@media (max-width: 460px) {
  .case-profile {
    flex-wrap: wrap;
  }
  .case-profile-link {
    margin-left: 64px;
  }
}

.case-num {
  font-size: clamp(28px, 3vw, 38px);
  color: var(--text);
  line-height: 1;
}

.case-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mute);
  margin-top: 10px;
}

.case-breakdown {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 13px;
  color: var(--mute);
}

/* CONTACTO */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

.pill-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(20, 18, 15, 0.06);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 22px;
}

.contact-heading {
  font-family: "Instrument Sans", sans-serif;
  font-weight: 600;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

.contact-lede {
  font-size: 15.5px;
  color: var(--mute);
  max-width: 40ch;
  margin: 0 0 32px;
  line-height: 1.55;
}

.contact-proof {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.contact-proof-text {
  font-size: 13.5px;
  color: var(--mute);
  max-width: 28ch;
  transition: color 0.2s ease;
}

.contact-proof:hover .contact-proof-text {
  color: var(--accent);
}

form {
  max-width: 480px;
  display: grid;
  gap: 22px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 560px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

.field label {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mute);
  margin-bottom: 8px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: "Instrument Sans", sans-serif;
  font-size: 15px;
  border-radius: 10px;
  color: var(--text);
  transition: border-color 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.field-underline input,
.field-underline textarea {
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 10px 0;
}

.field-underline input:focus,
.field-underline textarea:focus {
  border-bottom-color: var(--accent);
}

.pill-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill-option {
  position: relative;
}

.pill-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.pill-option span {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pill-option:has(input:checked) span {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.pill-option input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-block {
  width: 100%;
  justify-content: center;
  padding: 15px 22px;
}

.form-note {
  font-size: 13px;
  color: var(--mute);
  margin-top: -6px;
}

.form-success {
  display: none;
  font-family: "Fraunces", serif;
  font-size: 19px;
  color: var(--text);
}

footer {
  background: var(--bg-dark);
  color: var(--mute-on-dark);
  padding: 32px 8vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}

footer .logo {
  color: var(--text-on-dark);
}

footer a {
  color: var(--text-on-dark);
  text-decoration: none;
}

footer .footer-links {
  display: flex;
  gap: 20px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    transition: none;
  }
}
