/* ─── FONTS ──────────────────────────────────────────── */
@font-face {
  font-family: 'YoungestSerif';
  src: url('../fonts/the-youngest-serif-display.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'NotoBalinese';
  src: url('../fonts/NotoSerifBalinese-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ─── VARIABLES ──────────────────────────────────────── */
:root {
  --azul: #06243B;
  --azul-mid: #0d3a5c;
  --beige: #F4F3EE;
  --amarillo: #E39C00;
  --amarillo-dark: #c67e00;
  --negro: #000000;
  --white: #ffffff;
  --gray: #6b7a8d;
  --gray-light: #ddddd5;
  --text: #1a1a1a;
}

/* ─── RESET ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.7;
  letter-spacing: -0.01em;
}

h1, h2, h3, h4 {
  font-family: 'Sora', 'Inter', sans-serif;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h3 { font-weight: 700; }
h4 { font-weight: 600; }

/* ─── NAVBAR ─────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 76px;
  background: var(--white);
  border-bottom: 1px solid rgba(6,36,59,0.08);
  transition: box-shadow .3s;
}
nav.scrolled {
  box-shadow: 0 4px 32px rgba(6,36,59,0.12);
}

.nav-logo img { height: 80px; width: auto; display: block; }

.nav-links {
  display: flex; align-items: center; gap: 36px;
  list-style: none;
}
.nav-links a {
  text-decoration: none; color: var(--azul);
  font-size: 14.5px;
  font-family: 'Inter', sans-serif;
  position: relative; padding-bottom: 3px;
  transition: opacity .25s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--amarillo);
  transition: width .3s ease;
}
.nav-links a:hover { opacity: 0.65; }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--amarillo) !important;
  color: var(--azul) !important;
  padding: 10px 24px !important;
  border-radius: 6px;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  opacity: 1 !important;
  box-shadow: 0 4px 16px rgba(227,156,0,0.38);
  transition: background .25s, color .25s, transform .2s, box-shadow .25s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--azul) !important;
  color: var(--white) !important;
  opacity: 1 !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(6,36,59,0.28) !important;
  outline: 2px solid var(--amarillo) !important;
  outline-offset: 3px !important;
  animation-play-state: paused !important;
}
@media (prefers-reduced-motion: no-preference) {
  .nav-cta { animation: nav-cta 7s ease-in-out 4s infinite; }
}
@keyframes nav-cta {
  0%, 55%, 100% {
    transform: scale(1) translateY(0);
    box-shadow: 0 4px 16px rgba(227,156,0,0.38);
  }
  10% {
    transform: scale(1.04) translateY(0);
    box-shadow: 0 6px 28px rgba(227,156,0,0.72), 0 0 0 5px rgba(227,156,0,0.14);
  }
  20% {
    transform: scale(1.02) translateY(0);
    box-shadow: 0 5px 20px rgba(227,156,0,0.52), 0 0 0 2px rgba(227,156,0,0.08);
  }
  30% {
    transform: scale(1.035) translateY(0);
    box-shadow: 0 6px 26px rgba(227,156,0,0.65), 0 0 0 4px rgba(227,156,0,0.12);
  }
}

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; flex-shrink: 0; }
.hamburger span {
  display: block; width: 24px; height: 2.5px;
  background: var(--azul); border-radius: 2px;
  transition: transform .35s, opacity .35s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed;
  top: 76px; left: 0; right: 0;
  background: var(--white);
  padding: 24px 5% 32px;
  border-bottom: 1px solid var(--gray-light);
  flex-direction: column; gap: 20px;
  transform: translateY(-10px); opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
  z-index: 999; pointer-events: none;
}
.mobile-menu.open { pointer-events: all; transform: translateY(0); opacity: 1; }
.mobile-menu a {
  text-decoration: none; color: var(--azul);
  font-size: 16px;
  padding: 8px 0; border-bottom: 1px solid var(--gray-light);
  transition: color .2s;
  font-family: 'Inter', sans-serif;
}
.mobile-menu .mob-cta {
  background: var(--amarillo); color: var(--azul) !important;
  padding: 14px 24px; border-radius: 8px; text-align: center;
  font-weight: 700; border: none; margin-top: 4px;
}

/* ─── SECTION BASE ───────────────────────────────────── */
section { padding: 100px 5%; }
.section-inner { max-width: 1280px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 {
  font-size: clamp(28px, 4vw, 50px);
  color: var(--azul); margin-bottom: 16px;
  line-height: 1.15;
}
.section-header p {
  font-size: 16px; color: var(--gray);
  max-width: 640px; margin: 0 auto; line-height: 1.75;
}

.section-label {
  display: block;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--amarillo-dark);
  font-family: 'NotoBalinese', Georgia, serif;
  margin-bottom: 14px;
}

/* ─── BUTTONS ────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--amarillo); color: var(--azul);
  padding: 14px 30px; border-radius: 5px;
  font-weight: 700; font-size: 15px;
  font-family: 'Inter', sans-serif;
  text-decoration: none; border: none; cursor: pointer;
  transition: background .25s, transform .2s, box-shadow .25s;
  box-shadow: 0 4px 20px rgba(227,156,0,0.3);
}
.btn-primary:hover {
  background: var(--amarillo-dark); transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(227,156,0,0.4);
}

.btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; color: var(--white);
  padding: 14px 30px; border-radius: 5px;
  font-weight: 600; font-size: 15px;
  font-family: 'Inter', sans-serif;
  text-decoration: none; cursor: pointer;
  border: 1.5px solid rgba(255,255,255,0.4);
  transition: background .25s, border-color .25s, transform .2s;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.7);
  transform: translateY(-2px);
}

/* ─── HERO ───────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 140px 5% 100px;
  background: var(--azul);
  position: relative; overflow: hidden;
}

.hero-bg-visual {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.hero-bg-img {
  position: absolute; right: 0; top: 0;
  width: 65%; height: 100%;
  object-fit: cover; object-position: center top;
  opacity: 0.28;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.5) 22%, black 55%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.5) 22%, black 55%);
}

/* Grain texture */
.hero-bg-visual::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.028;
  pointer-events: none;
}

/* Glow izquierdo (amarillo) */
.hero::before {
  content: '';
  position: absolute; top: -180px; left: -80px;
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(227,156,0,0.11) 0%, transparent 65%);
  border-radius: 50%; pointer-events: none; z-index: 1;
}

/* Glow derecho (azul frío) */
.hero::after {
  content: '';
  position: absolute; bottom: -120px; right: -60px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(100,180,255,0.05) 0%, transparent 65%);
  border-radius: 50%; pointer-events: none; z-index: 1;
}

