/* ============================================
   AGAMA PROJECTS - Stylesheet
   Fuente: Gilroy (display + body)
   ============================================ */

/* Gilroy via CDN (Fontshare) */
@import url('https://api.fontshare.com/v2/css?f[]=gilroy@800,700,600,500,400,300&display=swap');

/* Fallback local — si Fontshare falla en móvil, usa las fuentes de /fonts/ */
@font-face {
  font-family: 'Gilroy';
  src: local('Gilroy'), local('Gilroy-Regular');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: local('Gilroy Light'), local('Gilroy-Light');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: local('Gilroy SemiBold'), local('Gilroy-SemiBold');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: local('Gilroy Bold'), local('Gilroy-Bold');
  font-weight: 700;
  font-display: swap;
}

/* ── Variables ── */
:root {
  --orange: #E8591A;
  --orange-hover: #ff6a22;
  --black: #0A0A0A;
  --dark: #111111;
  --dark-2: #1A1A1A;
  --dark-3: #222222;
  --mid: #2E2E2E;
  --light-mid: #444444;
  --white: #FFFFFF;
  --white-80: rgba(255,255,255,0.80);
  --white-50: rgba(255,255,255,0.50);
  --white-20: rgba(255,255,255,0.20);
  --white-10: rgba(255,255,255,0.10);
  --white-05: rgba(255,255,255,0.05);
  /* About section (light) */
  --about-bg: #F5F4F2;
  --about-text: #111111;
  --about-text-mid: #444444;
  --font-display: 'Gilroy', sans-serif;
  --font-body: 'Gilroy', sans-serif;   
  --nav-h: 72px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Reset ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}
@media (max-width: 1024px) {
  body { cursor: auto; }
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Custom Cursor ── */
.cursor {
  width: 10px; height: 10px;
  background: var(--orange);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 99999;
  transition: transform 0.15s var(--ease), background 0.2s;
  transform: translate(-50%, -50%);
}
.cursor-follower {
  width: 36px; height: 36px;
  border: 1.5px solid var(--orange);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 99998;
  transition: transform 0.4s var(--ease), opacity 0.3s;
  transform: translate(-50%, -50%);
  opacity: 0.6;
}
body:hover .cursor { opacity: 1; }
a:hover ~ .cursor, button:hover ~ .cursor { transform: translate(-50%,-50%) scale(2); }

@media (max-width: 1024px) {
  .cursor, .cursor-follower { display: none !important; }
  * { cursor: auto !important; }
  a, button, [role="button"], .team-card, .service-tile, .insight-card { cursor: pointer !important; }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 2px; }

/* ============================================
   NAVIGATION
   ============================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 100px;
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 60px;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s;
}
#navbar.scrolled {
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--white-10);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo svg { width: 55px; height: 55px; }
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--white);
}
.nav-logo-text span { color: var(--orange); }
nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 40px;
}
nav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white-80);
  position: relative;
  transition: color 0.3s;
  padding-bottom: 4px;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: var(--orange);
  transition: width 0.3s var(--ease);
}
nav a:hover, nav a.active {
  color: var(--orange);
}
nav a:hover::after, nav a.active::after {
  width: 100%;
}

/* ============================================
   HERO
   ============================================ */
#hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: flex-start;
  padding: 320px 60px 0px;   
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  filter: grayscale(20%) brightness(1.0);
  transform: scale(1.05);
  animation: heroZoom 12s var(--ease) forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.0); }
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,10,10,0.95) 0%,
    rgba(10,10,10,0.40) 60%,
    rgba(10,10,10,0.10) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s var(--ease) forwards;
}
.hero-eyebrow::before {
  content: '';
  width: 30px; height: 1px;
  background: var(--orange);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(64px, 6vw, 130px); /* ← TAMAÑO HERO "Together We Make The Difference" | mín 64px → máx 130px */
  line-height: 0.92;
  font-weight: 300;
  letter-spacing: 2px;
  color: var(--white);
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp 0.9s 0.5s var(--ease) forwards;
}
.hero-title em {
  font-style: normal;
  color: var(--orange);
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: transparent;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 10px 24px;
  border: 2px solid var(--orange);
  border-radius: 20px;
  cursor: none;
  position: relative;
  overflow: hidden;
  transition: background 0.35s, color 0.35s;
  opacity: 0;
  animation: fadeUp 0.8s 0.8s var(--ease) forwards;
}
.hero-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--orange);
  transform: translateX(-101%);
  transition: transform 0.4s var(--ease);
  z-index: -1;
}
.hero-cta span, .hero-cta { position: relative; z-index: 1; }
.hero-cta:hover::before { transform: translateX(0); }
.hero-cta:hover { color: var(--white); }

