/* reset */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* ===== Intro splash ===== */
#intro-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
}

.intro-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.intro-welcome {
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  opacity: 0; /* JS types content in and reveals */
  min-height: 1.2em; /* reserve space before text appears */
}

.intro-cursor {
  display: inline-block;
  margin-left: 1px;
  animation: intro-cursor-blink 0.55s step-end infinite;
}

@keyframes intro-cursor-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.intro-logo {
  /* Render at 300px so the GPU texture is 3× larger — the zoom scale
     factor drops from ~5× to ~1.7×, eliminating visible pixelation. */
  height: 300px;
  width: auto;
  opacity: 0; /* JS controls fade-in */
}

:root {
  --header-h: 88px;
  --page-pad-x: 36px;

  /* Orbit / card accent colors */
  --c-fin: #E8B84B;          /* warm gold — Financiamiento */
  --c-gest: #7FB5D0;         /* steel blue — Gestión */
  --c-tech: #B8C4CC;         /* silver mist — Tecnología */

  /* RGB channels for rgba() usage */
  --c-fin-rgb: 232,184,75;
  --c-gest-rgb: 127,181,208;
  --c-tech-rgb: 184,196,204;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 0;
}
html,body {
  height: 100%;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: white;
}

/* background — fixed pseudo-element works on all platforms including iOS Safari
   (background-attachment:fixed is broken on iOS; position:fixed on ::before is not) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url("./bg.jpg") center center / cover no-repeat;
  z-index: 0;
  pointer-events: none;
}
body {
  min-height: 100vh;
  overflow: auto;
  position: relative;
}

/* progressive dark overlay */
.scroll-dark-overlay {
  position: fixed;
  inset: 0;
  background: #000;        /* ensures full black when opacity reaches 1 */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s linear;
  z-index: 1; /* below header (1000) but above background */
}

/* soft vignette on top of the black overlay (still ends in full black) */
.scroll-dark-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 30%,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.55) 62%,
    rgba(0,0,0,1) 100%
  );
}

/* header area - fixed transparent bar with blur */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 var(--page-pad-x);
}

