/* ============================================
   BRÚJULA TECNOLÓGICA - styles.css
   Diseño base + animaciones tipo Apple
   ============================================ */

/* ---------- TIPOGRAFÍAS ---------- */
.font-display { font-family: 'Playfair Display', serif; }
.font-script  { font-family: 'Dancing Script', cursive; font-weight: 700; }
.font-serif   { font-family: 'Inter', sans-serif; }
body { font-family: 'Inter', sans-serif; scroll-behavior: smooth; }

/* ---------- CURSOR PERSONALIZADO (spotlight estilo Apple) ---------- */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  border-radius: 50%;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity .25s ease;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: #1D6FA5;
  transition: transform .08s ease-out, background .2s;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(29,111,165,.45);
  transition: transform .18s ease-out, width .25s, height .25s, background .25s, border-color .25s;
}
.cursor-ring.hover {
  width: 70px; height: 70px;
  background: rgba(29,111,165,.10);
  border-color: rgba(29,111,165,.7);
  mix-blend-mode: multiply;
}
@media (max-width: 768px), (hover: none) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ---------- KICKERS / DIVIDERS ---------- */
.kicker {
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .7rem;
  color: #1D6FA5;
  font-weight: 500;
}
.divider {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; opacity: .6;
}
.divider::before, .divider::after {
  content: ''; height: 1px; width: 60px; background: #1D6FA5;
}
.divider .dot {
  width: 6px; height: 6px; background: #1D6FA5; border-radius: 50%;
}

/* ---------- BOTONES ---------- */
.btn-primary, .btn-secondary {
  display: inline-block; padding: 12px 26px;
  font-family: 'Inter', sans-serif; font-weight: 500;
  border-radius: 999px; cursor: pointer;
  transition: transform .35s cubic-bezier(.2,.8,.2,1),
              box-shadow .35s, background .35s, color .35s;
  position: relative; overflow: hidden;
}
.btn-primary {
  background: #1D6FA5; color: #F5FAFD;
  box-shadow: 0 6px 18px rgba(29,111,165,.25);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 32px rgba(29,111,165,.45);
}
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35), transparent 70%);
  transform: translateX(-100%);
  transition: transform .7s ease;
}
.btn-primary:hover::after { transform: translateX(100%); }

.btn-secondary {
  background: transparent; color: #172A3A;
  border: 1.5px solid #172A3A;
}
.btn-secondary:hover {
  background: #172A3A; color: #F5FAFD;
  transform: translateY(-3px);
}

.pulse-btn { animation: pulseGlow 2.4s infinite; }
@keyframes pulseGlow {
  0%,100% { box-shadow: 0 6px 18px rgba(29,111,165,.25); }
  50%     { box-shadow: 0 6px 28px rgba(29,111,165,.55); }
}

/* ---------- NAV ---------- */
.nav-link {
  position: relative; color: #172A3A;
  transition: color .3s;
}
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 2px; background: #1D6FA5;
  transition: width .35s cubic-bezier(.2,.8,.2,1);
}
.nav-link:hover { color: #1D6FA5; }
.nav-link:hover::after { width: 100%; }

.logo-hover { transition: transform .4s; }
.logo-hover:hover { transform: scale(1.04); }
.logo-hover:hover .compass-rotate { transform: rotate(180deg); }
.compass-rotate { transition: transform .9s cubic-bezier(.2,.8,.2,1); }

/* ---------- BANNER ---------- */
.spin-slow { display: inline-block; animation: spin 8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.animate-slide-down { animation: slideDown .7s ease; }
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }

/* ---------- HERO ---------- */
.hero-bg {
  background:
    radial-gradient(ellipse at top left, rgba(217,236,247,.5), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(29,111,165,.08), transparent 50%),
    #F5FAFD;
}
.floating-shape {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(29,111,165,.18), transparent 70%);
  filter: blur(40px); pointer-events: none;
  animation: float 12s ease-in-out infinite;
}
.shape-1 { width: 300px; height: 300px; top: -50px; left: -80px; }
.shape-2 { width: 400px; height: 400px; bottom: -100px; right: -100px; animation-delay: -4s; }
.shape-3 { width: 200px; height: 200px; top: 40%; right: 20%; animation-delay: -8s; }
@keyframes float {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(30px,-40px) scale(1.1); }
  66%     { transform: translate(-20px,30px) scale(.95); }
}