/* ============================================
   ABOUT / SOMOS EXPERTOS
   ============================================ */
#about {
  padding: 120px 60px;
  background: var(--about-bg);
}
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 80px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(0,0,0,0.12);
}
.about-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.about-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 3vw, 90px); /* ← TAMAÑO "SOMOS EXPERTOS CONSULTORES" | mín 52px → máx 90px */
  line-height: 0.92;
  letter-spacing: -1px;
  font-weight: 300;
  color: var(--orange);
  text-transform: none;
}
.about-title em {
  font-style: normal;
  color: var(--orange);
}
.about-text p {
  color: var(--about-text-mid);
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 8px;
  font-weight: 400;
  text-align: justify;
}
.about-text p:last-child { margin-bottom: 0; }

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  background: rgba(0,0,0,0.08); /* líneas separadoras sutiles sobre fondo claro */
}
.team-card {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  cursor: none;
  background: var(--dark-2);
}
.team-card img {
  transition: transform 0.6s var(--ease), filter 0.4s;
  filter: grayscale(30%);
}
.team-card:hover img {
  transform: scale(1.06);
  filter: grayscale(0%);
}
.team-card-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 1;
}
.team-card-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px;
  z-index: 2;
  transform: translateY(0);
  transition: transform 0.4s var(--ease);
}
.team-card:hover .team-card-info { transform: translateY(-6px); }
.team-card-name {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 1px;
  color: var(--white);
  display: block;
}
.team-card-role {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--orange);
  display: block;
  margin-top: 4px;
}
.team-card-btn {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  background: var(--orange);
  border: none;
  cursor: none;
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.3s, transform 0.3s var(--ease);
  border-radius: 50%;
}
.team-card:hover .team-card-btn {
  opacity: 1;
  transform: scale(1);
}
.team-card-btn svg { width: 14px; height: 14px; color: white; }

/* Team Modal */
.team-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.team-modal.open {
  opacity: 1;
  pointer-events: all;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: none;
}
.modal-box {
  position: relative;
  z-index: 1;
  background: var(--dark-2);
  border: 1px solid var(--white-10);
  max-width: 1100px;
  width: 100%;
  display: grid;
  grid-template-columns: 360px 1fr;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.4s var(--ease);
  overflow: hidden;
}
.team-modal.open .modal-box {
  transform: translateY(0) scale(1);
}
.modal-img {
  position: relative;
  min-height: 380px;
}
.modal-img img { filter: none; }
.modal-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: none;
}
.modal-body {
  padding: 40px 36px 40px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.modal-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 6px;
  display: none;
}
.modal-name {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  letter-spacing: 1px;
  color: var(--orange);
  margin-bottom: 4px;
  font-weight: 600;
}
.modal-role {
  font-size: 12px;
  font-weight: 500;
  color: var(--white-50);
  letter-spacing: 1px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--white-10);
}
.modal-bio {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--white-80);
  font-weight: 300;
  overflow-y: auto;
  max-height: 280px;
  padding-right: 8px;
}
.modal-bio::-webkit-scrollbar { width: 3px; }
.modal-bio::-webkit-scrollbar-thumb { background: var(--orange); }
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  background: var(--white-10);
  border: 1px solid var(--white-20);
  color: var(--white);
  cursor: none;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  z-index: 2;
  border-radius: 50%;
}
.modal-close:hover { background: var(--orange); }
.modal-close svg { width: 14px; height: 14px; }

/* ============================================
   SERVICES
   ============================================ */
