:root {
  --ink: #151815;
  --muted: #5f665f;
  --line: #d9ddd5;
  --paper: #f7f8f4;
  --white: #ffffff;
  --green: #1d7a55;
  --teal: #1d8b8a;
  --coral: #b84d35;
  --graphite: #222825;
  --shadow: 0 16px 48px rgba(22, 28, 25, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  color: var(--white);
  background: rgba(21, 24, 21, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.site-header.solid {
  position: fixed;
  color: var(--white);
  background: rgba(21, 24, 21, 0.94);
}

.brand {
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0;
}

.nav {
  display: flex;
  gap: clamp(12px, 2vw, 28px);
  font-size: 0.94rem;
}

.nav a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
}

.nav a:hover {
  color: var(--white);
}

.language-link {
  padding-left: 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  padding: 120px clamp(20px, 5vw, 72px) 72px;
  overflow: hidden;
  color: var(--white);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(12, 16, 13, 0.86) 0%, rgba(12, 16, 13, 0.62) 42%, rgba(12, 16, 13, 0.18) 100%),
    linear-gradient(0deg, rgba(12, 16, 13, 0.44), rgba(12, 16, 13, 0.04));
}

.hero-content {
  position: relative;
  max-width: 860px;
  padding-top: 7vh;
}

.eyebrow,
.section-label,
.case-tag {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #8ee2be;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(2.7rem, 6vw, 6.4rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 760px;
  margin-bottom: 18px;
  color: var(--white);
  font-size: clamp(1.3rem, 2.4vw, 2.2rem);
  line-height: 1.18;
  font-weight: 800;
}

.hero-copy {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: var(--white);
  background: var(--green);
}

.button.secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.58);
}

.button.secondary.dark {
  color: var(--ink);
  border-color: var(--line);
}

.section {
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 72px);
}

.intro,
.contact {
  display: grid;
  grid-template-columns: minmax(160px, 0.22fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.intro {
  grid-template-columns: minmax(150px, 0.2fr) minmax(0, 1fr) minmax(250px, 360px);
  align-items: center;
}

.intro-copy {
  max-width: 920px;
  font-size: clamp(1.24rem, 2vw, 1.8rem);
  line-height: 1.32;
}

.profile-portrait {
  margin: 0;
}

.profile-portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.profile-portrait figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.intro-copy p:last-child,
.case-card p:last-child {
  margin-bottom: 0;
}

.section-heading {
  max-width: 880px;
  margin-bottom: 34px;
}

.section-heading h2,
.contact h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.metrics-grid article,
.case-card {
  min-height: 240px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(22, 28, 25, 0.06);
}

.metrics-grid span {
  color: var(--coral);
  display: block;
  min-height: 1.1em;
  font-size: clamp(1.35rem, 2vw, 2.1rem);
  line-height: 1;
  font-weight: 900;
}

.metrics-grid h3,
.metrics-grid h2,
.case-card h2,
.case-card h3 {
  margin: 20px 0 12px;
  font-size: 1.18rem;
  line-height: 1.2;
}

.metrics-grid p,
.case-card p {
  color: var(--muted);
}

.case-card {
  color: inherit;
  text-decoration: none;
}

.case-card:hover {
  border-color: rgba(29, 122, 85, 0.42);
  transform: translateY(-2px);
  transition: transform 180ms ease, border-color 180ms ease;
}

.featured-case {
  border-color: rgba(29, 122, 85, 0.34);
  background:
    linear-gradient(180deg, rgba(29, 122, 85, 0.08), rgba(255, 255, 255, 0.92)),
    var(--white);
}

.cases {
  background: #edf4ef;
}

.case-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.case-tag {
  color: var(--teal);
}

.operating-system {
  color: var(--white);
  background: var(--graphite);
}

.operating-system .section-label {
  color: #8ee2be;
}

.flow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 36px;
}

.flow div {
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
  text-align: center;
}

.flow span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  font-weight: 500;
}

