@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Montserrat:wght@400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:         #1a2a4a;
  --navy-dark:    #111d36;
  --orange:       #e8a020;
  --red-logo:     #d32f2f;
  --blue-link:    #6b7fa3;
  --blue-label:   #7a8fb5;
  --text-dark:    #1a1a1a;
  --text-body:    #3a3a3a;
  --text-muted:   #7a8fb5;
  --bg-white:     #ffffff;
  --bg-light:     #f8f9fb;
  --border:       #e4e7ed;
  --font-display: 'Montserrat', sans-serif;
  --font-body:    'Inter', sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text-dark); background: var(--bg-white); overflow-x: hidden; }

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    width: 168px;      /* Ajusta el tamaño */
    height: auto;
}

/* ════════════════════════════════
   NAVBAR
════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: 62px;
  display: flex; align-items: center; justify-content: center;
}
.nav-inner {
  width: 100%; max-width: 1200px;
  padding: 0 48px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; font-family: var(--font-display);
}
.logo-icon { width: 32px; height: 32px; }
.logo-text { font-size: 17px; color: var(--text-dark); letter-spacing: -0.3px; }
.logo-text span { font-weight: 700; color: var(--text-dark); }
.logo-text em { font-style: normal; font-weight: 400; }
.nav-links { display: flex; gap: 36px; list-style: none; align-items: center; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  font-size: 14px; font-weight: 600; color: var(--text-dark); text-decoration: none;
  letter-spacing: 0.1px; transition: color 0.2s;
  display: flex; align-items: center; gap: 4px; height: 62px;
}
.nav-links > li > a:hover  { color: var(--blue-link); }
.nav-links > li > a.active { color: var(--blue-link); }

/* ════════════════════════════════
   MEGAMENÚ
════════════════════════════════ */
.mega-panel {
  position: absolute; top: 62px;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: #fff;
  border: none;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.13), 0 4px 16px rgba(0,0,0,0.06);
  display: flex; gap: 0;
  min-width: 660px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  overflow: hidden;
}
.nav-links > li:hover .mega-panel,
.nav-links > li:focus-within .mega-panel {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mega-promo {
  width: 210px; flex-shrink: 0;
  background: linear-gradient(145deg, #3b6abf 0%, #2a4fa0 100%);
  padding: 32px 24px;
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 20px; position: relative; overflow: hidden;
}
.mega-promo::before {
  content: '';
  position: absolute; top: -40px; right: -40px;
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.mega-promo::after {
  content: '';
  position: absolute; bottom: -20px; left: -20px;
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.mega-promo-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}
.mega-promo-icon svg { width: 20px; height: 20px; }
.mega-promo h4 {
  font-family: var(--font-display); font-size: 15px; font-weight: 700;
  color: #fff; line-height: 1.35; margin-bottom: 6px;
}
.mega-promo p { font-size: 12px; color: rgba(255,255,255,0.75); line-height: 1.55; }
.mega-promo-btn {
  display: inline-block; background: #fff; color: #2a4fa0;
  font-size: 12px; font-weight: 700; letter-spacing: 0.3px;
  text-decoration: none;
  padding: 10px 0; border-radius: 8px; text-align: center;
  transition: background 0.15s, transform 0.15s;
  position: relative; z-index: 1;
}
.mega-promo-btn:hover { background: rgba(255,255,255,0.92); transform: scale(1.02); }
.mega-cols { display: flex; gap: 0; flex: 1; }
.mega-col {
  padding: 28px 26px; flex: 1;
  border-left: 1px solid #f0f2f6;
}
.mega-col:first-child { border-left: none; }
.mega-group { margin-bottom: 24px; }
.mega-group:last-child { margin-bottom: 0; }
.mega-group-label {
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--blue-label);
  margin-bottom: 12px; display: block;
  padding-bottom: 6px; border-bottom: 1.5px solid #eef0f6;
}
.mega-group ul { list-style: none; }
.mega-group ul li { margin-bottom: 0; }
.mega-group ul li a {
  font-size: 13.5px; color: var(--text-body); text-decoration: none;
  padding: 5px 8px; margin: 0 -8px;
  display: flex; align-items: center; gap: 8px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.mega-group ul li a::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--border); flex-shrink: 0;
  transition: background 0.15s;
}
.mega-group ul li a:hover { background: #f4f6fb; color: var(--navy); }
.mega-group ul li a:hover::before { background: var(--blue-link); }

/* Biblioteca card items */
.mega-card-item {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 12px; margin: 0 -12px;
  border-radius: 8px; text-decoration: none;
  transition: background 0.15s;
}
.mega-card-item:hover { background: #f4f6fb; }
.mega-card-icon {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.mega-card-text { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.mega-card-label {
  font-size: 10px; font-weight: 700; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--blue-label);
}
.mega-card-desc { font-size: 13px; color: var(--text-body); }
.mega-card-badge {
  background: #e8ecf5; color: var(--navy);
  font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 12px; flex-shrink: 0;
}

/* ════════════════════════════════
   UTILIDADES GLOBALES
════════════════════════════════ */
section { padding: 80px 56px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.label-tag {
  font-size: 11px; font-weight: 600; letter-spacing: 1.8px;
  color: var(--blue-label); text-transform: uppercase; margin-bottom: 18px;
}
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Botón primario */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy); color: #fff;
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  letter-spacing: 0.3px; text-decoration: none;
  padding: 12px 24px; border-radius: 8px;
  transition: background 0.2s, transform 0.2s;
  width: fit-content; border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--navy-dark); transform: translateY(-1px); }
.btn-primary svg { width: 16px; height: 16px; }

/* Botón secundario */
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--navy);
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  letter-spacing: 0.3px; text-decoration: none;
  padding: 11px 24px; border-radius: 8px;
  border: 2px solid var(--navy);
  transition: background 0.2s, color 0.2s;
  width: fit-content; cursor: pointer;
}
.btn-secondary:hover { background: var(--navy); color: #fff; }

/* Breadcrumb */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-muted);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--blue-link); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb span { color: var(--border); }

