/* ═══════════════════════════════════════════════════════════════
   FORMASORT — styles.css
   Stack: HTML/CSS/JS vanilla
   Tipografía: Bebas Neue (display) + DM Sans (body)
   Paleta: Oscuro #0A0A0F / Claro #F5F4F0 / Teal #1D9E75 / CTA #CFB53B / Azul Airtable #18BFFF
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  --black: #0A0A0F;
  --white: #F5F5F5;
  --pure-white: #FFFFFF;
  --neon: #1D9E75;
  --neon-dim: #178a63;
  --cta: #CFB53B;
  --cta-hover: #dbc84a;
  --blue: #3B82F6;
  --dark-gray: #1A1A2E;
  --mid-gray: #888;
  --light-gray: #DDDDD8;

  /* Mundo claro */
  --ivory: #F5F4F0;
  --airtable-blue: #18BFFF;
  --airtable-deep: #2D7BEE;
  --dot-color: rgba(45, 123, 238, 0.11);

  --font-display: 'Bebas Neue', sans-serif;
  --font-hero: 'Onest', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --radius: 4px;
  --section-v: clamp(80px, 10vw, 140px);
  --container: 1200px;

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

html.page-loading .hero-v2-wrapper,
html.page-loading .symptoms,
html.page-loading .world,
html.page-loading .site-footer {
  filter: blur(20px);
  transition: none;
}

html.page-ready .hero-v2-wrapper,
html.page-ready .symptoms,
html.page-ready .world,
html.page-ready .site-footer {
  filter: blur(0);
  transition: filter 0.3s ease;
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: subpixel-antialiased;
  -moz-osx-font-smoothing: auto;
}

h1,
h2,
h3 {
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* ── CONTAINER ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

/* ── TYPOGRAPHY SCALE ──────────────────────────────────────────── */
h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.05;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(3rem, 8vw, 7rem);
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
}

h3 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}

p {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
}

/* ── BUTTONS ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0;
  padding: 14px 28px;
  border-radius: 9999px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: transparent;
  color: var(--neon);
  border: 1.5px solid rgba(29, 158, 117, 0.4);
}

.btn-primary:hover {
  border-color: var(--neon);
  background: rgba(29, 158, 117, 0.06);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(245, 245, 245, 0.3);
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(245, 245, 245, 0.06);
}

/* btn-ghost sobre fondo claro */
.world--airtable .btn-ghost,
.world--white .btn-ghost {
  color: var(--black);
  border-color: rgba(10, 10, 10, 0.3);
}

.world--airtable .btn-ghost:hover,
.world--white .btn-ghost:hover {
  border-color: var(--black);
  background: rgba(10, 10, 10, 0.06);
}

.btn-dark {
  background: var(--black);
  color: var(--white);
  border: 1.5px solid var(--black);
}

.btn-dark:hover {
  background: #1a1a1a;
}

.btn-large {
  padding: 16px 32px;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* Botón Airtable */
.btn-airtable {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 9999px;
  background: transparent;
  color: var(--airtable-deep);
  border: 1.5px solid rgba(0, 88, 220, 0.4);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.btn-airtable:hover {
  transform: translateY(-2px);
  border-color: var(--airtable-blue);
  background: rgba(0, 88, 220, 0.06);
  box-shadow: 0 0 20px rgba(0, 88, 220, 0.15);
}

/* ── SECTION TAGS ──────────────────────────────────────────────── */
.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--neon);
  margin-bottom: 16px;
}

.section-tag.light {
  color: var(--neon);
}

.section-tag.dark {
  color: var(--neon-dim);
}

.world--airtable .section-tag {
  color: var(--airtable-deep);
}

.world--white .section-tag {
  color: var(--mid-gray);
}

/* ── SECTION HEADER ────────────────────────────────────────────── */
.section-header {
  margin-bottom: clamp(40px, 6vw, 80px);
}

.section-header h2 {
  max-width: 16ch;
}

/* ════════════════════════════════════════════════════════════════
   HEADER / NAV
   ════════════════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 clamp(20px, 5vw, 60px);
  height: 72px;
  display: flex;
  align-items: center;
  background: var(--black);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: background var(--transition), backdrop-filter var(--transition);
}

.site-header.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.12em;
  color: var(--white);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 32px;
  flex: 1;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(245, 245, 245, 0.7);
  transition: color var(--transition);
}

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

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

.btn-nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  background: var(--cta);
  color: var(--black);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 0;
  border: none;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-nav-cta:hover {
  background: var(--cta-hover);
  transform: translateY(-1px);
}

/* Language toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(245, 245, 245, 0.5);
  transition: color var(--transition);
}

.lang-toggle:hover {
  color: var(--white);
}

.lang-toggle .lang-es,
.lang-toggle .lang-en {
  transition: color var(--transition);
}

.lang-toggle .lang-es.active,
.lang-toggle .lang-en.active {
  color: var(--neon);
}

.lang-divider {
  color: rgba(245, 245, 245, 0.2);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(20px);
  padding: 32px clamp(20px, 5vw, 60px) 40px;
  transform: translateY(-110%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  z-index: 99;
}

.mobile-menu.open {
  transform: translateY(0);
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-menu a {
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(245, 245, 245, 0.85);
}

/* ════════════════════════════════════════════════════════════════
   SIDE TABS — navegación lateral fija
   Aparecen después del hero. Altura crece dinámicamente via JS.
   ════════════════════════════════════════════════════════════════ */
