
    html { scroll-behavior: smooth; }
    html, body { margin: 0; padding: 0; background: #070A1A; }
    *, *::before, *::after { box-sizing: border-box; }
    @media (max-width: 1060px) { .ilp-nav-links { display: none !important; } }
    @media (max-width: 940px) {
      .ilp-grid-4 { grid-template-columns: 1fr 1fr !important; }
      .ilp-grid-3 { grid-template-columns: 1fr !important; }
      .ilp-grid-2 { grid-template-columns: 1fr !important; }
    }
    @media (max-width: 620px) {
      .ilp-grid-4 { grid-template-columns: 1fr !important; }
      #inicio { padding-top: 118px !important; }
      #inicio h1 { font-size: clamp(34px, 9.5vw, 44px) !important; }
      #inicio p { font-size: 16.5px !important; }
    }
    .hero-reveal { transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
    @media (prefers-reduced-motion: no-preference) {
      .hero-reveal.hero-pre { opacity: 0; transform: translateY(30px); }
    }
  

    @media (max-width: 1440px) { #hv-scale { transform: scale(0.82); } #hv-wrap { height: 700px !important; } }
    @media (max-width: 1100px) { #hv-scale { transform: scale(0.62); } #hv-wrap { height: 540px !important; } }
    #hv-mobile { display: none; }
    @media (max-width: 820px)  { #hv-scale { display: none; } #hv-wrap { height: auto !important; } #hv-mobile { display: block; } }
  

/* ===== Extensión Ideatica (no viene del prototipo): menú móvil ≤1060px ===== */
.ilp-mobile-toggle { display: none; align-items: center; justify-content: center; width: 42px; height: 42px; margin-left: 8px; flex-shrink: 0; border-radius: 12px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.05); color: #E2E8F5; font-size: 21px; cursor: pointer; }
@media (max-width: 1060px) { .ilp-mobile-toggle { display: inline-flex !important; } }
@media (min-width: 1061px) { #mobile-menu-panel { display: none !important; } }
@media (max-width: 620px) { .ilp-nav-cta { display: none !important; } .ilp-mobile-toggle { margin-left: auto; } }

/* ===== Extensión Ideatica: botón flotante WhatsApp (Agente IA) ===== */
.ilp-wsp-flotante { position: fixed; right: 22px; bottom: 22px; z-index: 300; width: 58px; height: 58px; border-radius: 50%; padding: 0; border: none; cursor: pointer; background: transparent; box-shadow: 0 12px 30px rgba(99,102,241,0.45); transition: transform .2s ease; }
.ilp-wsp-flotante:hover { transform: scale(1.08); color: #fff; }
.ilp-wsp-flotante::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(139,92,246,0.5); animation: ilp-wsp-pulse 2.4s ease-out infinite; pointer-events: none; }
.ilp-wsp-badge { position: absolute; right: -3px; bottom: -3px; width: 22px; height: 22px; border-radius: 50%; background: #25D366; color: #fff; font-size: 13px; display: grid; place-items: center; border: 2px solid #070A1A; }
@keyframes ilp-wsp-pulse { 0% { transform: scale(.85); opacity: 1; } 70% { transform: scale(1.18); opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ilp-wsp-flotante::after { animation: none; } }
@media (max-width: 620px) { .ilp-wsp-flotante { right: 16px; bottom: 16px; width: 54px; height: 54px; font-size: 28px; } }

/* ===== Extensión Ideatica: widget de chat WhatsApp (typing + mensaje del Agente IA) ===== */
.ilp-wsp-chat { position: fixed; right: 22px; bottom: 94px; z-index: 299; width: 340px; max-width: calc(100vw - 32px); border-radius: 16px; overflow: hidden; background: #EFE7DD; box-shadow: 0 24px 60px rgba(4,6,18,0.55); font-family: 'Manrope', system-ui, sans-serif; display: none; opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .25s ease, transform .25s ease; }
.ilp-wsp-chat.abierto { display: block; }
.ilp-wsp-chat.visible { opacity: 1; transform: translateY(0) scale(1); }
.ilp-wsp-chat-header { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: linear-gradient(135deg, #008069, #00A884); color: #fff; }
.ilp-wsp-avatar { width: 38px; height: 38px; border-radius: 50%; display: block; object-fit: cover; }
.ilp-wsp-nombre { font-size: 14.5px; font-weight: 800; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ilp-wsp-estado { font-size: 11.5px; opacity: .85; }
.ilp-wsp-cerrar { border: none; background: transparent; color: #fff; font-size: 18px; cursor: pointer; padding: 4px; line-height: 1; opacity: .85; }
.ilp-wsp-cerrar:hover { opacity: 1; }
.ilp-wsp-chat-body { padding: 16px 14px; min-height: 150px; background: #EFE7DD; background-image: radial-gradient(rgba(0,0,0,0.035) 1px, transparent 1.2px); background-size: 18px 18px; }
.ilp-wsp-burbuja { position: relative; max-width: 85%; background: #fff; border-radius: 4px 12px 12px 12px; padding: 10px 12px 18px; font-size: 13.5px; line-height: 1.5; color: #303030; box-shadow: 0 1px 1px rgba(0,0,0,0.08); animation: ilp-wsp-pop .18s ease-out; }
.ilp-wsp-burbuja::before { content: ""; position: absolute; top: 0; left: -7px; border: 7px solid transparent; border-top-color: #fff; border-right-color: #fff; }
.ilp-wsp-hora { position: absolute; right: 9px; bottom: 4px; font-size: 10.5px; color: #8696A0; }
.ilp-wsp-typing { width: 64px; padding: 14px 12px; display: flex; gap: 5px; align-items: center; justify-content: center; }
.ilp-wsp-typing span { width: 7px; height: 7px; border-radius: 50%; background: #9AA5AD; animation: ilp-wsp-dot 1.2s infinite ease-in-out; }
.ilp-wsp-typing span:nth-child(2) { animation-delay: .18s; }
.ilp-wsp-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes ilp-wsp-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes ilp-wsp-pop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.ilp-wsp-chat-input { display: flex; gap: 8px; padding: 10px; background: #F0F2F5; }
.ilp-wsp-chat-input input { flex: 1; min-width: 0; border: none; outline: none; border-radius: 50px; padding: 11px 16px; font-family: 'Manrope', system-ui, sans-serif; font-size: 13.5px; color: #303030; background: #fff; }
.ilp-wsp-chat-input button { width: 42px; height: 42px; flex-shrink: 0; border: none; border-radius: 50%; background: #25D366; color: #fff; font-size: 19px; cursor: pointer; display: grid; place-items: center; transition: transform .15s ease; }
.ilp-wsp-chat-input button:hover { transform: scale(1.06); }
@media (max-width: 620px) { .ilp-wsp-chat { right: 16px; bottom: 84px; } }