/* header layout zones */
.header-inner {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

.nav {
  justify-self: center;   /* center menu */
  display: flex;
  gap: 22px;
  align-items: center;
}
.nav a {
  color: rgba(255,255,255,0.95);
  text-decoration: none;
  font-weight: 500;
  padding: 6px 8px;
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 8px;
  right: 8px;
  height: 1px;
  background: white;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav a:hover { opacity: 1; }
.nav a:hover::after { transform: scaleX(1); }

.auth-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-outline {
  border: 1px solid rgba(255,255,255,0.7);
  color: white;
  background: transparent;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
}

.btn-filled {
  background: white;
  color: black;
  border: 1px solid white;
}

.btn-filled:hover {
  opacity: 0.85;
}

/* Hero diagnostic CTA */
.btn-diag {
  display: inline-block;
  margin-top: 28px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: white;
  text-decoration: none;
  padding: 13px 26px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  transition: border-color 0.2s, background 0.2s;
}
.btn-diag:hover {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.10);
}

/* add header shading only after the user starts scrolling */
.header.scrolled {
  background: rgba(0,0,0,0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* brand/logo */
.brand {
  display: flex;
  align-items: center;
  height: 100%;
}
.brand img {
  height: 64px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* section top lands at viewport top; internal padding-top handles header offset */
section[id] { scroll-margin-top: 0; }

/* main content split left (text) / right (image placeholder) */
.main {
  display: flex;
  gap: 36px;
  padding: calc(var(--header-h) + 24px) 48px 48px 48px; /* top padding accounts for header */
  align-items: center;
  min-height: 100vh;
  z-index: 5;
  position: relative;
}

/* Content sections (nivel3, nivel4) — tighter top padding */
#nivel3.main, #nivel4.main {
  padding-top: calc(var(--header-h) + 4px);
  align-items: flex-start;
}

/* Soluciones (nivel2) cards layout */
.main.services {
  align-items: flex-start;
  justify-content: flex-start;
  padding: calc(var(--header-h) + 4px) 48px 48px 48px;
}

.services-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.services-head {
  margin-top: 6px;
  margin-bottom: 8px;
}

.services-title {
  margin-top: 10px;
  margin-bottom: 26px;
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: center;
}

.services-head .services-kicker {
  max-width: 980px;
  margin: 0 auto;
  font-size: 1.65rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
  opacity: 0.95;
  text-align: center;
}

.services-subkicker{
  max-width: 860px;
  margin: 14px auto 0 auto;
  font-size: 1.05rem;
  line-height: 1.55;
  opacity: 0.85;
  text-align: center;
}

.service-card .card-lead{
  margin-bottom: 12px;
  opacity: 0.9;
  line-height: 1.55;
}

.service-card ul{
  margin: 0;
  padding-left: 18px;
  opacity: 0.82;
  line-height: 1.55;
}

.service-card li{ margin: 6px 0; }

.service-card .card-closer{
  margin-top: 14px;
  opacity: 0.88;
  line-height: 1.55;
}

@media (max-width: 900px){
  .services-subkicker{ text-align: center; }
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: card-num;
}

.service-card {
  opacity: 0;
  translate: 0 52px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 0;
  transition: opacity 0.75s cubic-bezier(0.22,1,0.36,1),
              translate 0.75s cubic-bezier(0.22,1,0.36,1),
              transform 0.28s ease,
              border-color 0.28s ease,
              box-shadow 0.28s ease;
  counter-increment: card-num;
  position: relative;
}

.service-card.in-view {
  opacity: 1;
  translate: 0 0;
}

/* colored top accent bar */
.service-card::before {
  content: '';
  display: block;
  height: 3px;
  width: 100%;
  background: var(--card-color, white);
  opacity: 0.7;
  border-radius: 18px 18px 0 0;
  transition: opacity 0.28s ease;
}
.service-card:hover::before { opacity: 1; }
.service-card.fin  { --card-color: var(--c-fin); }
.service-card.gest { --card-color: var(--c-gest); }
.service-card.tech { --card-color: var(--c-tech); }

/* card number badge */
.service-card::after {
  content: counter(card-num, decimal-leading-zero);
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--card-color, white);
  opacity: 0.55;
}

.card-body { padding: 22px 22px 22px 22px; }

.service-card:hover { transform: translateY(-6px); }
.service-card.fin:hover  { border-color: rgba(var(--c-fin-rgb),0.40);  box-shadow: 0 20px 60px rgba(var(--c-fin-rgb),0.12); }
.service-card.gest:hover { border-color: rgba(var(--c-gest-rgb),0.40); box-shadow: 0 20px 60px rgba(var(--c-gest-rgb),0.08); }
.service-card.tech:hover { border-color: rgba(var(--c-tech-rgb),0.40);  box-shadow: 0 20px 60px rgba(var(--c-tech-rgb),0.12); }

.service-card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.service-card p {
  opacity: 0.85;
  line-height: 1.6;
}

.service-card.fin h3 { color: var(--c-fin); }
.service-card.gest h3 { color: var(--c-gest); }
.service-card.tech h3 { color: var(--c-tech); }

@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .services-kicker { font-size: 1.15rem; }
  .services-title { font-size: 2.1rem; }
}

/* left text */
.left {
  flex: 1 1 40%;
  display: flex;
  align-items: center;
  padding-left: 60px;   /* push hero text slightly toward center */
}
.text-box {
  max-width: 560px;
  text-align: left;
  background: transparent;
  padding: 0;
}

/* Services intro overrides .text-box defaults */
.text-box.services-head {
  max-width: none;
  text-align: center;
}
.text-box h1 {
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 18px;
}
.text-box h2 { font-size: 2rem; font-weight: 700; margin-bottom: 12px; }
.text-box p { font-size: 1.05rem; line-height: 1.65; opacity: 0.85; }

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 20px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
  align-items: center;
}

/* right image placeholder */
.right {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-placeholder {
  width: 100%;
  max-width: 560px;
  height: 380px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.03);
}

/* ===== El Sistema layout ===== */
.sistema-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 48px;
}

