/* RedPanda website — global page styles + Eastern motifs + scroll animations */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--rp-cream);
  color: var(--rp-cacao);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
::selection { background: var(--rp-orange); color: #fff; }

/* =====================================
   Skip-to-content link (a11y)
   ===================================== */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  background: var(--rp-cacao);
  color: var(--rp-cream);
  padding: 12px 18px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--rp-orange);
  outline-offset: 2px;
}

/* Focus styles — always visible for keyboard users */
:focus-visible {
  outline: 2px solid var(--rp-orange);
  outline-offset: 3px;
  border-radius: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline-offset: 3px;
}

/* Honor noscript fallback only when JS is absent */
noscript main {
  display: block;
  max-width: 720px;
  margin: 40px auto;
  padding: 0 24px;
  font-family: var(--font-body);
  line-height: 1.6;
}
noscript h1 {
  font-family: var(--font-display);
  font-size: 48px;
  margin: 24px 0 16px;
  color: var(--rp-cacao);
}
noscript h2 { font-family: var(--font-display); font-size: 32px; margin: 36px 0 12px; color: var(--rp-cacao); }
noscript h3 { font-family: var(--font-display); font-size: 22px; margin: 24px 0 8px; color: var(--rp-cacao); }
noscript a { color: var(--rp-orange); }

/* =====================================
   Reveal-on-scroll
   ===================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 800ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal.force-show {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
.reveal.from-left  { transform: translateX(-32px); }
.reveal.from-right { transform: translateX(32px); }
.reveal.from-left.in,
.reveal.from-right.in { transform: translateX(0); }

/* =====================================
   Brush-stroke underline (Eastern motif)
   highlights a single word with an orange ink swoosh
   ===================================== */
.brush {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.brush::after {
  content: '';
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 6%;
  height: 0.42em;
  background: var(--rp-orange);
  opacity: 0.92;
  z-index: -1;
  border-radius: 999px 4px 999px 8px;
  transform: skewX(-8deg) scaleX(0);
  transform-origin: left center;
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1) 200ms;
}
.brush.in::after { transform: skewX(-8deg) scaleX(1); }

/* Variant: thin underscore brush */
.brush-thin::after {
  height: 0.16em;
  bottom: -0.05em;
}

/* =====================================
   Enso circle (Eastern motif)
   stroke-dasharray animation, hand-drawn feel
   ===================================== */
.enso path {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  transition: stroke-dashoffset 1800ms cubic-bezier(0.65, 0, 0.35, 1) 300ms;
}
.enso.in path {
  stroke-dashoffset: 0;
}

/* =====================================
   Vertical ink line — grows with section
   appears as a thin orange line marking the editorial spine
   ===================================== */
.ink-spine {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(45,24,16,0.18) 14%,
    rgba(45,24,16,0.18) 86%,
    transparent 100%);
  pointer-events: none;
}
.ink-spine::before {
  content: '';
  position: absolute;
  top: 14%;
  left: -2px;
  width: 5px;
  height: 5px;
  background: var(--rp-orange);
  border-radius: 999px;
}

/* =====================================
   Hanko stamp (Eastern motif)
   square orange stamp with isotipo, slightly rotated, weathered edges
   ===================================== */
.hanko {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  background: var(--rp-orange);
  color: #fff;
  border-radius: 14px;
  transform: rotate(-6deg);
  position: relative;
  filter: drop-shadow(0 6px 14px rgba(244, 90, 31, 0.25));
}
.hanko img {
  width: 56%;
  height: 56%;
  filter: brightness(0) invert(1);
}
.hanko::before,
.hanko::after {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 10px;
  pointer-events: none;
}
.hanko::after {
  inset: -3px;
  border: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(0,0,0,0.18) 0 1.2px, transparent 1.6px),
    radial-gradient(circle at 78% 36%, rgba(0,0,0,0.15) 0 1px, transparent 1.4px),
    radial-gradient(circle at 32% 78%, rgba(0,0,0,0.18) 0 1.1px, transparent 1.5px),
    radial-gradient(circle at 64% 84%, rgba(0,0,0,0.12) 0 0.9px, transparent 1.3px);
  mix-blend-mode: multiply;
  border-radius: 14px;
}

/* =====================================
   Marquee — infinite client logos
   ===================================== */
.marquee {
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 28px;
  flex-shrink: 0;
  min-width: 100%;
  animation: marquee 38s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}