.wave-text {
  display: inline-block;
  background: linear-gradient(90deg, #1D6FA5, #4AA3D8, #1D6FA5);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 4s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }

.fade-in-up { animation: fadeInUp .9s ease both; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.stat-item {
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.stat-item:hover { transform: translateY(-6px); }

/* ---------- POLAROID / TELÉFONO ---------- */
.polaroid {
  background: white; padding: 20px 20px 60px;
  box-shadow: 0 25px 60px rgba(0,0,0,.18);
  transform: rotate(-3deg);
  transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s;
  position: relative;
}
.tilt-hover:hover {
  transform: rotate(0deg) scale(1.04);
  box-shadow: 0 35px 80px rgba(0,0,0,.25);
}
.polaroid-caption {
  font-family: 'Caveat', cursive; font-size: 1.4rem;
  text-align: center; margin-top: 14px; color: #172A3A;
}
.phone-mockup {
  background: #172A3A; border-radius: 24px; padding: 14px;
}
.phone-screen {
  background: #ECF4F8; border-radius: 14px; padding: 14px;
  min-height: 260px; display: flex; flex-direction: column; gap: 8px;
}
.phone-msg {
  max-width: 80%; padding: 8px 12px; border-radius: 12px;
  font-size: .85rem; opacity: 0;
}
.msg-in  { background: white; align-self: flex-start; }
.msg-out { background: #D9F1E8; align-self: flex-end; }
.slide-in-1 { animation: msgIn .5s .4s ease both; }
.slide-in-2 { animation: msgIn .5s 1.1s ease both; }
.slide-in-3 { animation: msgIn .5s 1.8s ease both; }
.slide-in-4 { animation: msgIn .5s 2.5s ease both; }
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.stamp {
  position: absolute; top: -10px; right: -10px;
  background: #1D6FA5; color: white;
  font-family: 'Caveat', cursive; font-size: 1.3rem;
  padding: 10px 18px; border-radius: 50%;
  transform: rotate(15deg);
  box-shadow: 0 6px 16px rgba(29,111,165,.4);
  animation: stampPulse 2.5s ease-in-out infinite;
}
@keyframes stampPulse {
  0%,100% { transform: rotate(15deg) scale(1); }
  50%     { transform: rotate(15deg) scale(1.08); }
}

/* ---------- TARJETAS (problem / mini / experience) ---------- */
.problem-card, .mini-card {
  background: #F5FAFD; padding: 26px;
  border-radius: 14px; border: 1px solid #D8E7EF;
  transition: transform .45s cubic-bezier(.2,.8,.2,1),
              box-shadow .45s, border-color .45s;
}
.problem-card:hover, .mini-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(23,42,58,.10);
  border-color: #1D6FA5;
}
.icon-bounce { transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
.problem-card:hover .icon-bounce { transform: translateY(-6px) scale(1.15) rotate(-6deg); }

.experience-tile {
  background: #F5FAFD; padding: 20px; border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: 'Inter', sans-serif; font-size: .85rem;
  border: 1px solid #D8E7EF;
  transition: transform .4s, background .4s, color .4s;
}
.experience-tile i { font-size: 1.6rem; color: #1D6FA5; transition: transform .4s; }
.experience-tile:hover {
  transform: translateY(-5px);
  background: #1D6FA5; color: white;
}
.experience-tile:hover i { color: white; transform: scale(1.2); }

/* ---------- SYSTEM FLOW ---------- */
.system-flow {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; flex-wrap: wrap;
}
.flow-node {
  background: white; border: 1px solid #D8E7EF;
  padding: 30px 24px; border-radius: 18px;
  text-align: center; min-width: 180px;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s;
}
.flow-node:hover {
  transform: translateY(-10px) scale(1.04);
  box-shadow: 0 20px 50px rgba(29,111,165,.18);
}
.flow-node-2 { background: #1D6FA5; color: white; border-color: #1D6FA5; }
.flow-icon {
  width: 60px; height: 60px; margin: 0 auto;
  background: rgba(29,111,165,.12); color: #1D6FA5;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 1.5rem;
  transition: transform .5s;
}
.flow-node-2 .flow-icon { background: rgba(255,255,255,.2); color: white; }
.flow-node:hover .flow-icon { transform: rotate(360deg) scale(1.1); }
.flow-arrow { color: #1D6FA5; font-size: 1.3rem; }
.pulse-arrow { animation: arrowPulse 1.5s ease-in-out infinite; }
@keyframes arrowPulse {
  0%,100% { transform: translateX(0); opacity: .6; }
  50%     { transform: translateX(8px); opacity: 1; }
}

/* ---------- PRODUCTOS ---------- */
.product-card {
  background: #F5FAFD; padding: 32px;
  border-radius: 18px; border: 1px solid #D8E7EF;
  position: relative; overflow: hidden;
  transition: transform .5s cubic-bezier(.2,.8,.2,1),
              box-shadow .5s, border-color .5s;
}
.product-card::before {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 100%; height: 3px; background: #1D6FA5;
  transition: left .6s cubic-bezier(.2,.8,.2,1);
}
.product-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(23,42,58,.15);
  border-color: #1D6FA5;
}
.product-card:hover::before { left: 0; }
.product-badge {
  position: absolute; top: 16px; right: 16px;
  background: #1D6FA5; color: white;
  font-size: .65rem; padding: 4px 10px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .1em;
}
.product-icon {
  width: 56px; height: 56px;
  background: rgba(29,111,165,.12); color: #1D6FA5;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px; font-size: 1.5rem; margin-bottom: 16px;
  transition: transform .5s cubic-bezier(.34,1.56,.64,1), background .4s;
}
.product-card:hover .product-icon {
  transform: rotate(-8deg) scale(1.1);
  background: #1D6FA5; color: white;
}

/* ---------- NICHOS ---------- */
.niche-tile {
  background: #F5FAFD; border: 1px solid #D8E7EF;
  padding: 20px; border-radius: 12px; text-align: center;
  color: #1D6FA5; font-size: 1.6rem;
  transition: transform .4s, background .4s, color .4s, box-shadow .4s;
}
.niche-tile div { color: #172A3A; }
.niche-tile:hover {
  transform: translateY(-6px) scale(1.05);
  background: #1D6FA5; color: white;
  box-shadow: 0 15px 30px rgba(29,111,165,.3);
}
.niche-tile:hover div { color: white; }

/* ---------- TIMELINE ---------- */
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
  content: ''; position: absolute; left: 18px; top: 0;
  width: 2px; height: 100%; background: #D8E7EF;
}
.timeline-step {
  display: flex; gap: 20px; margin-bottom: 30px;
  position: relative;
  transition: transform .4s;
}
.timeline-step:hover { transform: translateX(8px); }
.step-circle {
  width: 38px; height: 38px; border-radius: 50%;
  background: #1D6FA5; color: white;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-weight: 700;
  position: absolute; left: -40px;
  box-shadow: 0 0 0 4px #F5FAFD, 0 4px 12px rgba(29,111,165,.4);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}
.timeline-step:hover .step-circle { transform: scale(1.15) rotate(8deg); }
.step-content { padding-left: 10px; }

/* ---------- WHATSAPP MOCK ---------- */
.whatsapp-mock {
  background: #ECF4F8; border-radius: 18px; overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,.18);
  transition: transform .5s;
}
.whatsapp-mock:hover { transform: translateY(-6px) scale(1.01); }
.wa-header {
  background: #0E5C72; color: white; padding: 14px;
  display: flex; align-items: center; gap: 10px;
}
.wa-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
}
.wa-body {
  padding: 16px; min-height: 320px; max-height: 420px;
  overflow-y: auto; display: flex; flex-direction: column; gap: 8px;
}
.wa-msg {
  max-width: 80%; padding: 8px 12px; border-radius: 12px;
  font-size: .9rem; white-space: pre-line;
  animation: msgIn .4s ease both;
}
.wa-in  { background: white; align-self: flex-start; }
.wa-out { background: #D9F1E8; align-self: flex-end; }
.wa-footer {
  padding: 10px; background: white; text-align: center;
  border-top: 1px solid #D8E7EF;
}
.wa-restart {
  font-size: .8rem; color: #1D6FA5; cursor: pointer;
  transition: transform .3s;
}
.wa-restart:hover { transform: scale(1.05); }
.dot-live {
  display: inline-block; width: 8px; height: 8px;
  background: #4ade80; border-radius: 50%; margin-right: 4px;
  animation: livePulse 1.6s ease-in-out infinite;
}
@keyframes livePulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(74,222,128,.6); }
  50%     { box-shadow: 0 0 0 6px rgba(74,222,128,0); }
}

/* ---------- PRECIOS ---------- */
.pricing-card {
  background: white; padding: 32px;
  border-radius: 18px; border: 1px solid #D8E7EF;
  display: flex; flex-direction: column;
  transition: transform .5s cubic-bezier(.2,.8,.2,1),
              box-shadow .5s, border-color .5s;
  position: relative;
}
.pricing-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(23,42,58,.15);
  border-color: #1D6FA5;
}
.pricing-featured {
  background: #F5FAFD; border-color: #1D6FA5;
  transform: scale(1.03);
}
.pricing-featured:hover { transform: scale(1.05) translateY(-10px); }
.featured-badge {
  position: absolute; top: -14px; left: 50%;
  transform: translateX(-50%);
  background: #1D6FA5; color: white;
  font-size: .7rem; padding: 6px 14px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .1em;
  box-shadow: 0 6px 14px rgba(29,111,165,.4);
}
.custom-price-block {
  background: linear-gradient(135deg, rgba(29,111,165,.06), rgba(217,236,247,.3));
  padding: 18px; border-radius: 14px; text-align: center;
}
.custom-price-icon { font-size: 1.6rem; color: #1D6FA5; margin-bottom: 8px; }

/* ---------- CHATBOT ---------- */
.chatbot-fab {
  position: fixed; bottom: 26px; right: 26px;
  width: 60px; height: 60px; border-radius: 50%;
  background: #1D6FA5; color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; cursor: pointer; z-index: 50;
  box-shadow: 0 10px 25px rgba(29,111,165,.4);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.chatbot-fab:hover { transform: scale(1.12) rotate(-8deg); }
.fab-pulse {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #1D6FA5;
  animation: fabPulse 1.8s ease-out infinite;
}
@keyframes fabPulse {
  0%   { transform: scale(1);   opacity: .8; }
  100% { transform: scale(1.6); opacity: 0;  }
}
.chatbot-window {
  position: fixed; bottom: 100px; right: 26px;
  width: 360px; max-width: calc(100vw - 40px);
  height: 520px; max-height: calc(100vh - 130px);
  background: white; border-radius: 18px;
  box-shadow: 0 25px 60px rgba(0,0,0,.25);
  display: flex; flex-direction: column;
  z-index: 50; overflow: hidden;
  animation: chatOpen .4s cubic-bezier(.2,.8,.2,1);
}
@keyframes chatOpen {
  from { opacity: 0; transform: translateY(20px) scale(.95); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.chatbot-window.hidden { display: none; }
.chatbot-header {
  background: #1D6FA5; color: white;
  padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between;
}
.chatbot-header button { color: white; opacity: .8; transition: opacity .2s; }
.chatbot-header button:hover { opacity: 1; }
.chatbot-body {
  flex: 1; padding: 14px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 10px;
  background: #F5FAFD;
}
.bot-msg, .user-msg {
  max-width: 85%; padding: 10px 14px; border-radius: 14px;
  font-size: .9rem; line-height: 1.4;
  animation: msgIn .35s ease both;
}
.bot-msg  { background: white; align-self: flex-start; border: 1px solid #D8E7EF; }
.user-msg { background: #1D6FA5; color: white; align-self: flex-end; }
.chatbot-typing {
  padding: 0 18px 6px;
  display: flex; gap: 4px; align-items: center;
}
.chatbot-typing.hidden { display: none; }
.chatbot-typing span {
  width: 7px; height: 7px; background: #1D6FA5; border-radius: 50%;
  animation: typeDot 1.2s ease-in-out infinite;
}
.chatbot-typing span:nth-child(2) { animation-delay: .2s; }
.chatbot-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typeDot {
  0%,80%,100% { transform: scale(.6); opacity: .4; }
  40%         { transform: scale(1);  opacity: 1; }
}
.chatbot-input {
  border-top: 1px solid #D8E7EF; padding: 10px;
  display: flex; gap: 8px; background: white;
}
.chatbot-input input {
  flex: 1; padding: 10px 14px; border-radius: 999px;
  border: 1px solid #D8E7EF; font-size: .9rem;
  transition: border-color .3s, box-shadow .3s;
}
.chatbot-input input:focus {
  outline: none; border-color: #1D6FA5;
  box-shadow: 0 0 0 3px rgba(29,111,165,.15);
}
.chatbot-input button {
  width: 40px; height: 40px; border-radius: 50%;
  background: #1D6FA5; color: white;
  transition: transform .25s, background .25s;
}
.chatbot-input button:hover { transform: scale(1.1) rotate(-10deg); }
.chatbot-input button:disabled { opacity: .5; cursor: not-allowed; }

/* =====================================================
   ANIMACIONES "VIDEO" AL HACER SCROLL (estilo Apple)
   Se reinician cada vez que entran/salen del viewport
   ===================================================== */

/* Reveal genérico: fade + sube + leve escala + blur que se aclara */
.reveal {
  opacity: 0;
  transform: translateY(60px) scale(.97);
  filter: blur(8px);
  transition:
    opacity .6s cubic-bezier(.2,.8,.2,1),
    transform .6s cubic-bezier(.2,.8,.2,1),
    filter .6s cubic-bezier(.2,.8,.2,1);
  will-change: opacity, transform, filter;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition:
    opacity 1s cubic-bezier(.2,.8,.2,1),
    transform 1s cubic-bezier(.2,.8,.2,1),
    filter 1s cubic-bezier(.2,.8,.2,1);
}

/* Reveal escalonado para grids de tarjetas */
.reveal-stagger {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(6px);
  transition:
    opacity .5s cubic-bezier(.2,.8,.2,1),
    transform .5s cubic-bezier(.2,.8,.2,1),
    filter .5s cubic-bezier(.2,.8,.2,1);
}
.reveal-stagger.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition:
    opacity .9s cubic-bezier(.2,.8,.2,1),
    transform .9s cubic-bezier(.2,.8,.2,1),
    filter .9s cubic-bezier(.2,.8,.2,1);
}
/* Delay automático en cascada */
.reveal-stagger:nth-child(1) { transition-delay: .05s; }
.reveal-stagger:nth-child(2) { transition-delay: .18s; }
.reveal-stagger:nth-child(3) { transition-delay: .31s; }
.reveal-stagger:nth-child(4) { transition-delay: .44s; }
.reveal-stagger:nth-child(5) { transition-delay: .57s; }
.reveal-stagger:nth-child(6) { transition-delay: .70s; }

/* Parallax: las shapes flotantes se mueven con el scroll */
.floating-shape {
  transform: translateY(var(--parallax, 0));
  transition: transform .15s linear;
}

/* Hero parallax suave del contenido */
.hero-bg { perspective: 1000px; }
.hero-bg > .max-w-6xl {
  transform: translateY(calc(var(--scroll-y, 0) * .15px));
  transition: transform .1s linear;
}

/* Secciones con "snap feeling" al aparecer */
section { position: relative; }
section .reveal h2,
section .reveal h1 { transition-delay: .1s; }

/* Scrollbar discreta estilo Apple */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #F5FAFD; }
::-webkit-scrollbar-thumb {
  background: #1D6FA5; border-radius: 10px;
  border: 2px solid #F5FAFD;
}
::-webkit-scrollbar-thumb:hover { background: #155A86; }

/* Respeto a usuarios con motion reducido */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal, .reveal-stagger { opacity: 1; transform: none; filter: none; }
}

/* ============ FORMULARIO DE CONTACTO ============ */
.contact-info-card {
    background: white;
    padding: 28px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(23,42,58,.08);
    height: 100%;
}
.contact-form {
    background: white;
    padding: 32px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(23,42,58,.08);
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
    font-family: 'Inter', sans-serif;
    font-size: .8rem;
    font-weight: 500;
    color: #172A3A;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 14px;
    border: 1.5px solid #D8E7EF;
    border-radius: 10px;
    background: #F5FAFD;
    font-family: 'Inter', sans-serif;
    font-size: .95rem;
    color: #172A3A;
    transition: border-color .3s, box-shadow .3s, background .3s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1D6FA5;
    background: white;
    box-shadow: 0 0 0 3px rgba(29,111,165,.12);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.checkbox-label {
    display: flex; align-items: flex-start; gap: 10px;
    font-family: 'Inter', sans-serif; font-size: .85rem;
    color: #465A69; cursor: pointer;
}
.checkbox-label input { margin-top: 3px; accent-color: #1D6FA5; }

/* ============ AVATAR DEL CHATBOT ============ */
.chatbot-fab-avatar {
    background: white !important;
    padding: 0;
    overflow: hidden;
    border: 2px solid #1D6FA5;
}
.chatbot-fab-avatar svg { display: block; }
.fab-notif {
    position: absolute;
    top: -4px; right: -4px;
    width: 22px; height: 22px;
    background: #1D6FA5; color: white;
    border-radius: 50%;
    font-size: .7rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid white;
    animation: notifBounce 1.5s ease-in-out infinite;
}
.fab-notif.hidden { display: none; }
@keyframes notifBounce {
    0%,100% { transform: scale(1); }
    50%     { transform: scale(1.15); }
}

/* Avatar dentro del header del chat */
.chatbot-header-info {
    display: flex; align-items: center; gap: 10px;
}
.chatbot-header-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid white;
    background: white;
}
.chatbot-header-avatar svg { display: block; }

/* ============ BURBUJA DE INVITACIÓN ============ */
.chatbot-invite {
    position: fixed;
    bottom: 100px;
    right: 100px;
    background: white;
    padding: 14px 40px 14px 18px;
    border-radius: 18px 18px 4px 18px;
    box-shadow: 0 15px 35px rgba(23,42,58,.18);
    max-width: 240px;
    z-index: 49;
    opacity: 0;
    transform: translateY(10px) scale(.9);
    transition: opacity .4s cubic-bezier(.2,.8,.2,1), transform .4s cubic-bezier(.2,.8,.2,1);
    pointer-events: none;
    border: 1px solid #D8E7EF;
}
.chatbot-invite.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    animation: inviteBob 3s ease-in-out infinite 1s;
}
.chatbot-invite.hidden {
    opacity: 0 !important;
    pointer-events: none;
    transform: translateY(10px) scale(.9);
}
.chatbot-invite strong {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: #172A3A;
    margin-bottom: 2px;
}
.chatbot-invite span {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: .82rem;
    color: #465A69;
    line-height: 1.3;
}
.chatbot-invite::after {
    content: '';
    position: absolute;
    bottom: -8px; right: 24px;
    width: 16px; height: 16px;
    background: white;
    transform: rotate(45deg);
    border-right: 1px solid #D8E7EF;
    border-bottom: 1px solid #D8E7EF;
}
.chatbot-invite-close {
    position: absolute;
    top: 6px; right: 8px;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: #F5FAFD;
    color: #465A69;
    font-size: .7rem;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s, color .2s;
}
.chatbot-invite-close:hover {
    background: #1D6FA5; color: white;
}
@keyframes inviteBob {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(-4px); }
}
@media (max-width: 640px) {
    .chatbot-invite { right: 80px; max-width: 200px; }
}

/* ============================================
   AVISO DE PRIVACIDAD
   ============================================ */
.prose-aviso h2 {
    font-family: 'Playfair Display', serif;
    color: #172A3A;
    letter-spacing: -0.01em;
}

.prose-aviso p,
.prose-aviso li {
    font-size: 1rem;
    line-height: 1.75;
    color: #172A3A;
}

.prose-aviso a {
    transition: color .2s ease;
}

.prose-aviso a:hover {
    color: #a8442f;
}

.prose-aviso ul {
    background: rgba(200, 85, 61, 0.04);
    padding: 1rem 1rem 1rem 2.5rem;
    border-left: 3px solid #1D6FA5;
    border-radius: 4px;
    margin-top: .5rem;
}

.prose-aviso section {
    scroll-margin-top: 100px;
}

/* Checkbox de consentimiento del formulario */
#privacyConsent {
    cursor: pointer;
    flex-shrink: 0;
}

#privacyConsent:checked {
    accent-color: #1D6FA5;
}

#privacyConsent + span {
    line-height: 1.5;
    color: #172A3A;
}

#privacyConsent + span a {
    transition: opacity .2s ease;
}

#privacyConsent + span a:hover {
    opacity: 0.8;
}

/* ============================================
   ANTI-SPAM: Honeypot fields (ocultos para humanos)
   Visible para bots, invisible para usuarios reales
   ============================================ */
.hp-field,
.form-group.hp-field {
    position: absolute !important;
    left: -99999px !important;
    top: -99999px !important;
    width: 1px !important;
    height: 1px !important;
    max-height: 1px !important;
    max-width: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    visibility: hidden !important;
    z-index: -1 !important;
}

.hp-field *,
.form-group.hp-field * {
    position: absolute !important;
    left: -99999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 1px !important;
    width: 1px !important;
}

/* ============================================
   ANIMACIONES EXTRA (v1.2)
   ============================================ */

/* Barra de progreso de scroll */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, #1D6FA5, #4AA3D8);
  z-index: 60;
  box-shadow: 0 0 8px rgba(29,111,165,.5);
  pointer-events: none;
}

/* Glow animado en el plan destacado */
.pricing-featured { animation: featuredGlow 3s ease-in-out infinite; }
@keyframes featuredGlow {
  0%,100% { box-shadow: 0 10px 30px rgba(29,111,165,.15); }
  50%     { box-shadow: 0 16px 46px rgba(29,111,165,.35); }
}

/* Subrayado que se dibuja en las palabras manuscritas al revelarse */
.reveal h1 .font-script,
.reveal h2 .font-script,
.reveal h3 .font-script { position: relative; }
.reveal h1 .font-script::after,
.reveal h2 .font-script::after,
.reveal h3 .font-script::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  height: 3px; width: 0;
  background: linear-gradient(90deg, #1D6FA5, rgba(29,111,165,0));
  border-radius: 2px;
  transition: width 1.1s cubic-bezier(.2,.8,.2,1) .45s;
}
.reveal.visible h1 .font-script::after,
.reveal.visible h2 .font-script::after,
.reveal.visible h3 .font-script::after { width: 100%; }

/* Entrada escalonada de estadísticas del hero */
.stat-item { opacity: 0; animation: fadeInUp .8s ease forwards; }
.stat-item:nth-child(1) { animation-delay: .45s; }
.stat-item:nth-child(2) { animation-delay: .65s; }
.stat-item:nth-child(3) { animation-delay: .85s; }

/* Burbuja "escribiendo…" en la demo de WhatsApp */
.wa-typing {
  display: flex; gap: 4px; align-items: center;
  align-self: flex-start;
  background: white; padding: 11px 14px; border-radius: 12px;
  animation: msgIn .3s ease both;
}
.wa-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: #9BB3C2;
  animation: typeDot 1.2s ease-in-out infinite;
}
.wa-typing span:nth-child(2) { animation-delay: .2s; }
.wa-typing span:nth-child(3) { animation-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  .stat-item { opacity: 1; animation: none; }
  .pricing-featured { animation: none; }
}

/* ==========================================================
   VIGILANCIA CONTINUA — componentes de posicionamiento 2026
   ========================================================== */

/* ---------- Barra de urgencia ---------- */
.urgency-bar {
  background: linear-gradient(90deg, #172A3A 0%, #1D6FA5 100%);
  color: #fff;
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center;
  gap: 10px;
  padding: 9px 18px;
  font-family: 'Inter', sans-serif;
  font-size: .82rem;
  text-align: center;
}
.urgency-bar i { color: #FFD37E; }
.countdown-pill {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  padding: 2px 12px;
  font-weight: 600;
  white-space: nowrap;
}
.urgency-link {
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: .9;
  transition: opacity .2s;
}
.urgency-link:hover { opacity: 1; }

/* ---------- Chips de riesgo en el hero ---------- */
.risk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.risk-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff;
  border: 1px solid #D8E7EF;
  border-radius: 999px;
  padding: 6px 14px;
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  color: #172A3A;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.risk-chip i { color: #1D6FA5; font-size: .82rem; }
.risk-chip:hover {
  transform: translateY(-3px);
  border-color: #1D6FA5;
  box-shadow: 0 6px 18px rgba(29,111,165,.14);
}

/* ---------- Tarjetas de riesgo ---------- */
.risk-card {
  background: #fff;
  border: 1px solid #D8E7EF;
  border-left: 4px solid #1D6FA5;
  border-radius: 16px;
  padding: 28px;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s;
}
.risk-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(23,42,58,.10);
}
.risk-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.risk-head i {
  font-size: 1.5rem; color: #1D6FA5;
  background: #EAF4FA;
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: transform .4s;
}
.risk-card:hover .risk-head i { transform: rotate(-8deg) scale(1.08); }
.risk-label {
  font-family: 'Inter', sans-serif;
  text-transform: uppercase; letter-spacing: .14em;
  font-size: .64rem; color: #7A8B98; margin-bottom: 2px;
}
.risk-metric {
  border-top: 1px dashed #D8E7EF;
  padding-top: 12px;
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  color: #465A69;
}
.risk-metric span { color: #172A3A; font-weight: 600; }
.risk-legal  { border-left-color: #C2453F; }
.risk-legal .risk-head i  { color: #C2453F; background: #FBEEED; }
.risk-oper   { border-left-color: #1D6FA5; }
.risk-fin    { border-left-color: #2F8F6B; }
.risk-fin .risk-head i    { color: #2F8F6B; background: #E9F5F0; }
.risk-rep    { border-left-color: #B07A1E; }
.risk-rep .risk-head i    { color: #B07A1E; background: #FBF3E3; }

/* ---------- Sección oscura: calendario ---------- */
.kicker-dark { color: #7FC4E8; }
.divider-dark { opacity: .5; }
.divider-dark::before, .divider-dark::after { background: #7FC4E8; }
.divider-dark .dot { background: #7FC4E8; }

.ladder {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  align-items: end;
}
.ladder-step {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), background .4s, border-color .4s;
}
.ladder-step:hover {
  transform: translateY(-8px);
  background: rgba(255,255,255,.11);
  border-color: rgba(127,196,232,.6);
}
.ladder-year {
  font-family: 'Inter', sans-serif;
  font-size: .72rem; letter-spacing: .16em;
  color: #7FC4E8; text-transform: uppercase;
}
.ladder-hours {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem; line-height: 1.1; margin: 6px 0 8px;
}
.ladder-note {
  font-family: 'Inter', sans-serif;
  font-size: .72rem; color: #B9CEDC; line-height: 1.45;
}
.ladder-step.is-next {
  background: #1D6FA5;
  border-color: #7FC4E8;
  box-shadow: 0 12px 34px rgba(29,111,165,.4);
  transform: translateY(-10px);
}
.ladder-step.is-next .ladder-year { color: #EAF4FA; }
.ladder-step.is-next .ladder-note { color: #EAF4FA; }
.ladder-step.is-goal { border-color: rgba(127,196,232,.5); }

.dark-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 22px;
  transition: transform .35s, background .35s;
}
.dark-card:hover { transform: translateY(-5px); background: rgba(255,255,255,.09); }
.dark-card i { color: #7FC4E8; font-size: 1.4rem; margin-bottom: 10px; display: block; }

/* ---------- Bloque de proyectos de entrada ---------- */
.entry-tag {
  display: inline-block;
  background: #1D6FA5; color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 999px;
}
.entry-block {
  background: #fff;
  border: 1px solid #D8E7EF;
  border-radius: 20px;
  padding: 30px;
}
.entry-head { text-align: center; max-width: 640px; margin: 0 auto; }
.entry-head p { margin-top: 12px; }
.entry-card {
  background: #F5FAFD;
  border: 1px solid #D8E7EF;
  border-radius: 16px;
  padding: 26px;
  display: flex; flex-direction: column;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s, border-color .4s;
}
.entry-card:hover {
  transform: translateY(-6px);
  border-color: #1D6FA5;
  box-shadow: 0 16px 36px rgba(29,111,165,.12);
}
.entry-card ul { flex-grow: 1; }
.entry-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: #1D6FA5; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; margin-bottom: 14px;
  transition: transform .4s;
}
.entry-card:hover .entry-icon { transform: rotate(360deg); }
.entry-meta {
  font-family: 'Inter', sans-serif;
  font-size: .74rem; color: #7A8B98;
  text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 12px;
}
.entry-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.85rem; color: #1D6FA5; line-height: 1.2;
}
.entry-price span {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: .72rem; color: #465A69; margin-top: 4px;
}

/* ---------- Módulos sueltos ---------- */
.module-card {
  background: #fff;
  border: 1px solid #D8E7EF;
  border-radius: 14px;
  padding: 20px;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s, box-shadow .35s;
}
.module-card:hover {
  transform: translateY(-5px);
  border-color: #1D6FA5;
  box-shadow: 0 12px 28px rgba(29,111,165,.1);
}
.module-card i { color: #1D6FA5; font-size: 1.3rem; margin-bottom: 10px; display: block; }
.module-card h4 { line-height: 1.25; margin-bottom: 6px; }
.module-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem; color: #1D6FA5; margin-bottom: 8px;
}
.module-price span { font-family: 'Inter', sans-serif; font-size: .74rem; color: #465A69; }

/* ---------- Cómo funciona el contrato ---------- */
.contract-block {
  background: #fff;
  border: 1px solid #D8E7EF;
  border-radius: 20px;
  padding: 34px 30px;
}
.contract-item { position: relative; padding-top: 6px; }
.contract-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; color: #D8E7EF;
  display: block; line-height: 1; margin-bottom: 8px;
  transition: color .35s;
}
.contract-item:hover .contract-num { color: #1D6FA5; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .ladder { grid-template-columns: repeat(2, 1fr); }
  .ladder-step.is-next { transform: none; }
}
@media (max-width: 560px) {
  .ladder { grid-template-columns: 1fr; }
  .urgency-bar { font-size: .74rem; padding: 10px 14px; }
  .entry-block, .contract-block { padding: 22px 18px; }
}