#services {
  padding: 120px 60px;
  background: var(--dark);
}
.section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::before {
  content: '';
  width: 24px; height: 1.5px;
  background: var(--orange);
}
.services-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3vw, 90px); /* ← TAMAÑO TÍTULO sección SERVICIOS | mín 36px → máx 60px */
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: 1px;
  color: var(--orange);
  max-width: 860px;
  margin-bottom: 60px;
}

/* Services Mosaic */
.services-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 3px;
}
.service-tile {
  position: relative;
  overflow: hidden;
  cursor: none;
  min-height: 280px;
  background: var(--dark-2);
}
.service-tile:nth-child(4) { grid-column: 1; }
.service-tile:nth-child(5) { grid-column: 2; }
.service-tile.deco    { grid-column: 3; grid-row: 2; cursor: default; }

.service-tile img {
  position: absolute;
  inset: 0;
  transition: transform 0.7s var(--ease), filter 0.4s;
  filter: brightness(0.45) grayscale(30%);
}
.service-tile:not(.deco):hover img {
  transform: scale(1.08);
  filter: brightness(0.3) grayscale(0%);
}
.service-tile.deco img { filter: brightness(0.55); }

.service-tile-inner {
  position: absolute;
  inset: 0;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 1;
}
.service-tile.deco .service-tile-inner { pointer-events: none; }

.service-num {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--orange);
  margin-bottom: 8px;
  transition: color 0.3s;
}
.service-name {
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.1;
  letter-spacing: 0.5px;
  color: var(--white);
  transition: color 0.3s;
}
.service-arrow {
  width: 40px; height: 40px;
  background: var(--orange);
  display: flex; align-items: center; justify-content: center;
  margin-top: 16px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s var(--ease);
  border-radius: 50%;
}
.service-arrow svg { width: 16px; height: 16px; color: white; }
.service-tile:not(.deco):hover .service-arrow {
  opacity: 1;
  transform: translateY(0);
}
.service-tile:not(.deco):hover .service-name { color: var(--white); }

/* Service Modal — same structure as team modal */
.service-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.service-modal.open {
  opacity: 1;
  pointer-events: all;
}
.service-modal .modal-box {
  grid-template-columns: 1fr;
  max-width: 620px;
}
.service-modal .modal-body { padding: 44px; }
.service-modal .modal-name { font-size: 20px; color: var(--orange); }
.service-modal .modal-bio { max-height: 340px; font-size: 14.5px; }

/* ============================================
   CLIENTS
   ============================================ */
#clients {
  padding: 100px 60px;
  background: var(--black);
}
.clients-header {
  margin-bottom: 50px;
}
.clients-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3vw, 90px);   /* ← TAMAÑO TÍTULO "Ellos confían..." */
  font-weight: 300;
  letter-spacing: 1px;
  color: var(--orange);
  margin-top: 10px;
}

/* Grid: 5 cols × 2 filas = 10 logos (igual al PDF) */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--white-10);
  border-left: 1px solid var(--white-10);
}
.client-cell {
  border-right: 1px solid var(--white-10);
  border-bottom: 1px solid var(--white-10);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  min-height: 130px;
  position: relative;
  transition: background 0.35s;
  overflow: hidden;
}
.client-cell--wide {
  grid-column: 1 / -1;
}
.client-cell:hover { background: var(--white-05); }

/* Imagen real del logo */
.client-logo {
  height: 40px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.6;
  transition: opacity 0.35s;
  display: none;
}
.client-logo.loaded { display: block; }
.client-logo.loaded + .client-name-fallback { display: none; }
.client-cell:hover .client-logo { opacity: 1; }

/* Fallback texto cuando no hay imagen */
.client-name-fallback {
  font-family: var(--font-display);
  font-size: 16px;                      /* ← TAMAÑO TEXTO FALLBACK logos */
  letter-spacing: 3px;
  font-weight: 700;
  color: var(--white-50);
  transition: color 0.35s;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.client-cell:hover .client-name-fallback { color: var(--white-80); }
.client-svg { width: 120px; height: auto; color: var(--white-50); transition: color 0.35s; }
.client-cell:hover .client-svg { color: var(--white-80); }

/* Línea naranja inferior al hover */
.client-cell::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 2px;
  background: var(--orange);
  transform: translateX(-50%);
  transition: width 0.4s var(--ease);
}
.client-cell:hover::after { width: 50%; }