#side-tabs {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

#side-tabs.tabs-visible {
  opacity: 1;
  pointer-events: all;
}

.side-tab {
  display: flex;
  align-items: center;
  height: calc(var(--tab-h, 0px));
  min-height: 0;
  text-decoration: none;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: height 0.05s linear;
}

/* Tira vertical */
.side-tab::before {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 6px;
  height: 100%;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  will-change: background, box-shadow;
}

/* Etiqueta de texto */
.tab-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.22s ease 0.06s, transform 0.22s ease 0.06s;
  padding: 0 12px 0 10px;
  color: var(--neon);
  pointer-events: none;
}

/* Estado activo */
.side-tab.is-active::before {
  background: var(--neon);
  box-shadow: 0 0 14px rgba(29, 158, 117, 0.55);
}

.side-tab.is-active .tab-label {
  opacity: 1;
  transform: translateX(0);
}

.side-tab[data-section="airtable"].is-active::before {
  background: var(--airtable-blue);
  box-shadow: 0 0 14px rgba(24, 191, 255, 0.55);
}

.side-tab[data-section="airtable"].is-active .tab-label {
  color: var(--airtable-deep);
}

.side-tab[data-section="nosotros"].is-active::before {
  background: var(--mid-gray);
  box-shadow: none;
}

.side-tab[data-section="nosotros"].is-active .tab-label {
  color: var(--mid-gray);
}

/* Hover en tabs inactivas */
.side-tab:not(.is-active):hover::before {
  background: rgba(255, 255, 255, 0.3);
}

.side-tab:not(.is-active):hover .tab-label {
  opacity: 0.4;
  transform: translateX(0);
}

@media (max-width: 768px) {
  #side-tabs {
    display: none;
  }
}

/* ════════════════════════════════════════════════════════════════
   SÍNTOMAS — ¿Te suena esto?
   ════════════════════════════════════════════════════════════════ */

.symptoms {
  background: var(--black);
  color: var(--white);
  padding: var(--section-v) 0;
  border-top: 1px solid rgba(245, 245, 245, 0.07);
}

.symptoms-header {
  margin-bottom: 56px;
}

.symptoms-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  letter-spacing: 0.02em;
  line-height: 1;
  margin-top: 16px;
  color: var(--white);
}

.symptoms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: rgba(245, 245, 245, 0.08);
  border: 1px solid rgba(245, 245, 245, 0.08);
}

.symptom-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 36px 40px;
  background: var(--black);
  transition: background 0.2s ease;
}

.symptom-item:hover {
  background: rgba(245, 245, 245, 0.03);
}

.symptom-dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e03030;
  flex-shrink: 0;
}

.symptom-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.symptom-heading {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
}

.symptom-item p {
  font-size: clamp(0.875rem, 1.2vw, 0.95rem);
  font-weight: 400;
  line-height: 1.7;
  color: rgba(245, 245, 245, 0.55);
}

.symptoms-remate {
  margin-top: 40px;
}

.symptoms-remate p {
  font-family: var(--font-hero);
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--white);
  max-width: 720px;
}

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

  .symptom-item {
    padding: 28px 24px;
  }

  .symptoms-remate p {
    font-size: 1rem;
  }
}

/* ════════════════════════════════════════════════════════════════
   SERVICIOS
   ════════════════════════════════════════════════════════════════ */

.services {
  background: var(--black);
  color: var(--white);
  padding: var(--section-v) 0 0;
  border-top: 1px solid rgba(245, 245, 245, 0.07);
  position: relative;
}

.services-header {
  margin-bottom: 56px;
  max-width: 680px;
}

.services-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  letter-spacing: 0.02em;
  line-height: 1;
  margin-top: 16px;
  margin-bottom: 20px;
}

.services-intro {
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  color: rgba(245, 245, 245, 0.55);
  line-height: 1.65;
}

/* Grid de cards */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2px;
  background: rgba(245, 245, 245, 0.08);
  border: 1px solid rgba(245, 245, 245, 0.08);
  margin-bottom: 64px;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--black);
  overflow: hidden;
}

.service-card--soon {
  opacity: 0.45;
}

/* Header de color de cada card */
.service-card-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 36px 24px;
}

.service-card-header--1 { background: #1D9E75; }
.service-card-header--2 { background: #14705A; }
.service-card-header--3 { background: #0D4A3C; }

/* Cuerpo de la card */
.service-card-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 36px 36px;
  flex: 1;
}

.service-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 4px 10px;
  width: fit-content;
}

.service-badge--soon {
  color: rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.2);
}

.service-name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: #ffffff;
}

.service-subtitle {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.service-price {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
}

.service-delivery {
  font-size: 0.82rem;
  color: rgba(245, 245, 245, 0.4);
  letter-spacing: 0.02em;
}

.service-desc {
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(245, 245, 245, 0.6);
  white-space: pre-line;
  flex: 1;
}

.service-cta {
  align-self: flex-start;
  margin-top: auto;
}

/* CTA global */
.services-cta-wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 80px;
}

.services-cta-label {
  font-size: 0.95rem;
  color: rgba(245, 245, 245, 0.5);
}

