/* ==========================================================================
   Empirika — Landing page v2
   Typography: Mulish (single family, all weights, per user requirement)
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #fafafa;
  --bg-soft: #f5f5f5;
  --text: #09090b;
  --text-muted: #52525b;
  --text-faint: #71717a;
  --text-placeholder: #a3a3a3;
  --border: #e4e4e7;
  --accent: #fd8200;
  --accent-soft: rgba(253, 130, 0, 0.1);
  --accent-blur: rgba(253, 130, 0, 0.05);
  --white: #ffffff;
  --surface: #ffffff;
  --hairline: rgba(0, 0, 0, 0.06);
  --header-bg: rgba(255, 255, 255, 0.85);
  --overlay-bg: rgba(255, 255, 255, 0.7);

  --font: 'Mulish', sans-serif;

  --max-width: 1400px;
  --gutter: 48px;

  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-pill: 9999px;

  --shadow-sm: 0 1px 1px rgba(0,0,0,0.05);
  --shadow-md: 0 1px 2px rgba(0,0,0,0.05);

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0b0b0d;
  --bg-alt: #151517;
  --bg-soft: #1c1c1f;
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-faint: #8a8a92;
  --text-placeholder: #5a5a62;
  --border: rgba(255, 255, 255, 0.12);
  --accent-soft: rgba(253, 130, 0, 0.18);
  --accent-blur: rgba(253, 130, 0, 0.12);
  --surface: #18181b;
  --hairline: rgba(255, 255, 255, 0.12);
  --header-bg: rgba(11, 11, 13, 0.8);
  --overlay-bg: rgba(24, 24, 27, 0.7);

  color-scheme: dark;
}

* { box-sizing: border-box; }
/* Lenis drives all smooth scrolling in JS — native CSS smooth-scroll would
   fight it (the browser tries to smooth-interpolate every micro-scroll
   Lenis itself performs, producing the "stuck"/laggy feel). */
html { scroll-behavior: auto; }
html, body { max-width: 100%; overflow-x: hidden; }
/* clip, unlike hidden, doesn't turn body into a scroll container, so
   position: sticky (header, Proceso) keeps working */
@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Logos are single-color black artwork; invert+hue-rotate flips them to
   white in dark mode while leaving true-color imagery untouched. */
[data-theme="dark"] .brand-logo,
[data-theme="dark"] .footer-logo-big,
[data-theme="dark"] .benefit-orbit img {
  filter: invert(1) hue-rotate(180deg);
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  z-index: 999;
}
.skip-link:focus { left: 0; }

/* Headings — hierarchy: h1 hero > h2 section titles > h3 card/step titles */
h1, h2, h3 {
  font-family: var(--font);
  color: var(--text);
  margin: 0;
  text-transform: uppercase;
}

h1 {
  font-weight: 800;
  font-size: 76px;
  line-height: 1;
  letter-spacing: -3.04px;
}

h2 {
  font-weight: 800;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -1.2px;
}

h3 {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
}

p { margin: 0; }

.lede {
  font-weight: 400;
  font-size: 20px;
  line-height: 1.4;
  color: var(--text-muted);
}

