/* Hispanaweb Global UI — megamenú, footer, efectos */
:root {
  --hw-azul: #1E4FA0; --hw-cielo: #38B3E7; --hw-coral: #FF6B4A;
  --hw-violeta: #7C5CFC; --hw-navy: #0B2450; --hw-ink: #3D424F;
  --hw-line: #E4E8EF; --hw-bg-soft: #F8FAFC;
}
body { padding-top: 68px !important; }

/* ===== Header ===== */
.hw-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9990;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--hw-line);
  transition: box-shadow .3s ease;
}
.hw-header.is-scrolled { box-shadow: 0 6px 24px rgba(11,36,80,.10); }
.hw-header-inner {
  max-width: 1280px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 18px;
}
.hw-logo { display: flex; align-items: center; flex: 0 0 auto; }
.hw-logo img { width: 170px; height: auto; display: block; }
.hw-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.hw-nav-link {
  font-family: Manrope, sans-serif; font-weight: 600; font-size: 15px;
  color: var(--hw-ink); text-decoration: none; padding: 8px 13px;
  border-radius: 8px; background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; line-height: 1.4;
  transition: background .2s, color .2s;
}
.hw-nav-link:hover { background: #EDF7FE; color: var(--hw-azul); }
.hw-cta {
  font-family: Manrope, sans-serif; font-weight: 700; font-size: 15px;
  color: #fff !important; background: linear-gradient(135deg, var(--hw-azul), var(--hw-cielo));
  padding: 10px 22px; border-radius: 999px; text-decoration: none;
  box-shadow: 0 4px 14px rgba(30,79,160,.35); transition: transform .2s, box-shadow .2s;
  flex: 0 0 auto;
}
.hw-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(30,79,160,.45); }

/* ===== Megamenú ===== */
.hw-nav-item { position: static; }
.hw-mega-trigger svg { transition: transform .25s; }
.hw-nav-item.is-open .hw-mega-trigger svg { transform: rotate(180deg); }
.hw-mega {
  position: fixed; left: 0; right: 0; top: 68px; z-index: 9989;
  background: #fff; border-bottom: 1px solid var(--hw-line);
  box-shadow: 0 30px 60px rgba(11,36,80,.16);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  max-height: calc(100vh - 68px); overflow-y: auto;
}
.hw-nav-item.is-open .hw-mega { opacity: 1; visibility: visible; transform: translateY(0); }
.hw-mega-grid {
  max-width: 1280px; margin: 0 auto; padding: 34px 24px 24px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px;
}
.hw-mega-cat {
  font-family: Sora, sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--hw-navy);
  display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
  padding-bottom: 10px; border-bottom: 2px solid var(--hw-line);
}
.hw-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.hw-mega-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.hw-mega-col a {
  display: block; text-decoration: none; padding: 8px 10px; border-radius: 10px;
  transition: background .18s;
}
.hw-mega-col a:hover { background: var(--hw-bg-soft); }
.hw-mega-title {
  display: block; font-family: Manrope, sans-serif; font-weight: 700;
  font-size: 14.5px; color: var(--hw-navy); line-height: 1.3;
}
.hw-mega-col a:hover .hw-mega-title { color: var(--hw-azul); }
.hw-mega-desc {
  display: block; font-family: Manrope, sans-serif; font-weight: 500;
  font-size: 12.5px; color: #778096; line-height: 1.35; margin-top: 2px;
}
.hw-mega-foot {
  border-top: 1px solid var(--hw-line); background: var(--hw-bg-soft);
}
.hw-mega-foot { display: block; }
.hw-mega-foot > * { }
.hw-mega-foot {
  padding: 14px 24px;
}
.hw-mega-foot { display: flex; align-items: center; justify-content: space-between; max-width: 1280px; margin: 0 auto; }
.hw-mega-all {
  font-family: Manrope, sans-serif; font-weight: 800; font-size: 14px;
  color: var(--hw-azul); text-decoration: none;
}
.hw-mega-all:hover { text-decoration: underline; }
.hw-mega-tag { font-family: Manrope, sans-serif; font-size: 13px; color: #778096; }

/* Burger */
.hw-burger { display: none; background: none; border: 0; cursor: pointer; padding: 10px; margin-left: auto; }
.hw-burger span { display: block; width: 24px; height: 2.5px; background: var(--hw-navy); border-radius: 2px; margin: 5px 0; transition: transform .3s, opacity .3s; }
.hw-burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hw-burger.is-open span:nth-child(2) { opacity: 0; }
.hw-burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Progress bar */
.hw-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 9995;
  background: linear-gradient(90deg, var(--hw-cielo), var(--hw-violeta), var(--hw-coral));
}