/* Page hero (inner pages) */
.page-hero {
  margin-top: 62px;
  background: linear-gradient(135deg, var(--navy) 0%, #2a3f6b 100%);
  padding: 72px 56px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; top: -80px; right: -80px;
  width: 340px; height: 340px; border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.page-hero::after {
  content: '';
  position: absolute; bottom: -60px; left: 10%;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255,255,255,0.03);
}
.page-hero-inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }
.page-hero .label-tag { color: rgba(255,255,255,0.55); }
.page-hero h1 {
  font-family: var(--font-display); font-size: 40px; font-weight: 700;
  color: #fff; line-height: 1.2; margin-bottom: 16px;
  max-width: 640px;
}
.page-hero p {
  font-size: 16px; color: rgba(255,255,255,0.75);
  line-height: 1.7; max-width: 560px; margin-bottom: 32px;
}
.page-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px; padding: 6px 14px;
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.8);
  letter-spacing: 0.5px;
}

/* ════════════════════════════════
   FOOTER
════════════════════════════════ */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 64px 56px 40px;
  position: relative;
}
footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 40px;
  background: var(--bg-white);
  clip-path: ellipse(55% 100% at 50% 0%);
}
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand { padding-top: 8px; }
.footer-logo {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 20px; text-decoration: none;
}
.footer-logo .logo-text span,
.footer-logo .logo-text em { color: rgba(255,255,255,0.9); }
.footer-contact p { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.9; }
.footer-socials { display: flex; gap: 14px; margin-top: 16px; }
.footer-socials a {
  color: rgba(255,255,255,0.55); text-decoration: none;
  transition: color 0.2s;
}
.footer-socials a:hover { color: #fff; }
.footer-col h4 {
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,0.45);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 14px; color: rgba(255,255,255,0.75);
  text-decoration: none; transition: color 0.2s;
}
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
  margin-top: 48px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 12px; color: rgba(255,255,255,0.35);
  display: flex; justify-content: space-between;
}

