/* ─────────────────────────────────────────────────────────
   GM&C — Global Management & Consulting S.A.
   styles.css — Global stylesheet
───────────────────────────────────────────────────────── */

/* ─── TOKENS ─── */
:root {
  --navy:       #0d2240;
  --blue:       #1a4a8a;
  --accent:     #2968c8;
  --light-blue: #e8f0fb;
  --gold:       #b8972a;
  --text:       #1a1a2e;
  --muted:      #4b5563;
  --border:     #e2e8f0;
  --white:      #ffffff;
  --off-white:  #f8fafc;
}

/* --- MODO OSCURO --- */
body.dark-mode {
  --bg-page: #08111f;           /* Un navy más profundo que el original */
  --bg-section: #0d1624;        /* Variación para separar secciones */
  --bg-card: #141e2f;           /* Tarjetas ligeramente más claras que el fondo */
  --text-main: #e8f0fb;         /* --light-blue para máxima legibilidad */
  --text-muted: #94a3b8;        /* Gris azulado suave */
  --border-color: #1e293b;      /* Bordes sutiles */
  --nav-bg: rgba(8, 17, 31, 0.98);
}




/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
p { text-align: left; }
h1 { font-family: 'Montserrat', sans-serif; line-height: 1.05; font-weight: 800; }
h2 { font-family: 'Montserrat', sans-serif; line-height: 1.1; font-weight: 700; }
h3 { font-family: 'Montserrat', sans-serif; line-height: 1.2; font-weight: 600; }
h4 { font-family: 'Montserrat', sans-serif; line-height: 1.3; font-weight: 600; }

/* ─── TYPOGRAPHY UTILITIES ─── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1rem;
}
.section-label::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent);
}
.section-label--center { justify-content: center; }

.section-label--center.reveal {
  gap: 10px;
}

.section-label--center.reveal::before {
  content: '';
  display: block;
  flex: none;
  width: 28px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}

.section-label--center.reveal::after {
  content: '';
  flex: none;
  width: 28px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}
.section-label--light { color: rgba(255,255,255,0.6); }
.section-label--light::before { background: rgba(255,255,255,0.4); }

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.25rem;
}
.section-title--white { color: white; }
.section-title--center { text-align: center; }

/* ─── LAYOUT ─── */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
}
section { scroll-margin-top: 72px; }

/* ─── BUTTONS ─── */
.btn-primary {
  background: white;
  color: var(--navy);
  padding: 0.85rem 1.75rem;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  display: inline-block;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.btn-secondary {
  border: 1.5px solid rgba(255,255,255,0.4);
  color: white;
  padding: 0.85rem 1.75rem;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  backdrop-filter: blur(4px);
  display: inline-block;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}

.btn-ghost-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  color: white;
  text-decoration: none;
  padding: 0.7rem 1.25rem;
  border-radius: 8px;
  font-size: 13.5px;
  transition: background 0.2s;
}
.btn-ghost-white:hover { background: rgba(255,255,255,0.22); }