.sistema-features {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sistema-feature {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sistema-feature:first-child { border-top: 1px solid rgba(255,255,255,0.08); }

.feature-num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  opacity: 0.4;
  padding-top: 3px;
  flex-shrink: 0;
  width: 28px;
}

.feature-content strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.feature-content p {
  font-size: 0.95rem;
  opacity: 0.75;
  line-height: 1.6;
  margin: 0;
}

.sistema-aside {
  position: sticky;
  top: calc(var(--header-h) + 40px);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sistema-quote {
  padding: 32px 28px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.sistema-quote p {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 12px 0;
  opacity: 1;
}
.sistema-quote p:last-child { margin-bottom: 0; }

.sistema-note {
  font-size: 0.95rem;
  opacity: 0.65;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .sistema-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .sistema-aside { position: static; }
}

/* Content sections (nivel3 / nivel4) */
.section-wrap{
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.section-kicker{
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 12px;
}

.section-title{
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.section-lead{
  font-size: 1.15rem;
  line-height: 1.7;
  opacity: 0.9;
  margin-bottom: 18px;
  max-width: 900px;
}

.section-body{
  line-height: 1.75;
  opacity: 0.88;
  max-width: 900px;
}

.section-body p{ margin: 0 0 14px 0; }
.section-body ul{ margin: 10px 0 16px 0; padding-left: 18px; }
.section-body li{ margin: 8px 0; }

.section-quote{
  margin-top: 18px;
  padding-left: 16px;
  border-left: 2px solid rgba(255,255,255,0.45);
  opacity: 0.95;
  font-style: italic;
}

.section-quote strong{ display:block; margin-top: 10px; }

@media (max-width: 900px){
  .section-title{ font-size: 2.0rem; }
  .section-lead{ font-size: 1.05rem; }
}

/* ===== Hamburger button ===== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Mobile drawer ===== */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 999;
  padding: 24px 20px 32px;
  flex-direction: column;
  gap: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transform: translateY(-8px);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.mobile-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  padding: 12px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color 0.15s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: white; }
.mobile-auth {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mobile-auth .btn {
  text-align: center;
  padding: 12px 16px;
  font-size: 0.9rem;
}

/* responsive */
@media (max-width: 900px) {
  :root { --header-h: 60px; }
  .main { flex-direction: column; padding-top: 80px; gap: 20px; }
  .header { padding: 0 16px; }
  .image-placeholder { height: 260px; }
  .brand img { height: 38px; }

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

  .nav, .auth-buttons {
    display: none;
  }

  .nav-toggle { display: flex; justify-self: end; }
  .mobile-menu { display: flex; }

  .left { padding-left: 0; }
}
@media (max-width: 520px) {
  .text-box h1 { font-size: 1.9rem; }
  .text-box h2 { font-size: 1.25rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}

/* ===== Trust / Finance Orbit Animation (abstract, confident) ===== */
.trust-orbit{
  width: min(520px, 92vw);
  aspect-ratio: 1 / 1;
  position: relative;
  margin-left: auto;
  margin-right: auto;
  border-radius: 999px;
  isolation: isolate;
}

/* subtle background glow */
.trust-orbit .to-bg{
  position:absolute; inset:-10%;
  border-radius:999px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.10), transparent 55%),
    radial-gradient(circle at 35% 30%, rgba(255,255,255,0.10), transparent 45%),
    radial-gradient(circle at 70% 75%, rgba(255,255,255,0.06), transparent 45%);
  filter: blur(10px);
  opacity: 0.85;
  z-index: 0;
}

/* rings */
.to-ring{
  position:absolute; inset: 12%;
  border-radius:999px;
  border: 1px solid rgba(255,255,255,0.18);
  z-index: 1;
}
.to-ring.r2{ inset: 24%; opacity: 0.85; }
.to-ring.r3{ inset: 36%; opacity: 0.75; }

/* faint rotating "signal" on top of rings */
.to-ring::after{
  content:"";
  position:absolute; inset:-2px;
  border-radius:999px;
  border: 2px solid transparent;
  border-top-color: rgba(255,255,255,0.22);
  border-right-color: rgba(255,255,255,0.08);
  filter: blur(0.2px);
  animation: to-spin 10s linear infinite;
  opacity: 0.9;
  will-change: transform;
}
.r2::after{ animation-duration: 14s; opacity: 0.7; }
.r3::after{ animation-duration: 18s; opacity: 0.55; }

/* orbits */
.to-orbit{
  position:absolute;
  inset: 0;
  border-radius:999px;
  z-index: 2;
  animation: to-spin 12s linear infinite;
  will-change: transform;
}
.to-orbit.o2{ animation-duration: 16s; animation-direction: reverse; }
.to-orbit.o3{ animation-duration: 22s; }

/* nodes */
.to-node{
  position:absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.95);
  box-shadow:
    0 0 0 6px rgba(255,255,255,0.06),
    0 0 24px rgba(255,255,255,0.20);
}
.o2 .to-node{ top: 18%; width: 8px; height: 8px; opacity: 0.9; }
.o3 .to-node{ top: 28%; width: 7px; height: 7px; opacity: 0.85; }
.node-fin{
  background: var(--c-fin);
  box-shadow:
    0 0 0 6px rgba(var(--c-fin-rgb),0.12),
    0 0 28px rgba(var(--c-fin-rgb),0.55);
}

.node-gest{
  background: var(--c-gest);
  box-shadow:
    0 0 0 6px rgba(var(--c-gest-rgb),0.12),
    0 0 28px rgba(var(--c-gest-rgb),0.50);
}

.node-tech{
  background: var(--c-tech);
  box-shadow:
    0 0 0 6px rgba(var(--c-tech-rgb),0.12),
    0 0 28px rgba(var(--c-tech-rgb),0.50);
}

/* core */
.to-core{
  position:absolute;
  inset: 44%;
  border-radius:999px;
  background: rgba(255,255,255,0.95);
  box-shadow:
    0 0 0 10px rgba(255,255,255,0.06),
    0 0 60px rgba(255,255,255,0.20);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  animation: to-pulse 2.8s ease-in-out infinite;
  will-change: transform;
}

.to-core img.core-logo{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 999px;
}
.to-core img.core-logo:not([src]),
.to-core img.core-logo[src=""]{
  display: none;
}

/* animations */
@keyframes to-spin { to { transform: rotate(360deg); } }
@keyframes to-pulse {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50%      { transform: scale(1.08); opacity: 1; }
}

/* accessibility */
@media (prefers-reduced-motion: reduce){
  .to-ring::after, .to-orbit, .to-core { animation: none !important; }
}

/* ===== Nosotros (nivel4) ===== */

/* ── Client logo carousel ── */
.clients-section {
  margin: 44px 0;
}

.clients-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.38;
  margin-bottom: 32px;
}

.clients-track-wrap {
  overflow: hidden;
  /* Fade edges for a clean, infinite feel */
  mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
  /* Isolate compositing layer so the mask doesn't fight the inner animation */
  isolation: isolate;
  contain: layout style;
}

.clients-track {
  display: flex;
  align-items: center;
  gap: 72px;
  width: max-content;
  animation: clients-scroll 28s linear infinite;
  /* Use translateZ instead of will-change to avoid layer promotion conflict with mask */
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.clients-track:hover {
  animation-play-state: paused;
}

@keyframes clients-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

.client-logo {
  height: 38px;
  width: auto;
  min-width: 40px;
  flex-shrink: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  opacity: 0.55;
  filter: grayscale(1) invert(1) brightness(1.6);
  transition: opacity 0.25s ease, filter 0.25s ease;
}

.client-logo:hover {
  opacity: 0.90;
  filter: grayscale(0) invert(0) brightness(1);
}

/* Already-light logos (white/light on transparent) — don't invert */
.client-logo.logo-light {
  filter: grayscale(1) brightness(1.4);
}
.client-logo.logo-light:hover {
  filter: grayscale(0) brightness(1);
}

/* Portrait logos — increase height so they appear wider */
.client-logo.logo-portrait {
  height: 58px;
}

/* Square logos with heavy padding — scale up to fill more visual space */
.client-logo.logo-sq {
  height: 50px;
}

/* Small-source logos — give a bit more height */
.client-logo.logo-tall {
  height: 46px;
}

/* ── Footer row ── */
.nosotros-footer {
  display: flex;
  align-items: baseline;
  gap: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
}

.nosotros-brand {
  font-size: 0.82rem;
  opacity: 0.45;
  flex-shrink: 0;
  white-space: nowrap;
}
.nosotros-brand strong {
  color: white;
  opacity: 1;
  font-weight: 600;
}

.nosotros-quote {
  flex: 1;
  font-size: clamp(0.85rem, 1.2vw, 1.05rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
  opacity: 0.72;
}
.nosotros-quote p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 900px) {
  .clients-track { gap: 48px; animation-duration: 20s; }
  .client-logo   { height: 30px; }
  .nosotros-footer { flex-wrap: wrap; gap: 14px; }
  .nosotros-quote p { white-space: normal; }
}

/* ===== Footer ===== */
.footer {
  background: #000;
  padding: 100px 60px 60px 60px;
  position: relative;
  z-index: 5;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
}

.footer-brand h3 {
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-brand p {
  opacity: 0.7;
  line-height: 1.6;
  max-width: 320px;
}

.footer-social {
  margin-top: 24px;
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  transition: 0.2s ease;
}

.footer-social a:hover {
  background: rgba(255,255,255,0.1);
}

.footer-col h4 {
  margin-bottom: 16px;
  font-size: 0.95rem;
  font-weight: 600;
}

.footer-col a {
  display: block;
  text-decoration: none;
  color: rgba(255,255,255,0.7);
  margin-bottom: 10px;
  font-size: 0.9rem;
  transition: 0.2s ease;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  margin-top: 80px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  font-size: 0.85rem;
  opacity: 0.6;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}
.footer-bottom-center {
  text-align: center;
}
.footer-bottom-center a {
  color: inherit;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.15s;
}
.footer-bottom-center a:hover { opacity: 1; }
@media (max-width: 600px) {
  .footer-bottom {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-bottom-center { order: -1; }
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer {
    padding: 80px 30px;
  }
}

/* ===== WhatsApp floating button ===== */
.wa-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: white;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 18px 12px 14px;
  box-shadow: 0 4px 20px rgba(37,211,102,0.40);
  font-family: "Montserrat", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: wa-bounce-in 0.5s cubic-bezier(0.22,1,0.36,1) 1.2s both;
}
.wa-fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.55);
}
.wa-fab svg {
  flex-shrink: 0;
}
@keyframes wa-bounce-in {
  from { opacity: 0; transform: scale(0.7) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@media (max-width: 600px) {
  .wa-fab {
    bottom: 20px;
    right: 16px;
    padding: 11px 14px 11px 12px;
    font-size: 0.78rem;
  }
}