.hero-inner {
  max-width: 1280px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr;
  position: relative; z-index: 2;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(227,156,0,0.10); border: 1px solid rgba(227,156,0,0.24);
  color: var(--amarillo); border-radius: 4px;
  padding: 7px 16px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 20px;
  font-family: 'NotoBalinese', Georgia, serif;
}
.hero-badge::before {
  content: '';
  display: inline-block; width: 6px; height: 6px;
  background: var(--amarillo); border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(227,156,0,0.2);
  animation: badge-pulse 2.4s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(227,156,0,0.2); }
  50%       { box-shadow: 0 0 0 6px rgba(227,156,0,0.06); }
}

.hero-rule {
  display: block;
  width: 44px; height: 2px;
  background: linear-gradient(to right, var(--amarillo), transparent);
  margin-bottom: 24px;
  opacity: 0.7;
}

.hero-text { max-width: 640px; }

.hero-title {
  font-family: 'YoungestSerif', serif;
  font-size: clamp(36px, 5vw, 66px);
  color: var(--white);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.hero-title-accent {
  color: var(--amarillo);
  display: block;
  font-weight: normal;
}

.hero-desc {
  font-size: 17px; color: rgba(255,255,255,0.72);
  line-height: 1.8; margin-bottom: 40px;
  max-width: 500px;
  letter-spacing: 0;
}

.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-img-wrap {
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.45);
  aspect-ratio: 4/3;
}
.hero-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ─── ALIADOS ────────────────────────────────────────── */
.aliados {
  padding: 52px 5%;
  background: var(--white);
  border-bottom: 1px solid var(--gray-light);
}

.aliados-label {
  text-align: center;
  font-size: 12px; color: var(--gray);
  letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 36px;
  font-family: 'NotoBalinese', Georgia, serif;
}

.logos-slider {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.logos-track {
  display: flex; align-items: center; gap: 56px;
  width: max-content;
  animation: logos-slide 30s linear infinite;
}
.logos-slider:hover .logos-track { animation-play-state: paused; }

@keyframes logos-slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.logo-item {
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  color: var(--gray);
  white-space: nowrap;
  padding: 10px 28px;
  border: 1.5px solid var(--gray-light);
  border-radius: 4px;
  letter-spacing: .04em;
  transition: color .25s, border-color .25s;
  user-select: none;
}
.logo-item:hover { color: var(--azul); border-color: rgba(6,36,59,0.4); }

/* Image logo items (socios y clientes) */
.logo-img-item {
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  width: 160px; height: 64px;
  filter: grayscale(100%); opacity: 0.55;
  transition: filter .3s, opacity .3s;
  user-select: none;
}
.logo-img-item:hover { filter: grayscale(0%); opacity: 1; }
.logo-img-item .logo-img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  display: block;
}
.logo-img-item .logo-img-name {
  display: none;
  font-family: 'Inter', sans-serif;
  font-size: 13px; color: var(--gray);
  letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap;
  padding: 10px 24px;
  border: 1.5px solid var(--gray-light);
  border-radius: 4px;
}

