/* ═══════════════════════════════════════════════════════════
   CARRIS CONSULTORIA — Design System
   Palette: Oxford #0B1F3F · Ink #13315C · Electric #2563EB
             Bone #E6E2D8 · Paper #FAFAF7
   ═══════════════════════════════════════════════════════════ */

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  --oxford:      #0B1F3F;
  --ink:         #13315C;
  --electric:    #2563EB;
  --electric-hov:#1d4ed8;
  --bone:        #E6E2D8;
  --paper:       #FAFAF7;
  --white:       #ffffff;

  --fg-primary:  var(--oxford);
  --fg-muted:    rgba(11,31,63,.75); /* Increased contrast from .55 for superb readability */
  --fg-subtle:   rgba(11,31,63,.45); /* Increased contrast from .35 */

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body:    'Space Grotesk', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --radius:      2px;
  --radius-lg:   4px;
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 68px;
  --container: 1160px;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* Enhanced UX: Accessible focus indicators for keyboard navigation */
*:focus-visible {
  outline: 2px solid var(--electric);
  outline-offset: 4px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fg-primary);
  background: var(--paper);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
ul, ol { list-style: none; }

/* Skip to content link style for keyboard navigation */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--electric);
  color: var(--white);
  padding: 12px 24px;
  z-index: 1001;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius);
  transition: top 0.2s var(--ease-out);
}
.skip-to-content:focus {
  top: 20px;
  outline: 2px solid var(--white);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Container ───────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 80px);
}

/* ── Typography ──────────────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 20px;
}

.label-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--oxford);
  flex-shrink: 0;
}
.label-dot--light  { background: var(--paper); }
.label-dot--electric { background: var(--electric); }

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--oxford);
}
.section-heading em {
  font-style: italic;
  font-weight: 700;
}

.section-header {
  max-width: 640px;
  margin-bottom: clamp(48px, 7vw, 88px);
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .01em;
  padding: 13px 24px;
  border-radius: var(--radius);
  transition: transform .25s var(--ease-spring), background .2s, box-shadow .2s, color .2s;
  white-space: nowrap;
  cursor: pointer;
}
.btn:active { transform: scale(.97) !important; }

.btn-primary {
  background: var(--electric);
  color: var(--white);
  box-shadow: 0 1px 2px rgba(37,99,235,.25);
}
.btn-primary:hover {
  background: var(--electric-hov);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,99,235,.3);
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(250,250,247,.25);
}
.btn-ghost:hover {
  background: rgba(250,250,247,.08);
  border-color: rgba(250,250,247,.5);
  transform: translateY(-2px);
}

.btn-nav {
  background: var(--oxford);
  color: var(--paper);
  font-size: .825rem;
  padding: 10px 20px;
}
.btn-nav:hover {
  background: var(--ink);
  transform: translateY(-1px);
}

.btn-lg { padding: 15px 28px; font-size: .95rem; }

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

/* ── Navigation ──────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding-inline: clamp(20px, 5vw, 60px);
  gap: 40px;
  transition: background .3s var(--ease-out), box-shadow .3s;
}
.nav.nav--scrolled {
  background: rgba(11,31,63,.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(250,250,247,.08);
}

.nav-logo { flex-shrink: 0; }

.nav-wordmark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.045em;
  color: var(--paper);
}
.nav-dot { color: var(--electric); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.nav-link {
  font-size: .875rem;
  font-weight: 500;
  color: rgba(250,250,247,.7);
  transition: color .2s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--electric);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.nav-link:hover { color: var(--paper); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  margin-left: auto;
}
.nav-burger span {
  display: block;
  height: 2px;
  background: var(--paper);
  border-radius: 2px;
  transition: transform .3s var(--ease-out), opacity .2s;
}
.nav-burger.open span:first-child { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:last-child  { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--oxford);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  transform: translateX(100%);
  transition: transform .4s var(--ease-out);
}
.nav-mobile.open { transform: translateX(0); }

.nav-mobile-link {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 700;
  color: rgba(250,250,247,.8);
  letter-spacing: -0.03em;
  transition: color .2s;
}
.nav-mobile-link:hover { color: var(--paper); }
.nav-mobile nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  background: var(--oxford);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
}

/* Grain texture */
.hero-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: .5;
}