/* Logos flotantes en servicios */
.services-logos {
  position: relative;
  top: auto;
  right: auto;
  width: 100%;
  height: 160px;
  margin-bottom: 56px;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.service-cta {
  font-size: 0.88rem;
  padding: 11px 20px;
}

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

  .services-cta-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* ════════════════════════════════════════════════════════════════
   WORLDS — los tres bloques visuales
   ════════════════════════════════════════════════════════════════ */

.world--auto {
  background: var(--black);
  color: var(--white);
  overflow: visible;
  position: relative;
}

.world--airtable {
  background-color: var(--ivory);
  background-image: radial-gradient(circle, var(--dot-color) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--black);
}

.world--airtable h2,
.world--airtable h3 {
  color: var(--black);
}

.world--airtable p {
  color: rgba(10, 10, 10, 0.65);
}

.world--white {
  background: var(--pure-white);
  color: var(--black);
}

.world--white h2,
.world--white h3 {
  color: var(--black);
}

.world--white p {
  color: rgba(10, 10, 10, 0.65);
}

.world-placeholder {
  padding: var(--section-v) 0;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ════════════════════════════════════════════════════════════════
   HERO FLOAT — frase flotante sobre el divisor central
   ════════════════════════════════════════════════════════════════ */
.hero-float {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  white-space: nowrap;
  pointer-events: none;
  padding: 7px 20px;
  border-radius: 99px;
  background: rgba(248, 247, 242, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-float-context {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1rem, 1.47vw, 1.26rem);
  color: rgba(10, 10, 10, 0.5);
  line-height: 1;
}

@media (max-width: 768px) {
  .hero-float { display: none; }
}

/* ════════════════════════════════════════════════════════════════
   HERO V2 — filosófico + scroll scrubbing
   ════════════════════════════════════════════════════════════════ */
/* Wrapper sticky — bloquea scroll hasta completar el relleno */
.hero-v2-wrapper {
  position: relative;
  height: 250vh;
}

.hero-v2 {
  position: sticky;
  top: 72px;
  height: calc(100svh - 72px);
  background: var(--ivory);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: clamp(48px, 8vw, 96px) clamp(24px, 6vw, 80px);
}

/* Logo símbolo de fondo */
.hv2-bg-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(108vw, 108vh);
  opacity: 0.05;
  pointer-events: none;
  will-change: transform;
}

.hv2-bg-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: invert(1);
}

/* Contenido central */
.hv2-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 900px;
  width: 100%;
  gap: 32px;
}

/* Frase principal */
.hv2-manifesto {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  align-items: center;
  text-align: center;
}

.hv2-line {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.2rem, 2.4vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: rgba(10, 10, 10, 0.18);
  position: relative;
  white-space: normal;
}

/* Capa de relleno — clip progresivo via JS */
.hv2-line::after {
  content: attr(data-current);
  position: absolute;
  inset: 0;
  color: var(--black);
  clip-path: inset(0 var(--clip, 100%) 0 0);
  transition: none;
  white-space: nowrap;
}

/* Titular principal del hero */
.hv2-headline-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.hv2-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.0;
  color: var(--black);
  text-align: center;
}

.hv2-subline {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1.3vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  color: rgba(10, 10, 10, 0.4);
  text-align: center;
}

/* CTA dentro del hero */
.hv2-cta-wrap {
  display: flex;
  justify-content: center;
}

.hv2-cta-btn {
  background: var(--cta);
  color: var(--black);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 0;
  border: none;
  padding: 12px 24px;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.15s ease;
}

.hv2-cta-btn:hover {
  background: var(--cta-hover);
  transform: translateY(-1px);
}

/* Remate — wrapper relativo para el canvas de partículas */
.hv2-remate-wrap {
  position: relative;
  display: inline-block;
  text-align: center;
}