/* Clientes slider */
.clientes-slider { margin-bottom: 0; }
.logo-img-item--cliente { width: 180px; height: 72px; }

/* ─── PAIN POINTS (FLIP CARDS) ───────────────────────── */
.pain-points { background: var(--beige); }
.pain-points .section-header h2 { color: var(--azul); }

.flip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.flip-card {
  perspective: 1000px;
  height: 280px;
  cursor: pointer;
}
.flip-card-inner {
  position: relative; width: 100%; height: 100%;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}
.flip-card:hover .flip-card-inner,
.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}
.flip-card-front,
.flip-card-back {
  position: absolute; width: 100%; height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 10px; padding: 28px 28px 24px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.flip-card-front {
  background: var(--white);
  border: 1px solid rgba(6,36,59,0.07);
  box-shadow: 0 2px 16px rgba(6,36,59,0.05);
}
.flip-card-back {
  background: var(--azul);
  transform: rotateY(180deg);
  justify-content: center;
}

.flip-icon { font-size: 22px; color: var(--amarillo); }
.flip-problem {
  font-size: 15px; color: var(--azul); line-height: 1.6;
  font-family: 'Inter', sans-serif;
  flex: 1; padding: 12px 0;
}
.flip-solution {
  font-size: 14px; color: rgba(255,255,255,0.88); line-height: 1.75;
  font-family: 'Inter', sans-serif;
}
.flip-hint {
  font-size: 11px; color: var(--gray); letter-spacing: .05em;
  font-family: 'Inter', sans-serif;
}

/* Objeciones variant */
.flip-grid--objeciones { grid-template-columns: repeat(2, 1fr); }
.flip-card--obj { height: 300px; }
.flip-card-front--obj {
  background: var(--white);
  justify-content: space-between;
}
.flip-card-front--obj .flip-problem {
  font-family: 'YoungestSerif', serif;
  font-size: 20px; color: var(--azul); line-height: 1.3;
  flex: 1; padding: 16px 0;
}

/* ─── AUDIENCIA ──────────────────────────────────────── */
.audiencia { background: var(--white); }
.audiencia .section-header h2 { color: var(--azul); }

.audiencia-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.audiencia-card {
  border: 1.5px solid var(--gray-light);
  border-radius: 10px; padding: 36px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.audiencia-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(6,36,59,0.08);
  border-color: rgba(6,36,59,0.3);
}
.audiencia-card--highlight {
  background: var(--azul);
  border-color: var(--azul);
}
.audiencia-card--highlight:hover { border-color: var(--amarillo); }

.audiencia-tag {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--amarillo-dark); margin-bottom: 16px; display: block;
  font-family: 'NotoBalinese', Georgia, serif;
}
.audiencia-card--highlight .audiencia-tag { color: var(--amarillo); }

.audiencia-card h3 {
  font-size: 20px; color: var(--azul);
  margin-bottom: 16px; line-height: 1.3;
}
.audiencia-card--highlight h3 { color: var(--white); }
.audiencia-card p { font-size: 14.5px; color: var(--gray); line-height: 1.75; }
.audiencia-card--highlight p { color: rgba(255,255,255,0.65); }

/* ─── METODOLOGÍA ────────────────────────────────────── */
.metodologia { background: var(--azul); }
.metodologia .section-label { color: var(--amarillo); }
.metodologia .section-header h2 { color: var(--white); }
.metodologia .section-header p { color: rgba(255,255,255,0.6); }

.metodologia-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-bottom: 80px;
}
.metodo-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px; padding: 36px;
  transition: background .3s, border-color .3s, transform .3s;
}
.metodo-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(227,156,0,0.4);
  transform: translateY(-4px);
}
.metodo-num {
  font-family: 'YoungestSerif', serif;
  font-size: 44px; color: var(--amarillo);
  opacity: 0.55; margin-bottom: 20px; line-height: 1;
}
.metodo-card h3 {
  font-size: 20px; color: var(--white); margin-bottom: 14px;
}
.metodo-card p { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.75; margin-bottom: 20px; }
.metodo-list { list-style: none; }
.metodo-list li {
  font-size: 13px; color: rgba(255,255,255,0.5);
  padding: 5px 0; display: flex; align-items: flex-start; gap: 8px;
  font-family: 'Inter', sans-serif;
}
.metodo-list li::before { content: '—'; color: var(--amarillo); flex-shrink: 0; }