/* ============================================
   FOOTER CTA BAND
   ============================================ */
#footer-band {
  position: relative;
  padding: 80px 60px;
  overflow: hidden;
}
.footer-band-bg {
  position: absolute;
  inset: 0;
}
.footer-band-bg img { filter: brightness(0.4) sepia(100%) saturate(400%) hue-rotate(340deg); }
.footer-band-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,10,10,0.75) 40%, rgba(10,10,10,0.2));
}
.footer-band-content {
  position: relative;
  z-index: 1;
}
.footer-band-title {
  font-family: var(--font-display);
  font-size: clamp(64px, 6vw, 130px);
  line-height: 0.92;
  letter-spacing: 2px;
  color: var(--white);
}
.footer-band-title em {
  font-style: normal;
  color: var(--orange);
}

/* ============================================
   FOOTER
   ============================================ */
#footer {
  background: var(--dark);
  border-top: 1px solid var(--white-10);
  padding: 60px 60px 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--white-10);
}
.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.footer-brand-logo svg { width: 32px; height: 32px; }
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 2px;
}
.footer-brand-name span { color: var(--orange); }
.footer-tagline {
  font-size: 15px;
  color: var(--white-50);
  line-height: 1.6;
  font-weight: 300;
  max-width: 280px;
}
.footer-col-title {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: none;
  color: var(--orange);
  margin-bottom: 20px;
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--white-80);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.5;
}
.footer-contact-item svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 3px; color: var(--orange); }
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-social a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white-80);
  font-size: 15px;
  font-weight: 400;
  transition: color 0.3s, gap 0.3s;
}
.footer-social a:hover { color: var(--orange); gap: 16px; }
.footer-social a svg { width: 16px; height: 16px; }
.footer-social a .social-line {
  display: none; 
  width: 20px; height: 1px;
  background: currentColor;
  transition: width 0.3s;
}
.footer-social a:hover .social-line { width: 30px; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy {
  font-size: 11px;
  color: var(--white-50);
  letter-spacing: 0.5px;
}
.footer-legal {
  font-size: 11px;
  color: var(--white-50);
}

/* ============================================
   FADE-IN ON SCROLL (Intersection Observer)
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   HAMBURGER MENU
   ============================================ */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 4px;
  z-index: 1001;
}
.nav-hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: transform 0.35s var(--ease), opacity 0.3s, width 0.3s;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Overlay móvil */
.nav-mobile-overlay {
    position: fixed;
    inset: 0;
    background: var(--orange);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;    /* ← agregar esta línea */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
	width: 100%;
}
.nav-mobile-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.nav-mobile-close {
  position: absolute;
  top: 28px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
 
}
.nav-mobile-close:hover { background: rgba(255,255,255,0.3); }
.nav-mobile-close svg { width: 20px; height: 20px; color: white; }
.nav-mobile-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: 100%;        /* ← agregar esta línea */
}
.nav-mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(24px, 6vw, 48px);
  font-weight: 400;
  color: var(--white);
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  display: block;
  text-align: center;
  width: 100%;
  opacity: 1;
  transform: none;
  transition: color 0.2s;
}
.nav-mobile-menu a:hover { opacity: 0.7; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  #navbar { padding: 0 32px; }
  #hero { padding: 0 32px 80px; }
  #about, #services, #clients, #footer { padding-left: 32px; padding-right: 32px; }
  #footer-band { padding-left: 32px; padding-right: 32px; }
  .about-intro { grid-template-columns: 1fr; gap: 32px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .services-mosaic { grid-template-columns: 1fr 1fr; }
  .service-tile:nth-child(4) { grid-column: auto; }
  .service-tile:nth-child(5) { grid-column: auto; }
  .service-tile.deco { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  #navbar { padding: 0 20px; }
  nav { display: none; } /* oculta nav desktop en móvil */
  .nav-hamburger { display: flex; } /* muestra hamburguesa */
  #hero { padding: 300px 20px 64px; }
  /* FIX 4 — Hero title: 3 líneas armoniosas en móvil, peso ligero */
  .hero-title {
    font-size: clamp(38px, 11vw, 64px) !important;
    line-height: 0.95 !important;
    letter-spacing: 1px !important;
    font-weight: 300 !important;
    word-break: keep-all !important;
  }
  .hero-cta { cursor: pointer !important; }

  /* FIX 3+5 — Footer band: mismo peso que hero, 2 líneas, no bold */
  .footer-band-title {
    font-size: clamp(38px, 11vw, 64px) !important;
    font-weight: 300 !important;
    line-height: 1.0 !important;
    letter-spacing: 1px !important;
  }
  #about, #services, #clients { padding: 72px 20px; }
  #footer-band { padding: 60px 20px; }
  #footer { padding: 48px 20px 32px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 1px; }
  .services-mosaic { grid-template-columns: 1fr; }
  .service-tile:nth-child(4) { grid-column: auto; }
  .service-tile:nth-child(5) { grid-column: auto; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .about-title { font-size: clamp(32px, 7vw, 52px); }

  /* FIX 2 — Sin justify, sin hifenación — palabras bajan, no se cortan */
  .about-text p {
    text-align: left !important;
    word-spacing: normal !important;
    hyphens: none !important;
    -webkit-hyphens: none !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
  }

  /* FIX 4 — Nombres del equipo más pequeños, no tapan el rostro */
  .team-card-name {
    font-size: 13px !important;
    letter-spacing: 0.5px !important;
  }
  .team-card-role {
    font-size: 8px !important;
    letter-spacing: 1px !important;
    margin-top: 2px !important;
  }
  .team-card-info {
    padding: 10px 10px 12px !important;
  }

  /* FIX 7 — Modal team en móvil: imagen completa + mejor layout */
  .modal-box {
    grid-template-columns: 1fr;
    max-height: 92vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .modal-img {
    min-height: 280px;
    max-height: 55vw;
    overflow: hidden;
  }
  .modal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }
  .modal-body {
    padding: 24px 20px 32px !important;
  }
  .modal-name {
    font-size: 24px !important;
  }
  .modal-bio {
    max-height: none !important;
    overflow-y: visible !important;
  }
  .modal-close {
    cursor: pointer !important;
    width: 40px !important;
    height: 40px !important;
    top: 12px !important;
    right: 12px !important;
  }
  .team-modal {
    padding: 0 !important;
    align-items: flex-end !important;
  }
  .modal-backdrop { cursor: pointer !important; }
}

@media (min-width: 641px) {
  .nav-hamburger { display: none !important; }
  .nav-mobile-overlay { display: none !important; }
  nav { display: flex !important; }
}

/* ============================================
   INSIGHT
   ============================================ */
#insight {
  padding: 100px 60px;
  background: var(--dark);
}

.insight-header {
  margin-bottom: 50px;
}

.insight-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3vw, 90px);
  font-weight: 300;
  letter-spacing: 1px;
  color: var(--orange);
  margin: 0;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}