/* Remate */
.hv2-remate {
  font-family: 'Space Grotesk', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: clamp(1.01rem, 2.02vw, 1.73rem);
  letter-spacing: 0.01em;
  text-align: center;
  background: linear-gradient(135deg, #8B7355 0%, #6B5435 40%, #7A6245 70%, #5C4A2A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.2;
  transform: scale(1);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hv2-remate.visible {
  opacity: 1;
  transform: scale(1.10);
}


/* Servicios */
.hv2-services {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  border-top: 1px solid rgba(10, 10, 10, 0.1);
  z-index: 2;
}

.hv2-service {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 20px clamp(24px, 4vw, 64px);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  letter-spacing: 0.06em;
  transition: background 0.3s ease;
  gap: 12px;
}

.hv2-service svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Outline — estado inicial */
.hv2-service--auto {
  color: rgba(29, 158, 117, 0.25);
  border-right: 1px solid rgba(10, 10, 10, 0.1);
}

.hv2-service--airtable {
  color: rgba(45, 123, 238, 0.25);
}

/* Relleno — estado activo (JS añade .filled) */
.hv2-service--auto.filled {
  color: var(--neon);
  -webkit-text-stroke: 0;
}

.hv2-service--airtable.filled {
  color: var(--airtable-deep);
  -webkit-text-stroke: 0;
}

.hv2-service:hover {
  background: rgba(10, 10, 10, 0.03);
}

.hv2-service-divider {
  width: 1px;
  background: rgba(10, 10, 10, 0.1);
}

.hv2-service--cta {
  color: rgba(207, 181, 59, 0.4);
  justify-content: center;
}

.hv2-service--cta.filled {
  color: var(--cta);
  -webkit-text-stroke: 0;
}

.hv2-service--cta:hover {
  background: rgba(207, 181, 59, 0.06);
  color: var(--cta);
}

.hv2-line--mobile { display: none; }

@media (max-width: 768px) {
  .hv2-line { font-size: clamp(1.9rem, 7.6vw, 2.8rem); white-space: nowrap; overflow: hidden; }
  .hv2-headline { font-size: clamp(1.8rem, 7vw, 2.8rem); }
  .hv2-content { gap: 20px; padding: 0 16px; }
  .hv2-line--desktop { display: none; }
  .hv2-line--mobile { display: block; }
}

/* ════════════════════════════════════════════════════════════════
   HERO — split horizontal en dos mitades
   ════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  display: flex;
  min-height: calc((100svh - 72px) * 0.875);
  margin-top: 72px;
}

/* ── Mitades ────────────────────────────────────────────── */
.hero-half {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(60px, 8vw, 100px) clamp(40px, 5vw, 80px);
  transition: flex 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover: la mitad enfocada gana un poco de espacio */

/* Mitad izquierda: marfil + grid tenue */
.hero-half--auto {
  background: var(--ivory);
  color: var(--black);
}

/* Grid animado sobre marfil */
.hero-half--auto .hero-canvas {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(10, 10, 10, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 10, 10, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: grid-drift 30s linear infinite;
  pointer-events: none;
}

@keyframes grid-drift {
  0%   { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

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

/* Spotlight verde tenue sobre marfil */
.hero-half--auto::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 70%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(29, 158, 117, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

/* Divisor entre mitades */
.hero-half--auto::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(10, 10, 10, 0.12) 20%,
    rgba(10, 10, 10, 0.12) 80%,
    transparent 100%);
}

/* Mitad derecha: marfil + dot grid */
.hero-half--airtable {
  background-color: var(--ivory);
  background-image: radial-gradient(circle, rgba(10, 10, 10, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--black);
}

/* Spotlight azul tenue sobre marfil */
.hero-half--airtable::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(0, 88, 220, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Contenido ─────────────────────────────────────────── */
.hero-half-content {
  position: relative;
  z-index: 2;
  max-width: 480px;
}

/* Tag superior con dot */
.hero-half-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-half--auto .hero-half-tag     { color: rgba(10, 10, 10, 0.5); }
.hero-half--airtable .hero-half-tag { color: rgba(10, 10, 10, 0.5); }

/* Pill dot */
.pill-dot {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pill-dot--neon { background: var(--neon);         box-shadow: 0 0 6px rgba(29, 158, 117, 0.7); }
.pill-dot--blue { background: var(--airtable-blue); box-shadow: 0 0 6px rgba(24, 191, 255, 0.7); }

/* Headline */
.hero-headline {
  font-family: var(--font-hero);
  font-weight: 600;
  font-size: clamp(2rem, 3.2vw, 3.8rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.hero-headline .line        { display: block; }
.hero-headline .accent      { color: var(--neon); }
.hero-headline .accent--blue { color: var(--airtable-deep); }

.hero-half--auto .hero-headline     { color: var(--black); }
.hero-headline--airtable            { color: var(--black); }

/* Subheadline */
.hero-sub {
  font-size: clamp(0.88rem, 1.3vw, 1rem);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 38ch;
}

.hero-half--auto .hero-sub { color: rgba(10, 10, 10, 0.6); }
.hero-sub--dark            { color: rgba(10, 10, 10, 0.6); }

/* Scroll indicator — línea animada sobre el divisor completo */
.hero-scroll-indicator {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 1.5px;
  overflow: hidden;
  pointer-events: none;
}

.hero-scroll-indicator span {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 25%;
  background: linear-gradient(to bottom,
    transparent,
    rgba(10, 10, 10, 0.25) 30%,
    rgba(10, 10, 10, 0.25) 70%,
    transparent);
  animation: scroll-line 2.5s ease-in-out infinite;
}

@keyframes scroll-line {
  0%   { top: -25%; }
  100% { top: 100%; }
}

/* ── Mobile: stack vertical ────────────────────────────── */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    min-height: auto;
  }

  .hero-half {
    flex: none;
    width: 100%;
    padding: clamp(48px, 10vw, 80px) clamp(24px, 6vw, 40px);
  }

  .hero:hover .hero-half:hover,
  .hero:hover .hero-half:not(:hover) { flex: none; }

  .hero-half--auto::after { display: none; }

  .hero-half-content { max-width: 100%; }

  .hero-scroll-indicator { display: none; }
}

/* ════════════════════════════════════════════════════════════════
   IA LINE — entre hero y worlds
   ════════════════════════════════════════════════════════════════ */
.hero-ai-line {
  background: var(--black);
  border-top: 1px solid rgba(180, 180, 180, 0.12);
  border-bottom: 1px solid rgba(180, 180, 180, 0.12);
  padding: clamp(27px, 3.75vw, 39px) clamp(20px, 5vw, 60px);
  text-align: center;
  min-height: calc((100svh - 72px) * 0.1875);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* Gradiente metálico plateado — compartido */
.hero-ai-line span {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.5rem, 2.85vw, 2.25rem);
  background: linear-gradient(
    100deg,
    #4A4A4A 0%,
    #9A9A9A calc(var(--light-pos, 58%) - 38%),
    #D8D8D8 calc(var(--light-pos, 58%) - 20%),
    #F5F5F5 var(--light-pos, 58%),
    #C0C0C0 calc(var(--light-pos, 58%) + 14%),
    #888888 calc(var(--light-pos, 58%) + 28%),
    #4A4A4A 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 5px rgba(200, 200, 200, 0.15));
}

/* ════════════════════════════════════════════════════════════════
   FLOATING LOGOS — rebotando en el espacio vacío del world-header
   ════════════════════════════════════════════════════════════════ */
.floating-logos {
  position: absolute;
  top: 50px;
  right: 0;
  width: 38%;
  height: 480px;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}

.fl-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.fl-logo {
  position: absolute;
  width: 40px;
  height: 40px;
  object-fit: contain;
  opacity: 0.65;
  will-change: transform;
}


/* ════════════════════════════════════════════════════════════════
   WORLD HEADERS — título traslúcido identificador de mundo
   ════════════════════════════════════════════════════════════════ */
.world-header {
  overflow: hidden;
  padding: clamp(48px, 7vw, 88px) 0 0;
  pointer-events: none;
  user-select: none;
}

.world-header span {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 10vw, 10rem);
  line-height: 0.9;
  letter-spacing: 0.04em;
  white-space: nowrap;
  padding-left: clamp(24px, 4vw, 64px);
}

/* Automatización — blanco apagado sobre negro */
.world-header--auto span {
  color: rgba(255, 255, 255, 0.13);
}

/* Airtable — azul Airtable apagado sobre marfil */
.world-header--airtable span {
  color: rgba(0, 88, 220, 0.14);
}

/* ════════════════════════════════════════════════════════════════
   MUNDO AUTOMATIZACIÓN — statement + pain strip
   ════════════════════════════════════════════════════════════════ */
.auto-intro {
  padding: clamp(56px, 8vw, 100px) 0 clamp(40px, 5vw, 64px);
}

.world-statement-block {
  margin-bottom: clamp(32px, 4vw, 48px);
}

.world-statement {
  font-family: var(--font-hero);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.8vw, 2.4rem);
  color: var(--white);
  line-height: 1.2;
  max-width: 28ch;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.world-statement-sub {
  font-family: var(--font-hero);
  font-weight: 400;
  font-size: clamp(0.88rem, 1.2vw, 1rem);
  color: rgba(245, 245, 245, 0.35);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-left: 2px;
}

.world-statement-sub::before {
  content: '— ';
  color: var(--neon-dim);
  opacity: 0.6;
}

.pain-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.pain-strip li {
  padding: 24px 28px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: clamp(0.88rem, 1.3vw, 0.98rem);
  color: rgba(245, 245, 245, 0.55);
  line-height: 1.65;
}

.pain-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.35);
  margin-bottom: 14px;
}

.pain-label--dark {
  color: rgba(10, 10, 10, 0.35);
}

.pain-strip li::before {
  content: '—';
  display: block;
  color: #c0392b;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .pain-strip {
    grid-template-columns: 1fr;
  }
}

/* ════════════════════════════════════════════════════════════════
   MUNDO AIRTABLE — variantes sobre fondo claro
   ════════════════════════════════════════════════════════════════ */
.airtable-intro {
  padding: clamp(56px, 8vw, 100px) 0 clamp(40px, 5vw, 64px);
}

/* Statement oscuro (sobre marfil) */
.world-statement--dark {
  color: var(--black);
}

.world-statement-sub--dark {
  color: rgba(10, 10, 10, 0.35);
}

.world-statement-sub--dark::before {
  color: var(--airtable-deep);
  opacity: 0.7;
}

/* Pain strip sobre fondo claro */
.pain-strip--light li {
  background: rgba(10, 10, 10, 0.03);
  border: 1px solid rgba(10, 10, 10, 0.08);
  color: rgba(10, 10, 10, 0.6);
}

.pain-strip--light li::before {
  color: #c0392b;
  opacity: 0.85;
}

/* Fila explainer + botón */
.explainer-row {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
  margin-top: clamp(32px, 4vw, 48px);
  flex-wrap: wrap;
}

.explainer-btn {
  flex-shrink: 0;
  font-size: 1.02rem;
  padding: 13px 26px;
  background: var(--cta);
  color: var(--black);
  border: none;
  font-weight: 700;
}

.explainer-btn:hover {
  background: var(--cta-hover);
  transform: translateY(-2px);
  border: none;
}

/* Bloque explicativo — compartido */
.airtable-explainer,
.auto-explainer {
  max-width: 56ch;
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  line-height: 1.8;
  padding-left: 20px;
}

.airtable-explainer {
  color: rgba(10, 10, 10, 0.55);
  border-left: 2px solid var(--airtable-blue);
}

.auto-explainer {
  color: rgba(245, 245, 245, 0.5);
  border-left: 2px solid var(--neon-dim);
}

/* Case study sobre fondo claro */
.case-study--light {
  border-top: 1px solid rgba(10, 10, 10, 0.08);
}

.case-study--light::before {
  color: rgba(10, 10, 10, 0.04);
}

.case-title--dark { color: var(--black) !important; }

.case-client--dark {
  color: rgba(10, 10, 10, 0.35);
}

.case-context--dark {
  color: rgba(10, 10, 10, 0.5);
}

/* Métricas sobre fondo claro */
.metrics-grid--light .metric-card--light {
  background: rgba(10, 10, 10, 0.04);
}

.metrics-grid--light .metric-card--light:hover {
  background: rgba(10, 10, 10, 0.07);
}

.metrics-grid--light .metric-card--light::before {
  background: var(--airtable-blue);
}

.metrics-grid--light .metric-number--dark {
  color: var(--airtable-deep) !important;
}

.metrics-grid--light .metric-unit {
  color: var(--airtable-deep);
  opacity: 0.7;
}

.metrics-grid--light .metric-desc--dark {
  color: rgba(10, 10, 10, 0.55) !important;
}

/* Quote sobre fondo claro */
.case-quote--dark {
  border-left-color: var(--airtable-blue) !important;
}

.case-quote--dark p {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.6vw, 1.2rem) !important;
  font-weight: 500;
  font-style: italic;
  color: rgba(10, 10, 10, 0.75) !important;
  margin-bottom: 10px;
}

.case-quote--dark cite {
  color: rgba(10, 10, 10, 0.4) !important;
}

/* ════════════════════════════════════════════════════════════════
   SUBSECCIÓN SAP
   ════════════════════════════════════════════════════════════════ */
/* Puente de transición entre card y sección SAP */
.sap-transition-in {
  height: 120px;
  background: linear-gradient(
    to bottom,
    #0A0A0A 0%,
    #001428 50%,
    #2A2A2A 100%
  );
  margin: 0;
}

.sap-section {
  border-left: 4px solid #003366;
  position: relative;
  margin-bottom: 60px;
  background: #2A2A2A;
  padding: clamp(48px, 6vw, 80px) 0 clamp(40px, 5vw, 64px);
}

/* Franja salida: gris → azul → azul sólido (cierre del mundo) */
.sap-section::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -4px;
  right: 0;
  height: 60px;
  background: linear-gradient(
    to bottom,
    #2A2A2A 0%,
    #002244 50%,
    #003366 100%
  );
  pointer-events: none;
}

.sap-inner {
  display: flex;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.sap-left {
  flex: 1;
  min-width: 0;
}

.sap-titles {
  margin-bottom: 24px;
}

.sap-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--white);
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 6px;
}

.sap-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.72rem, 1vw, 0.82rem);
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.sap-copy {
  font-size: clamp(0.9rem, 1.3vw, 1rem);
  color: rgba(245, 245, 245, 0.55);
  line-height: 1.8;
  max-width: 58ch;
  margin-bottom: 20px;
  border-left: 2px solid #003366;
  padding-left: 20px;
}

.sap-credential {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  color: #999999;
}

.sap-right {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.sap-logo {
  width: clamp(100px, 12vw, 160px);
  opacity: 0.85;
}

.sap-right .sap-credential {
  text-align: center;
  font-size: clamp(1.28rem, 1.8vw, 1.5rem);
}

.sap-btn {
  margin-top: 20px;
}

@media (max-width: 768px) {
  .sap-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .sap-logo { width: 100px; }
}

/* ════════════════════════════════════════════════════════════════
   CASO DE ÉXITO — GOLDKEY (dentro de world--auto)
   ════════════════════════════════════════════════════════════════ */
.case-study {
  background: transparent;
  padding: clamp(24px, 3vw, 40px) 0 clamp(56px, 8vw, 100px);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.case-study::before {
  content: 'GOLDKEY';
  position: absolute;
  bottom: -0.1em;
  right: -0.05em;
  font-family: var(--font-display);
  font-size: clamp(8rem, 20vw, 22rem);
  color: rgba(255, 255, 255, 0.025);
  line-height: 1;
  pointer-events: none;
  letter-spacing: -0.02em;
}

.case-header {
  margin-bottom: clamp(40px, 5vw, 64px);
}

.case-header h2 {
  color: var(--white);
}

.case-client {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 1.3vw, 1.1rem);
  letter-spacing: 0.12em;
  color: rgba(245, 245, 245, 0.4);
  margin-top: 10px;
}

.case-context {
  max-width: 56ch;
  color: rgba(245, 245, 245, 0.55);
  margin-top: 20px;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.7;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-bottom: 60px;
}

.metric-card {
  background: var(--dark-gray);
  padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: background var(--transition);
}

.metric-card:hover {
  background: #1e1e35;
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--neon);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.metric-card:hover::before,
.metric-card.aos-animate::before {
  transform: scaleY(1);
}

.metric-number {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 6vw, 6rem);
  color: var(--neon);
  line-height: 1;
  letter-spacing: -0.01em;
}

.metric-unit {
  font-size: 0.6em;
  opacity: 0.8;
}

.metric-desc {
  font-size: clamp(0.82rem, 1.2vw, 0.95rem);
  color: rgba(245, 245, 245, 0.55);
  line-height: 1.45;
  font-weight: 400;
}

/* Métricas pequeñas (caso Automatización) */
.metrics-grid--sm .metric-card {
  padding: clamp(20px, 2.5vw, 28px) clamp(16px, 2vw, 24px);
}

.metrics-grid--sm .metric-number {
  font-size: clamp(2.4rem, 4vw, 3.8rem);
}

/* Tarjeta 20min → 2min */
.metric-number--arrow {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.metric-before {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.6rem);
  color: rgba(245, 245, 245, 0.3);
  line-height: 1;
}

.metric-arrow {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.6vw, 1.4rem);
  color: rgba(245, 245, 245, 0.25);
  font-weight: 300;
}