/* Coberturas */
.coberturas-block {
  border-top: 1px solid rgba(255,255,255,0.09);
  padding-top: 64px; text-align: center;
}
.coberturas-title {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: clamp(22px, 3vw, 36px); color: var(--white); margin-bottom: 12px;
}
.coberturas-sub {
  font-size: 15px; color: rgba(255,255,255,0.55);
  max-width: 560px; margin: 0 auto 44px; line-height: 1.7;
}
.coberturas-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}
.cobertura-item {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 5px; padding: 12px 20px;
  font-size: 14px; color: rgba(255,255,255,0.75);
  font-family: 'Inter', sans-serif;
  transition: background .3s, border-color .3s, color .3s;
}
.cobertura-item:hover {
  background: rgba(227,156,0,0.1);
  border-color: rgba(227,156,0,0.4); color: var(--white);
}
.cobertura-item i { color: var(--amarillo); }

/* ─── CONFIANZA ──────────────────────────────────────── */
.confianza { background: var(--beige); }
.confianza .section-label { color: var(--azul); opacity: 0.7; }

/* Intro bicolumna */
.confianza-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}
.confianza-intro-left .section-label { margin-bottom: 16px; }
.confianza-intro-left h2 {
  color: var(--azul);
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.confianza-intro-right {
  font-size: 15px; color: var(--gray);
  line-height: 1.75;
  padding-bottom: 4px;
  border-left: 2px solid var(--amarillo);
  padding-left: 20px;
}

/* Grid de KPIs */
.kpi-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: 64px;
  border: 1px solid rgba(6,36,59,0.09);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
}
.kpi-card {
  background: var(--white);
  padding: 40px 32px 36px;
  text-align: left;
  position: relative;
  border-right: 1px solid rgba(6,36,59,0.07);
  overflow: hidden;
  transition: background .3s;
}
.kpi-card:last-child { border-right: none; }
.kpi-card:hover { background: rgba(6,36,59,0.025); }

/* Barra ámbar superior — se despliega al activarse */
.kpi-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--amarillo);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.kpi-card.active::before { transform: scaleX(1); }

/* Índice */
.kpi-index {
  position: absolute; top: 20px; right: 24px;
  font-size: 10px; color: rgba(6,36,59,0.14);
  font-family: 'Sora', sans-serif; font-weight: 800;
  letter-spacing: 0.05em;
}

.kpi-num {
  font-family: 'YoungestSerif', serif;
  font-size: clamp(44px, 4vw, 66px);
  color: var(--azul); line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 0;
}
.kpi-label {
  display: block;
  font-size: 10px; color: var(--amarillo-dark);
  letter-spacing: .18em; text-transform: uppercase;
  font-family: 'NotoBalinese', Georgia, serif;
  margin-top: 10px; margin-bottom: 14px;
}
.kpi-divider {
  width: 28px; height: 1px;
  background: rgba(6,36,59,0.14);
  margin-bottom: 12px;
}
.kpi-context {
  font-size: 13px; color: var(--gray);
  line-height: 1.65; font-weight: 300;
}

.confianza-clientes {
  text-align: center; margin-bottom: 64px;
}
.confianza-sub-label {
  font-size: 12px; color: var(--gray);
  text-transform: uppercase; letter-spacing: .12em; margin-bottom: 12px;
  display: block; font-family: 'NotoBalinese', Georgia, serif;
}
.clientes-count {
  font-family: 'YoungestSerif', serif;
  font-size: clamp(28px, 3.5vw, 44px); color: var(--azul);
}

.confianza-cols {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px;
}
.confianza-col h4 {
  font-size: 18px; color: var(--azul);
  margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 2px solid var(--amarillo);
}
.team-stats { display: flex; gap: 32px; margin-bottom: 16px; }
.team-stat span {
  display: block; font-family: 'YoungestSerif', serif;
  font-size: 34px; color: var(--azul); line-height: 1;
}
.team-stat p { font-size: 13px; color: var(--gray); margin-top: 4px; }
.confianza-col-desc { font-size: 13.5px; color: var(--gray); line-height: 1.65; }