/* Giant typographic sculpture */
.hero-brand {
  position: absolute;
  bottom: -8%;
  right: -6%;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.hero-brand-text {
  font-family: var(--font-display);
  font-size: clamp(120px, 18vw, 260px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  color: rgba(250,250,247,.035);
  white-space: nowrap;
}
.hero-brand-dot { color: rgba(37,99,235,.12); }

/* Diagonal slice */
.hero-slash {
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 120px;
  background: var(--paper);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  z-index: 1;
}

/* Content */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 80px);
  padding-block: clamp(60px, 10vh, 120px);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(250,250,247,.5);
}
.hero-label .label-dot { background: var(--electric); }

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7.5vw, 6.5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--paper);
  max-width: 14ch;
}
.hero-heading em {
  font-style: italic;
  color: var(--electric);
}

.hero-body {
  font-size: clamp(.95rem, 1.5vw, 1.1rem);
  color: rgba(250,250,247,.82); /* Increased contrast from .65 for pristine legibility */
  max-width: 52ch;
  line-height: 1.7; /* Increased for breathing space */
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Proof strip */
.hero-proof {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 12px;
  flex-wrap: wrap;
}
.proof-item {
  display: flex;
  flex-direction: column;
}
.proof-number {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--paper);
  line-height: 1;
}
.proof-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(250,250,247,.4);
  margin-top: 4px;
}
.proof-divider {
  width: 1px;
  height: 36px;
  background: rgba(250,250,247,.12);
}

/* ── Services ────────────────────────────────────────────── */
.services {
  background: var(--paper);
  padding-block: clamp(80px, 12vw, 160px);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--bone);
  border: 1px solid var(--bone);
}

.service-card {
  background: var(--paper);
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background .25s var(--ease-out), transform .3s var(--ease-spring), box-shadow .3s var(--ease-out);
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px; /* Slightly thicker line for premium feel */
  background: var(--electric);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease-out);
}
.service-card:hover {
  background: var(--paper);
  transform: translateY(-4px); /* Interactive elevation feedback */
  box-shadow: 0 16px 36px rgba(11,31,63,.06); /* Premium elegant shadow */
  z-index: 2; /* Highlight card over neighbors */
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover .service-number { color: var(--electric); }

.service-number {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--fg-subtle);
  transition: color .25s;
}

.service-icon {
  color: var(--oxford);
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--oxford);
}

.service-desc {
  font-size: .9rem;
  color: var(--fg-muted);
  line-height: 1.65;
  flex: 1;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--bone);
  border-radius: 0;
  color: var(--fg-muted);
  transition: border-color .2s, color .2s;
}
.service-card:hover .tag {
  border-color: rgba(37,99,235,.3);
  color: var(--electric);
}

/* CTA card in grid */
.service-card--cta {
  background: var(--oxford);
  justify-content: center;
  align-items: flex-start;
}
.service-card--cta::before { background: var(--electric); }
.service-card--cta:hover { background: var(--ink); }

.service-cta-inner { display: flex; flex-direction: column; gap: 16px; }
.service-cta-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(250,250,247,.45);
}
.service-cta-text {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--paper);
  line-height: 1.5;
}

/* ── About ───────────────────────────────────────────────── */
.about {
  position: relative;
  padding-block: clamp(80px, 12vw, 160px);
  background: var(--oxford); /* Dark background ensures absolute high-contrast legibility for white text */
  overflow: hidden;
}
.about-bg {
  position: absolute;
  top: 0; left: 0;
  width: 45%;
  height: 100%;
  background: var(--bone); /* Shifting the light visual slash to the left column */
  clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  position: relative;
  z-index: 1;
}