.btn-cta {
  background: white;
  color: var(--navy);
  padding: 0.85rem 2.2rem;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;           /* más peso, más presencia */
  letter-spacing: 0.01em;     /* ligero espaciado */
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;                   /* espacio para ícono → */
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-cta:hover {
  background: #f0f4ff;        /* hover sutil, no desaparece */
  transform: translateY(-1px);
}

/* Variante secundaria (opcional) */
.btn-cta--outline {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-cta--outline:hover {
  border-color: white;
  background: rgba(255,255,255,0.08);
}

/* ─── REVEAL ANIMATION ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s, transform 0.65s;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── NAVBAR ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 2px 24px rgba(13,34,64,0.08); }

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
}
.logo-mark {
  width: 44px; height: 44px;
  border: 2px solid var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text strong {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.logo-text span {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0.2px;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%; right: 50%;
  height: 1.5px;
  background: var(--accent);
  transition: left 0.25s, right 0.25s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { left: 0.85rem; right: 0.85rem; }

/* ─── Dropdown "Servicios" ─── */
.nav-item.has-dropdown {
  position: relative;
}

.nav-links .nav-drop {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-links .nav-drop::after { display: none; }

.drop-chevron {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.nav-item.has-dropdown:hover .drop-chevron,
.nav-item.has-dropdown:focus-within .drop-chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  min-width: 280px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(13, 34, 64, 0.14);
  padding: 8px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(10px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 150;
}

.nav-item.has-dropdown:hover .dropdown-menu,
.nav-item.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  transition: background 0.18s, color 0.18s;
}

.dropdown-menu a::after { display: none; }

.dropdown-menu a:hover {
  background: #eef3fb;
  color: var(--accent);
}

nav .btn-nav,
.nav-links .btn-nav {
  background: var(--navy);
  color: var(--white);
  padding: 0.55rem 1.25rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 13.5px;
  white-space: nowrap;
  width: auto;
  display: inline-block;
  flex-grow: 0;
  transition: background 0.25s;
}

.nav-links a.btn-nav,
.nav-links a.btn-nav:link,
.nav-links a.btn-nav:visited,
.nav-links a.btn-nav:hover,
.nav-links a.btn-nav:active,
.nav-links a.btn-nav:focus {
  color: var(--white) !important;
}

.section-label.reveal {
  display: flex;
  align-items: center;
  gap: 1rem;
  white-space: nowrap;
}

.section-label.reveal::before,
.section-label.reveal::after {
  content: "";
  display: block;
  flex: 1;
  height: 1px;
  background: currentColor;
  min-width: 20px;
}

.nav-links a.btn-nav:hover,
.nav-links a.btn-nav:active {
  background: var(--accent);
}

nav .btn-nav:visited,
.nav-links .btn-nav:visited,
nav .btn-nav:active,
.nav-links .btn-nav:active,
nav .btn-nav:focus,
.nav-links .btn-nav:focus {
  color: var(--white);
}

nav .btn-nav:visited,
.nav-links .btn-nav:visited {
  color: var(--white) !important;
  background: var(--navy);
}

nav .btn-nav:active,
.nav-links .btn-nav:active {
  background: var(--accent);
  color: var(--white) !important;
}

.nav-links li:has(.btn-nav) {
  display: flex;
  align-items: center;
}

nav .btn-nav::after,
.nav-links .btn-nav::after {
  display: none;
}

nav .btn-nav:hover,
.nav-links .btn-nav:hover {
  background: var(--accent);
  color: var(--white);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--navy);
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem 1.5rem;
  box-shadow: 0 8px 32px rgba(13,34,64,0.08);
  z-index: 99;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 0.75rem 0;
  text-decoration: none;
  color: var(--text);
  font-size: 15px;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border: none; margin-top: 1rem; }
.mobile-menu .btn-mobile {
  background: var(--navy);
  color: white !important;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-align: center;
  font-weight: 500;
  border-bottom: none;
}

/* Submenú Servicios en móvil */
.mobile-submenu {
  padding: 0 0 0.5rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.mobile-submenu a {
  font-size: 13.5px;
  color: var(--muted);
  border-bottom: none;
  padding: 0.5rem 0;
}
.mobile-submenu a:last-child { margin-top: 0; }

/* ─── Language toggle ─── */
.lang-toggle {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 0.5px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.lang-btn {
  border: none;
  background: transparent;
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: #94a3b8;
  font-family: 'Segoe UI', sans-serif;
  transition: background 0.15s, color 0.15s;
}

.lang-btn.active {
  background: #1e3a6e;
  color: #ffffff;
}

.lang-btn:not(.active):hover {
  background: #f1f5f9;
  color: #374151;
}

.lang-divider {
  width: 0.5px;
  height: 20px;
  background: #e2e8f0;
}

.nav-links li.nav-translation {
  display: flex;
  align-items: center;
}

.mobile-lang-toggle {
  margin: 1rem auto 0;
  width: fit-content;
}

/* ─── CTA BANNER (shared) ─── */
.cta-banner {
  background: linear-gradient(90deg, var(--navy) 0%, var(--blue) 100%);
  padding: 4.5rem 2rem;
}
.cta-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-text h2 { font-size: 2.2rem; color: white; font-weight: 300; }
.cta-text p { font-size: 15px; color: rgba(255,255,255,0.65); margin-top: 0.5rem; }

/* ─── FOOTER ─── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 4rem 2rem 2rem;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}
.footer-logo-mark {
  width: 40px; height: 40px;
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  color: white;
  flex-shrink: 0;
}
.footer-brand-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  color: rgba(255,255,255,0.85);
}
.footer-brand p { font-size: 13.5px; line-height: 1.75; max-width: 260px; }
.footer-col h5 {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
}
.footer-col a,
.footer-col span {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: rgba(255,255,255,0.35);
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ─────────────────────────────────────
   COOKIE BANNER
───────────────────────────────────── */

.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: min(92%, 920px);

  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);

  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 22px;

  padding: 20px 24px;

  box-shadow:
    0 10px 35px rgba(0,0,0,0.08);

  z-index: 9999;

  animation: cookieUp .5s ease;
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-text h4 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: #0f172a;
}

.cookie-text p {
  font-size: 0.92rem;
  line-height: 1.5;
  color: #475569;
  max-width: 620px;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-btn-primary,
.cookie-btn-secondary {
  border: none;
  padding: 12px 18px;
  border-radius: 12px;

  font-size: 0.9rem;
  font-weight: 600;

  cursor: pointer;
  transition: all .25s ease;
}

.cookie-btn-primary {
  background: #1d4ed8;
  color: white;
}

.cookie-btn-primary:hover {
  background: #1e40af;
  transform: translateY(-1px);
}

.cookie-btn-secondary {
  background: transparent;
  border: 1px solid rgba(0,0,0,0.12);
  color: #334155;
}

.cookie-btn-secondary:hover {
  background: rgba(0,0,0,0.04);
}

.hidden {
  display: none;
}

@keyframes cookieUp {
  from {
    opacity: 0;
    transform: translate(-50%, 30px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* RESPONSIVE */

@media (max-width: 768px) {

  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-btn-primary,
  .cookie-btn-secondary {
    flex: 1;
  }
}


/* Ajuste para móviles */
@media (max-width: 768px) {
  .cookie-container {
    width: 95%;
  }
}

.logo-img {
  height: 60px;
  width: auto;
  display: block;
}

/* ─── WHATSAPP FLOATING BUTTON ─── */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  transition: transform 0.25s, box-shadow 0.25s;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
  }
  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}






/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .cta-inner { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}