.confianza-list { list-style: none; }
.confianza-list li {
  font-size: 14px; color: var(--text);
  padding: 9px 0; display: flex; align-items: flex-start; gap: 10px;
  border-bottom: 1px solid rgba(6,36,59,0.06);
  font-family: 'Inter', sans-serif;
}
.confianza-list li:last-child { border-bottom: none; }
.confianza-list li i { color: var(--amarillo); margin-top: 2px; flex-shrink: 0; }

/* ─── CLIENTES ───────────────────────────────────────── */
.clientes-section { background: var(--white); }
.clientes-section .section-label { color: var(--amarillo-dark); }
.clientes-section .section-header h2 { color: var(--azul); }

.clientes-big-count {
  font-family: 'YoungestSerif', serif;
  font-size: clamp(20px, 2.5vw, 30px);
  color: var(--azul); font-weight: bold;
  margin-top: 8px;
}

.clientes-slider { margin-bottom: 64px; }

.testimoniales-grid--clientes { margin-top: 0; }

/* ─── PRUEBA SOCIAL ──────────────────────────────────── */
.prueba-social { background: var(--white); }
.prueba-social .section-header h2 { color: var(--azul); }

.casos-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-bottom: 40px;
}
.caso-card {
  background: var(--beige);
  border-radius: 10px; padding: 32px;
  border-left: 3px solid var(--amarillo);
  transition: transform .3s, box-shadow .3s;
}
.caso-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(6,36,59,0.07); }
.caso-tag {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--amarillo-dark); margin-bottom: 12px; display: block;
  font-family: 'NotoBalinese', Georgia, serif;
}
.caso-card p { font-size: 14px; color: var(--gray); line-height: 1.75; }

.testimoniales-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.testimonial-card {
  background: var(--azul);
  border-radius: 10px; padding: 32px;
  transition: transform .3s;
}
.testimonial-card:hover { transform: translateY(-4px); }
.testimonial-quote i { color: var(--amarillo); font-size: 20px; margin-bottom: 16px; display: block; }
.testimonial-card p {
  font-size: 15px; color: rgba(255,255,255,0.82);
  line-height: 1.8; margin-bottom: 20px; font-style: italic;
}
.testimonial-author {
  font-size: 11px; color: var(--amarillo); letter-spacing: .1em; text-transform: uppercase;
  font-family: 'NotoBalinese', Georgia, serif;
}

/* ─── OBJECIONES ─────────────────────────────────────── */
.objeciones { background: var(--beige); }
.objeciones .section-header h2 { color: var(--azul); }

/* ─── CONTACTO ───────────────────────────────────────── */
.contact { background: var(--azul); position: relative; overflow: hidden; }
.contact::before {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(227,156,0,0.05), transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.contact .section-label { color: var(--amarillo); }
.contact .section-header h2 { color: var(--white); }

.proceso-cta-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-bottom: 48px;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px; overflow: hidden;
  position: relative; z-index: 1;
}
.proceso-step {
  padding: 36px 32px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.proceso-step:last-child { border-right: none; }
.proceso-num {
  font-family: 'YoungestSerif', serif;
  font-size: 44px; color: var(--amarillo);
  opacity: 0.45; line-height: 1; margin-bottom: 12px;
}
.proceso-step h4 {
  font-size: 18px; color: var(--white); margin-bottom: 10px;
}
.proceso-step p { font-size: 13.5px; color: rgba(255,255,255,0.55); line-height: 1.7; }

.cta-tagline {
  text-align: center;
  font-family: 'YoungestSerif', serif;
  font-size: clamp(18px, 2.5vw, 28px);
  color: var(--amarillo);
  margin-bottom: 64px;
  font-style: italic;
  position: relative; z-index: 1;
}

.contact-inner {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 80px; align-items: start;
  position: relative; z-index: 1;
}
.contact-left h3 {
  font-size: clamp(24px, 3vw, 36px); color: var(--white); margin-bottom: 16px;
}
.contact-left > p { font-size: 16px; color: rgba(255,255,255,0.6); margin-bottom: 40px; line-height: 1.75; }

.contact-direct { display: flex; flex-direction: column; gap: 12px; }
.contact-direct a {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.7); text-decoration: none;
  font-size: 14px; transition: color .2s;
  font-family: 'Inter', sans-serif;
}
.contact-direct a:hover { color: var(--amarillo); }
.contact-direct i { width: 18px; color: var(--amarillo); flex-shrink: 0; }

.contact-form-wrap {
  background: var(--white); border-radius: 14px; padding: 40px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.28);
}

.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