/* ════════════════════════════════
   WHATSAPP FLOTANTE
════════════════════════════════ */
.wa-float {
  position: fixed; bottom: 28px; right: 28px;
  z-index: 200;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.wa-bubble {
  background: #fff; border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; color: var(--text-dark);
  opacity: 0; transform: translateY(8px) scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none; white-space: nowrap;
  border: 1px solid var(--border);
}
.wa-bubble.visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.wa-bubble-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #25d366; flex-shrink: 0;
  animation: pulse-green 1.8s ease-in-out infinite;
}
@keyframes pulse-green {
  0%,100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  50%      { box-shadow: 0 0 0 6px rgba(37,211,102,0); }
}
.wa-btn {
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(37,211,102,0.45);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.wa-btn:hover { transform: scale(1.08); box-shadow: 0 8px 28px rgba(37,211,102,0.55); }
.wa-btn svg { width: 30px; height: 30px; }

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (max-width: 900px) {
  .nav-inner { padding: 0 20px; }
  .nav-links { display: none; }
  section { padding: 56px 24px; }
  .page-hero { padding: 48px 24px; }
  .page-hero h1 { font-size: 28px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* ════════════════════════════════
   HAMBURGUESA
════════════════════════════════ */
.nav-ham {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
  padding: 4px; border-radius: 8px;
  transition: background 0.2s;
  flex-shrink: 0;
}
.nav-ham:hover { background: #f8f9fb; }
.nav-ham span {
  display: block; width: 22px; height: 2px;
  background: #1a1a1a; border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  transform-origin: center;
}
.nav-ham.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-ham.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-ham.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ════════════════════════════════
   MENÚ MÓVIL (drawer)
════════════════════════════════ */
.mobile-menu {
  display: none;
  position: fixed; top: 62px; left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid #e4e7ed;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  z-index: 99;
  padding: 20px 24px 28px;
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.mobile-menu.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-menu ul { list-style: none; margin-bottom: 20px; }
.mobile-menu ul li { border-bottom: 1px solid #e4e7ed; }
.mobile-menu ul li:last-child { border-bottom: none; }
.mob-link {
  display: block; padding: 14px 4px;
  font-size: 15px; font-weight: 600; color: #1a1a1a;
  text-decoration: none; transition: color 0.2s;
}
.mob-link:hover { color: #6b7fa3; }
.mob-wa {
  display: inline-flex; align-items: center; gap: 8px;
  background: #25d366; color: #fff;
  font-size: 14px; font-weight: 700;
  padding: 11px 20px; border-radius: 8px;
  text-decoration: none; transition: background 0.2s;
}
.mob-wa:hover { background: #1ebe5d; }
.mobile-overlay {
  display: none;
  position: fixed; inset: 0; top: 62px;
  background: rgba(0,0,0,0.25);
  z-index: 98; opacity: 0; transition: opacity 0.25s;
  pointer-events: none;
}
.mobile-overlay.open { opacity: 1; pointer-events: auto; }

/* ════════════════════════════════
   RESPONSIVE (override)
════════════════════════════════ */
@media (max-width: 900px) {
  .nav-inner { padding: 0 20px; }
  .nav-links  { display: none !important; }
  .nav-ham    { display: flex; }
  .mobile-menu, .mobile-overlay { display: block; }
}

/* ════════════════════════════════
   ACORDEONES MENÚ MÓVIL
════════════════════════════════ */
.mob-accordion {
  border-bottom: 1px solid #e4e7ed;
}
.mob-accordion:last-of-type { border-bottom: none; }

.mob-accordion-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 4px;
  background: none; border: none; cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 15px; font-weight: 600; color: #1a1a1a;
  text-decoration: none;
  transition: color 0.2s;
  text-align: left;
}
.mob-accordion-btn:hover { color: #6b7fa3; }
.mob-accordion-btn.active { color: #1a2a4a; }

.mob-chevron {
  width: 18px; height: 18px; flex-shrink: 0;
  stroke: #7a8fb5;
  transition: transform 0.25s ease;
}
.mob-accordion-btn.active .mob-chevron {
  transform: rotate(180deg);
  stroke: #1a2a4a;
}

.mob-accordion-body {
  display: flex; flex-direction: column;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  padding: 0 4px;
}
/* pequeño padding inferior cuando está abierto */
.mob-accordion-btn.active + .mob-accordion-body {
  padding-bottom: 12px;
}

.mob-sub-label {
  font-size: 10px; font-weight: 700; letter-spacing: 1.8px;
  text-transform: uppercase; color: #7a8fb5;
  margin: 12px 0 6px;
  display: block;
}
.mob-sub-link {
  font-size: 14px; color: #3a3a3a; text-decoration: none;
  padding: 6px 10px; border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  display: block;
}
.mob-sub-link:hover { background: #f4f6fb; color: #1a2a4a; }
/* ════════════════════════════════════════════════════════
   RESPONSIVE COMPLETO — GHS Consultores
   Agregado a styles.css
════════════════════════════════════════════════════════ */

/* ── TABLET (≤ 900px) ── */
@media (max-width: 900px) {

  /* HERO */
  .hero { height: 380px; }
  .hero-content { left: 28px; right: 28px; }
  .hero-content h1 { font-size: 32px; }
  .hero-typed { min-width: 180px; }
  .hero-sub { font-size: 14px; }

  /* ASESORÍA */
  .asesoria-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .photo-collage { max-width: 480px; }

  /* CAMPOS */
  .cards-grid { grid-template-columns: 1fr 1fr; gap: 16px; }

  /* BIBLIOTECA */
  .libro-card { grid-template-columns: 1fr; }
  .libro-img-wrap { min-height: 200px; }
  .libro-info { padding: 36px; }

  /* CLIENTES */
  .logos-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 32px;
  }
  .logos-row2 { grid-column: 1 / 4; gap: 32px; }
  .testimonios { grid-template-columns: 1fr 1fr; gap: 24px; }

  /* KPIs */
  .kpis-top { padding: 56px 24px 36px; }
  .kpis-nums { gap: 40px; flex-wrap: wrap; }
  .kpis-photo { height: 240px; }

  /* CONTACTO */
  .contacto-card {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
  .contacto-ilus { display: none; }
  .contacto-info { padding: 36px 32px; }
  .contacto-btn { top: 16px; right: 16px; }

  /* FOOTER */
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
  footer { padding: 48px 24px 32px; }
}

/* ── MÓVIL (≤ 600px) ── */
@media (max-width: 600px) {

  /* SECCIONES */
  section { padding: 48px 20px; }

  /* HERO */
  .hero { height: 320px; }
  .hero-content { left: 20px; right: 20px; }
  .hero-content h1 { font-size: 26px; }
  .hero-typed { min-width: 140px; display: block; }
  .hero-sub { font-size: 13px; margin-top: 10px; }

  /* ASESORÍA */
  .asesoria h2 { font-size: 24px; }
  .photo-collage {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .photo-collage img { height: 120px; }
  .photo-collage img:first-child {
    grid-row: auto;
    height: 120px;
  }

  /* CAMPOS — 1 columna */
  .cards-grid { grid-template-columns: 1fr; }
  .card-img { height: 160px; }

  /* BIBLIOTECA */
  .libro-info { padding: 28px 24px; }
  .libro-info h3 { font-size: 18px; }
  .libro-btn { font-size: 12px; padding: 10px 18px; }
  .libro-img-wrap { min-height: 160px; }

  /* CLIENTES */
  .clientes h2 { font-size: 24px; }
  .logos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 16px;
  }
  .logos-row2 {
    grid-column: 1 / 3;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }
  .logo-img-wrap { width: 110px; height: 52px; }

  /* TESTIMONIOS — 1 columna */
  .testimonios { grid-template-columns: 1fr; gap: 28px; }

  /* KPIs */
  .kpis-nums {
    flex-direction: column;
    gap: 24px;
  }
  .kpi-item .num { font-size: 32px; }
  .kpis-title { font-size: 22px; }
  .kpis-photo { height: 180px; }

  /* CONTACTO */
  .contacto-info { padding: 28px 20px; }
  .contacto-info h3 { font-size: 20px; }
  .contacto-card { max-width: 100%; }
  .contacto-btn {
    position: static;
    display: inline-block;
    margin-bottom: 20px;
    align-self: flex-start;
  }
  .contacto-info { flex-direction: column; }

  /* FOOTER */
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
  footer { padding: 40px 20px 28px; }

  /* WHATSAPP FLOTANTE */
  .wa-float { bottom: 18px; right: 16px; }
  .wa-btn { width: 50px; height: 50px; }
  .wa-btn svg { width: 26px; height: 26px; }
  .wa-bubble { font-size: 12px; padding: 10px 14px; }
}

/* ── MÓVIL PEQUEÑO (≤ 380px) ── */
@media (max-width: 380px) {
  .hero { height: 280px; }
  .hero-content h1 { font-size: 22px; }
  .hero-sub { display: none; }
  .asesoria h2 { font-size: 20px; }
  .clientes h2 { font-size: 20px; }
  .kpis-title { font-size: 18px; }
  .kpi-item .num { font-size: 28px; }
  .logos-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .logo-img-wrap { width: 90px; height: 44px; }
}
