/* ===== LaraIA Redesign — Shared Styles ===== */
:root {
  --dark:  #07040f;
  --dark2: #100a22;
  --mid:   #1a1030;
  --primary: #5900ff;
  --magenta: #ff40a1;
  --grad: linear-gradient(100deg, #ff40a1 0%, #7c3cff 50%, #5900ff 100%);
  --grad-text: linear-gradient(100deg, #ff40a1 0%, #8b5cff 100%);
  --light: #ffffff;
  --lightbg: #f7f4ff;
  --text-dark: #0a0514;
  --text-mid: #44405a;
  --text-light: rgba(255,255,255,0.72);
  --border-dark: rgba(255,255,255,0.07);
  --border-light: #e5e0f5;
  --radius: 18px;
  --radius-lg: 28px;
  --font: Arial, sans-serif;
  --container: 1080px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: var(--font); background: var(--dark); color: var(--light); overflow-x: hidden; padding-top: 76px; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: rgba(89,0,255,.4); border-radius: 3px; }

/* GRAD TEXT */
.gt { background: var(--grad-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ===== NAV ===== */
.lara-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; display: flex; justify-content: center; padding: 14px 16px; pointer-events: none; }
.lara-nav-capsule {
  pointer-events: all;
  display: flex; align-items: center; gap: 0;
  background: rgba(10,5,22,0.84);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 7px 7px 7px 16px;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  max-width: 1020px; width: 100%;
  transition: box-shadow .3s;
}
.lara-nav-capsule:hover { box-shadow: 0 0 0 1px rgba(89,0,255,.3); }
.lara-nav-logo { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.lara-nav-logo img { width: 34px; height: 34px; border-radius: 50%; }
.lara-nav-logo-txt { display: none !important; }
.lara-footer-brand-name { display: none !important; }

/* ===== SCROLL REVEAL (.sr) + SECCIONES (.motion-inview) =====
   html.lara-motion la añade js/lara-home-motion.js tras marcar lo ya visible;
   así no hay contenido oculto mientras el script carga diferido. */
.sr {
  opacity: 1;
  transform: none;
  transition: opacity 0.62s ease-out, transform 0.62s ease-out;
}
.sr-d1 { transition-delay: 0.08s; }
.sr-d2 { transition-delay: 0.16s; }
.sr-d3 { transition-delay: 0.24s; }
.sr-d4 { transition-delay: 0.32s; }
.sr-d5 { transition-delay: 0.4s; }
.sr-d6 { transition-delay: 0.48s; }
.sr.visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .sr {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
/* Móvil / tablet estrecho: sin reveal (JS motion no carga <769px; coherencia UX) */
@media (max-width: 860px) {
  .sr {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
@media (min-width: 861px) {
  @media (prefers-reduced-motion: no-preference) {
    html.lara-motion .sr:not(.visible) {
      opacity: 0;
      transform: translate3d(0, 18px, 0);
    }
    html.lara-motion .sr.sr-left:not(.visible) {
      transform: translate3d(-22px, 14px, 0);
    }
    html.lara-motion .sr.sr-right:not(.visible) {
      transform: translate3d(22px, 14px, 0);
    }
    html.lara-motion .sr.sr-scale:not(.visible) {
      transform: translate3d(0, 12px, 0) scale(0.97);
    }
    html.lara-motion .sr.visible.sr-left,
    html.lara-motion .sr.visible.sr-right,
    html.lara-motion .sr.visible.sr-scale {
      transform: none;
    }
    /* Home y bloques sin .sr (ids que observa lara-home-motion.js) */
    html.lara-motion .trust-bar:not(.motion-inview),
    html.lara-motion #problema:not(.motion-inview):not(.sr),
    html.lara-motion #sistema-laraia:not(.motion-inview):not(.sr),
    html.lara-motion #como-funciona:not(.motion-inview):not(.sr),
    html.lara-motion #servicios:not(.motion-inview):not(.sr),
    html.lara-motion #metodo:not(.motion-inview):not(.sr),
    html.lara-motion #beneficios-resultados:not(.motion-inview):not(.sr),
    html.lara-motion #sectores:not(.motion-inview):not(.sr),
    html.lara-motion #integraciones:not(.motion-inview):not(.sr),
    html.lara-motion #demo:not(.motion-inview):not(.sr),
    html.lara-motion #teaser-copiloto:not(.motion-inview):not(.sr),
    html.lara-motion #diferenciacion:not(.motion-inview):not(.sr),
    html.lara-motion #faq:not(.motion-inview):not(.sr),
    html.lara-motion .cta-band:not(.motion-inview),
    html.lara-motion #contacto:not(.motion-inview):not(.sr),
    html.lara-motion .laraia-slots-wrap:not(.motion-inview) {
      opacity: 0;
      transform: translate3d(0, 20px, 0);
      transition: opacity 0.65s ease-out, transform 0.65s ease-out;
    }
    html.lara-motion .trust-bar.motion-inview,
    html.lara-motion #problema.motion-inview,
    html.lara-motion #sistema-laraia.motion-inview,
    html.lara-motion #como-funciona.motion-inview,
    html.lara-motion #servicios.motion-inview,
    html.lara-motion #metodo.motion-inview,
    html.lara-motion #beneficios-resultados.motion-inview,
    html.lara-motion #sectores.motion-inview,
    html.lara-motion #integraciones.motion-inview,
    html.lara-motion #demo.motion-inview,
    html.lara-motion #teaser-copiloto.motion-inview,
    html.lara-motion #diferenciacion.motion-inview,
    html.lara-motion #faq.motion-inview,
    html.lara-motion .cta-band.motion-inview,
    html.lara-motion #contacto.motion-inview,
    html.lara-motion .laraia-slots-wrap.motion-inview {
      opacity: 1;
      transform: none;
    }
  }
}
.lara-nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; margin-right: 8px; }
.lara-nav-links a {
  color: rgba(255,255,255,.6); font-size: .82rem; font-weight: 500;
  padding: 6px 11px; border-radius: 999px;
  transition: color .2s, background .2s; white-space: nowrap;
}
.lara-nav-links a:hover, .lara-nav-links a.active { color: #fff; background: rgba(255,255,255,.08); }
.lara-nav-links a.nav-copiloto {
  color: #c084fc;
  background: rgba(120,60,255,.12);
  border: 1px solid rgba(120,60,255,.25);
}
.lara-nav-links a.nav-copiloto:hover { background: rgba(120,60,255,.22); color: #e0b4ff; }
.lara-nav-cta {
  background: rgba(16,10,34,.92);
  color: #ff40a1;
  border: 1px solid rgba(255,64,161,.7);
  font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 8px 18px; border-radius: 999px; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,64,161,.12) inset, 0 2px 16px rgba(255,64,161,.18);
}
.lara-nav-cta:hover {
  background: #ff40a1;
  color: #fff;
  border-color: #ff40a1;
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(255,64,161,.34);
}
.lara-nav-burger { display: none; background: none; border: none; cursor: pointer; color: #fff; font-size: 1.1rem; padding: 7px 10px; margin-left: 6px; }
.lara-nav-mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(7,4,15,.96); flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 20px;
}
.lara-nav-mobile-menu.open { display: flex; }
.lara-nav-mobile-menu a {
  color: rgba(255,255,255,.8); font-size: 1.2rem; font-weight: 600;
  padding: 14px 32px; border-radius: 999px; text-align: center; width: 100%; max-width: 300px;
  border: 1px solid rgba(255,255,255,.08);
  transition: background .2s, color .2s;
}
.lara-nav-mobile-menu a:hover { background: rgba(255,255,255,.07); color: #fff; }
.lara-nav-mobile-menu a.nav-cta-mobile {
  background: rgba(16,10,34,.92);
  border: 1px solid rgba(255,64,161,.7);
  color: #ff40a1;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: 8px;
}
.lara-nav-mobile-menu a.nav-cta-mobile:hover {
  background: #ff40a1;
  border-color: #ff40a1;
  color: #fff;
}
.lara-nav-close { position: absolute; top: 20px; right: 20px; background: none; border: none; color: rgba(255,255,255,.6); font-size: 1.4rem; cursor: pointer; }
@media (max-width: 820px) {
  .lara-nav-links { display: none; }
  .lara-nav-capsule {
    justify-content: flex-start;
    padding: 7px 10px 7px 14px;
  }
  /** Logo izquierda; Contacto + hamburguesa juntos a la derecha */
  .lara-nav-cta {
    display: inline-flex !important;
    margin-left: auto;
    padding: 8px 14px;
    font-size: 0.76rem;
  }
  .lara-nav-burger {
    display: block !important;
    flex-shrink: 0;
    margin-left: 4px;
  }
}

/* ===== FOOTER ===== */
.lara-footer {
  background: var(--dark2);
  border-top: 1px solid var(--border-dark);
  padding: 40px 20px 28px;
}
.lara-footer-inner {
  max-width: var(--container); margin: 0 auto;
  display: flex; flex-direction: column; gap: 28px;
}
.lara-footer-top {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.lara-footer-brand { display: flex; align-items: center; gap: 10px; }
.lara-footer-brand img { width: 32px; height: 32px; border-radius: 50%; }
.lara-footer-brand-name { font-weight: 800; font-size: .95rem; color: #fff; }
.lara-footer-brand-sub { font-size: .75rem; color: rgba(255,255,255,.72); margin-top: 2px; }
.lara-footer-links { display: flex; flex-wrap: wrap; gap: 4px 2px; justify-content: center; }
.lara-footer-links a { font-size: .82rem; color: rgba(255,255,255,.78); padding: 4px 10px; border-radius: 999px; transition: color .2s, background .2s; }
.lara-footer-links a:hover { color: #fff; background: rgba(255,255,255,.06); }
.lara-footer-social { display: flex; gap: 8px; }
.lara-footer-social a {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.06); display: flex; align-items: center; justify-content: center;
  font-size: .8rem; color: rgba(255,255,255,.5); font-weight: 700;
  transition: background .2s, color .2s;
}
.lara-footer-social a:hover { background: rgba(255,64,161,.2); color: #ff40a1; }
.lara-footer-bottom { border-top: 1px solid var(--border-dark); padding-top: 20px; }
.lara-footer-copy { font-size: .75rem; color: rgba(255,255,255,.7); text-align: center; }
@media (max-width: 600px) {
  .lara-footer-top { flex-direction: column; align-items: flex-start; gap: 16px; }
  .lara-footer-social { margin-top: 4px; }
}


/* ===== SECTION BASE ===== */
.lsec { padding: clamp(60px, 9vw, 100px) 20px; }
.lsec-dark { background: var(--dark); }
.lsec-dark2 { background: var(--dark2); }
.lsec-light { background: #fff; color: var(--text-dark); }
.lsec-lightbg { background: var(--lightbg); color: var(--text-dark); }
.lsec-inner { max-width: var(--container); margin: 0 auto; }
.lsec-label { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.lsec-dark .lsec-label, .lsec-dark2 .lsec-label { color: #ff80be; }
.lsec-light .lsec-label, .lsec-lightbg .lsec-label { color: var(--primary); }
.lsec-title { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 900; line-height: 1.1; letter-spacing: -.025em; margin-bottom: 14px; }
.lsec-light .lsec-title, .lsec-lightbg .lsec-title { color: var(--text-dark); }
.lsec-sub { font-size: clamp(.93rem, 1.5vw, 1.06rem); line-height: 1.65; max-width: 580px; margin-bottom: 44px; }
.lsec-dark .lsec-sub, .lsec-dark2 .lsec-sub { color: var(--text-light); }
.lsec-light .lsec-sub, .lsec-lightbg .lsec-sub { color: var(--text-mid); }
.lsec-centered { text-align: center; }
.lsec-centered .lsec-sub { margin-left: auto; margin-right: auto; }

/* CARDS */
.lcard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.lcard {
  background: rgba(255,255,255,.04); border: 1px solid var(--border-dark);
  border-radius: var(--radius); padding: 28px 24px;
  transition: border-color .25s, transform .25s;
}
.lcard:hover { border-color: rgba(89,0,255,.35); transform: translateY(-3px); }
.lcard-light {
  background: #fff; border: 1px solid var(--border-light); color: var(--text-dark);
}
.lcard-light:hover { border-color: rgba(89,0,255,.25); }
.lcard-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(89,0,255,.1); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--primary); margin-bottom: 16px; }
.lcard-light .lcard-icon { background: rgba(89,0,255,.08); }
.lcard h3 { font-size: .95rem; font-weight: 800; margin-bottom: 7px; letter-spacing: -.01em; }
.lcard-light h3 { color: var(--text-dark); }
.lcard p { font-size: .87rem; line-height: 1.6; }
.lcard-dark p { color: var(--text-light); }
.lcard-light p { color: var(--text-mid); }

/* BTNS */
.lbtn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; font-weight: 700; transition: opacity .2s, transform .2s, box-shadow .2s; cursor: pointer; border: none; font-family: var(--font); text-decoration: none; }
.lbtn-main {
  background: rgba(16,10,34,.92);
  color: #ff40a1;
  border: 1px solid rgba(255,64,161,.68);
  padding: 14px 28px;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 0 0 1px rgba(255,64,161,.12) inset, 0 4px 24px rgba(255,64,161,.22);
}
.lbtn-main:hover {
  background: #ff40a1;
  color: #fff;
  border-color: #ff40a1;
  transform: translateY(-2px);
  box-shadow: 0 10px 34px rgba(255,64,161,.38);
}
.lbtn-ghost { background: transparent; color: rgba(255,255,255,.8); padding: 13px 24px; font-size: .95rem; border: 1px solid rgba(255,255,255,.2); }
.lbtn-ghost:hover { border-color: rgba(255,64,161,.5); color: #fff; background: rgba(255,64,161,.06); }
/* Ghost en fondos claros (#fff / #f7f4ff): evita texto blanco sobre blanco */
.lsec-light .lbtn-ghost,
.lsec-lightbg .lbtn-ghost {
  color: var(--text-dark);
  border: 1.5px solid rgba(89, 0, 255, 0.32);
  background: rgba(255, 255, 255, 0.98);
}
.lsec-light .lbtn-ghost:hover,
.lsec-lightbg .lbtn-ghost:hover {
  color: var(--primary);
  border-color: rgba(255, 64, 161, 0.45);
  background: rgba(89, 0, 255, 0.07);
}
.lbtn-outline-dark { background: transparent; color: var(--primary); padding: 12px 24px; font-size: .92rem; border: 1.5px solid rgba(89,0,255,.4); }
.lbtn-outline-dark:hover { background: rgba(89,0,255,.07); border-color: rgba(89,0,255,.7); }

/* RESEÑAS REALES (Trustindex) */
.reviews-real-wrap {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
}
.reviews-real-fallback {
  margin: 0 auto;
  max-width: 560px;
  font-size: .9rem;
  color: rgba(255,255,255,.64);
  line-height: 1.6;
}

/* CONTACT FORM */
.lcontact-wrap {
  background: linear-gradient(135deg, rgba(89,0,255,.18), rgba(255,64,161,.1));
  border: 1px solid rgba(255,64,161,.2);
  border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 68px);
  text-align: center; max-width: 640px; margin: 0 auto;
}
.lcontact-wrap h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 900; letter-spacing: -.025em; margin-bottom: 12px; }
.lcontact-wrap > p { color: var(--text-light); margin-bottom: 32px; font-size: .98rem; }
.lcontact-form { display: flex; flex-direction: column; gap: 12px; }
.lcontact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .lcontact-row { grid-template-columns: 1fr; } }
.lcontact-input {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px; padding: 12px 15px; font-size: .9rem; color: #fff;
  font-family: var(--font); outline: none; transition: border-color .2s; width: 100%;
}
.lcontact-input::placeholder { color: rgba(255,255,255,.3); }
.lcontact-input:focus { border-color: rgba(255,64,161,.5); }
.lcontact-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='rgba(255,255,255,.4)' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.lcontact-submit {
  background: rgba(16,10,34,.92);
  color: #ff40a1;
  border: 1px solid rgba(255,64,161,.68);
  border-radius: 999px;
  padding: 14px 32px; font-size: .95rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
  font-family: var(--font); box-shadow: 0 4px 24px rgba(255,64,161,.3);
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.lcontact-submit:hover {
  background: #ff40a1;
  color: #fff;
  border-color: #ff40a1;
  transform: translateY(-2px);
  box-shadow: 0 10px 34px rgba(255,64,161,.38);
}
.lcontact-legal { font-size: .72rem; color: rgba(255,255,255,.3); margin-top: 6px; }

/* Mismo aspecto navbar «Contacto» como <button> (abre widget vía js-assistant-intent) */
.lara-nav-capsule button.lara-nav-cta {
  appearance: none;
  border: none;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.lara-nav-mobile-menu button.nav-cta-mobile[type="button"] {
  appearance: none;
  font: inherit;
  cursor: pointer;
  border: transparent;
}

/* Cinta CTA inferior: título legible sobre oscuro */
.cta-band h2 {
  color: #fff;
}