label { display: block; font-size: 13px; color: var(--azul); margin-bottom: 6px; font-family: 'Inter', sans-serif; }
label span { color: #d63b3b; }

input, select, textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--gray-light); border-radius: 7px;
  font-size: 14px; font-family: 'Inter', sans-serif;
  color: var(--text); background: var(--white);
  transition: border-color .25s, box-shadow .25s;
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--azul);
  box-shadow: 0 0 0 3px rgba(6,36,59,0.07);
}
input::placeholder, textarea::placeholder { color: #b0b8c8; }
textarea { resize: vertical; min-height: 100px; }

.btn-submit {
  width: 100%; padding: 16px;
  background: var(--amarillo); color: var(--azul);
  border: none; border-radius: 7px; cursor: pointer;
  font-size: 16px; font-family: 'Inter', sans-serif;
  font-weight: 700;
  transition: background .25s, transform .2s, box-shadow .25s;
  box-shadow: 0 4px 20px rgba(227,156,0,0.28);
  margin-top: 8px;
}
.btn-submit:hover {
  background: var(--amarillo-dark); transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(227,156,0,0.4);
}
.form-note { text-align: center; font-size: 12px; color: var(--gray); margin-top: 14px; line-height: 1.55; }

/* ─── CONTACTO (info + mapa) ─────────────────────────── */
.contact-info-grid {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start;
  position: relative; z-index: 1;
}

.contact-info-col { display: flex; flex-direction: column; gap: 48px; }

.contact-info-block h3 {
  font-size: clamp(22px, 2.5vw, 30px); color: var(--white);
  margin-bottom: 24px;
}

.contact-address, .contact-hours {
  display: flex; align-items: flex-start; gap: 10px;
  color: rgba(255,255,255,0.7); font-size: 14px;
  font-family: 'Inter', sans-serif;
  line-height: 1.65;
}
.contact-address i, .contact-hours i { color: var(--amarillo); margin-top: 2px; width: 18px; flex-shrink: 0; }

.contact-social-block h4 {
  font-size: 18px; color: var(--white); margin-bottom: 20px;
}
.social-links { display: flex; gap: 12px; }
.social-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  color: rgba(255,255,255,0.75);
  text-decoration: none; font-size: 13px;
  font-family: 'Inter', sans-serif;
  transition: background .25s, border-color .25s, color .25s, transform .2s;
}
.social-link:hover { border-color: var(--amarillo); color: var(--amarillo); transform: translateY(-2px); }
.social-link i { font-size: 16px; }
.social-link span { display: none; }

.contact-visual-col { display: flex; flex-direction: column; gap: 16px; }

.office-photo-wrap {
  position: relative; border-radius: 10px; overflow: hidden;
  aspect-ratio: 16/7;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.09);
}
.office-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.office-photo-label {
  position: absolute; bottom: 14px; left: 14px;
  background: rgba(6,36,59,0.75); backdrop-filter: blur(6px);
  color: rgba(255,255,255,0.8); font-size: 12px;
  font-family: 'Inter', sans-serif;
  padding: 4px 12px; border-radius: 4px; letter-spacing: .06em;
}
.office-photo-placeholder::after {
  content: 'Foto de oficina próximamente';
  display: flex; align-items: center; justify-content: center;
  position: absolute; inset: 0;
  color: rgba(255,255,255,0.3); font-size: 13px;
  font-family: 'Inter', sans-serif;
  letter-spacing: .06em;
}

.contact-map-wrap {
  border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.09);
  filter: grayscale(20%) brightness(0.85) contrast(1.05);
}