/* ===== Footer ===== */
.hw-footer { background: var(--hw-navy); color: #C6D2E8; font-family: Manrope, sans-serif; }
.hw-footer-inner {
  max-width: 1280px; margin: 0 auto; padding: 64px 24px 40px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 36px;
}
.hw-footer-brand img { width: 170px; height: auto; margin-bottom: 16px; }
.hw-footer-brand p { font-size: 14px; line-height: 1.65; margin: 0 0 14px; color: #9FB0CF; }
.hw-footer-contact a { color: var(--hw-cielo); text-decoration: none; font-weight: 600; }
.hw-footer-contact a:hover { text-decoration: underline; }
.hw-footer-col h4 {
  font-family: Sora, sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: #fff; margin: 0 0 16px;
}
.hw-footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.hw-footer-col a { color: #9FB0CF; text-decoration: none; font-size: 14px; transition: color .2s; }
.hw-footer-col a:hover { color: #fff; }
.hw-footer-legal {
  border-top: 1px solid rgba(255,255,255,.12);
  max-width: 1280px; margin: 0 auto; padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 13px; color: #7E90B5; flex-wrap: wrap;
}
.hw-footer-legal nav { display: flex; gap: 20px; }
.hw-footer-legal a { color: #7E90B5; text-decoration: none; }
.hw-footer-legal a:hover { color: #fff; }

/* ===== Scroll-video (secuencia canvas tipo Apple) ===== */
.hw-seq-section { position: relative; }
.hw-seq-sticky {
  position: sticky; top: 0; height: 100vh; display: flex;
  align-items: center; justify-content: center; overflow: hidden;
  background: var(--hw-navy);
}
.hw-seq-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hw-seq-overlay {
  position: relative; z-index: 2; text-align: center; padding: 24px; max-width: 900px;
}
.hw-seq-overlay h2 {
  font-family: Sora, sans-serif; font-weight: 800; color: #fff;
  font-size: clamp(30px, 5vw, 56px); line-height: 1.12; margin: 0 0 14px;
  text-shadow: 0 4px 30px rgba(0,0,0,.45);
}
.hw-seq-overlay p {
  font-family: Manrope, sans-serif; font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,.85); margin: 0; text-shadow: 0 2px 16px rgba(0,0,0,.5);
}
.hw-seq-overlay.hw-seq-end { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; }

/* ===== Reveals ===== */
.hw-reveal { opacity: 0; transform: translateY(36px); }
.hw-reveal-left { opacity: 0; transform: translateX(-48px); }
.hw-reveal-right { opacity: 0; transform: translateX(48px); }
.hw-reveal-zoom { opacity: 0; transform: scale(.92); }
@media (prefers-reduced-motion: reduce) {
  .hw-reveal, .hw-reveal-left, .hw-reveal-right, .hw-reveal-zoom { opacity: 1; transform: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .hw-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .hw-nav {
    position: fixed; top: 68px; left: 0; right: 0; bottom: 0; z-index: 9988;
    background: #fff; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 18px 20px 40px; overflow-y: auto;
    transform: translateX(100%); transition: transform .3s ease;
  }
  .hw-nav.is-open { transform: translateX(0); }
  .hw-nav-link { font-size: 17px; padding: 13px 14px; justify-content: space-between; }
  .hw-burger { display: block; }
  .hw-cta { display: none; }
  .hw-mega {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .hw-nav-item.is-open .hw-mega { max-height: 2400px; }
  .hw-mega-grid { grid-template-columns: 1fr; padding: 6px 8px 10px; gap: 18px; }
  .hw-mega-foot { flex-direction: column; align-items: flex-start; gap: 6px; }
  .hw-footer-inner { grid-template-columns: 1fr 1fr; padding: 48px 24px 32px; }
  .hw-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .hw-footer-inner { grid-template-columns: 1fr; }
  .hw-logo img { width: 140px; }
}