.insights {
  background: var(--white);
}

.insight-list {
  display: grid;
  gap: 12px;
  max-width: 980px;
}

.insight-list a {
  display: block;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: clamp(1.25rem, 2vw, 2rem);
  font-weight: 800;
  text-decoration: none;
}

.insight-list a:hover {
  color: var(--green);
}

.contact {
  align-items: end;
  grid-template-columns: minmax(0, 1fr) auto;
  background: #f1f4ee;
}

.contact h2 {
  max-width: 900px;
}

.contact .button.secondary {
  color: var(--ink);
  border-color: var(--line);
}

.subpage {
  padding-top: 74px;
}

.page-hero {
  padding: clamp(70px, 10vw, 124px) clamp(20px, 5vw, 72px) clamp(42px, 6vw, 78px);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(21, 24, 21, 0.94), rgba(21, 24, 21, 0.78)),
    url("assets/revenue-crm-hero.webp") center / cover;
}

.page-hero h1,
.detail-page h1,
.article-page h1 {
  max-width: 980px;
  margin-bottom: 22px;
  font-size: clamp(2.35rem, 5vw, 5.6rem);
  line-height: 0.98;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
}

.detail-page,
.article-page {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(58px, 8vw, 108px) clamp(20px, 5vw, 40px);
}

.detail-page h2,
.article-page h2 {
  margin: 34px 0 10px;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.18;
}

.detail-page p,
.article-page p,
.article-page li {
  color: var(--muted);
  font-size: 1.08rem;
}

.article-page ul {
  margin: 0 0 24px;
  padding-left: 22px;
}

.case-result {
  display: inline-flex;
  margin: 8px 0 18px;
  padding: 10px 14px;
  border: 1px solid rgba(184, 77, 53, 0.24);
  border-radius: 8px;
  color: var(--coral);
  background: rgba(184, 77, 53, 0.08);
  font-weight: 900;
}

.case-study {
  background: var(--white);
  overflow-x: hidden;
}

.case-hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: end;
  padding: 120px clamp(20px, 5vw, 72px) clamp(36px, 6vw, 72px);
  color: var(--white);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(12, 16, 13, 0.92) 0%, rgba(12, 16, 13, 0.76) 43%, rgba(12, 16, 13, 0.2) 100%),
    linear-gradient(0deg, rgba(12, 16, 13, 0.46), rgba(12, 16, 13, 0.08)),
    center / cover no-repeat;
}

.repuestos-hero {
  background-image:
    linear-gradient(90deg, rgba(12, 16, 13, 0.92) 0%, rgba(12, 16, 13, 0.76) 43%, rgba(12, 16, 13, 0.2) 100%),
    linear-gradient(0deg, rgba(12, 16, 13, 0.46), rgba(12, 16, 13, 0.08)),
    url("assets/repuestos-total-canal-digital.webp");
}

.repuestos-boutique-hero {
  background-image:
    linear-gradient(90deg, rgba(12, 16, 13, 0.92) 0%, rgba(12, 16, 13, 0.74) 43%, rgba(12, 16, 13, 0.18) 100%),
    linear-gradient(0deg, rgba(12, 16, 13, 0.46), rgba(12, 16, 13, 0.08)),
    url("assets/repuestos-total-boutique-premium-contenido-viral.webp");
}

.canella-hero {
  background-image:
    linear-gradient(90deg, rgba(12, 16, 13, 0.92) 0%, rgba(12, 16, 13, 0.76) 43%, rgba(12, 16, 13, 0.2) 100%),
    linear-gradient(0deg, rgba(12, 16, 13, 0.46), rgba(12, 16, 13, 0.08)),
    url("assets/canella-yamaha-leads.webp");
}

.atv-hero {
  background-image:
    linear-gradient(90deg, rgba(12, 16, 13, 0.92) 0%, rgba(12, 16, 13, 0.76) 43%, rgba(12, 16, 13, 0.2) 100%),
    linear-gradient(0deg, rgba(12, 16, 13, 0.46), rgba(12, 16, 13, 0.08)),
    url("assets/atv-revenue-data-warehouse.webp");
}