.insight-card {
  background: #111;
  border: 1px solid #222;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.insight-card:hover {
  transform: translateY(-6px);
  border-color: var(--orange);
  box-shadow: 0 12px 32px rgba(232, 89, 26, 0.18);
}

.insight-card:hover .insight-img-wrap img {
  transform: scale(1.06);
}

.insight-card.active-card {
  border-color: var(--orange);
  box-shadow: 0 0 0 2px var(--orange);
}

.insight-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #1a1a1a;
  overflow: hidden;
}

.insight-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.insight-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 400;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.insight-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.insight-card-title {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  margin: 0;
  line-height: 1.4;
}

.insight-date {
  font-size: 12px;
  color: var(--orange);
  font-weight: 500;
}

.insight-arrow {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 4px;
}

.insight-arrow svg {
  width: 16px;
  height: 16px;
  stroke: #555;
  transition: stroke 0.2s ease, transform 0.2s ease;
}

.insight-card:hover .insight-arrow svg {
  stroke: var(--orange);
  transform: translateX(3px);
}

/* Paginación */
.insight-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.insight-pg-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--orange);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.insight-pg-arrow svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
}

.insight-pg-arrow:hover {
  background: #c44d12;
  transform: scale(1.08);
}

.insight-pg-arrow:disabled {
  background: #333;
  cursor: default;
  transform: none;
}

