/* ===========================================================
   ASESORAMOS INVERSIONES Y PROYECTOS
   Paleta: azul institucional + gris papel + acento cielo
   Tipografía: Fraunces (display) / IBM Plex Sans (cuerpo) / IBM Plex Mono (datos)
   =========================================================== */

/* ---------- VARIABLES ---------- */
:root {
  --navy-950: #0b2038;
  --navy-800: #123a63;
  --blue-700: #155184;
  --blue-600: #1b6ba8;
  --sky-400: #5cc7ea;
  --sky-200: #bfeaf6;
  --paper: #f2efe8;
  --paper-dim: #e9e4d8;
  --card-dark: #33332f;
  --ink-900: #20211d;
  --ink-600: #5a584f;
  --ink-400: #8a8778;
  --line: #d9d3c4;
  --white: #ffffff;

  --font-display: 'Fraunces', 'Iowan Old Style', serif;
  --font-body: 'IBM Plex Sans', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --container: 1180px;
  --radius: 14px;
}

/* ---------- RESET / BASE ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  color: var(--navy-950);
}

p {
  margin: 0;
}

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

section {
  padding: 2.5rem 1.5rem;
}

/* ---------- UTILIDADES ---------- */
.whatsapp-fab {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 1500;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px -6px rgba(0,0,0,.4);
  transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-fab:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 14px 30px -6px rgba(0,0,0,.5);
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2000;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin: 0 0 .8rem;
}
.hero .eyebrow {
  color: var(--sky-200);
  text-shadow: 0 2px 6px rgba(0,0,0,.35);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(11,32,56,0);
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
  padding: 1.2rem 0;
}
.nav.scrolled {
  background: rgba(11,32,56,.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(11,32,56,.18);
  padding: .7rem 0;
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.brand-mark {
  display: flex;
  flex-shrink: 0;
  align-items: center;
}
.brand-logo {
  height: 38px;
  width: auto;
  display: block;
}
.footer-brand .brand-logo {
  height: 30px;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .01em;
}
.brand-text em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: .62rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--sky-200);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: .92rem;
  color: var(--white);
  opacity: .85;
  position: relative;
  padding: .3rem 0;
  transition: opacity .2s ease;
}
.nav-links a:hover {
  opacity: 1;
}
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--sky-400);
  transition: width .25s ease;
}
.nav-links a:not(.nav-cta):hover::after {
  width: 100%;
}
.nav-cta {
  background: var(--sky-400);
  color: var(--navy-950) !important;

  padding: 0.55rem 1.5rem !important;

  border-radius: 999px;

  font-weight: 600;

  opacity: 1 !important;

  white-space: nowrap;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Nosotros: link navigates on click; caret opens the dropdown on hover/focus */
.nav-item {
  position: relative;
  padding-bottom: .7rem;
  margin-bottom: -.7rem; /* invisible bridge so the cursor never leaves the hover zone on the way down */
}
.nav-parent {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.nav-caret {
  transition: transform .2s ease;
  flex-shrink: 0;
}
.nav-item:hover .nav-caret, .nav-item:focus-within .nav-caret {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  background: var(--navy-950);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: .5rem;
  box-shadow: 0 16px 32px -12px rgba(0,0,0,.5);
  display: flex;
  flex-direction: column;
  gap: .15rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.nav-dropdown a {
  padding: .6rem .7rem;
  border-radius: 6px;
  font-size: .88rem;
  opacity: .85;
}
.nav-dropdown a:hover {
  background: rgba(255,255,255,.08);
  opacity: 1;
}
.nav-dropdown a::after {
  content: none;
}
.nav-item:hover .nav-dropdown, .nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  transition: transform .25s ease, opacity .25s ease;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--navy-800);
  padding: 9.5rem 1.5rem 6rem;
  color: var(--white);
}

/* Capa de la foto: se ubica a la derecha, detrás del texto, y se funde con el azul */
.hero-photo-wrap {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 58%;
  z-index: 0;
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 35%;
  display: block;
}
.hero-photo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    var(--navy-800) 0%,
    rgba(18,58,99,.85) 14%,
    rgba(18,58,99,.45) 32%,
    rgba(18,58,99,.05) 55%,
    transparent 68%);
}