.atv-efficiency-hero {
  background-image:
    linear-gradient(90deg, rgba(12, 16, 13, 0.92) 0%, rgba(12, 16, 13, 0.76) 43%, rgba(12, 16, 13, 0.18) 100%),
    linear-gradient(0deg, rgba(12, 16, 13, 0.46), rgba(12, 16, 13, 0.08)),
    url("assets/atv-eficiencia-operativa-ahorro.webp");
}

.case-hero-content {
  width: min(1120px, 100%);
  min-width: 0;
}

.case-hero h1 {
  max-width: 980px;
  margin-bottom: 22px;
  font-size: clamp(2.35rem, 5.6vw, 5.8rem);
  line-height: 0.98;
  overflow-wrap: break-word;
}

.case-hero-subtitle {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.12rem, 2vw, 1.55rem);
}

.case-hero-metrics,
.case-metric-grid,
.timeline,
.before-after {
  display: grid;
  gap: 14px;
}

.case-hero-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 980px;
  margin-top: 34px;
}

.case-hero-metrics article {
  min-width: 0;
  min-height: 122px;
  display: grid;
  align-content: end;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.case-hero-metrics span,
.case-metric-grid span {
  display: block;
  color: #8ee2be;
  font-size: clamp(1.55rem, 3vw, 2.6rem);
  line-height: 1;
  font-weight: 900;
}

.case-hero-metrics span.metric-tight {
  font-size: clamp(1.35rem, 2.2vw, 2.05rem);
}

.case-hero-metrics p,
.case-metric-grid p {
  margin: 10px 0 0;
}

.case-hero-metrics p {
  color: rgba(255, 255, 255, 0.78);
}

.case-body {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(58px, 8vw, 108px) clamp(20px, 5vw, 40px);
}

.case-lede {
  min-width: 0;
  max-width: 940px;
  margin-bottom: clamp(42px, 7vw, 84px);
}

.case-lede p {
  color: var(--ink);
  font-size: clamp(1.28rem, 2.2vw, 1.85rem);
  line-height: 1.32;
}

.case-section {
  display: grid;
  grid-template-columns: minmax(130px, 0.22fr) minmax(0, 1fr);
  gap: clamp(26px, 5vw, 64px);
  padding: clamp(42px, 6vw, 72px) 0;
  border-top: 1px solid var(--line);
}

.case-text {
  min-width: 0;
}

.case-text h2,
.result-band h2,
.executive-learning h2,
.before-after h2 {
  max-width: 840px;
  margin-bottom: 16px;
  font-size: clamp(1.75rem, 3vw, 3.1rem);
  line-height: 1.05;
}

.case-text p,
.case-lede p,
.result-band p,
.executive-learning p,
.before-after li {
  color: var(--muted);
}

.case-text p,
.result-band p,
.executive-learning p,
.before-after li {
  max-width: 820px;
  font-size: 1.08rem;
}

.case-metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: clamp(28px, 5vw, 56px) 0;
}

.case-metric-grid article {
  min-width: 0;
  min-height: 154px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f5f8f2;
}

.case-metric-grid span {
  color: var(--coral);
}

.case-metric-grid p {
  color: var(--muted);
  font-weight: 800;
}

.case-quote {
  margin: clamp(40px, 7vw, 80px) 0;
  padding: clamp(28px, 5vw, 54px);
  border-left: 6px solid var(--green);
  color: var(--ink);
  background: #edf4ef;
  font-size: clamp(1.4rem, 2.5vw, 2.55rem);
  line-height: 1.18;
  font-weight: 900;
}

.before-after {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: clamp(28px, 5vw, 60px) 0;
}