.marquee:hover .marquee-track { animation-play-state: paused; }

/* =====================================
   Magnetic CTA hover
   ===================================== */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 32px;
  background: var(--rp-orange);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  font-family: var(--font-body);
  border: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
    background 200ms ease;
  text-decoration: none;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--rp-cacao);
  transform: translateY(101%);
  transition: transform 360ms cubic-bezier(0.65, 0, 0.35, 1);
  z-index: 0;
}
.cta:hover::before { transform: translateY(0); }
.cta > * { position: relative; z-index: 1; }
.cta:hover { background: var(--rp-orange-600); }
.cta svg { transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1); }
.cta:hover svg { transform: translateX(4px); }

.cta-ghost {
  background: transparent;
  color: var(--rp-cacao);
  border: 1.5px solid var(--rp-cacao);
  padding: 16.5px 28px;
}
.cta-ghost::before { background: var(--rp-cacao); }
.cta-ghost:hover { color: #fff; background: transparent; }

/* =====================================
   Mountain silhouette layered in hero
   ===================================== */
.mountains {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 30%;
  pointer-events: none;
  opacity: 0.7;
}

/* =====================================
   Kanji numerals — vertical accent next to arabic
   ===================================== */
.kanji-num {
  display: inline-block;
  font-family: var(--font-display);
  writing-mode: vertical-rl;
  font-size: 18px;
  color: var(--rp-cacao-400);
  letter-spacing: 0.1em;
  line-height: 1;
}

/* =====================================
   Vertical eyebrow (Japanese editorial nod)
   ===================================== */
.v-eyebrow {
  writing-mode: vertical-rl;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--rp-cacao-400);
}

/* =====================================
   Container & section rhythm
   ===================================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  position: relative;
}
section {
  position: relative;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--rp-orange);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1.5px;
  background: var(--rp-orange);
}

/* =====================================
   Header
   ===================================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: all 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.header.solid {
  background: rgba(245, 240, 232, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}
.nav { display: flex; gap: 36px; align-items: center; }
.nav a {
  color: var(--rp-cacao);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 0;
  position: relative;
  transition: color 180ms;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 50%; right: 50%; bottom: -6px;
  height: 1.5px;
  background: var(--rp-orange);
  transition: all 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
.nav a:hover { color: var(--rp-orange); }
.nav a:hover::after { left: 0; right: 0; }

.header-cta {
  padding: 12px 22px;
  font-size: 14px;
}

/* =====================================
   Mobile nav: hamburger + drawer
   ===================================== */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 70;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--rp-cacao);
  border-radius: 2px;
  transition: all 240ms cubic-bezier(0.65, 0, 0.35, 1);
  transform-origin: center;
}
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--rp-cream);
  padding: 100px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition:
    opacity 280ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 55;
  overflow-y: auto;
}
.mobile-nav.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.mobile-nav nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mobile-nav nav a {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--rp-cacao);
  letter-spacing: -0.015em;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  display: block;
  transition: color 180ms;
}
.mobile-nav nav a:hover,
.mobile-nav nav a:focus { color: var(--rp-orange); }
.mobile-nav .cta {
  align-self: flex-start;
  margin-top: 16px;
}
.mobile-nav-foot {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-nav-foot a {
  font-size: 13px;
  color: var(--rp-cacao-600);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  text-decoration: none;
}
.mobile-nav-foot a:hover { color: var(--rp-orange); }

.header-logo {
  display: flex;
  align-items: center;
  border-bottom: 0;
}

/* =====================================
   Hero
   ===================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(64px, 9vw, 132px);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin: 0;
  color: var(--rp-cacao);
  text-wrap: balance;
}
.hero p.lead {
  font-size: 22px;
  line-height: 1.5;
  color: var(--rp-cacao-600);
  max-width: 600px;
  margin-top: 32px;
  text-wrap: pretty;
}
.hero-enso {
  position: absolute;
  top: 50%;
  right: -8%;
  transform: translateY(-50%);
  width: min(640px, 50vw);
  height: min(640px, 50vw);
  z-index: 0;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; }

/* Cursor / scroll cue */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--rp-cacao-400);
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.scroll-cue::after {
  content: '';
  width: 1px;
  height: 56px;
  background: linear-gradient(180deg, var(--rp-orange) 30%, transparent);
  animation: scroll-cue-pulse 2.4s cubic-bezier(0.65, 0, 0.35, 1) infinite;
  transform-origin: top;
}
@keyframes scroll-cue-pulse {
  0%   { transform: scaleY(0); opacity: 0; }
  25%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(56px); opacity: 0; }
}