.metric-after {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  color: var(--neon);
  line-height: 1;
}

.case-quote {
  border-left: 3px solid var(--neon);
  padding-left: 28px;
  max-width: 36ch;
}

.case-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  color: var(--white);
  margin-bottom: 12px;
}

.case-quote cite {
  font-style: normal;
  font-size: 0.88rem;
  color: rgba(245, 245, 245, 0.45);
  letter-spacing: 0.06em;
}

/* ════════════════════════════════════════════════════════════════
   CASE CARDS — casos compactos adicionales
   ════════════════════════════════════════════════════════════════ */
.case-cards {
  padding: 0 0 clamp(48px, 7vw, 80px);
}

.case-cards--light {
  padding: 0 0 clamp(48px, 7vw, 80px);
}

.case-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

.case-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background var(--transition);
}

.case-card:hover {
  background: rgba(255, 255, 255, 0.07);
}

.case-card--light {
  background: #e8e8e3;
  border: none;
  padding: clamp(40px, 5vw, 72px) 0;
}

.case-card--light:hover {
  background: #e2e2dc;
}

.case-card-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.case-card-client {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  letter-spacing: 0.06em;
  color: var(--white);
}

.case-card--light .case-card-client {
  color: var(--black);
}

.case-card-sector {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neon-dim);
}