.hero-seal {
  position: absolute;
  left: 8%;
  bottom: 8%;
  z-index: 2;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.35));
}

.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-copy h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.12;
  color: var(--white);
  max-width: 19ch;
  margin-bottom: 1.3rem;
  text-shadow: 0 2px 10px rgba(0,0,0,.3);
}

.hero-lead {
  max-width: 46ch;
  color: var(--sky-200);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2.1rem;
  text-shadow: 0 1px 6px rgba(0,0,0,.25);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: var(--sky-400);
  color: var(--navy-950);
}
.btn-primary:hover {
  background: var(--sky-200);
}
.btn-ghost {
  border-color: rgba(255,255,255,.35);
  color: var(--white);
}
.btn-ghost:hover {
  border-color: var(--white);
}
.btn-full {
  width: 100%;
}

.seal-svg {
  width: min(200px, 22vw);
  height: auto;
}
.seal-outer {
  fill: none;
  stroke: rgba(255,255,255,.16);
  stroke-width: 1;
}
.seal-dash {
  fill: none;
  stroke: var(--sky-400);
  stroke-width: 1.4;
  stroke-dasharray: 2 6;
  stroke-linecap: round;
}
.seal-inner {
  fill: rgba(255,255,255,.03);
  stroke: rgba(255,255,255,.28);
  stroke-width: 1;
}
.seal-rotate {
  animation: sealSpin 70s linear infinite;
  transform-origin: 120px 120px;
}

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

.seal-text {
  font-family: var(--font-mono);
  font-size: 8.4px;
  letter-spacing: .12em;
  fill: var(--sky-200);
  text-transform: uppercase;
}

.seal-number {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  fill: var(--white);
}

.seal-label {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .12em;
  fill: var(--sky-200);
}

/* ---------- CREDENTIALS ---------- */
.credentials {
  background: var(--navy-950);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.5rem !important;
}

.credentials-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
}

.credential {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
}

.credential-num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 3vw, 3rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--sky-400);
}

.credential-label {
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--sky-200);
  font-weight: 600;
}

.credential-label small {
  display: block;
  margin-top: 0.3rem;
  max-width: 32ch;
  font-size: 0.82rem;
  line-height: 1.4;
  font-weight: 400;
  color: var(--sky-200);
  opacity: 0.75;
}

.credential-divider {
  width: 1px;
  min-height: 80px;
  align-self: stretch;
  background: rgba(255, 255, 255, 0.12);
}

/* ---------- SECTION HEAD (genérico) ---------- */
.section-head {
  max-width: 1050px;
  margin: 0 auto 2.4rem;
  text-align: center;
}
.section-head-left {
  margin: 0 0 2rem;
  text-align: left;
  max-width: 520px;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 1rem;
}
.section-lead {
  color: var(--ink-600);
  font-size: 1.02rem;
}

/* ---------- SERVICIOS ---------- */
.servicios {
  background: var(--white);
  max-width: var(--container);
  margin: 0 auto;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.7rem;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(11,32,56,.25);
  border-color: var(--blue-600);
}
.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: .8rem;
}
.service-card p {
  color: var(--ink-600);
  font-size: .94rem;
}
.service-card-cta {
  background: var(--navy-950);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.service-card-cta h3 {
  color: var(--white);
}
.service-card-cta p {
  color: var(--sky-200);
  margin-bottom: 1.2rem;
}
.service-cta-arrow {
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--sky-400);
  font-weight: 600;
}
.service-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.service-title h3 {
  margin: 0;
}
.service-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sky-400);
}
.service-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
}

/* =========================================================
   METODOLOGÍA
   ========================================================= */

.metodologia {
  background: #f7f8fa;
  border-top: 1px solid rgba(11, 32, 56, 0.06);
  border-bottom: 1px solid rgba(11, 32, 56, 0.06);

  padding: 5rem 1.5rem;
}

.metodologia-inner {
  max-width: var(--container);
  margin: 0 auto;
}