/* =====================================
   Section header
   ===================================== */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 48px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 18px 0 0;
  color: var(--rp-cacao);
  text-wrap: balance;
}

/* =====================================
   Service / problem cards
   ===================================== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.service-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 36px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 320ms cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}
.service-row::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--rp-cacao);
  transform: translateY(101%);
  transition: transform 460ms cubic-bezier(0.65, 0, 0.35, 1);
  z-index: 0;
}
.service-row:hover::before { transform: translateY(0); }
.service-row > * { position: relative; z-index: 1; }
.service-row:hover * { color: var(--rp-cream) !important; }
.service-row:hover .service-num { color: var(--rp-orange) !important; }
.service-row:hover .service-arrow { color: var(--rp-orange) !important; transform: translateX(4px); }
.service-num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--rp-orange);
  letter-spacing: 0.10em;
  font-weight: 600;
  transition: color 180ms;
}
.service-pain {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--rp-cacao);
  line-height: 1.2;
  letter-spacing: -0.01em;
  transition: color 180ms;
}
.service-sol {
  font-size: 14px;
  color: var(--rp-cacao-600);
  margin-top: 6px;
  transition: color 180ms;
}
.service-arrow {
  color: var(--rp-cacao);
  transition: all 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* =====================================
   Methodology — three-step ritual
   ===================================== */
.method-section {
  background: var(--rp-dark-ink);
  color: var(--rp-cream);
  padding: 96px 0 100px;
  position: relative;
  overflow: hidden;
}
.method-section h2 { color: var(--rp-cream); }
.method-section .section-head .eyebrow { color: var(--rp-orange); }
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.method-card {
  background: rgba(245, 240, 232, 0.04);
  border: 1px solid rgba(245, 240, 232, 0.10);
  border-radius: 24px;
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: all 380ms cubic-bezier(0.22, 1, 0.36, 1);
}
.method-card:hover {
  background: rgba(245, 240, 232, 0.07);
  border-color: rgba(244, 90, 31, 0.4);
  transform: translateY(-4px);
}
.method-num-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.method-num-row .arabic {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 700;
  color: var(--rp-orange);
  letter-spacing: -0.03em;
  line-height: 1;
}
.method-num-row .kanji {
  font-family: var(--font-display);
  font-size: 22px;
  color: rgba(245, 240, 232, 0.4);
  font-weight: 400;
}
.method-card h3 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  margin: 28px 0 14px;
  color: var(--rp-cream);
  letter-spacing: -0.015em;
}
.method-card p {
  font-size: 15px;
  color: #C9C2B6;
  line-height: 1.6;
}
.method-mantra {
  margin-top: 56px;
  padding: 48px 56px;
  background: var(--rp-orange);
  border-radius: 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 48px;
  position: relative;
  overflow: hidden;
}
.method-mantra .mantra-text {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

/* =====================================
   Founders (Nosotros)
   ===================================== */
.founders {
  padding: 96px 0 100px;
}
.founder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}
.founder-card {
  background: #FBF7F0;
  border-radius: 32px;
  border: 1px solid var(--line);
  padding: 48px;
  position: relative;
  overflow: hidden;
  transition: all 380ms cubic-bezier(0.22, 1, 0.36, 1);
}
.founder-card:hover {
  background: #FFF;
  box-shadow: var(--shadow-3);
  transform: translateY(-6px);
}
.founder-portrait {
  width: 156px;
  height: 156px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--rp-cacao) 0%, #4A2E20 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  color: var(--rp-cream);
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.founder-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.founder-portrait::after {
  /* hanko / signature accent in corner */
  content: '';
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 36px;
  height: 36px;
  background: var(--rp-orange);
  border-radius: 8px;
  border: 3px solid var(--rp-cream);
  transform: rotate(-8deg);
}
.founder-name {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--rp-cacao);
  letter-spacing: -0.015em;
}
.founder-role {
  font-size: 13px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--rp-orange);
  font-weight: 600;
  margin-top: 6px;
}
.founder-bio {
  font-size: 15px;
  color: var(--rp-cacao-600);
  line-height: 1.65;
  margin-top: 20px;
}
.founder-meta {
  display: flex;
  gap: 24px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.founder-meta .item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.founder-meta .item-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rp-cacao-400);
  font-weight: 600;
}
.founder-meta .item-value {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--rp-cacao);
}