.case-card--light .case-card-sector {
  color: var(--airtable-deep);
}

.case-card-desc {
  font-size: clamp(0.86rem, 1.2vw, 0.94rem);
  color: rgba(245, 245, 245, 0.5);
  line-height: 1.65;
}

.case-card--light .case-card-desc {
  color: rgba(10, 10, 10, 0.55);
}

.case-card-metrics {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.case-card--light .case-card-metrics {
  border-top-color: rgba(10, 10, 10, 0.08);
}

.case-card-metrics span {
  font-size: 0.82rem;
  color: rgba(245, 245, 245, 0.4);
}

.case-card--light .case-card-metrics span {
  color: rgba(10, 10, 10, 0.45);
}

.case-card-metrics strong {
  color: var(--neon);
  font-weight: 700;
}

.case-card--light .case-card-metrics strong {
  color: var(--airtable-deep);
}

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

/* ════════════════════════════════════════════════════════════════
   EQUIPO — foto izquierda, perfiles en diagonal derecha
   ════════════════════════════════════════════════════════════════ */
.team-section {
  padding: var(--section-v) 0;
  border-bottom: 1px solid rgba(10, 10, 10, 0.07);
}

.team-section .section-tag {
  display: block;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
}

.team-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.team-avatar {
  flex-shrink: 0;
  width: clamp(73px, 9.1vw, 104px);
  height: clamp(73px, 9.1vw, 104px);
  border-radius: 50%;
  overflow: hidden;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-avatar--placeholder {
  background: #DDDDD8;
}

.team-card-body {
  flex: 1;
  min-width: 0;
}

.team-card-body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  color: var(--black);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.team-role {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(10, 10, 10, 0.35);
  margin-bottom: 12px;
}

.team-card-body p {
  font-size: clamp(0.88rem, 1.3vw, 0.98rem);
  color: rgba(10, 10, 10, 0.6);
  line-height: 1.75;
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: clamp(32px, 6vw, 48px);
  }
}

/* ════════════════════════════════════════════════════════════════
   CONTACT — dentro de world--white
   ════════════════════════════════════════════════════════════════ */
.contact {
  padding: var(--section-v) 0;
  border-top: 1px solid rgba(10, 10, 10, 0.08);
}

.contact-calendly {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  max-width: 560px;
}

.contact-calendly h2 {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  color: var(--black);
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  line-height: 1;
}

.contact-calendly p {
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  color: rgba(10, 10, 10, 0.55);
  line-height: 1.65;
}

.contact-calendly .btn-nav-cta {
  color: var(--black);
}

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

.contact-left h2 {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  color: var(--black);
  margin-bottom: 20px;
  line-height: 1;
}

.contact-left p {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  color: rgba(10, 10, 10, 0.6);
  line-height: 1.75;
  max-width: 36ch;
}

.contact-left .section-tag {
  color: var(--mid-gray);
}

/* ── Form ──────────────────────────────────────────────── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(10, 10, 10, 0.45);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  background: #F4F4F0;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--black);
  transition: border-color var(--transition), background var(--transition);
  outline: none;
  resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(10, 10, 10, 0.3);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(10, 10, 10, 0.3);
  background: #EFEFE9;
}

/* Checkbox */
.form-group--checkbox {
  margin-top: 2px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  min-width: 15px;
  margin-top: 2px;
  accent-color: var(--black);
  cursor: pointer;
}

.checkbox-text {
  font-size: 0.82rem;
  color: rgba(10, 10, 10, 0.5);
  line-height: 1.5;
}

.privacy-link {
  text-decoration: underline;
  color: inherit;
  transition: color var(--transition);
}

.privacy-link:hover {
  color: var(--black);
}

/* Feedback */
#form-feedback {
  font-size: 0.88rem;
  font-weight: 500;
  min-height: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-left p {
    max-width: 100%;
  }
}