.before-after article {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.before-after ul {
  margin: 0;
  padding-left: 20px;
}

.before-after li + li {
  margin-top: 10px;
}

.timeline {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(30px, 5vw, 62px) 0;
}

.timeline div {
  min-width: 0;
  min-height: 132px;
  padding: 20px;
  border: 1px solid rgba(29, 139, 138, 0.28);
  border-radius: 8px;
  background: rgba(29, 139, 138, 0.08);
}

.timeline span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 50%;
  color: var(--white);
  background: var(--teal);
  font-weight: 900;
}

.timeline p {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

.result-band,
.executive-learning {
  margin: clamp(42px, 7vw, 84px) 0;
  padding: clamp(34px, 6vw, 64px);
  border-radius: 8px;
}

.result-band {
  color: var(--white);
  background: var(--graphite);
}

.result-band .section-label {
  color: #8ee2be;
}

.result-band p {
  color: rgba(255, 255, 255, 0.78);
}

.executive-learning {
  background:
    linear-gradient(135deg, rgba(29, 122, 85, 0.1), rgba(184, 77, 53, 0.1)),
    #f7f8f4;
}

.page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.page-links a {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: clamp(30px, 5vw, 58px) 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.related-links a {
  padding: 10px 14px;
  border: 1px solid rgba(29, 122, 85, 0.24);
  border-radius: 8px;
  color: var(--green);
  background: rgba(29, 122, 85, 0.06);
  text-decoration: none;
  font-weight: 900;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding: 34px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.78);
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  color: var(--white);
  font-size: 1.05rem;
}

.site-footer span {
  margin-top: 4px;
  color: #8ee2be;
  font-weight: 900;
}

.site-footer p {
  max-width: 720px;
  margin: 10px 0 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  justify-content: flex-end;
  gap: 12px 18px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-weight: 800;
}

.site-footer a:hover {
  color: var(--white);
}

.compact {
  padding-top: clamp(38px, 6vw, 72px);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

@media (max-width: 980px) {
  .metrics-grid,
  .case-list,
  .flow,
  .case-hero-metrics,
  .case-metric-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro,
  .contact,
  .contact-grid,
  .case-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: 88vh;
    padding-top: 104px;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(12, 16, 13, 0.9) 0%, rgba(12, 16, 13, 0.74) 100%);
  }

  .metrics-grid,
  .case-list,
  .flow,
  .case-hero-metrics,
  .case-metric-grid,
  .timeline,
  .before-after {
    grid-template-columns: 1fr;
  }

  .metrics-grid article,
  .case-card,
  .case-hero-metrics article,
  .case-metric-grid article,
  .timeline div {
    min-height: 0;
  }

  .case-hero {
    width: 100%;
    max-width: 100vw;
    min-height: auto;
    padding-top: 112px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .case-body,
  .case-hero-content,
  .case-hero-metrics,
  .case-metric-grid,
  .timeline,
  .before-after,
  .case-section,
  .case-text,
  .case-lede,
  .result-band,
  .executive-learning {
    width: 100%;
    max-width: 100%;
  }

  .case-body {
    width: 100%;
    max-width: 100%;
    padding-left: 24px;
    padding-right: 24px;
  }

  .case-hero h1 {
    max-width: 100%;
    font-size: clamp(1.78rem, 8vw, 2.15rem);
    line-height: 1.04;
  }

  .case-hero-subtitle {
    max-width: 100%;
    font-size: 1.02rem;
    line-height: 1.35;
  }

  .case-lede p,
  .case-text p,
  .result-band p,
  .executive-learning p,
  .before-after li {
    font-size: 1.02rem;
  }

  .button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .case-hero-content,
  .case-hero-metrics,
  .case-metric-grid,
  .timeline,
  .before-after,
  .case-section,
  .case-text,
  .case-lede,
  .result-band,
  .executive-learning {
    width: min(100%, 342px);
    max-width: min(100%, 342px);
  }

  .case-body {
    width: min(100%, 390px);
    max-width: min(100%, 390px);
    margin-left: 0;
    margin-right: 0;
  }
}