/* =====================================
   Contact
   ===================================== */
.contact-section {
  background: var(--rp-cacao);
  color: var(--rp-cream);
  padding: 72px 0 80px;
  position: relative;
  overflow: hidden;
}
.contact-section h2 { color: var(--rp-cream); }
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  margin-top: 36px;
  align-items: start;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-weight: 600;
  color: #C9C2B6;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid rgba(245, 240, 232, 0.22);
  padding: 14px 0;
  color: var(--rp-cream);
  font-family: var(--font-body);
  font-size: 18px;
  outline: none;
  transition: border-color 220ms;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  resize: none;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-bottom-color: var(--rp-orange);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #8C8478;
}
.contact-info {
  padding: 36px;
  border: 1px solid rgba(245, 240, 232, 0.15);
  border-radius: 24px;
  background: rgba(245, 240, 232, 0.03);
}
.contact-info .item {
  padding: 18px 0;
  border-bottom: 1px solid rgba(245, 240, 232, 0.10);
}
.contact-info .item:last-child { border-bottom: 0; }
.contact-info .item-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--rp-orange);
}
.contact-info .item-value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--rp-cream);
  margin-top: 6px;
  letter-spacing: -0.005em;
}

/* =====================================
   Footer
   ===================================== */
footer {
  background: var(--rp-dark-ink);
  color: var(--rp-cream);
  padding: 80px 0 32px;
  position: relative;
  border-top: 1px solid rgba(245, 240, 232, 0.06);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(245, 240, 232, 0.10);
}
.footer-col h4 {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--rp-orange);
  margin: 0 0 18px;
}
.footer-col a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--rp-cream);
  text-decoration: none;
  border-bottom: 0;
  font-size: 15px;
  padding: 6px 0;
  transition: color 180ms;
}
.footer-col a:hover { color: var(--rp-orange); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 12px;
  color: #8C8478;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* =====================================
   Client logo tiles in marquee
   ===================================== */
.client-tile {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 120px;
  min-width: 240px;
  padding: 18px 28px;
  background: #FFF;
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: all 280ms cubic-bezier(0.22, 1, 0.36, 1);
}
.client-tile:hover {
  border-color: rgba(244, 90, 31, 0.40);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -14px rgba(45, 24, 16, 0.20);
}
.client-tile img {
  max-height: 56px;
  max-width: 200px;
  object-fit: contain;
  display: block;
}
.client-tile-kind {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--rp-cacao-400);
}
.client-tile--dark {
  background: var(--rp-cacao);
  border-color: var(--rp-cacao);
}
.client-tile--dark .client-tile-kind { color: #C9C2B6; }
.client-tile--dark:hover {
  background: #1a0e08;
  border-color: rgba(244, 90, 31, 0.45);
}

/* =====================================
   Platforms strip (inside Qué resolvemos)
   ===================================== */
.platforms-strip {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.platforms-header {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 28px;
}
.platforms-sub {
  font-size: 14px;
  line-height: 1.6;
  color: var(--rp-cacao-600);
  max-width: 520px;
}
.platforms-marquee {
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  padding: 8px 0;
}
.platforms-track {
  display: flex;
  gap: 18px;
  flex-shrink: 0;
  min-width: 100%;
  animation: platforms-roll 60s linear infinite;
}
.platforms-track--reverse {
  animation-direction: reverse;
  animation-duration: 70s;
}
.platforms-marquee:hover .platforms-track { animation-play-state: paused; }
@keyframes platforms-roll {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.3333%); }
}
.platform-tile {
  flex-shrink: 0;
  width: 156px;
  height: 80px;
  background: #FFF;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  transition: all 280ms cubic-bezier(0.22, 1, 0.36, 1);
  filter: saturate(0.6);
  opacity: 0.78;
}
.platform-tile:hover {
  filter: saturate(1);
  opacity: 1;
  transform: translateY(-3px);
  border-color: rgba(244, 90, 31, 0.40);
  box-shadow: 0 10px 24px -14px rgba(45, 24, 16, 0.20);
}
.platform-tile img {
  max-height: 44px;
  max-width: 110px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

@media (max-width: 900px) {
  .platforms-header { grid-template-columns: 1fr; gap: 16px; }
  .platform-tile { width: 132px; height: 70px; padding: 12px 18px; }
  .platform-tile img { max-height: 36px; max-width: 96px; }
}

/* =====================================
   Form status message (Web3Forms feedback)
   ===================================== */
.form-status {
  margin-top: 6px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
  animation: form-status-in 280ms cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes form-status-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.form-status--sending {
  background: rgba(245, 240, 232, 0.08);
  color: #C9C2B6;
  border: 1px solid rgba(245, 240, 232, 0.15);
}
.form-status--success {
  background: rgba(47, 122, 90, 0.18);
  color: #B5E3CA;
  border: 1px solid rgba(47, 122, 90, 0.45);
}
.form-status--error {
  background: rgba(184, 74, 46, 0.18);
  color: #F5C8BC;
  border: 1px solid rgba(184, 74, 46, 0.45);
}
.contact-form button[disabled] {
  opacity: 0.7;
  cursor: wait;
}
.contact-form input[disabled],
.contact-form textarea[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* =====================================
   Form status (end)
   ===================================== */

/* =====================================
   Servicios grid (dedicated section)
   ===================================== */
.service-card {
  background: #FBF7F0;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: all 380ms cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
  min-height: 240px;
  display: flex;
  flex-direction: column;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 0%, rgba(244, 90, 31, 0.10), transparent 55%);
  opacity: 0;
  transition: opacity 380ms ease;
  pointer-events: none;
}
.service-card:hover {
  background: #FFF;
  border-color: rgba(244, 90, 31, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 20px 44px -22px rgba(45, 24, 16, 0.22);
}
.service-card:hover::before { opacity: 1; }
.service-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
}
.service-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--rp-orange-50);
  color: var(--rp-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 380ms cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card:hover .service-card-icon {
  background: var(--rp-orange);
  color: #fff;
  transform: rotate(-6deg);
}
.service-card-kanji {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--rp-cacao);
  opacity: 0.10;
  font-weight: 700;
  line-height: 1;
  transition: opacity 380ms ease;
}
.service-card:hover .service-card-kanji {
  opacity: 0.45;
  color: var(--rp-orange);
}
.service-card-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--rp-cacao);
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  line-height: 1.2;
}
.service-card-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--rp-cacao-600);
  flex: 1;
}
.service-card-arrow {
  margin-top: 18px;
  color: var(--rp-cacao);
  align-self: flex-start;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card:hover .service-card-arrow {
  color: var(--rp-orange);
  transform: translate(4px, -4px);
}

/* =====================================
   WhatsApp floating bubble
   ===================================== */
.wa-wrap {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 60;
  pointer-events: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 360ms cubic-bezier(0.22, 1, 0.36, 1), transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}
.wa-wrap.shown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.wa-bubble {
  width: 60px;
  height: 60px;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 8px 24px rgba(37, 211, 102, 0.40),
    0 2px 8px rgba(45, 24, 16, 0.15);
  position: relative;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), background 200ms ease;
}
.wa-bubble:hover {
  transform: scale(1.06);
  background: #1FB855;
}
.wa-bubble-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  background: #25D366;
  opacity: 0.35;
  z-index: -1;
  animation: wa-pulse 2.4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}