/* ════════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--black);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 60px 0 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
  align-items: start;
}

.footer-brand .logo {
  font-size: 1.4rem;
  display: block;
  margin-bottom: 12px;
  gap: 0;
}

.footer-brand p {
  font-size: 0.88rem;
  color: rgba(245, 245, 245, 0.4);
  max-width: 28ch;
  line-height: 1.6;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a {
  font-size: 0.9rem;
  color: rgba(245, 245, 245, 0.55);
  transition: color var(--transition);
}

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

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: rgba(245, 245, 245, 0.55);
  transition: color var(--transition);
}

.footer-link:hover {
  color: var(--neon);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(245, 245, 245, 0.3);
}

/* ════════════════════════════════════════════════════════════════
   CASE CARDS — versión compacta
   ════════════════════════════════════════════════════════════════ */
.case-card {
  padding: clamp(24px, 3vw, 36px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.case-card--light {
  border-top: 1px solid rgba(10, 10, 10, 0.08);
}

.case-card-inner {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  flex-wrap: wrap;
}

.case-card-left {
  flex: 1;
  min-width: 200px;
}

.case-card-tag {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neon-dim);
  margin-bottom: 6px;
}

.case-card--light .case-card-tag {
  color: var(--airtable-deep);
}

.case-card-client {
  font-size: 0.78rem;
  color: rgba(245, 245, 245, 0.35);
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}

.case-card-client--dark {
  color: var(--cta);
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
}

.case-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  color: var(--white);
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.case-card-title--dark {
  color: var(--black);
}

.case-card-quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  color: rgba(10, 10, 10, 0.4);
  margin-top: 8px;
}

