/* ==============================================
   GLOBAL HUB INTERNATIONAL — Estilos Globales
   ============================================== */

/* ---- Variables ---- */
:root {
  --color-primary:       #1B3A6B;
  --color-primary-dark:  #122850;
  --color-primary-light: #2a5298;
  --color-accent:        #F0B429;
  --color-accent-dark:   #d49a1a;
  --color-white:         #ffffff;
  --color-light:         #f4f7fb;
  --color-gray:          #6c757d;
  --color-gray-light:    #e9ecef;
  --color-dark:          #1A1A2E;
  --color-text:          #2d3748;

  --font-heading: 'Montserrat', sans-serif;
  --font-body:    'Open Sans', sans-serif;

  --shadow-sm: 0 2px 8px  rgba(27,58,107,0.09);
  --shadow-md: 0 4px 20px rgba(27,58,107,0.14);
  --shadow-lg: 0 8px 40px rgba(27,58,107,0.20);

  --radius:    12px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;

  --header-height: 80px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { font-family: var(--font-body); color: var(--color-text); background: var(--color-white); line-height: 1.7; overflow-x: hidden; }
a     { text-decoration: none; color: inherit; }
img   { max-width: 100%; display: block; }
ul    { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-dark);
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  color: var(--color-primary);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-gray);
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.8;
}

.section-header { text-align: center; }

.section-tag {
  display: inline-block;
  background: rgba(240,180,41,0.15);
  color: var(--color-accent-dark);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 50px;
  margin-bottom: 14px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(240,180,41,0.40);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}
.btn-secondary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27,58,107,0.35);
}

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-md); }

.header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-logo { height: 72px; width: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-list li a {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-dark);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  letter-spacing: 0.3px;
}
.nav-list li a:hover,
.nav-list li a.active {
  color: var(--color-primary);
  background: rgba(27,58,107,0.08);
}

.nav-cta .btn { padding: 10px 22px; font-size: 0.875rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: none;
}
.hamburger span {
  display: block;
  width: 26px; height: 2.5px;
  background: var(--color-primary);
  border-radius: 3px;
  transition: var(--transition);
}
.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); }

/* ---- Page Hero (páginas internas) ---- */
.page-hero {
  padding: calc(var(--header-height) + 64px) 0 64px;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary-light) 100%);
  color: var(--color-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.035'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); color: var(--color-white); position: relative; }
.page-hero .accent { color: var(--color-accent); }
.page-hero p { font-size: 1.1rem; opacity: 0.88; margin-top: 14px; position: relative; max-width: 580px; margin-left: auto; margin-right: auto; }

.breadcrumb {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 22px; font-size: 0.88rem; opacity: 0.75; position: relative;
}
.breadcrumb a { color: var(--color-accent); }
.breadcrumb i { font-size: 0.7rem; }

/* ---- Sections ---- */
section { padding: 84px 0; }
section.bg-light { background: var(--color-light); }
section.bg-dark  { background: var(--color-primary); color: var(--color-white); }
section.bg-dark .section-title    { color: var(--color-white); }
section.bg-dark .section-subtitle { color: rgba(255,255,255,0.75); }

/* ---- Cards ---- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1.5px solid rgba(27,58,107,0.07);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}
.card-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  font-size: 1.6rem;
  color: var(--color-accent);
  flex-shrink: 0;
}
.card h3 { font-size: 1.12rem; margin-bottom: 10px; color: var(--color-primary); }
.card p  { font-size: 0.93rem; color: var(--color-gray); line-height: 1.75; }

/* ---- Footer ---- */
.footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.72);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand img { height: 50px; margin-bottom: 16px; }
.footer-brand p   { font-size: 0.9rem; line-height: 1.75; max-width: 280px; }

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.footer-col ul li { margin-bottom: 11px; }
.footer-col ul li a { font-size: 0.9rem; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--color-accent); padding-left: 5px; }

.footer-contact-item {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 14px; font-size: 0.9rem;
}
.footer-contact-item i { color: var(--color-accent); margin-top: 3px; width: 16px; flex-shrink: 0; }

.social-links { display: flex; gap: 10px; margin-top: 22px; }
.social-links a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
}
.social-links a:hover { background: var(--color-accent); color: var(--color-primary); transform: translateY(-3px); }

.footer-bottom {
  padding: 22px 0;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.55;
}

/* ---- WhatsApp Float ---- */
.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 58px; height: 58px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.65rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  z-index: 999;
  transition: var(--transition);
  animation: pulse-wa 2.5s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.65); }
@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.45); }
  50%       { box-shadow: 0 4px 30px rgba(37,211,102,0.70), 0 0 0 9px rgba(37,211,102,0.11); }
}

/* ---- Scroll Animations ---- */
.reveal, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal       { transform: translateY(32px); }
.reveal-left  { transform: translateX(-32px); }
.reveal-right { transform: translateX(32px); }
.reveal.visible, .reveal-left.visible, .reveal-right.visible {
  opacity: 1;
  transform: translate(0);
}
.delay-1 { transition-delay: 0.10s; }
.delay-2 { transition-delay: 0.20s; }
.delay-3 { transition-delay: 0.30s; }
.delay-4 { transition-delay: 0.40s; }
.delay-5 { transition-delay: 0.50s; }
.delay-6 { transition-delay: 0.60s; }

/* ---- Responsive ---- */
@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --header-height: 70px; }

  .nav-list {
    display: none;
    position: fixed;
    top: var(--header-height); left: 0;
    width: 100%;
    background: var(--color-white);
    flex-direction: column;
    padding: 20px 24px 28px;
    gap: 2px;
    box-shadow: var(--shadow-md);
    border-top: 1px solid rgba(27,58,107,0.1);
  }
  .nav-list.open     { display: flex; }
  .nav-list li a     { font-size: 1rem; padding: 12px 16px; display: block; }
  .nav-cta           { display: none; }
  .hamburger         { display: flex; }
  .footer-grid       { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  section { padding: 64px 0; }
  .cards-grid { grid-template-columns: 1fr; }
}