/* ─── FOOTER ─────────────────────────────────────────── */
footer { background: #030e18; padding: 64px 5% 32px; color: rgba(255,255,255,0.55); }
.footer-inner { max-width: 1280px; margin: 0 auto; }

.footer-top {
  display: grid; grid-template-columns: 1.3fr 1fr;
  gap: 64px; margin-bottom: 48px;
}
.footer-brand img { height: 100px; width: auto; margin-bottom: 16px; display: block; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 13.5px; line-height: 1.7; max-width: 300px; }

.footer-col h4 {
  font-size: 16px; color: var(--white); margin-bottom: 20px;
}
.footer-contact-item {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 12px; font-size: 13.5px;
  font-family: 'Inter', sans-serif;
}
.footer-contact-item i { color: var(--amarillo); margin-top: 2px; width: 16px; flex-shrink: 0; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 28px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-bottom p { font-size: 13px; font-family: 'Inter', sans-serif; }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a {
  font-size: 13px; color: rgba(255,255,255,0.35);
  text-decoration: none; transition: color .2s;
  font-family: 'Inter', sans-serif;
}
.footer-bottom-links a:hover { color: rgba(255,255,255,0.8); }
.powered-link { color: rgba(255,255,255,0.5); text-decoration: none; transition: color .2s; }
.powered-link:hover { color: var(--amarillo); }

/* ─── TOAST ──────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 32px; right: 32px;
  background: var(--azul); color: var(--white);
  padding: 16px 24px; border-radius: 10px;
  font-size: 14px; box-shadow: 0 8px 32px rgba(6,36,59,0.3);
  display: flex; align-items: center; gap: 12px;
  z-index: 9999;
  transform: translateY(80px); opacity: 0;
  transition: transform .4s ease, opacity .4s ease;
  font-family: 'Inter', sans-serif;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast i { color: var(--amarillo); font-size: 18px; }

/* ─── FLOATING BUTTONS ───────────────────────────────── */
#btt {
  position: fixed; bottom: 24px; left: 24px; z-index: 9998;
  width: 44px; height: 44px; border-radius: 8px;
  background: var(--azul); color: var(--white);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  box-shadow: 0 4px 20px rgba(6,36,59,0.4);
  opacity: 0; transform: translateY(10px);
  transition: opacity .3s, transform .3s, background .2s;
}
#btt.show { opacity: 1; transform: translateY(0); }
#btt:hover { background: var(--azul-mid); transform: translateY(-3px); }

#wa-btn {
  position: fixed; bottom: 24px; right: 24px; z-index: 9998;
  width: 52px; height: 52px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform .25s, box-shadow .25s, background .2s;
}
#wa-btn:hover {
  background: #1ebe5d;
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 32px rgba(37,211,102,0.55);
}

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .confianza-intro { grid-template-columns: 1fr; gap: 24px; }
  .confianza-intro-right { border-left: none; padding-left: 0; border-top: 2px solid var(--amarillo); padding-top: 16px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .kpi-card:nth-child(2) { border-right: none; }
  .kpi-card:nth-child(3) { border-top: 1px solid rgba(6,36,59,0.07); }
  .kpi-card:nth-child(4) { border-top: 1px solid rgba(6,36,59,0.07); border-right: none; }
  .metodologia-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .contact-info-grid { grid-template-columns: 1fr; gap: 40px; }
  .social-link span { display: block; }
}

@media (min-width: 769px) { .mobile-menu { display: none !important; } }

@media (max-width: 768px) {
  nav { padding: 0 4%; }
  .nav-logo img { height: 62px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }

  .hero { padding: 120px 5% 80px; }
  .hero-bg-img { width: 100%; opacity: 0.12; -webkit-mask-image: none; mask-image: none; }
  .hero-text { max-width: 100%; }

  .flip-grid { grid-template-columns: 1fr; }
  .flip-card { height: 320px; }
  .flip-grid--objeciones { grid-template-columns: 1fr; }
  .flip-card--obj { height: 340px; }

  .audiencia-grid { grid-template-columns: 1fr; }
  .metodologia-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .kpi-card { padding: 28px 24px; }
  .confianza-intro { margin-bottom: 40px; }
  .casos-grid { grid-template-columns: 1fr; }
  .testimoniales-grid { grid-template-columns: 1fr; }
  .testimoniales-grid--clientes { grid-template-columns: 1fr; }

  .proceso-cta-grid { grid-template-columns: 1fr; }
  .proceso-step { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .proceso-step:last-child { border-bottom: none; }

  .contact-info-grid { grid-template-columns: 1fr; }
  .social-link span { display: block; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom-links { justify-content: center; flex-wrap: wrap; gap: 12px; }
}

@media (max-width: 480px) {
  section { padding: 72px 5%; }
  .hero { padding: 100px 5% 60px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .coberturas-grid { gap: 8px; }
}

/* ─── ANIMATION SYSTEM ───────────────────────────────── */
/* Base: elementos comienzan ocultos/desplazados */
[class*="anim-"] {
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-fromBottom { opacity: 0; transform: translateY(56px); }
.anim-fromTop    { opacity: 0; transform: translateY(-56px); }
.anim-fromLeft   { opacity: 0; transform: translateX(-64px); }
.anim-fromRight  { opacity: 0; transform: translateX(64px); }
.anim-fadeIn     { opacity: 0; transform: none; }

/* Estado activo: visible */
.anim-fromBottom.active,
.anim-fromTop.active,
.anim-fromLeft.active,
.anim-fromRight.active,
.anim-fadeIn.active {
  opacity: 1;
  transform: translate(0, 0);
}

/* Stagger delays */
.anim-d0 { transition-delay: 0s; }
.anim-d1 { transition-delay: 0.08s; }
.anim-d2 { transition-delay: 0.16s; }
.anim-d3 { transition-delay: 0.24s; }
.anim-d4 { transition-delay: 0.32s; }
.anim-d5 { transition-delay: 0.42s; }
.anim-d6 { transition-delay: 0.54s; }

/* Respeta prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  [class*="anim-"] { transition: none !important; }
  [class*="anim-"].active { opacity: 1; transform: none; }
}



/* ─────────────────────────────────────────
   CHATBOT FLOTANTE
───────────────────────────────────────── */
#chat-btn {
  position: fixed; bottom: 88px; right: 24px; z-index: 9998;
  width: 52px; height: 52px; border-radius: 50%;
  border: 3px solid var(--blue);
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0; overflow: hidden;
  box-shadow: 0 4px 20px rgba(6,36,59,0.40);
  transition: transform .25s, box-shadow .25s, border-color .2s;
}
#chat-btn img {
  width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 50%;
}
#chat-btn:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 32px rgba(6,36,59,0.50);
  border-color: var(--yellow);
}
#chat-btn.active {
  border-color: var(--yellow);
  box-shadow: 0 0 0 4px rgba(227,156,0,0.30);
}