/* About card */
.about-card {
  background: var(--paper);
  padding: 40px;
  border: 1px solid rgba(11,31,63,.1);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about-card-accent {
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--electric);
}
.about-card-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--oxford);
}
.about-card-role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-top: -12px;
}
.about-card-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: var(--fg-muted);
}
.about-card-quote {
  font-family: 'Georgia', serif;
  font-style: italic;
  font-size: .95rem;
  line-height: 1.55;
  color: var(--fg-primary);
  padding-left: 16px;
  border-left: 2px solid var(--electric);
}
.about-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--bone);
  border: 1px solid var(--bone);
  margin-top: auto;
}
.about-stat {
  background: var(--paper);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.about-stat-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--oxford);
}
.about-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}

/* About content */
.about-content { display: flex; flex-direction: column; gap: 24px; }

.about-content .section-heading { color: var(--paper); }
.about-content .section-heading em { color: var(--electric); }
.about-content .section-label { color: rgba(250,250,247,.5); }

.about-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.about-text p {
  font-size: .975rem;
  color: rgba(250,250,247,.82); /* Higher contrast */
  line-height: 1.75; /* Slightly increased for luxury read style */
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.value-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.value-icon {
  width: 32px; height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37,99,235,.12);
  border-radius: var(--radius);
}
.value-item strong {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: var(--paper);
  margin-bottom: 2px;
}
.value-item span {
  font-size: .85rem;
  color: rgba(250,250,247,.5);
}

/* ── Results ─────────────────────────────────────────────── */
.results {
  background: var(--oxford);
  padding-block: clamp(80px, 12vw, 160px);
}

.results .section-heading { color: var(--paper); }
.results .section-heading em { color: var(--electric); }
.results .section-label { color: rgba(250,250,247,.4); }

.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(250,250,247,.08);
  border: 1px solid rgba(250,250,247,.08);
  margin-bottom: 64px;
}

.result-block {
  background: var(--oxford);
  padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background .25s;
}
.result-block:hover { background: var(--ink); }

.result-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--electric);
  line-height: 1;
}
.result-label {
  font-size: .875rem;
  color: rgba(250,250,247,.55);
  line-height: 1.5;
}

/* Testimonial */
.testimonial {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
  padding: 48px 40px;
  background: rgba(250,250,247,.04);
  border: 1px solid rgba(250,250,247,.08);
}
.testimonial-quote {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 800;
  color: var(--electric);
  opacity: .4;
  line-height: .8;
  margin-bottom: 16px;
}
.testimonial-text {
  font-size: 1.1rem;
  line-height: 1.65;
  color: rgba(250,250,247,.8);
  font-style: italic;
  font-family: 'Georgia', serif;
  margin-bottom: 28px;
}
.testimonial-author { display: flex; flex-direction: column; gap: 4px; }
.testimonial-name {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--paper);
  letter-spacing: -0.01em;
}
.testimonial-role {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(250,250,247,.35);
}

/* ── CTA Block ───────────────────────────────────────────── */
.cta-block {
  position: relative;
  background: var(--ink);
  padding-block: clamp(80px, 12vw, 140px);
  overflow: hidden;
}
.cta-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
}
.cta-block::before {
  content: '';
  position: absolute;
  top: -2px; left: 0; right: 0;
  height: 120px;
  background: var(--oxford);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.cta-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--paper);
  max-width: 18ch;
}

.cta-body {
  font-size: 1.05rem;
  color: rgba(250,250,247,.8); /* High contrast */
  max-width: 50ch;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 520px;
  margin-top: 8px;
}