.insight-pg-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid #444;
  color: #aaa;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.insight-pg-num:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.insight-pg-num.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

/* Responsive */
@media (max-width: 1024px) {
  .insight-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  #insight { padding: 60px 20px; }
  .insight-grid { grid-template-columns: 1fr; }
}

/* ============================================
   INSIGHT MODAL
   ============================================ */
.insight-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.insight-modal.open {
  opacity: 1;
  pointer-events: all;
}
.insight-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.82);
}
.insight-modal-box {
  position: relative;
  z-index: 1;
  background: #151515;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  width: 90%;
  max-width: 1100px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.insight-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2a2a2a;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.insight-modal-close:hover { background: #c44d12; }
.insight-modal-close svg { width: 16px; height: 16px; stroke: #fff; }

.insight-modal-scroll {
  overflow-y: auto;
  padding: 40px 64px 64px;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}
.insight-modal-scroll::-webkit-scrollbar { width: 4px; }
.insight-modal-scroll::-webkit-scrollbar-track { background: transparent; }
.insight-modal-scroll::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }

.insight-modal-badge-tag {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 400;
  padding: 3px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}
.insight-modal-img-wrap {
  width: 100%;
  aspect-ratio: 16/7;
  background: #1a1a1a;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
}
.insight-modal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.insight-modal-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
}
.insight-modal-date {
  font-size: 13px;
  color: var(--orange);
  font-weight: 500;
}
.insight-modal-author {
  font-size: 13px;
  color: #888;
}
.insight-modal-title {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 600;
  color: var(--orange);
  line-height: 1.3;
  margin: 0 0 24px;
}
.insight-modal-body {
  font-size: 15px;
  line-height: 1.8;
  color: #bbb;
}
.insight-modal-body h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--orange);
  margin: 28px 0 10px;
}
.insight-modal-body h4 {
  font-size: 14px;
  font-weight: 400;
  color: #ddd;
  margin: 20px 0 8px;
}
.insight-modal-body p {
  margin: 0 0 14px;
  word-break: normal
}
.insight-modal-body strong {
  color: #fff;
  font-weight: 400;
}
.insight-modal-body ol,
.insight-modal-body ul {
  padding-left: 24px;
  margin: 0 0 14px;
}
.insight-modal-body ul {
  list-style: disc;
}
.insight-modal-body ol {
  list-style: decimal;
}
.insight-modal-body ul ul {
  list-style: circle;
  margin: 6px 0 0;
}
.insight-modal-body li {
  margin-bottom: 6px;
  display: list-item;
}

/* Insight modal responsive — ancho ampliado */
@media (max-width: 960px) {
  .insight-modal-box {
    width: 95%;
    max-width: 95%;
  }
  .insight-modal-scroll {
    padding: 28px 24px 36px;
  }
}

/* ============================================
   SERVICE MODAL — ACCORDION (Pilares)
   ============================================ */
.svc-modal-box {
  grid-template-columns: 1fr !important;
  max-width: 1100px !important;
  max-height: 88vh;
  overflow: hidden;
  display: flex !important;
  flex-direction: column;
}

.svc-modal-header {
  padding: 44px 44px 28px;
  border-bottom: 1px solid var(--white-10);
  flex-shrink: 0;
}

.svc-modal-pilar-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 10px;
}

.svc-modal-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  color: var(--orange);
  line-height: 1.1;
  margin-bottom: 14px;
}

.svc-modal-intro {
  font-size: 15px;
  line-height: 1.75;
  color: var(--white-80);
  font-weight: 300;
}

/* Accordion container */
.svc-modal-accordion {
  overflow-y: auto;
  flex: 1;
  padding: 12px 0;
}
.svc-modal-accordion::-webkit-scrollbar { width: 3px; }
.svc-modal-accordion::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 2px; }

/* Accordion item */
.svc-acc-item {
  border-bottom: 1px solid var(--white-10);
}
.svc-acc-item:last-child { border-bottom: none; }

.svc-acc-trigger {
  width: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 44px;
  gap: 16px;
  transition: background 0.2s;
  text-align: left;
}
.svc-acc-trigger:hover {
  background: var(--white-05);
}