/* Burbuja de texto */
.chat-bubble {
  position: fixed; bottom: 100px; right: 84px; z-index: 9997;
  background: white; color: var(--blue);
  font-size: 13px; font-weight: 600; font-family: 'DM Sans', sans-serif;
  padding: 8px 14px; border-radius: 20px 20px 4px 20px;
  box-shadow: 0 4px 20px rgba(6,36,59,0.18);
  white-space: nowrap;
  opacity: 0; transform: translateX(8px) scale(0.95);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}
.chat-bubble::after {
  content: '';
  position: absolute; right: -8px; bottom: 12px;
  border: 5px solid transparent;
  border-left-color: white;
}
.chat-bubble.visible { opacity: 1; transform: translateX(0) scale(1); }

/* Panel de chat */
#chat-panel {
  position: fixed; bottom: 152px; right: 24px; z-index: 9997;
  width: 320px;
  background: white; border-radius: 16px;
  box-shadow: 0 8px 40px rgba(6,36,59,0.20);
  overflow: hidden;
  opacity: 0; transform: translateY(12px) scale(0.97);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
#chat-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: all; }

.chat-panel-header {
  background: var(--azul); padding: 14px 16px;
  display: flex; align-items: center; gap: 10px;
}
.chat-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover; object-position: top;
  border: 2px solid var(--yellow); flex-shrink: 0;
}
.chat-agent-info { flex: 1; display: flex; flex-direction: column; }
.chat-agent-name { color: white; font-size: 14px; font-weight: 700; font-family: 'DM Sans', sans-serif; line-height: 1.2; }
.chat-agent-role { color: rgba(255,255,255,0.65); font-size: 11px; font-family: 'DM Sans', sans-serif; }
.chat-status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #25D366; box-shadow: 0 0 0 2px rgba(37,211,102,0.3); flex-shrink: 0;
}
#chat-close {
  background: rgba(255,255,255,0.15); border: none; cursor: pointer;
  color: white; width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; transition: background .2s; flex-shrink: 0;
}
#chat-close:hover { background: rgba(255,255,255,0.30); }

.chat-panel-body { padding: 16px; background: #f8f9fb; min-height: 120px; }
.chat-msg.incoming {
  background: white; border-radius: 12px 12px 12px 4px;
  padding: 10px 14px; max-width: 85%;
  box-shadow: 0 2px 8px rgba(6,36,59,0.08);
}
.chat-msg.incoming p { font-size: 14px; color: var(--blue); font-family: 'DM Sans', sans-serif; line-height: 1.5; }
.chat-time { display: block; font-size: 11px; color: #aaa; margin-top: 4px; }

.chat-panel-footer {
  padding: 12px 16px; border-top: 1px solid #eee;
  display: flex; gap: 8px; align-items: center; background: white;
}
.chat-panel-footer input {
  flex: 1; border: 1px solid #e5e7eb; border-radius: 20px;
  padding: 8px 14px; font-size: 13px; font-family: 'DM Sans', sans-serif;
  outline: none; background: #f8f9fb; color: #999; cursor: not-allowed;
}
.chat-panel-footer button {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--blue); color: white; border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; cursor: not-allowed; opacity: 0.5;
}

@media (max-width: 560px) {
  #chat-btn   { right: 16px; bottom: 80px; }
  .chat-bubble { right: 76px; bottom: 92px; }
  #chat-panel { right: 12px; bottom: 144px; width: calc(100vw - 24px); }
}