.cta-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  border: 1px solid rgba(250,250,247,.1);
  transition: background .25s var(--ease-out), transform .3s var(--ease-spring), border-color .25s, box-shadow .25s;
  cursor: pointer;
  text-align: left;
}
.cta-card:hover {
  transform: translateY(-2px) scale(1.015); /* UX Feedback: premium micro-elevation */
  border-color: rgba(250,250,247,.28);
  box-shadow: 0 10px 25px rgba(11,31,63,.15);
}

.cta-card--primary  { background: var(--electric); border-color: var(--electric); }
.cta-card--primary:hover  { background: var(--electric-hov); border-color: var(--electric-hov); }
.cta-card--whatsapp { background: rgba(37,211,102,.12); border-color: rgba(37,211,102,.2); }
.cta-card--whatsapp:hover { background: rgba(37,211,102,.2); border-color: rgba(37,211,102,.35); }
.cta-card--email    { background: rgba(250,250,247,.06); }

.cta-card-icon {
  width: 48px; height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: rgba(250,250,247,.1);
  color: var(--paper);
}
.cta-card--primary .cta-card-icon { background: rgba(255,255,255,.2); }

.cta-card-content { flex: 1; }
.cta-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--paper);
  letter-spacing: -0.01em;
}
.cta-card-sub {
  font-size: .825rem;
  color: rgba(250,250,247,.55);
  margin-top: 2px;
}

.cta-card-arrow {
  color: rgba(250,250,247,.4);
  transition: transform .25s var(--ease-out), color .2s;
}
.cta-card:hover .cta-card-arrow {
  transform: translateX(4px);
  color: var(--paper);
}

.cta-footnote {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(250,250,247,.3);
}

/* ── Contact ─────────────────────────────────────────────── */
.contact {
  background: var(--paper);
  padding-block: clamp(80px, 12vw, 140px);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(48px, 7vw, 100px);
  align-items: start;
}

.contact-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--oxford);
  margin-bottom: 16px;
}
.contact-sub {
  font-size: .95rem;
  color: var(--fg-muted);
  line-height: 1.65;
  margin-bottom: 32px;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #f5f3ee; /* Premium light slate for contrast separation */
  padding: 24px;
  border: 1px solid var(--bone);
  border-radius: var(--radius);
}
.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .9rem;
  color: var(--oxford);
  font-weight: 500;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid rgba(11,31,63,.06);
  border-radius: var(--radius);
  transition: transform .25s var(--ease-spring), border-color .2s, box-shadow .2s, color .2s;
}
.contact-detail svg {
  color: var(--electric);
  transition: transform .25s var(--ease-spring);
}
a.contact-detail:hover {
  color: var(--electric);
  transform: translateX(6px); /* Interactive tactile shift */
  border-color: rgba(37,99,235,.2);
  box-shadow: 0 8px 24px rgba(11,31,63,.05);
}
a.contact-detail:hover svg {
  transform: scale(1.15);
}

/* Form as a premium elevated card */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--white);
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--bone);
  border-top: 4px solid var(--electric); /* Sleek top brand accent line */
  border-radius: var(--radius);
  box-shadow: 0 20px 48px rgba(11,31,63,0.05); /* Soft, luxurious ambient shadow */
  position: relative;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--oxford); /* Darkened for supreme legibility */
  font-weight: 600;
}
.form-input {
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--oxford);
  background: #fcfbfa; /* Luxury subtle off-white offset */
  border: 1px solid var(--bone);
  border-radius: var(--radius);
  padding: 14px 16px; /* Enhanced comfortable visual cushion */
  transition: border-color .2s, box-shadow .2s, background .2s;
  outline: none;
  width: 100%;
}
.form-input:focus {
  background: var(--white);
  border-color: var(--electric);
  box-shadow: 0 0 0 4px rgba(37,99,235,.1);
}
.form-input::placeholder { color: rgba(11,31,63,.3); }
.form-textarea { resize: vertical; min-height: 120px; }