.svc-acc-num {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 1px;
  flex-shrink: 0;
  min-width: 24px;
}

.svc-acc-label {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--white-80);
  flex: 1;
  transition: color 0.2s;
  letter-spacing: 0.3px;
}
.svc-acc-trigger:hover .svc-acc-label,
.svc-acc-item.open .svc-acc-label {
  color: var(--white);
}

.svc-acc-icon {
  width: 28px;
  height: 28px;
  border: 1px solid var(--white-20);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s, border-color 0.25s, transform 0.35s var(--ease);
}
.svc-acc-icon svg {
  width: 12px;
  height: 12px;
  color: var(--white-80);
  transition: color 0.2s;
}
.svc-acc-item.open .svc-acc-icon {
  background: var(--orange);
  border-color: var(--orange);
  transform: rotate(45deg);
}
.svc-acc-item.open .svc-acc-icon svg { color: white; }

/* Accordion body */
.svc-acc-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.42s var(--ease), opacity 0.3s;
  opacity: 0;
}
.svc-acc-item.open .svc-acc-body {
  max-height: 600px;
  opacity: 1;
}

.svc-acc-content {
  padding: 0 44px 22px 44px;
}

.svc-acc-body-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--white-50);
  margin-bottom: 14px;
  font-weight: 300;
}

.svc-acc-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.svc-acc-bullets li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--white-80);
  font-weight: 300;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.svc-acc-bullets li::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--orange);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 7px;
}

/* Responsive */
@media (max-width: 600px) {
  .svc-modal-header { padding: 28px 24px 20px; }
  .svc-acc-trigger { padding: 14px 24px; cursor: pointer; }
  .svc-acc-content { padding: 0 24px 18px; }
  .svc-modal-box { max-height: 92vh; }
}

/* ── About: párrafos en 3 columnas debajo del título ── */
.about-title {
  max-width: 600px;
}

/* ── Clients: celda vacía (placeholder para logos futuros) ── */
.client-cell--empty {
  opacity: 0.15;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 6px,
    rgba(255,255,255,0.04) 6px,
    rgba(255,255,255,0.04) 12px
  );
}

/* ── Responsive About text ── */
@media (max-width: 900px) {
  .about-text {
    max-width: 100%;
  }
}
@media (max-width: 600px) {
  .about-text {
    max-width: 100%;
  }
}

/* ============================================
   PARTNERS BAND — Asociados & Socios Estratégicos
   ============================================ */
.partners-band {
  background: var(--about-bg);
  border-top: 1px solid rgba(0,0,0,0.08);
  padding: 80px 60px 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.partners-group {
  display: flex;
  min-width: 300px;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.partners-label {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: none;
  color: var(--orange);
  position: relative;
}

.partners-label::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--orange);
  margin: 8px auto 0;
}

.partners-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: nowrap;
}

.partner-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease), filter 0.3s;
}

.partner-logo-item img {
  width: auto;
  height: 130px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.55);
  transition: filter 0.35s var(--ease);
}

.partner-logo-item:hover img {
  filter: grayscale(0%) opacity(1);
}

.partners-divider {
  width: 1px;
  height: 150px;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.15), transparent);
  flex-shrink: 0;
  margin-top: 60px;
}

/* Responsive */
@media (max-width: 768px) {
  .partners-band {
    flex-direction: column;
    gap: 24px;
    padding: 40px 24px 48px;
  }
  .partners-divider {
    width: 80px;
    height: 1px;
    margin-top: 0;
    background: linear-gradient(to right, transparent, rgba(0,0,0,0.15), transparent);
  }
  .partners-logos {
    gap: 28px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .partner-logo-item img {
    height: 70px;
    min-width: 100px;
  }
  .partners-group {
    min-width: unset;
    width: 100%;
  }
}

/* ── ¿Qué brindamos? — título previo a viñetas en accordion ── */
.svc-acc-que-brindamos {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--orange);
  margin: 14px 0 8px;
  letter-spacing: 0.3px;
}
@media (max-width: 768px) {
  .insight-modal-body p {
    text-align: left;
    hyphens: none;
  }
}