.eyebrow {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.68px;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow--sm { font-size: 11px; letter-spacing: 1.54px; }

.mono-tag {
  font-family: var(--font);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}
.mono-tag--accent { color: var(--accent); font-weight: 700; }
.mono-tag--faint { color: var(--text-faint); font-weight: 500; margin-bottom: 12px; display: block; }
.mono-tag--wrap { white-space: normal; }

.meta-line { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.dot { width: 4px; height: 4px; border-radius: 50%; background: #a3a3a3; }
.dot--accent { background: var(--accent); }

.fine-print { font-size: 12px; color: var(--text-faint); font-weight: 500; }
.fine-print--center { text-align: center; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 49px;
  padding: 0 28px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.68px;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.icon-arrow { width: 12px; height: 12px; flex-shrink: 0; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 0 32px;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: #e57400; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
  padding: 0 21px;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-sm { padding: 0 20px; font-size: 12px; }
.btn-lg { padding: 0 32px; }
.btn-block { width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 80px;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo { height: 32px; width: auto; transition: filter 0.25s ease; }

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

.theme-toggle {
  flex-shrink: 0;
  width: 52px;
  height: 28px;
  padding: 3px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-alt);
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.theme-toggle-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transform: translateX(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.25s ease;
}
.theme-icon { width: 13px; height: 13px; }
.theme-icon--moon { display: none; }
[data-theme="dark"] .theme-toggle { background: rgba(255, 255, 255, 0.08); }
[data-theme="dark"] .theme-toggle-thumb { transform: translateX(24px); }
[data-theme="dark"] .theme-icon--sun { display: none; }
[data-theme="dark"] .theme-icon--moon { display: block; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.hero-inner {
  position: relative;
  z-index: 6;
  padding: 64px var(--gutter) 48px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero-headline { max-width: 1024px; display: flex; flex-direction: column; gap: 32px; }
.hero-headline h1 { max-width: 1024px; }
.hero-sub { max-width: 672px; }
.hero-price {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.4px;
  line-height: 1.2;
  color: var(--text);
}

.hero-actions {
  border-top: 1px solid var(--border);
  padding-top: 17px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}
.hero-tagline { font-size: 14px; font-style: italic; color: var(--text-muted); }
.hero-note { font-size: 11px; color: var(--text-faint); font-weight: 500; max-width: 420px; }

/* Decorative rings and blur behind the hero copy */
.hero-decor { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.hero-blur {
  position: absolute;
  top: -128px;
  left: 25%;
  right: 45%;
  height: 384px;
  border-radius: var(--radius-pill);
  background: var(--accent-blur);
  filter: blur(32px);
}
.hero-ring {
  position: absolute;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
}
.hero-ring--1 { top: 25%; bottom: 31.18%; left: 71.88%; right: 0; opacity: 0.4; }
.hero-ring--2 { top: 20%; bottom: 16.7%; left: 64.38%; right: -5%; opacity: 0.5; }
.hero-ring--3 { top: 15%; bottom: 2.23%; left: 56.88%; right: -10%; opacity: 0.6; }

@media (max-width: 900px) {
  .hero-ring, .hero-blur { display: none; }
}

/* ==========================================================================
   Generic section layout
   ========================================================================== */

.section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.section--alt { background: var(--bg-alt); }
.section--no-border { border-bottom: none; padding-bottom: 40px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}
.section-head--tight { align-items: flex-start; }
.section-head-text { min-width: 0; }
.section-head-text h2 { margin-top: 8px; max-width: 900px; }
.section-head-text .lede { margin-top: 4px; max-width: 672px; font-size: 14px; line-height: 1.4; }
.section-head-text--top { margin-bottom: 36px; }
.section-head-text--top h2 { margin-top: 8px; max-width: 900px; }
.section-head-text--top .lede { margin-top: 16px; font-size: 18px; max-width: 640px; }

.section-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.section-foot--end { justify-content: flex-end; }

/* ==========================================================================
   Proyectos carousel
   ========================================================================== */

.carousel-controls { display: flex; gap: 12px; flex-shrink: 0; }
@media (min-width: 900px) { .carousel-controls { display: none; } }
.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
}
.carousel-btn svg { width: 16px; height: 12px; }
.carousel-btn:hover { border-color: var(--accent); color: var(--accent); }

.carousel-pin-wrap { position: relative; }

.carousel-sticky {
  position: static;
}

.carousel-viewport { overflow: hidden; width: 100%; }

.carousel-track {
  display: flex;
  gap: 40px;
  overflow-x: auto;
  padding: 12px var(--gutter) 8px;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--gutter);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carousel-track::-webkit-scrollbar { display: none; height: 0; }

/* Desktop: the track is pinned in the viewport and panned horizontally by
   vertical scroll progress (JS-driven transform). Pinning uses JS-managed
   position: fixed/absolute rather than position: sticky, because the site's
   global `overflow-x: hidden` on html/body forces overflow-y to compute as
   "auto" (a CSS spec coupling), which breaks position: sticky for descendants. */
.carousel-pin-wrap.is-pinned .carousel-sticky {
  overflow: hidden;
}
.carousel-pin-wrap.is-pinned .carousel-track {
  overflow: visible;
  scroll-snap-type: none;
  padding-bottom: 12px;
  will-change: transform;
}

.project-card {
  scroll-snap-align: start;
  flex: 0 0 560px;
  display: flex;
  flex-direction: column;
}

/* Floating browser mockup: thin frame, soft layered shadow, subtle tilt. */
.project-card-media {
  position: relative;
  margin: 14px 0 16px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--hairline);
  box-shadow:
    0 44px 64px -32px rgba(15, 17, 23, 0.32),
    0 16px 26px -14px rgba(15, 17, 23, 0.16);
  transform: perspective(1400px) rotateY(-4deg) rotateX(2deg);
  transform-origin: 50% 60%;
  transition: transform 0.6s cubic-bezier(0.16, 0.84, 0.44, 1), box-shadow 0.6s cubic-bezier(0.16, 0.84, 0.44, 1);
}
.project-card-media img {
  width: 100%;
  aspect-ratio: 1200 / 649;
  object-fit: cover;
  display: block;
}
:root[data-theme="dark"] .project-card-media {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 44px 64px -32px rgba(0, 0, 0, 0.8),
    0 16px 26px -14px rgba(0, 0, 0, 0.55);
}
@media (hover: hover) {
  .project-card:hover .project-card-media {
    transform: perspective(1400px) rotateY(0deg) rotateX(0deg) translateY(-6px);
    box-shadow:
      0 56px 72px -32px rgba(15, 17, 23, 0.36),
      0 20px 30px -14px rgba(15, 17, 23, 0.18);
  }
}
@media (max-width: 720px) {
  .project-card-media {
    transform: none;
    margin: 8px 0 12px;
    box-shadow: 0 24px 36px -22px rgba(15, 17, 23, 0.3), 0 8px 16px -10px rgba(15, 17, 23, 0.14);
  }
}

.project-card-info {
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border);
  margin-top: 20px;
}
.project-card-head { display: flex; align-items: center; justify-content: space-between; }
.project-card h3 { text-transform: uppercase; font-size: 22px; margin-top: 4px; }
.project-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--text);
  margin-top: 4px;
}
.text-link .icon-arrow { width: 10px; height: 10px; }
.text-link:hover { color: var(--accent); }

.project-card-foot {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   Split grid (Beneficios / FAQ)
   ========================================================================== */

.split-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 56px;
}
.split-grid--faq { grid-template-columns: 4fr 8fr; gap: 48px; }
.split-grid--faq h2 { margin-top: 16px; }
.split-grid--faq .lede { margin-top: 4px; }

.split-col--intro { display: flex; flex-direction: column; justify-content: space-between; }
.split-col--intro h2 { margin-top: 16px; }
.split-col--intro .lede { margin-top: 4px; font-size: 14px; max-width: 448px; }

.benefit-orbit { width: 256px; padding: 32px 0; }
.benefit-orbit img { width: 100%; }

.list-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.54px;
  text-transform: uppercase;
  color: var(--text-faint);
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
  margin-bottom: 24px;
}

.benefit-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 16px 24px;
  align-items: start;
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.benefit-index { padding-top: 2px; }
.benefit-body h3 { font-size: 14px; letter-spacing: 0.35px; }
.benefit-body p { font-size: 12px; color: var(--text-muted); margin-top: 4px; line-height: 1.35; }
.benefit-tag { padding-top: 2px; }

.split-col--list .btn { margin-top: 24px; }

/* ==========================================================================
   Pricing
   ========================================================================== */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.05);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: opacity 0.8s cubic-bezier(0.16, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.16, 0.84, 0.44, 1), box-shadow 0.2s ease;
}

.price-card-cta { margin-top: auto; }

.price-card h3 {
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  margin-top: 4px;
}
.price-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}