/* ENCABEZADO */

.metodologia .section-head {
  max-width: 760px;
  margin-bottom: 4rem;
}

.metodologia .section-lead {
  max-width: 68ch;
}


/* =========================================================
   TIMELINE
   ========================================================= */

.methodology-timeline {
  position: relative;

  display: grid;
  grid-template-columns: repeat(4, 1fr);

  gap: 0;
}


/* LÍNEA HORIZONTAL */

.methodology-timeline::before {
  content: "";

  position: absolute;

  top: 8px;
  left: 0;
  right: 0;

  height: 1px;

  background: rgba(11, 32, 56, 0.18);
}


/* CADA ETAPA */

.methodology-step {
  position: relative;

  padding-right: 2rem;

  transition: transform 0.3s ease;
}


/* PUNTO */

.methodology-dot {
  position: relative;
  z-index: 2;

  width: 17px;
  height: 17px;

  margin-bottom: 1.75rem;

  border: 3px solid #f7f8fa;
  border-radius: 50%;

  background: var(--sky-400);

  box-shadow:
    0 0 0 1px var(--sky-400);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease;
}


/* CONTENIDO */

.methodology-content {
  max-width: 230px;

  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.methodology-content h3 {
  margin: 0 0 0.55rem;

  color: var(--navy-950);

  font-size: 1.1rem;
  line-height: 1.3;
}

.methodology-content p {
  margin: 0;

  color: #536274;

  font-size: 0.88rem;
  line-height: 1.6;
}


/* =========================================================
   HOVER
   ========================================================= */

.methodology-step:hover {
  transform: translateY(-4px);
}

.methodology-step:hover .methodology-dot {
  transform: scale(1.25);

  background: var(--navy-950);

  box-shadow:
    0 0 0 5px rgba(79, 195, 247, 0.18);
}

.methodology-step:hover .methodology-content {
  transform: translateY(-2px);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 980px) {

  .metodologia {
    padding: 4rem 1.5rem;
  }

  .metodologia .section-head {
    margin-bottom: 3rem;
  }

  .methodology-timeline {
    grid-template-columns: repeat(2, 1fr);

    row-gap: 3rem;
  }

  .methodology-timeline::before {
    display: none;
  }

  .methodology-step {
    padding-right: 1.5rem;
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 680px) {

  .metodologia {
    padding: 3.5rem 1.2rem;
  }

  .metodologia .section-head {
    margin-bottom: 2.5rem;
  }

  .methodology-timeline {
    grid-template-columns: 1fr;

    gap: 0;
  }


  /* LÍNEA VERTICAL */

  .methodology-timeline::before {
    display: block;

    top: 8px;
    bottom: 8px;
    left: 8px;

    right: auto;

    width: 1px;
    height: auto;
  }


  .methodology-step {
    display: grid;

    grid-template-columns: 17px 1fr;

    column-gap: 1.25rem;

    padding: 0 0 2.5rem;
  }

  .methodology-step:last-child {
    padding-bottom: 0;
  }


  .methodology-dot {
    grid-column: 1;
    grid-row: 1;

    margin: 0;
  }


  .methodology-content {
    grid-column: 2;
    grid-row: 1;

    max-width: none;
  }

}
/* =========================================================
   EQUIPO
   ========================================================= */

.equipo {
  background: #ffffff;
}

/* GRID DE EQUIPO */
.team-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

/* TARJETAS */
.team-card {
  height: 100%;
  padding: 1.75rem 1.5rem;
  background: #ffffff;
  border: 1px solid rgba(11, 32, 56, 0.12);
  border-radius: 12px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

/* HOVER EQUIPO */
.team-card:hover {
  transform: translateY(-5px);
  border-color: var(--sky-400);
  box-shadow:
    0 12px 30px rgba(11, 32, 56, 0.10);
}

/* NOMBRE */
.team-card h3 {
  margin: 0 0 0.35rem;
  color: var(--navy-950);
  font-size: 1.15rem;
  line-height: 1.3;
}

/* CARGO */
.team-role {
  display: block;
  margin-bottom: 1rem;
  color: var(--sky-400);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* DESCRIPCIÓN */
.team-card p {
  margin: 0;
  color: #536274;
  font-size: 0.88rem;
  line-height: 1.65;
}

/* =========================================================
   CLIENTES
   ========================================================= */

.clientes {
  background: #f7f8fa;
  overflow: hidden;
}


/* =========================================================
   CARRUSEL
   ========================================================= */

.clients-carousel {
  max-width: var(--container);

  margin: 0 auto;

  display: grid;

  grid-template-columns: 48px minmax(0, 1fr) 48px;

  align-items: center;

  gap: 1rem;

  padding: 0 1.5rem;
}


/* VENTANA */

.clients-track-wrapper {
  overflow: hidden;
}


/* PISTA */

.clients-track {
  display: flex;

  gap: 1.25rem;

  transition: transform 0.5s ease;

  will-change: transform;
}


/* =========================================================
   TARJETAS
   DESKTOP = 5 VISIBLES
   ========================================================= */

.client-card {
  position: relative;

  flex: 0 0 calc((100% - 5rem) / 5);

  min-width: 0;

  min-height: 300px;

  padding: 1.35rem;

  display: flex;

  flex-direction: column;

  background: #ffffff;

  border: 1px solid rgba(11, 32, 56, 0.10);

  border-radius: 12px;

  overflow: hidden;

  cursor: default;

  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}


/* HOVER */

.client-card:hover {
  transform: translateY(-5px);

  border-color: var(--sky-400);

  box-shadow:
    0 14px 32px rgba(11, 32, 56, 0.10);
}


/* =========================================================
   LOGO
   ========================================================= */

.client-logo {
  width: 100%;

  height: 105px;

  display: flex;

  align-items: center;
  justify-content: center;

  margin-bottom: 1.25rem;

  padding: 0.75rem;

  border-bottom: 1px solid rgba(11, 32, 56, 0.08);
}


.client-logo img {
  display: block;

  max-width: 150px;

  max-height: 70px;

  width: auto;
  height: auto;

  object-fit: contain;

  transition: transform 0.3s ease;
}


.client-card:hover .client-logo img {
  transform: scale(1.04);
}


/* =========================================================
   INFORMACIÓN
   ========================================================= */

.client-info {
  display: flex;

  flex-direction: column;

  flex: 1;
}


.client-info h3 {
  margin: 0 0 0.65rem;

  color: var(--navy-950);

  font-size: 0.98rem;

  line-height: 1.35;
}


.client-tag {
  display: block;

  color: var(--sky-400);

  font-size: 0.68rem;

  font-weight: 700;

  line-height: 1.5;

  text-transform: uppercase;

  letter-spacing: 0.02em;
}


/* =========================================================
   INFORMACIÓN OCULTA
   ========================================================= */

.client-popup {
  position: absolute;

  left: 0;
  right: 0;
  bottom: 0;

  padding: 1.15rem 1.25rem;

  background: var(--navy-950);

  transform: translateY(100%);

  opacity: 0;

  pointer-events: none;

  transition:
    transform 0.35s ease,
    opacity 0.35s ease;
}


.client-popup p {
  margin: 0;

  color: rgba(255, 255, 255, 0.90);

  font-size: 0.78rem;

  line-height: 1.55;
}


/* DESKTOP: MOSTRAR CON HOVER */

.client-card:hover .client-popup {
  transform: translateY(0);

  opacity: 1;
}


/* =========================================================
   FLECHAS
   ========================================================= */

.clients-arrow {
  width: 44px;
  height: 44px;

  display: flex;

  align-items: center;
  justify-content: center;

  padding: 0;

  border: 1px solid rgba(11, 32, 56, 0.15);

  border-radius: 50%;

  background: #ffffff;

  color: var(--navy-950);

  font-size: 1.15rem;

  cursor: pointer;

  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}


.clients-arrow:hover {
  background: var(--navy-950);

  border-color: var(--navy-950);

  color: #ffffff;

  transform: scale(1.05);
}


.clients-arrow:disabled {
  opacity: 0.35;

  cursor: not-allowed;

  transform: none;
}


/* =========================================================
   DOTS
   ========================================================= */

.clients-dots {
  display: flex;

  align-items: center;
  justify-content: center;

  gap: 0.5rem;

  margin-top: 1.75rem;
}


.clients-dot {
  width: 7px;
  height: 7px;

  padding: 0;

  border: 0;

  border-radius: 50%;

  background: rgba(11, 32, 56, 0.20);

  cursor: pointer;

  transition:
    width 0.25s ease,
    background-color 0.25s ease;
}


.clients-dot.active {
  width: 22px;

  border-radius: 10px;

  background: var(--sky-400);
}


/* =========================================================
   TABLET
   3 VISIBLES
   ========================================================= */

@media (max-width: 980px) {

  .clients-carousel {
    grid-template-columns: 42px minmax(0, 1fr) 42px;

    gap: 0.75rem;

    padding: 0 1rem;
  }


  .client-card {
    flex: 0 0 calc((100% - 2.5rem) / 2);

    min-height: 290px;
  }


  .client-logo {
    height: 100px;
  }

}


/* =========================================================
   MOBILE
   3 VISIBLES
   ========================================================= */

@media (max-width: 680px) {

  .clients-carousel {
    display: block;

    padding: 0 1.2rem;
  }


  .clients-track {
    gap: 0.75rem;

    transition: none;
  }


  .clients-track-wrapper {
    overflow-x: auto;

    scroll-snap-type: x mandatory;

    scrollbar-width: none;

    -webkit-overflow-scrolling: touch;
  }


  .clients-track-wrapper::-webkit-scrollbar {
    display: none;
  }


  .client-card {
    flex: 0 0 calc((100% - 1.5rem) / 2);

    min-height: 260px;

    padding: 1rem;

    scroll-snap-align: start;

    cursor: pointer;
  }


  .client-logo {
    height: 80px;

    margin-bottom: 1rem;

    padding: 0.5rem;
  }


  .client-logo img {
    max-width: 100px;

    max-height: 55px;
  }


  .client-info h3 {
    font-size: 0.82rem;

    line-height: 1.3;
  }


  .client-tag {
    font-size: 0.58rem;

    line-height: 1.4;
  }


  /* En móvil no usamos hover */

  .client-card:hover {
    transform: none;

    box-shadow: none;
  }


  .client-card:hover .client-popup {
    transform: translateY(100%);

    opacity: 0;
  }


  /* CLICK / TOUCH */

  .client-card.is-active .client-popup {
    transform: translateY(0);

    opacity: 1;

    pointer-events: auto;
  }


  .client-popup {
    padding: 0.9rem 1rem;
  }


  .client-popup p {
    font-size: 0.68rem;

    line-height: 1.45;
  }


  /* FLECHAS OCULTAS */

  .clients-arrow {
    display: none;
  }


  /* DOTS */

  .clients-dots {
    margin-top: 1.25rem;
  }

}
/* ---------- CONTACTO ---------- */
.contacto {
  max-width: var(--container);
  margin: 0 auto;
}
.contacto-inner {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 3.5rem;
}
.contact-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.contact-list li {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.contact-label {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-600);
}
.contact-value {
  color: var(--ink-900);
  font-size: .98rem;
  line-height: 1.6;
}
.contact-value a {
  color: var(--blue-600);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-value a:hover {
  color: var(--navy-950);
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.form-note {
  font-size: .82rem;
  color: var(--ink-400);
  margin-bottom: .3rem;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  font-size: .85rem;
  color: var(--ink-600);
  font-weight: 500;
}
.contact-form input, .contact-form select, .contact-form textarea {
  font-family: var(--font-body);
  font-size: .95rem;
  padding: .75rem .9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink-900);
  resize: vertical;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: 2px solid var(--blue-600);
  outline-offset: 1px;
  border-color: var(--blue-600);
}

/* ---------- FOOTER ---------- */

.footer {
  background: #111827;
  color: #fff;
  padding-top: 48px;
}


/* CONTENEDOR PRINCIPAL */

.footer-inner {
  width: min(1180px, 92%);
  margin: 0 auto;

  display: grid;

  /* 4 COLUMNAS */
  grid-template-columns:
    1fr
    1.35fr
    1.35fr
    1fr;

  column-gap: 55px;

  padding-bottom: 42px;
}


/* ---------- LOGO ---------- */

.footer-brand {
  display: flex;
  align-items: flex-start;
}

.footer-logo {
  display: block;

  width: 150px;
  max-width: 100%;
  height: auto;
}


/* ---------- TITULOS ---------- */

.footer-column h3 {
  margin: 0 0 17px;

  font-size: 13px;
  line-height: 1.3;
  font-weight: 700;

  text-transform: uppercase;
  letter-spacing: 0.07em;

  color: #fff;
}


/* ---------- CONTACTO / INFORMACIÓN ---------- */

.footer-contact-item {
  margin-bottom: 20px;
}

.footer-contact-item:last-child {
  margin-bottom: 0;
}


/* TITULOS PEQUEÑOS */

.footer-label {
  display: block;

  margin-bottom: 5px;

  font-size: 10px;
  line-height: 1.3;
  font-weight: 700;

  text-transform: uppercase;
  letter-spacing: 0.08em;

  color: #8f9aaa;
}


/* LINKS DE TELÉFONO Y CORREO */

.footer-contact-item a {
  display: block;

  width: fit-content;

  color: #fff;

  font-size: 12.5px;
  line-height: 1.55;

  text-decoration: none;

  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.footer-contact-item a:hover {
  color: #c3cad5;
}


/* TEXTOS */

.footer-contact-item p {
  margin: 0;

  color: #c3cad5;

  font-size: 12.5px;
  line-height: 1.6;
}


/* HORARIO */

.footer-info strong {
  display: block;

  margin-top: 2px;

  color: #fff;

  font-size: 13px;
  line-height: 1.4;

  font-weight: 600;
}


/* ESPACIO ENTRE HORARIO Y OFICINA */

.footer-office {
  margin-top: 28px;
}


/* ---------- MENÚ ---------- */

.footer-links nav {
  display: flex;

  flex-direction: column;

  gap: 8px;
}

.footer-links nav a {
  width: fit-content;

  color: #c3cad5;

  font-size: 12.5px;
  line-height: 1.5;

  text-decoration: none;

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.footer-links nav a:hover {
  color: #fff;
  transform: translateX(2px);
}


/* ---------- POLÍTICAS ---------- */

.footer-legal {
  margin-top: 28px;

  padding-top: 22px;

  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.footer-legal h3 {
  margin-bottom: 10px;
}

.footer-legal a {
  display: block;

  max-width: 240px;

  color: #c3cad5;

  font-size: 12px;
  line-height: 1.55;

  text-decoration: none;

  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: #fff;
}


/* ---------- BARRA INFERIOR ---------- */

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.footer-bottom-inner {
  width: min(1180px, 92%);
  min-height: 55px;

  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;
}


/* POLÍTICA */

.footer-bottom .footer-legal {
  margin: 0;
  padding: 0;
  border: 0;
}

.footer-bottom .footer-legal a {
  display: block;

  max-width: none;

  color: #8993a3;

  font-size: 10.5px;
  line-height: 1.4;

  text-decoration: none;

  transition: color 0.2s ease;
}

.footer-bottom .footer-legal a:hover {
  color: #fff;
}


/* COPYRIGHT */

.footer-bottom-inner > span {
  color: #8993a3;

  font-size: 10.5px;
  line-height: 1.4;

  text-align: right;
}

/* ---------- TABLET ---------- */

@media (max-width: 900px) {

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

    row-gap: 40px;

    column-gap: 45px;
  }

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

}


/* ---------- MÓVIL ---------- */

@media (max-width: 600px) {

  .footer {
    padding-top: 38px;
  }

  .footer-inner {
    width: 88%;

    grid-template-columns: 1fr;

    row-gap: 32px;

    padding-bottom: 32px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-logo {
    width: 140px;
  }

  .footer-bottom-inner {
    width: 88%;

    padding: 16px 0;

    min-height: auto;
  }

  .footer-bottom-inner span {
    font-size: 10px;
  }

}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* ---------- TABLET (max-width: 980px) ---------- */
@media (max-width: 980px) {

  .hero {
    padding-top: 0;
  }

  .hero-photo-wrap {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    width: auto;
    height: 280px;
    margin: 0 -1.5rem 2rem;
  }

  .hero-photo-wrap::after {
    background: linear-gradient(
      180deg,
      var(--navy-950) 0%,
      rgba(11,32,56,.3) 45%,
      rgba(11,32,56,.55) 100%
    );
  }

  .hero-photo {
    object-position: 60% 35%;
  }

  .hero-seal {
    left: auto;
    right: 6%;
    bottom: 6%;
  }

  .seal-svg {
    width: 130px;
  }

  /* CREDENTIALS */
  .credentials-inner {
    gap: 2rem;
  }

  .credential-num {
    font-size: 2.2rem;
  }

  .credential-label {
    font-size: .88rem;
  }

  .credential-label small {
    font-size: .76rem;
  }

  /* METODOLOGÍA */
  .metodologia-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 4rem 1.5rem;
  }

  .metodologia .section-head {
    text-align: center;
  }

  .metodologia .section-lead {
    margin-left: auto;
    margin-right: auto;
  }

  /* EQUIPO */
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* SERVICIOS */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* CONTACTO */
  .contacto-inner {
    grid-template-columns: 1fr;
  }
}

/* ---------- MOBILE (max-width: 680px) ---------- */
/* ---------- MOBILE (max-width: 680px) ---------- */
@media (max-width: 680px) {

  section {
    padding: 4.5rem 1.2rem;
  }

  .hero {
    padding: 8rem 1.2rem 4rem;
  }

  /* NAV */
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--navy-950);
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2rem 2rem;
    gap: 1.6rem;
    transform: translateX(100%);
    transition: transform .35s ease;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-toggle {
    display: flex;
  }

  .nav-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-parent {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
  }

  /* Transición para la flechita */
  .nav-caret {
    transition: transform 0.25s ease;
  }

  /* Desplegable móvil (integrado en el flujo, sin superposición) */
  .nav-dropdown {
    display: none;
    position: static;
    width: 100%;
    background: transparent;
    box-shadow: none;
    padding-left: 1rem;
    padding-top: 0.8rem;
    flex-direction: column;
    gap: 0.8rem;
  }

  /* Al hacer toque (agregado por JS) */
  .nav-item.open .nav-dropdown {
    display: flex;
  }

  .nav-item.open .nav-caret {
    transform: rotate(180deg);
  }

  /* CREDENTIALS */
  .credentials-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.5rem 1rem;
  }

  .credential {
    width: 100%;
    align-items: center;
    text-align: center;
  }

  .credential-num {
    font-size: 2.4rem;
  }

  .credential-label {
    font-size: .9rem;
  }

  .credential-label small {
    max-width: 30ch;
    font-size: .78rem;
    margin-top: .25rem;
  }

  .credential-divider {
    display: block;
    width: 60%;
    height: 1px;
    min-height: 1px;
    justify-self: center;
    align-self: auto;
  }

  /* METODOLOGÍA */
  .metodologia-inner {
    padding: 3.5rem 1.2rem;
    gap: 2rem;
  }

  /* EQUIPO */
  .team-grid {
    grid-template-columns: 1fr;
    padding: 0 1.2rem;
    gap: 1rem;
  }

  .team-card {
    padding: 1.5rem 1.25rem;
  }

  /* SERVICIOS / CLIENTES */
  .services-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- DESKTOP (min-width: 681px) ---------- */
@media (min-width: 681px) {
  .nav-item {
    position: relative;
  }

  .nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--navy-950);
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    min-width: 160px;
    flex-direction: column;
    gap: 0.8rem;
  }

  .nav-item:hover .nav-dropdown {
    display: flex;
  }

  .nav-item:hover .nav-caret {
    transform: rotate(180deg);
  }
}