.form-success {
  display: none;
  padding: 14px 18px;
  background: rgba(37,199,135,.1);
  border: 1px solid rgba(37,199,135,.25);
  border-radius: var(--radius);
  font-size: .875rem;
  color: #0f7a50;
}
.form-success.show { display: block; }

/* Submit button loading state */
.btn-loading {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.btn.loading .btn-text { display: none; }
.btn.loading .btn-loading { display: block; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--oxford);
  padding-block: clamp(48px, 6vw, 72px);
}

.footer-layout {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 48px;
  align-items: start;
  padding-bottom: clamp(32px, 4vw, 48px);
  border-bottom: 1px solid rgba(250,250,247,.08);
  margin-bottom: 28px;
}

.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-tagline {
  font-size: .875rem;
  color: rgba(250,250,247,.4);
  max-width: 28ch;
}

.footer-links, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.footer-link {
  font-size: .875rem;
  color: rgba(250,250,247,.5);
  transition: color .2s;
}
.footer-link:hover { color: var(--paper); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy, .footer-made {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: rgba(250,250,247,.28);
  text-transform: uppercase;
}

/* ── FAB WhatsApp ────────────────────────────────────────── */
.fab-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  width: 56px; height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
  transition: transform .3s var(--ease-spring), box-shadow .3s;
  overflow: visible;
}
.fab-whatsapp:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 8px 28px rgba(37,211,102,.5);
}
.fab-whatsapp:hover .fab-tooltip { opacity: 1; transform: translateY(0); pointer-events: auto; }

.fab-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(4px);
  white-space: nowrap;
  background: var(--oxford);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  padding: 6px 12px;
  border-radius: var(--radius);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .25s var(--ease-out);
}

/* ── Scroll Animations ───────────────────────────────────── */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal-fade {
  opacity: 0;
  transition: opacity .9s var(--ease-out);
}
.reveal-up.revealed, .reveal-fade.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children inside a parent with data-stagger */
[data-stagger] .reveal-up:nth-child(1) { transition-delay: 0ms; }
[data-stagger] .reveal-up:nth-child(2) { transition-delay: 80ms; }
[data-stagger] .reveal-up:nth-child(3) { transition-delay: 160ms; }
[data-stagger] .reveal-up:nth-child(4) { transition-delay: 240ms; }
[data-stagger] .reveal-up:nth-child(5) { transition-delay: 320ms; }
[data-stagger] .reveal-up:nth-child(6) { transition-delay: 400ms; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .results-grid  { grid-template-columns: repeat(2, 1fr); }
  .about-layout  { grid-template-columns: 1fr; gap: 48px; }
  .about-bg      { display: none; }
  .about         { background: var(--oxford); }
  .about-card    { background: rgba(250,250,247,.06); border-color: rgba(250,250,247,.1); }
  .about-card-name, .about-stat-num { color: var(--paper); }
  .about-card-role, .about-stat-label, .meta-item { color: rgba(250,250,247,.7); } /* Raised contrast for mobile readability */
  .about-card-quote { color: rgba(250,250,247,.8); border-color: var(--electric); }
  .about-card-stats { background: rgba(250,250,247,.08); border: 1px solid rgba(250,250,247,.08); }
  .about-stat { background: rgba(11,31,63,.45); } /* Darker background prevents bone-white bleeding */
  .about-stat + .about-stat { border-left: 1px solid rgba(250,250,247,.08); }
  .footer-layout { grid-template-columns: 1fr; gap: 28px; }
}

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

  .nav-links, .btn-nav { display: none; }
  .nav-burger { display: flex; }

  .hero-brand-text { font-size: clamp(90px, 26vw, 140px); }
  .hero-slash { height: 60px; }

  .services-grid { grid-template-columns: 1fr; }
  .results-grid  { grid-template-columns: 1fr; }

  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }

  .cta-block::before { display: none; }

  .fab-whatsapp { bottom: 20px; right: 20px; width: 50px; height: 50px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .hero-proof { flex-direction: column; align-items: flex-start; gap: 16px; }
  .proof-divider { width: 36px; height: 1px; }
}