.price-big {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.price-currency {
  font-weight: 800;
  font-size: 22px;
  color: var(--text);
}
.price-amount {
  font-weight: 900;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -1.5px;
  color: var(--text);
}

.price-note {
  font-size: 12px;
  color: var(--text-faint);
  line-height: 1.5;
  padding-bottom: 4px;
}

.price-card .feature-list {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 4px;
}

.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; }
.feature-list li {
  position: relative;
  padding-left: 26px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
  padding-top: 4px;
  padding-bottom: 4px;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='9.5' stroke='%23fd8200' stroke-width='1.6'/%3E%3Cpath d='M8 12.3l2.6 2.6L16.2 9' stroke='%23fd8200' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

.pricing-note {
  margin: 40px 0 0;
  background: var(--bg-alt);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 32px;
}
.pricing-note p { font-size: 14px; color: var(--text); margin-top: 8px; }
.pricing-note p:first-child { margin-top: 0; }
.pricing-note-sub { font-size: 13px; color: var(--text-muted) !important; }

/* ==========================================================================
   Proceso (lista numerada) + Filosofía / Cita
   ========================================================================== */

.numbered-list { max-width: 960px; }
.numbered-list--full { max-width: none; }

.section--quote {
  position: relative;
  overflow: hidden;
  padding: 32px 0 96px;
  border-bottom: 1px solid var(--border);
}
.quote-decor {
  position: absolute;
  top: 50%;
  right: -80px;
  width: 320px;
  height: 320px;
  transform: translateY(-50%);
  border: 1px solid var(--border);
  border-radius: 50%;
  pointer-events: none;
}
.quote-decor::before,
.quote-decor::after {
  content: "";
  position: absolute;
  inset: 48px;
  border: 1px solid var(--border);
  border-radius: 50%;
}
.quote-decor::after { inset: 96px; border-color: var(--accent-soft); }

.quote-block { position: relative; max-width: 800px; }
.quote-mark {
  font-size: 96px;
  line-height: 1;
  color: var(--accent-soft);
  font-weight: 800;
  display: block;
  margin-bottom: -24px;
}
.quote-block blockquote { margin: 0; }
.quote-block blockquote p {
  font-family: var(--font);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.3;
  color: var(--text);
  letter-spacing: -0.5px;
}
.quote-block cite {
  display: block;
  margin-top: 20px;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ==========================================================================
   Equipo
   ========================================================================== */

.team-grid {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 48px;
  align-items: center;
}
.team-showcase { width: 100%; }
.team-group { margin: 0; }
.team-group img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 24px;
  border: 1px solid var(--hairline);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.25);
  background: var(--bg-soft);
}
@media (max-width: 720px) {
  .team-group img { aspect-ratio: 4 / 3; border-radius: 18px; }
}

/* Single portrait with name and role (original Equipo section) */
.team-photo { margin: 0; }
.team-photo img {
  width: 340px;
  height: 340px;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: 20px;
  border: 1px solid var(--hairline);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  background: var(--bg-soft);
}
.team-photo figcaption { margin-top: 24px; display: flex; flex-direction: column; gap: 4px; }
.team-name { font-weight: 800; font-size: 18px; text-transform: uppercase; letter-spacing: -0.45px; }

.team-text h2 { margin-top: 16px; }
.team-text .lede { margin-top: 16px; font-size: 18px; }

.team-meta {
  display: flex;
  gap: 24px;
  border-top: 1px solid var(--border);
  padding-top: 25px;
  margin-top: 24px;
}
.team-meta > div { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.team-meta .mono-tag { font-size: 12px; letter-spacing: 0; color: var(--text-faint); font-weight: 500; }
.team-meta strong { font-size: 12px; text-transform: uppercase; font-weight: 700; }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-list {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-top: 25px;
}
.faq-item { border-top: 1px solid var(--border); }
.faq-item:first-child { border-top: none; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 0;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 14px; letter-spacing: 0.35px; text-transform: uppercase; }
.faq-chevron { width: 12px; height: 8px; flex-shrink: 0; color: var(--text); transition: transform 0.2s ease; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-item p { font-size: 13px; color: var(--text-muted); line-height: 1.5; padding-bottom: 25px; }

/* ==========================================================================
   CTA / Contacto
   ========================================================================== */

.section--cta { background: var(--bg); border-bottom: none; }

.cta-panel {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 56px 48px 48px;
}
.cta-decor {
  position: absolute;
  top: 0; right: 0;
  width: 384px; height: 384px;
  background: var(--accent-blur);
  filter: blur(32px);
  border-radius: 50%;
  pointer-events: none;
}
.cta-intro { max-width: 768px; position: relative; z-index: 1; margin-bottom: 32px; }
.cta-intro h2 { margin-top: 12px; }
.cta-intro .lede { margin-top: 4px; font-size: 14px; }

.cta-form {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 48px;
}

.step-label { border-bottom: 1px solid var(--border); padding-bottom: 13px; margin-bottom: 20px; display: block; color: var(--text); }
.step-label.mono-tag--accent { color: var(--accent); }

.cta-form-main { display: flex; flex-direction: column; gap: 20px; }
.cta-form-main > .field { flex: none; }
.field-row { display: flex; gap: 16px; }
.field { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.55px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field input, .field select {
  font-family: var(--font);
  font-size: 13px;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 17px;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%2352525b' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 17px center;
  background-size: 12px 8px;
}
:root[data-theme="dark"] .field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23a1a1aa' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.field input::placeholder { color: var(--text-placeholder); }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field-hint { font-size: 10px; color: var(--text-faint); }

/* WhatsApp: country picker + number share one bordered field */
.phone-field {
  display: flex;
  align-items: stretch;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s ease;
}
.phone-field:focus-within { border-color: var(--accent); }
.field .phone-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding-left: 12px;
}
.phone-country {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--border);
}
.phone-country-display {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 34px 0 15px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%2352525b' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 10px 7px;
}
:root[data-theme="dark"] .phone-country-display {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23a1a1aa' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.phone-flag { font-size: 18px; line-height: 1; }
/* The real select covers the display so taps open the native country list. */
.field .phone-country select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  padding: 0;
  border: 0;
}
.phone-country:has(select:focus-visible) .phone-country-display { color: var(--accent); }

.pill-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-choice { position: relative; }
.pill-choice input { position: absolute; opacity: 0; }
.pill-choice span {
  display: inline-flex;
  padding: 11px 21px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.pill-choice input:checked + span {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
}

.cta-form-side {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: start;
}

.day-picker, .slot-picker { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.day-pill {
  flex: 1;
  min-width: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 9px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font-family: var(--font);
}
.day-pill span { font-size: 10px; color: var(--text-faint); }
.day-pill strong { font-size: 12px; font-weight: 700; color: var(--text); }
.day-pill.is-active { background: var(--accent); border-color: var(--accent); box-shadow: var(--shadow-sm); }
.day-pill.is-active span, .day-pill.is-active strong { color: #fff; }

.slot-picker { display: grid; grid-template-columns: 1fr 1fr; }
.slot-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font);
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
}
.slot-pill.is-active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 700; }

.prep-note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 21px 13px 13px;
  margin-bottom: 8px;
}
.prep-note p:first-child { font-size: 10px; letter-spacing: 0.5px; margin-bottom: 4px; }
.prep-note p:last-child { font-size: 11px; color: var(--text-muted); line-height: 1.6; }