.case-card-metrics {
  display: flex;
  gap: clamp(16px, 3vw, 40px);
  flex-wrap: wrap;
}

.case-card-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 56px;
}

.case-card-number {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.75vw, 3.3rem) !important;
  color: var(--neon);
  line-height: 1;
  letter-spacing: 0.02em;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.case-card-metric--dark .case-card-number {
  color: var(--airtable-deep);
}

.case-card-metric:hover .case-card-number {
  color: var(--neon);
  text-shadow: 0 0 16px rgba(29, 158, 117, 0.6);
}

.case-card-metric--dark:hover .case-card-number {
  color: var(--airtable-blue);
  text-shadow: 0 0 16px rgba(24, 191, 255, 0.5);
}

.case-card-unit {
  font-size: 0.6em;
  opacity: 0.7;
}

.case-card-desc {
  font-size: 0.78rem;
  color: rgba(245, 245, 245, 0.4);
  text-align: center;
  line-height: 1.3;
  max-width: 100px;
}

.case-card-metric--dark .case-card-desc {
  color: rgba(10, 10, 10, 0.4);
}

/* ════════════════════════════════════════════════════════════════
   AOS OVERRIDES — neutralizar el slide desde abajo, solo fade de opacidad
   ════════════════════════════════════════════════════════════════ */
[data-aos] {
  transition-duration: 0.6s !important;
  transition-timing-function: ease !important;
}

[data-aos="fade-up"] {
  transform: none !important;
}

[data-aos="zoom-in"] {
  transform: none !important;
}

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 1024px)
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 768px)
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .btn-nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

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

  .metric-number {
    font-size: clamp(2.8rem, 11vw, 4rem);
  }
}

/* ════════════════════════════════════════════════════════════════
   HORIZONTAL SCROLL GALLERY
   ════════════════════════════════════════════════════════════════ */

/* Wrapper — altura calculada por JS según ancho real del track */
.hscroll-wrapper {
  position: relative;
  height: 210vh; /* fallback; JS lo sobreescribe */
}

/* Sticky container — se queda fijo mientras el wrapper pasa */
.hscroll-sticky {
  position: sticky;
  top: 72px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(40px, 5vw, 64px) 0 clamp(40px, 5vw, 64px) clamp(24px, 4vw, 64px);
}

/* Etiqueta superior */
.hscroll-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.35);
  margin-bottom: 28px;
  flex-shrink: 0;
}

.hscroll-label--dark {
  color: rgba(10, 10, 10, 0.35);
}

/* Track — contenedor horizontal de las cards, se mueve via JS */
.hscroll-track {
  display: flex;
  gap: 24px;
  will-change: transform;
  align-items: flex-start;
  padding-bottom: 32px;
}

/* Spacer al final del track para que la última card quede completamente visible */
.hscroll-spacer {
  flex-shrink: 0;
  width: clamp(200px, 25vw, 400px);
}

/* Card individual */
.hscroll-card {
  flex-shrink: 0;
  width: clamp(256px, 30vw, 448px);
  transform: translateY(var(--card-offset, 0px));
}

/* Imagen / placeholder 16:9 */
.hscroll-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

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

/* Placeholder — mundo oscuro */
.hscroll-img--placeholder {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hscroll-img--placeholder span {
  font-size: 0.78rem;
  font-family: var(--font-body);
  color: rgba(245, 245, 245, 0.25);
  letter-spacing: 0.04em;
}

/* Placeholder — mundo claro */
.hscroll-img--placeholder-light {
  background: rgba(10, 10, 10, 0.04);
  border: 1px solid rgba(10, 10, 10, 0.1);
}

.hscroll-img--placeholder-light span {
  color: rgba(10, 10, 10, 0.25);
}

/* Mobile — scroll horizontal nativo, sin JS */
@media (max-width: 768px) {
  .hscroll-wrapper {
    height: auto;
  }

  .hscroll-sticky {
    position: relative;
    top: auto;
    height: auto;
    padding: clamp(40px, 6vw, 64px) 0 clamp(40px, 6vw, 64px) 20px;
  }

  .hscroll-track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 16px;
    padding-right: 20px;
  }

  .hscroll-card {
    width: 80vw;
    scroll-snap-align: start;
    transform: none !important;
  }
}