@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: 0.45; }
  70%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

.wa-panel {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 340px;
  background: #FBF7F0;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow:
    0 24px 60px -16px rgba(45, 24, 16, 0.28),
    0 4px 12px rgba(45, 24, 16, 0.08);
  overflow: hidden;
  transform-origin: bottom right;
  animation: wa-panel-in 360ms cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes wa-panel-in {
  from { opacity: 0; transform: scale(0.92) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.wa-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #128C7E;
  color: #fff;
  padding: 16px 18px;
}
.wa-panel-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--rp-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wa-panel-avatar img { width: 70%; height: 70%; filter: brightness(0) invert(1); }
.wa-panel-title { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.wa-panel-status {
  font-size: 11px;
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.wa-dot {
  width: 7px; height: 7px; border-radius: 999px;
  background: #25D366;
  box-shadow: 0 0 0 0 rgba(37,211,102,0.6);
  animation: wa-dot 2s ease-in-out infinite;
}
@keyframes wa-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.6); }
  50%      { box-shadow: 0 0 0 5px rgba(37,211,102,0); }
}
.wa-close {
  margin-left: auto;
  width: 28px; height: 28px;
  border: 0;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wa-close:hover { background: rgba(255,255,255,0.25); }
.wa-panel-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wa-msg {
  background: #FFF;
  border: 1px solid var(--line);
  border-radius: 16px 16px 16px 4px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--rp-cacao);
}
.wa-presets {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wa-preset {
  background: #FFF;
  border: 1px solid var(--line);
  color: var(--rp-cacao);
  text-align: left;
  font-family: var(--font-body);
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 180ms ease;
}
.wa-preset:hover {
  background: var(--rp-orange-50);
  border-color: rgba(244, 90, 31, 0.45);
  color: var(--rp-cacao);
}
.wa-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  border: 0;
  padding: 12px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
  transition: background 180ms ease;
}
.wa-cta:hover { background: #1FB855; }
.wa-foot {
  font-size: 11px;
  color: var(--rp-cacao-400);
  text-align: center;
  margin-top: 4px;
  font-family: var(--font-mono);
}

@media (max-width: 900px) {
  .service-card { min-height: 0; }
  #servicios .container > div:last-child { grid-template-columns: 1fr !important; }
  .wa-wrap { bottom: 18px; right: 18px; }
  .wa-panel { width: calc(100vw - 36px); right: -4px; }
}

/* =====================================
   Reduced motion respect
   ===================================== */
/* =====================================
   Responsive — mobile-first refinements
   ===================================== */
@media (max-width: 900px) {
  .container { padding: 0 20px; }
  .header-inner { padding: 0 20px; height: 68px; }
  .nav { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: block; }

  .hero { padding: 96px 0 32px; min-height: auto; }
  .hero h1 { font-size: clamp(44px, 11vw, 72px); letter-spacing: -0.025em; }
  .hero p.lead { font-size: 17px; margin-top: 20px; }
  .hero-enso { display: none; }

  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .section-head h2 { font-size: clamp(32px, 8vw, 48px); }

  .service-grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 64px 1fr 24px; gap: 18px; padding: 24px 18px; }
  .service-pain { font-size: 20px; }

  #servicios > .container > div:last-child { grid-template-columns: 1fr !important; gap: 14px; }
  .service-card { min-height: 0; padding: 24px 22px; }

  .method-section { padding: 56px 0 64px; }
  .method-grid { grid-template-columns: 1fr; gap: 16px; }
  .method-mantra {
    grid-template-columns: 1fr;
    padding: 28px 24px;
    gap: 18px;
    margin-top: 28px;
    text-align: left;
  }
  .method-mantra .mantra-text { font-size: 22px; }

  .founders { padding: 56px 0 64px; }
  .founder-grid { grid-template-columns: 1fr; gap: 18px; }
  .founder-card { padding: 32px 24px; }
  .founder-portrait { width: 112px; height: 112px; font-size: 40px; }

  .contact-section { padding: 56px 0 64px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-form input,
  .contact-form textarea { font-size: 16px; padding: 12px 0; }
  .contact-info { padding: 24px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 36px; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }

  /* Touch target floor: 44px (WCAG 2.5.5) */
  .cta { padding: 14px 24px; font-size: 15px; min-height: 44px; }
  .nav a { padding: 14px 0; }

  /* Slightly looser line-height on tiny screens for readability */
  p { line-height: 1.6; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .header-inner { padding: 0 16px; }
  .hero { padding: 88px 0 24px; }
  .hero h1 { font-size: clamp(40px, 12vw, 56px); }
  .scroll-cue { display: none; }
  .marquee { padding: 4px 0; }
  .client-tile { min-width: 200px; height: 96px; padding: 14px 20px; }
  .client-tile img { max-height: 44px; max-width: 160px; }
  .platform-tile { width: 112px; height: 64px; padding: 10px 14px; }
  .platform-tile img { max-height: 32px; max-width: 84px; }
  .wa-bubble { width: 56px; height: 56px; }
  .wa-panel { width: calc(100vw - 32px); right: -2px; bottom: 70px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .brush::after { transform: skewX(-8deg) scaleX(1); transition: none; }
  .enso path { stroke-dashoffset: 0; transition: none; }
  .marquee-track { animation: none; }
  .scroll-cue::after { animation: none; }
  .wa-bubble-pulse { animation: none; }
  .wa-dot { animation: none; }
}

/* =====================================
/* Old responsive block — superseded by mobile-first block above */