.cta-form-side .btn { margin-top: 8px; }
.form-wa-note {
  margin-top: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}
.form-wa-note a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s ease;
}
.form-wa-note a:hover, .form-wa-note a:focus-visible { text-decoration-color: currentColor; }
.form-wa-note svg { width: 16px; height: 16px; flex: none; color: #25d366; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  position: relative;
  overflow: hidden;
  padding: 56px 0 24px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-simple { text-align: center; }
.footer-tagline {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.5;
}

.footer-logo-wrap {
  padding: 32px var(--gutter) 40px;
  border-bottom: 1px solid var(--border);
}
.footer-logo-big {
  display: block;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  height: auto;
}

.footer-bottom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  font-size: 12px;
  color: var(--text-faint);
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 10px; align-items: center; font-size: 12px; }
.footer-links a:hover { color: var(--accent); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  h1 { font-size: 56px; letter-spacing: -2px; }
  h2 { font-size: 36px; letter-spacing: -0.9px; }
  .split-grid, .split-grid--faq, .team-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .cta-form { grid-template-columns: minmax(0, 1fr); }
  .feature-list { grid-template-columns: minmax(0, 1fr); }

  .pricing-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; gap: 48px; }
}

@media (max-width: 720px) {
  :root { --gutter: 24px; }
  h1 { font-size: 40px; letter-spacing: -1.4px; }
  h2 { font-size: 28px; letter-spacing: -0.6px; }
  .lede { font-size: 16px; }

  .price-card { padding: 28px 24px; }
  .price-amount { font-size: 44px; }

  .btn:not(.btn-block) {
    white-space: normal;
    text-align: center;
    max-width: 100%;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .header-actions .btn { display: none; }
  .brand-logo { height: 26px; }

  .section { padding: 52px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-foot { flex-direction: column; align-items: flex-start; }
  .section-foot--end { align-items: flex-end; }

  .project-card { flex-basis: 85vw; }

  .field-row { flex-direction: column; }

  .cta-panel { padding: 24px; }

  .benefit-orbit { width: 180px; }

  .benefit-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 0;
  }
  .benefit-row > .benefit-index {
    order: 1;
  }
  .benefit-row > .benefit-body {
    order: 2;
  }
  .benefit-row > .benefit-tag {
    order: 3;
  }

  .day-picker { flex-wrap: wrap; }
  .day-pill { min-width: 56px; }

  .footer-tagline { max-width: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-logo-wrap { padding: 40px var(--gutter) 40px; }

  .quote-block blockquote p { font-size: 24px; }
  .quote-decor { display: none; }

  .fab-stack { right: 16px; bottom: 16px; gap: 10px; }
  .fab-whatsapp { width: 52px; height: 52px; }
  .fab-top { width: 40px; height: 40px; }
}

/* ==========================================================================
   Floating action buttons (WhatsApp + back to top)
   ========================================================================== */

.fab-stack {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.fab {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.2s ease, background 0.2s ease;
}

/* Back-to-top only makes sense once the user has scrolled down. */
.fab-top {
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  pointer-events: none;
}
.fab-stack.is-visible .fab-top {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* WhatsApp is available right away, even at the top of the page. */
.fab-whatsapp {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Dim to a translucent state once the user pauses scrolling, so the
   buttons never sit fully opaque on top of text being read. They stay
   tappable and return to full opacity on scroll, hover or touch. */
.fab-stack.is-idle .fab-whatsapp {
  opacity: 0.32;
  transform: translateY(0) scale(0.92);
}
.fab-stack.is-visible.is-idle .fab-top {
  opacity: 0.32;
  transform: translateY(0) scale(0.92);
}
.fab-stack:hover .fab-whatsapp,
.fab-stack:focus-within .fab-whatsapp {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.fab-stack.is-visible:hover .fab-top,
.fab-stack.is-visible:focus-within .fab-top {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.fab-top {
  width: 44px;
  height: 44px;
  background: var(--overlay-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition-delay: 0.05s;
}
.fab-top svg { width: 18px; height: 18px; }
.fab-top:hover {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px) scale(1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.fab-whatsapp {
  width: 58px;
  height: 58px;
  background: #25d366;
  color: #fff;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}
.fab-whatsapp svg { width: 28px; height: 28px; }
.fab-whatsapp:hover {
  background: #1ebe5b;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
}
.fab-whatsapp::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  animation: fabPulse 2.4s ease-out infinite;
}
.fab-whatsapp { position: relative; }

@keyframes fabPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .fab, .fab-whatsapp::before { animation: none; transition: opacity 0.2s ease; }
}

/* ==========================================================================
   Scroll reveal + parallax
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s cubic-bezier(0.16, 0.84, 0.44, 1), transform 0.9s cubic-bezier(0.16, 0.84, 0.44, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

[data-parallax] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  [data-parallax] { transform: none !important; }
}

/* ==========================================================================
   Language toggle (header)
   ========================================================================== */

.lang-toggle { display: flex; align-items: center; gap: 2px; }
.lang-btn {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--text-faint);
  background: none;
  border: none;
  padding: 8px 4px;
  cursor: pointer;
  transition: color 0.15s ease;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.is-active { color: var(--text); }
.lang-sep { font-size: 12px; color: var(--text-faint); }

/* ==========================================================================
   Text structure: centered headings + left-aligned reading column
   (alignment and layout only; sizes, colors and typography are unchanged)
   ========================================================================== */

:root { --read-w: 760px; --wide-w: 900px; }

/* Hero */
.hero-inner { align-items: center; text-align: center; }
.hero-headline { align-items: center; margin: 0 auto; }
.hero-headline h1 { margin-left: auto; margin-right: auto; }
.hero-sub { margin-left: auto; margin-right: auto; }
.hero-actions { align-self: stretch; justify-content: center; text-align: center; }

/* Section heads (Proyectos, Precios, Proceso) */
.section-head { flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.section-head-text,
.section-head-text--top { max-width: var(--wide-w); margin-left: auto; margin-right: auto; text-align: center; }
.section-head-text h2,
.section-head-text--top h2 { margin-left: auto; margin-right: auto; }
.section-head-text .lede,
.section-head-text--top .lede { margin-left: auto; margin-right: auto; max-width: var(--read-w); text-align: left; }
.meta-line { justify-content: center; }
.carousel-controls { justify-content: center; }

/* Split sections (Beneficios, FAQ) become a centered stack */
.split-grid,
.split-grid--faq { grid-template-columns: minmax(0, 1fr); gap: 32px; position: relative; }
.split-col--intro { align-items: center; text-align: center; justify-content: flex-start; }
.split-col--intro > div:first-child,
.split-grid--faq > .split-col { max-width: var(--wide-w); margin-left: auto; margin-right: auto; text-align: center; }
.split-col--intro .lede,
.split-grid--faq .lede { margin-left: auto; margin-right: auto; max-width: var(--read-w); text-align: left; }
.split-col--list,
.faq-list { width: 100%; max-width: var(--wide-w); margin-left: auto; margin-right: auto; }
.split-col--list > .btn { display: flex; width: fit-content; margin-left: auto; margin-right: auto; }
.benefit-orbit { display: none; }
@media (min-width: 1360px) {
  .benefit-orbit { display: block; position: absolute; left: 0; bottom: 24px; width: 200px; padding: 0; }
}

/* Proceso list */
.numbered-list--full { max-width: var(--wide-w); margin-left: auto; margin-right: auto; }

/* Equipo */
.team-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; justify-items: center; text-align: center; }
.team-photo { display: flex; flex-direction: column; align-items: center; }
.team-photo figcaption { align-items: center; text-align: center; }
.team-text { max-width: var(--wide-w); text-align: center; }
.team-text .lede { margin-left: auto; margin-right: auto; max-width: var(--read-w); text-align: left; }

/* Quote */
.quote-block { margin-left: auto; margin-right: auto; text-align: center; }


/* Contact intro */
.cta-intro { margin-left: auto; margin-right: auto; text-align: center; max-width: var(--wide-w); }
.cta-intro .lede { margin-left: auto; margin-right: auto; max-width: var(--read-w); text-align: left; }

/* Hero CTA: button centered with the italic note below it */
.hero-actions { flex-direction: column; align-items: center; gap: 12px; }

/* Section footers (Proyectos CTA) centered */
.section-foot { justify-content: center; align-items: center; }

/* ==========================================================================
   Refinements: hero size, centered 14px paragraphs, team order, process CTA
   ========================================================================== */

:root { --read-w: 820px; }

/* Hero */
.hero-headline h1 { font-size: 64px; letter-spacing: -2px; }
@media (max-width: 1100px) { .hero-headline h1 { font-size: 52px; letter-spacing: -1.6px; } }
.hero-price { font-size: 14px; font-style: italic; letter-spacing: 0; line-height: 1.5; }
@media (max-width: 720px) {
  .hero-headline h1 { font-size: 38px; letter-spacing: -1.2px; }
}

/* Intro paragraphs: centered, 14px */
.hero-sub,
.section-head-text .lede,
.section-head-text--top .lede,
.split-col--intro .lede,
.split-grid--faq .lede,
.team-text .lede,
.cta-intro .lede {
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

/* Other body paragraphs: 14px */
.project-card p,
.benefit-body p,
.faq-item p,
.price-card-desc,
.price-note,
.prep-note p { font-size: 14px; }

/* Team: text first, then photo + name/role, then the quote */
.team-text { order: 1; }
.team-photo,
.team-showcase { order: 2; }

/* Process CTA */
.proceso-cta { display: flex; justify-content: center; margin-top: 32px; }

/* FAQ title: wider box so it fits in two balanced lines */
.split-grid--faq > .split-col { max-width: 1100px; }
#faqTitle { max-width: 1100px; margin-left: auto; margin-right: auto; text-wrap: balance; }

/* Section titles: wider box + balanced lines so no single word is left alone */
.split-col--intro > div:first-child,
.section-head-text,
.section-head-text--top,
.team-text,
.cta-intro { max-width: 1100px; }
.section h2 { max-width: 1100px; margin-left: auto; margin-right: auto; text-wrap: balance; }

/* Quote in italics */
.quote-block blockquote p { font-style: italic; }


.hero-headline h1 { text-wrap: balance; }

@media (max-width: 720px) {
  .hero-headline h1 { font-size: 32px; letter-spacing: -1px; }
}

.meta-line { flex-wrap: wrap; justify-content: center; row-gap: 4px; text-align: center; }
.meta-line > span:not(.dot) { white-space: nowrap; }

@media (max-width: 720px) {
  .meta-line { gap: 4px 8px; }
  .meta-line .eyebrow--sm { letter-spacing: 1.2px; }
  .meta-line .mono-tag { letter-spacing: 0.4px; }
}

/* ==========================================================================
   Human layer: the team carries the page. Hero mosaic, working photos
   beside Beneficios / Proceso, faces next to the contact form.
   Appended last so it wins over the centered-layout refinements above.
   ========================================================================== */

/* ---- Hero: copy left, mosaic of the team right ---- */
.hero--mosaic .hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(40px, 4.5vw, 80px);
  padding-top: 56px;
  padding-bottom: 88px;
  text-align: left;
}
.hero-copy { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.hero--mosaic .hero-headline { align-items: flex-start; margin: 0; gap: 24px; }
.hero--mosaic .hero-headline h1 {
  margin: 0;
  font-size: clamp(40px, 4.3vw, 64px);
  letter-spacing: -0.035em;
  line-height: 0.98;
}
.hero--mosaic .hero-sub { margin: 0; max-width: 520px; text-align: left; font-size: 16px; line-height: 1.55; }
.hero--mosaic .hero-price { font-size: 15px; }
.hero--mosaic .hero-actions {
  align-self: auto;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  border-top: 0;
  padding-top: 0;
}

.hero-mosaic {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.mosaic-col { display: flex; flex-direction: column; gap: 14px; will-change: transform; }
.mosaic-col:nth-child(1) { margin-top: 56px; }
.mosaic-col:nth-child(3) { margin-top: 112px; }

.mosaic-tile {
  position: relative;
  margin: 0;
  aspect-ratio: 1;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.35);
  animation: tile-in 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.mosaic-tile--tall { aspect-ratio: 4 / 5; }
.mosaic-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.mosaic-tile:hover img { transform: scale(1.04); }

/* Brand field: the disciplines the team covers, set in the accent */
.mosaic-tile--accent {
  display: flex;
  align-items: flex-end;
  padding: 18px;
  background: var(--accent);
  color: #0b0b0d;
  font-weight: 800;
  font-size: clamp(13px, 1.1vw, 16px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  box-shadow: none;
}

/* One authored entrance: tiles open from an inset frame, staggered */
@keyframes tile-in {
  from { clip-path: inset(9% 9% 9% 9% round 18px); transform: scale(1.04); }
  to   { clip-path: inset(0 round 18px); transform: none; }
}
.mosaic-col:nth-child(1) .mosaic-tile:nth-child(1) { animation-delay: 0.05s; }
.mosaic-col:nth-child(2) .mosaic-tile:nth-child(1) { animation-delay: 0.15s; }
.mosaic-col:nth-child(3) .mosaic-tile:nth-child(1) { animation-delay: 0.25s; }
.mosaic-col:nth-child(1) .mosaic-tile:nth-child(2) { animation-delay: 0.35s; }
.mosaic-col:nth-child(2) .mosaic-tile:nth-child(2) { animation-delay: 0.45s; }
.mosaic-col:nth-child(3) .mosaic-tile:nth-child(2) { animation-delay: 0.55s; }

@media (prefers-reduced-motion: reduce) {
  .mosaic-tile { animation: none; }
  .mosaic-tile img { transition: none; }
}

@media (max-width: 900px) {
  .hero--mosaic .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 32px; padding-bottom: 56px; }
  .mosaic-col:nth-child(1) { margin-top: 28px; }
  .mosaic-col:nth-child(3) { margin-top: 56px; }
  .hero-mosaic, .mosaic-col { gap: 10px; }
  .mosaic-tile { border-radius: 14px; }
  .mosaic-tile--accent { padding: 12px; font-size: 11px; }
}

/* ---- Working photos beside Beneficios (left) and Proceso (right) ---- */
.work-photo { margin: 0; }
.work-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 25%;
  border-radius: 22px;
  background: var(--bg-soft);
  box-shadow: 0 24px 56px -24px rgba(0, 0, 0, 0.3);
}
.work-photo figcaption { margin-top: 14px; display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.work-photo figcaption strong { color: var(--text); font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }
.work-photo figcaption { align-items: center; text-align: center; }
.work-photo figcaption span { color: var(--accent); font-weight: 700; }

.split-col--list.split-col--photo,
.numbered-list.numbered-list--photo {
  display: grid;
  column-gap: clamp(32px, 5vw, 80px);
  align-items: start;
  max-width: 1200px;
  text-align: left;
}
.split-col--photo { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto auto 1fr; }
/* Only when Beneficios carries a photo (respaldo index-a): the orbit would collide with it */
#beneficios:has(.split-col--photo) .benefit-orbit { display: none; }
.split-col--photo > * { grid-column: 2; }
.split-col--photo > .work-photo { grid-column: 1; grid-row: 1 / span 3; position: sticky; top: 104px; }
.split-col--photo > .btn { margin-left: 0; margin-right: 0; }

.numbered-list--photo { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto 1fr; }
.numbered-list--photo > * { grid-column: 1; }
.numbered-list--photo > .work-photo { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 104px; }

@media (max-width: 900px) {
  .split-col--photo,
  .numbered-list--photo { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 0; }
  .split-col--photo > *,
  .numbered-list--photo > * { grid-column: 1; }
  .split-col--photo > .work-photo,
  .numbered-list--photo > .work-photo { grid-column: 1; grid-row: auto; position: static; margin-bottom: 28px; }
  .work-photo img { aspect-ratio: 4 / 3; border-radius: 18px; }
}

/* ---- Faces next to the contact form ---- */
.cta-people {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.avatar-stack { display: flex; padding-left: 12px; }
.avatar-stack li { margin-left: -12px; }
.avatar-stack img {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px var(--bg);
  background: var(--bg-soft);
}
.cta-people p { font-size: 14px; font-weight: 600; color: var(--text); text-align: left; max-width: 300px; line-height: 1.4; }
@media (max-width: 600px) {
  .cta-people { flex-direction: column; gap: 10px; }
  .cta-people p { text-align: center; }
}

/* ==========================================================================
   Hero background: "fan shuffle" of project mockups (js/hero-shuffle.js)
   ========================================================================== */
.hero:has(.hero-shuffle) {
  display: flex;
  align-items: center;
  min-height: clamp(600px, 86svh, 860px);
}
.hero:has(.hero-shuffle) .hero-inner { width: 100%; }
/* The wall replaces the ring ornament once it is running */
.hero:has(.hero-shuffle.is-ready) .hero-ring { display: none; }

.hero-shuffle {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.hero-shuffle-stage { position: absolute; inset: 0; z-index: 0; } /* own stacking context: card z-indexes stay below the veil */
.hero-shuffle-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--card-w, 200px);
  height: var(--card-h, 240px);
  border-radius: 14px;
  overflow: hidden;
  background: radial-gradient(ellipse 75% 65% at 50% 38%, #f6f6f7 0%, #e2e2e5 70%, #d4d4d8 100%);
  box-shadow: 0 18px 36px -18px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translate(-50%, -50%) scale(1.3);
  will-change: transform, opacity;
  backface-visibility: hidden;
}
/* Two browser windows per card: desktop page scrolls up, mobile page scrolls down */
.hero-shuffle-desktop,
.hero-shuffle-mobile {
  position: absolute;
  top: 7%;
  height: 86%;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.35);
}
.hero-shuffle-desktop { left: 7.5%; width: 57%; border-radius: 4px; }
.hero-shuffle-mobile { left: 70%; width: 23%; border-radius: 6px; }
.hero-shuffle-desktop img,
.hero-shuffle-mobile img {
  display: block;
  height: auto;
  user-select: none;
  will-change: transform;
}
.hero-shuffle-desktop img { width: 118%; max-width: none; margin-left: -9%; } /* zoomed a touch so the tall window still has page left to scroll */
.hero-shuffle-mobile img { width: 110%; max-width: none; margin-left: -5%; }
.hero-shuffle-desktop img { animation: shuffle-page-up var(--scroll-dur, 8s) ease-in-out var(--scroll-delay, 0s) infinite alternate; }
.hero-shuffle-mobile img { animation: shuffle-page-down var(--scroll-dur, 8s) ease-in-out var(--scroll-delay, 0s) infinite alternate; }
@keyframes shuffle-page-up {
  from { transform: translateY(0); }
  to { transform: translateY(calc(-100% + var(--card-h, 240px) * 0.86)); }
}
@keyframes shuffle-page-down {
  from { transform: translateY(calc(-100% + var(--card-h, 240px) * 0.86)); }
  to { transform: translateY(0); }
}
[data-theme="dark"] .hero-shuffle-card { background: radial-gradient(ellipse 75% 65% at 50% 38%, #2c2c31 0%, #1c1c20 70%, #141417 100%); }
@media (prefers-reduced-motion: reduce) {
  .hero-shuffle-desktop img,
  .hero-shuffle-mobile img { animation: none; }
}

/* Legibility: the page colour gathers behind the copy and fades toward the
   edges, where the wall shows through; the bottom melts into the next section. */
.hero-shuffle-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Light mode: a soft wash over the whole wall plus a solid core behind the copy */
  background:
    radial-gradient(ellipse 48% 60% at 50% 52%,
      color-mix(in srgb, var(--bg) 97%, transparent) 0%,
      color-mix(in srgb, var(--bg) 93%, transparent) 55%,
      color-mix(in srgb, var(--bg) 62%, transparent) 82%,
      color-mix(in srgb, var(--bg) 45%, transparent) 100%),
    linear-gradient(to bottom,
      color-mix(in srgb, var(--bg) 55%, transparent) 0%,
      color-mix(in srgb, var(--bg) 30%, transparent) 18%,
      color-mix(in srgb, var(--bg) 30%, transparent) 78%,
      var(--bg) 100%);
}
[data-theme="dark"] .hero-shuffle-veil {
  background:
    radial-gradient(ellipse 46% 58% at 50% 52%,
      color-mix(in srgb, var(--bg) 90%, transparent) 0%,
      color-mix(in srgb, var(--bg) 84%, transparent) 55%,
      color-mix(in srgb, var(--bg) 40%, transparent) 82%,
      color-mix(in srgb, var(--bg) 18%, transparent) 100%),
    linear-gradient(to bottom,
      color-mix(in srgb, var(--bg) 40%, transparent) 0%,
      transparent 18%,
      transparent 78%,
      var(--bg) 100%);
}

@media (max-width: 720px) {
  .hero:has(.hero-shuffle) { min-height: clamp(560px, 92svh, 760px); }
  .hero-shuffle-card { border-radius: 10px; }
  .hero-shuffle-veil,
  [data-theme="dark"] .hero-shuffle-veil {
    background:
      radial-gradient(ellipse 90% 60% at 50% 52%,
        color-mix(in srgb, var(--bg) 97%, transparent) 0%,
        color-mix(in srgb, var(--bg) 92%, transparent) 62%,
        color-mix(in srgb, var(--bg) 55%, transparent) 100%),
      linear-gradient(to bottom, transparent 75%, var(--bg) 100%);
  }
}

/* ==========================================================================
   Equipo: full-width team photo under the copy, edge to edge, meeting the
   next section without a gap.
   ========================================================================== */
#equipo:has(.team-group--full) { padding-bottom: 0; }
.team-group--full {
  order: 2;
  width: 100vw;
  margin: 24px calc(50% - 50vw) 0;
}
.team-group--full img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: 50% 35%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: var(--bg-soft);
}
@media (max-width: 720px) {
  .team-group--full { margin-top: 8px; }
  .team-group--full img { aspect-ratio: 3 / 2; border-radius: 0; }
}

/* ==========================================================================
   Proceso: pinned section, step panels travel right-to-left on scroll
   (js/process-scroll.js). Phones and reduced motion: panels stacked.
   ========================================================================== */
.process-scroll { --header-h: 81px; padding: 0; position: relative; }

/* Panel palette: Empirika black, brand orange, soft gray, black */
.process-panel { --panel-bg: #0b0b0d; --panel-ink: #ffffff; --panel-soft: rgba(255, 255, 255, 0.78); --panel-count: var(--accent); }
.process-panel:nth-child(4n + 2) { --panel-bg: var(--accent); --panel-ink: #0b0b0d; --panel-soft: rgba(11, 11, 13, 0.82); --panel-count: #0b0b0d; }
.process-panel:nth-child(4n + 3) { --panel-bg: #f4f4f5; --panel-ink: #0b0b0d; --panel-soft: #52525b; --panel-count: #c2410c; }
.process-panel:nth-child(4n + 4) { --panel-bg: #18181b; }
[data-theme="dark"] .process-panel:nth-child(4n + 3) { --panel-bg: #27272a; --panel-ink: #ffffff; --panel-soft: rgba(255, 255, 255, 0.78); --panel-count: var(--accent); }

.process-panel {
  display: grid;
  grid-template-rows: minmax(0, 56%) minmax(0, 1fr);
  background: var(--panel-bg);
  color: var(--panel-ink);
  overflow: hidden;
}
.process-media { position: relative; overflow: hidden; background: var(--bg-soft); }
.process-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}
/* Keep heads in frame where the panel crops the photo wide */
.process-panel:nth-child(4n + 3) .process-media img { object-position: 50% 22%; }
.process-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  padding: clamp(24px, 3vw, 40px);
}
.process-count {
  margin-bottom: auto;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--panel-count);
  font-variant-numeric: tabular-nums;
}
.process-title {
  margin: 0;
  color: var(--panel-ink);
  font-size: clamp(34px, 4.2vw, 72px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.process-text {
  margin: 0;
  max-width: 46ch;
  color: var(--panel-soft);
  font-size: 15px;
  line-height: 1.5;
}

/* ---- Desktop: pinned + horizontal travel ---- */
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .process-pin {
    position: sticky;
    top: var(--header-h);
    height: calc(100svh - var(--header-h));
    overflow: hidden;
  }
  .process-intro {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    z-index: 1;
    will-change: opacity;
  }
  .process-intro-copy { max-width: 36vw; text-align: left; }
  .process-intro .meta-line { justify-content: flex-start; text-align: left; }
  .process-intro h2 {
    margin: 18px 0 32px;
    max-width: none;
    text-align: left;
    font-size: clamp(40px, 4.4vw, 68px);
    line-height: 0.98;
    letter-spacing: -0.035em;
  }
  .process-track {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    display: flex;
    padding-left: 44vw;
    will-change: transform;
  }
  .process-panel { flex: none; width: clamp(520px, 56vw, 880px); height: 100%; }
  .process-panel + .process-panel { box-shadow: -24px 0 48px -24px rgba(0, 0, 0, 0.35); }
}

/* ---- Phones / reduced motion: stacked panels ---- */
@media (max-width: 899px), (prefers-reduced-motion: reduce) {
  .process-scroll { padding: 64px 0; }
  .process-intro { margin-bottom: 32px; text-align: center; }
  .process-intro .btn { margin-top: 20px; }
  .process-track { display: flex; flex-direction: column; gap: 16px; padding: 0 var(--gutter); }
  .process-panel { grid-template-rows: auto auto; border-radius: 18px; }
  .process-media { aspect-ratio: 4 / 3; }
  .process-body { gap: 10px; }
  .process-count { margin-bottom: 12px; }
  .process-title { font-size: clamp(32px, 9vw, 44px); }
}
@media (max-width: 720px) {
  .process-track { padding: 0 24px; }
}

/* ==========================================================================
   Contact form: bot trap, error line and the confirmation that replaces the form
   ========================================================================== */
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: #b91c1c;
  font-size: 14px;
  font-weight: 600;
}
[data-theme="dark"] .form-status { color: #fca5a5; }
#contactSubmit:disabled { opacity: 0.6; cursor: progress; }

.form-success {
  max-width: 560px;
  margin: 24px auto 0;
  padding: 48px 32px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  outline: none;
}
.form-success-icon { width: 56px; height: 56px; margin: 0 auto 20px; color: var(--accent); }
.form-success h3 { margin: 0 0 12px; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.15; text-transform: none; }
.form-success p { margin: 0 0 8px; font-size: 16px; line-height: 1.55; color: var(--text-muted); }
.form-success strong { color: var(--text); font-weight: 700; }
.cta-form[hidden], .form-success[hidden] { display: none; }