/* ── Grupo Carris ─────────────────────────────────── */
.grupo {
  background: var(--paper);
  padding-block: clamp(80px, 12vw, 160px);
}

.grupo-inner { display: flex; flex-direction: column; gap: clamp(48px, 7vw, 80px); }

.grupo-header { max-width: 680px; }

.grupo-cards {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0; align-items: stretch;
}

/* Shared card base */
.grupo-card {
  padding: clamp(32px, 4vw, 52px);
  display: flex; flex-direction: column; gap: 20px;
  border: 1px solid var(--bone);
  transition: transform .3s var(--ease-spring), box-shadow .3s var(--ease-out);
  position: relative; overflow: hidden;
}

/* Consultoria card — light */
.grupo-card--active {
  background: var(--white);
  border-left: 4px solid var(--oxford);
}
.grupo-card--active::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--oxford);
}
.grupo-card-label {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--fg-subtle); border: 1px solid var(--bone);
  padding: 4px 12px; border-radius: var(--radius);
  display: inline-block; width: fit-content;
}
.grupo-card-logo { margin-top: 4px; }
.grupo-card-name {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 700;
  color: var(--oxford); letter-spacing: -0.02em;
}
.grupo-card-desc {
  font-size: .9rem; color: var(--fg-muted); line-height: 1.65;
}
.grupo-card-list {
  display: flex; flex-direction: column; gap: 9px; flex: 1;
}
.grupo-card-list li {
  font-size: .875rem; color: var(--fg-muted);
  padding-left: 20px; position: relative; line-height: 1.4;
}
.grupo-card-list li::before {
  content: '→'; position: absolute; left: 0;
  color: var(--oxford); font-size: .8rem;
  font-family: var(--font-mono);
}
.grupo-card-list--light li { color: rgba(250,250,247,.7); }
.grupo-card-list--light li::before { color: var(--electric); }

/* carris.app card — dark */
.grupo-card--app {
  background: var(--oxford); border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  border-left: none;
}
.grupo-card--app::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--electric);
}
.grupo-card--app:hover {
  background: var(--ink);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(11,31,63,.18);
}
.grupo-card--app:hover .grupo-card-cta { gap: 12px; }

.grupo-card-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(250,250,247,.45);
}
.badge-dot-app {
  display: inline-block; width: 7px; height: 7px;
  border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,.2);
  animation: dot-pulse-app 2.5s ease-out infinite;
}
@keyframes dot-pulse-app {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
  50%       { box-shadow: 0 0 0 7px rgba(34,197,94,.0); }
}
@media (prefers-reduced-motion: reduce) { .badge-dot-app { animation: none; } }

.grupo-card-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .875rem; font-weight: 600;
  color: var(--electric); margin-top: auto;
  transition: gap .25s var(--ease-out);
  font-family: var(--font-body);
}

/* Bridge connector */
.grupo-bridge {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 12px;
  padding-inline: 24px; color: var(--fg-subtle);
}
.bridge-line {
  flex: 1; width: 1px; background: var(--bone); min-height: 40px;
}
.bridge-icon {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--bone); background: var(--white);
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-subtle); flex-shrink: 0;
}

/* Footer link highlight */
.footer-link--app {
  color: var(--electric) !important; opacity: .85;
  font-family: var(--font-mono); font-size: .8rem;
  letter-spacing: .04em; transition: opacity .2s;
}
.footer-link--app:hover { opacity: 1 !important; }

/* Responsive grupo */
@media (max-width: 900px) {
  .grupo-cards {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .grupo-bridge {
    flex-direction: row; padding-block: 16px; padding-inline: 0;
  }
  .bridge-line { flex: 1; height: 1px; width: auto; min-height: unset; }
  .grupo-card--active { border-left: 1px solid var(--bone); border-top: 4px solid var(--oxford); }
}

