@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@500;600;700&display=swap');

:root{
  --bg:#020b14;
  --primary:#04687C;
  --cyan:#23d7ff;
  --blue:#2b95ff;
  --text:#eef8ff;
  --muted:#9bb8c8;
  --line:rgba(255,255,255,.13);
  --shadow:0 30px 80px rgba(0,0,0,.45);
}

*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

html{
  scroll-behavior:smooth;
}

body{
  font-family:'Inter',system-ui,sans-serif;
  color:var(--text);
  min-height:100vh;
  overflow-x:hidden;
  position:relative;
  background:
    radial-gradient(circle at top right,rgba(35,215,255,.14),transparent 34%),
    linear-gradient(180deg,var(--bg),#000811 75%);
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  background:url('../assets/saul-robot.png') no-repeat center/720px;
  opacity:.04;
  filter:blur(1px);
  pointer-events:none;
  z-index:-1;
}

a{
  color:inherit;
  text-decoration:none;
}

.bg-grid{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:-2;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);
  background-size:54px 54px;
  mask-image:linear-gradient(to bottom,rgba(0,0,0,.9),transparent 82%);
}

.bg-grid::after{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at 50% 10%,rgba(4,104,124,.35),transparent 36%);
}

/* HEADER */

.site-header{
  position:sticky;
  top:0;
  z-index:80;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:15px 6%;
  background:rgba(2,11,20,.78);
  backdrop-filter:blur(22px);
  border-bottom:1px solid var(--line);
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-family:'Space Grotesk',sans-serif;
  font-weight:700;
  letter-spacing:.3px;
}

.brand img{
  width:42px;
  height:42px;
  border-radius:12px;
  object-fit:cover;
  box-shadow:0 0 30px rgba(35,215,255,.35);
}

.nav{
  display:flex;
  align-items:center;
  gap:8px;
}

.nav a{
  padding:10px 14px;
  color:var(--muted);
  font-weight:800;
  border-radius:999px;
  transition:.25s;
}

.nav a:hover,
.nav a.active{
  color:var(--text);
  background:rgba(255,255,255,.08);
}

.nav-cta{
  background:linear-gradient(135deg,var(--primary),var(--blue))!important;
  color:white!important;
  box-shadow:0 12px 30px rgba(4,104,124,.35);
}

.menu-btn{
  display:none;
  background:none;
  border:0;
  color:white;
  font-size:30px;
  cursor:pointer;
}

/* GENERAL */

.section{
  padding:90px 6%;
  max-width:1320px;
  margin:auto;
}

.hero{
  position:relative;
  isolation:isolate;
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:60px;
  align-items:center;
  min-height:calc(100vh - 74px);
}

.hero-video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:-3;
  opacity:.45;
}

.hero-overlay{
  position:absolute;
  inset:0;
  z-index:-2;
  background:
    linear-gradient(90deg,#020b14 0%,rgba(2,11,20,.86) 34%,rgba(2,11,20,.42) 100%),
    linear-gradient(180deg,rgba(0,0,0,.15),#020b14 96%);
}

.hero-content{
  max-width:790px;
}

.eyebrow{
  display:inline-flex;
  color:#70e8ff;
  background:rgba(35,215,255,.1);
  border:1px solid rgba(35,215,255,.22);
  padding:8px 14px;
  border-radius:999px;
  font-weight:900;
  font-size:13px;
  margin-bottom:20px;
  letter-spacing:.5px;
}

h1,h2,h3{
  font-family:'Space Grotesk',sans-serif;
}

h1{
  font-size:clamp(42px,6vw,84px);
  line-height:.96;
  letter-spacing:-3px;
}

h2{
  font-size:clamp(30px,4vw,54px);
  line-height:1.05;
  letter-spacing:-1.5px;
}

h3{
  font-size:21px;
  margin-bottom:10px;
}

p{
  color:var(--muted);
  line-height:1.72;
  font-size:17px;
}

.hero p{
  font-size:20px;
  max-width:760px;
  margin:26px 0;
}

/* BOTONES */

.hero-actions{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:15px 22px;
  border-radius:16px;
  font-weight:900;
  border:1px solid var(--line);
  transition:.25s;
  cursor:pointer;
}

.btn:hover{
  transform:translateY(-3px);
}

.btn.primary{
  background:linear-gradient(135deg,var(--primary),var(--cyan));
  color:white;
  box-shadow:0 20px 50px rgba(4,104,124,.35);
}

.btn.secondary{
  background:rgba(255,255,255,.06);
  color:var(--text);
}

/* TAGS */

.trust-row,
.mini-tags{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:28px;
}

.trust-row span,
.mini-tags span{
  font-size:13px;
  color:#d5f7ff;
  background:rgba(255,255,255,.06);
  border:1px solid var(--line);
  padding:9px 12px;
  border-radius:999px;
}

/* GLASS */

.glass{
  background:linear-gradient(180deg,rgba(255,255,255,.095),rgba(255,255,255,.045));
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  backdrop-filter:blur(24px);
}

/* PANEL PRINCIPAL */

.hero-panel{
  border-radius:34px;
  padding:24px;
  position:relative;
  overflow:hidden;
}

.hero-panel::before{
  content:"";
  position:absolute;
  inset:-30%;
  background:conic-gradient(from 180deg,transparent,rgba(35,215,255,.22),transparent 30%);
  animation:spin 9s linear infinite;
}

.hero-panel > *{
  position:relative;
}

.panel-top,
.window-bar{
  display:flex;
  gap:8px;
  margin-bottom:22px;
}

.panel-top span,
.window-bar span{
  width:10px;
  height:10px;
  border-radius:50%;
  background:rgba(255,255,255,.28);
}

/* DASHBOARD CARD */

.dashboard-card{
  padding:32px;
  border-radius:24px;
  background:rgba(2,11,20,.62);
  border:1px solid rgba(35,215,255,.18);
}

.dashboard-card p{
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:2px;
  color:#70e8ff;
}

.dashboard-card h3{
  font-size:34px;
  line-height:1.08;
  margin:12px 0 26px;
}

/* LIVITY CARD PREMIUM */

.livity-card{
  position:relative;
  overflow:hidden;
  background:
    linear-gradient(180deg,rgba(4,104,124,.18),rgba(2,11,20,.88));
  border:1px solid rgba(35,215,255,.18);
}

.livity-card::before{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at center,rgba(35,215,255,.14),transparent 45%);
  pointer-events:none;
}

.dashboard-header{
  position:relative;
}

.dashboard-header span{
  color:#70e8ff;
  font-size:13px;
  letter-spacing:3px;
  font-weight:900;
}

.dashboard-header h3{
  margin-top:18px;
  font-size:56px;
  line-height:.95;
  letter-spacing:-2px;
  max-width:620px;
}

.flow-line{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
  margin-top:34px;
}

.flow-line i{
  height:10px;
  border-radius:20px;
  background:linear-gradient(90deg,var(--primary),var(--cyan));
  animation:pulse 1.8s ease-in-out infinite;
}

.flow-line i:nth-child(2){animation-delay:.2s}
.flow-line i:nth-child(3){animation-delay:.4s}
.flow-line i:nth-child(4){animation-delay:.6s}

.metrics{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  margin:28px 0 0;
}

.metrics div,
.ai-card{
  background:rgba(255,255,255,.06);
  border:1px solid var(--line);
  border-radius:20px;
  padding:18px;
}

.metrics strong{
  display:block;
  font-size:24px;
  color:white;
}

.metrics small{
  color:var(--muted);
}

.metrics-premium{
  margin-top:34px;
}

.metric-box{
  min-height:130px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.03))!important;
  border:1px solid rgba(255,255,255,.12)!important;
  transition:.3s;
}

.metric-box:hover{
  transform:translateY(-5px);
  border-color:rgba(35,215,255,.38)!important;
  box-shadow:0 20px 40px rgba(0,0,0,.25),0 0 30px rgba(35,215,255,.08);
}

.metric-box strong{
  font-size:34px!important;
  margin-bottom:8px;
}

.metric-box small{
  font-size:15px;
}

.alert-card{
  margin-top:20px;
  padding:26px;
  border-radius:24px;
  background:linear-gradient(135deg,rgba(35,215,255,.08),rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.08);
}

.alert-card h4{
  color:#70e8ff;
  font-size:18px;
  margin-bottom:10px;
}

.alert-card p{
  margin:0;
  font-size:17px;
  text-transform:none;
  letter-spacing:0;
  color:var(--muted);
}

.ai-card span{
  color:#70e8ff;
  font-weight:900;
}

.ai-card p{
  font-size:14px;
  margin-top:6px;
  text-transform:none;
  letter-spacing:0;
  color:var(--muted);
}

/* SECCIONES */

.section-head{
  max-width:820px;
  margin-bottom:38px;
}

.section-head p{
  margin-top:18px;
}

.center{
  text-align:center;
  margin-left:auto;
  margin-right:auto;
}

.cards-grid,
.principles-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}

.cards-grid.four{
  grid-template-columns:repeat(4,1fr);
}

.service-card,
.principles-grid div{
  padding:28px;
  border-radius:26px;
  background:rgba(255,255,255,.055);
  border:1px solid var(--line);
  transition:.25s;
}

.service-card:hover,
.principles-grid div:hover{
  transform:translateY(-8px);
  border-color:rgba(35,215,255,.38);
  box-shadow:0 30px 60px rgba(0,0,0,.25);
}

.service-card b{
  color:#70e8ff;
  font-size:15px;
  letter-spacing:1px;
}

.icon{
  width:48px;
  height:48px;
  border-radius:16px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,rgba(4,104,124,.9),rgba(35,215,255,.55));
  margin-bottom:20px;
  font-size:24px;
}

.service-card p,
.principles-grid p{
  font-size:15px;
}

.livity,
.split{
  display:grid;
  grid-template-columns:.95fr 1.05fr;
  gap:45px;
  align-items:center;
}

.feature-list{
  margin-top:22px;
  display:grid;
  gap:12px;
}

.feature-list li{
  list-style:none;
  color:#d5f7ff;
  background:rgba(255,255,255,.055);
  border:1px solid var(--line);
  padding:13px 15px;
  border-radius:16px;
}

.feature-list li::before{
  content:"✓";
  color:var(--cyan);
  font-weight:900;
  margin-right:10px;
}

.product-window{
  border-radius:30px;
  padding:0;
  overflow:hidden;
}

.product-video{
  display:block;
  width:100%;
  height:430px;
  object-fit:cover;
  opacity:.82;
}

.section-image{
  width:100%;
  border-radius:30px;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  object-fit:cover;
  max-height:460px;
}

.section-video{
  width:100%;
  height:460px;
  display:block;
  object-fit:cover;
  border-radius:30px;
  border:1px solid rgba(255,255,255,.12);
  box-shadow:var(--shadow);
  background:#020b14;
}

.workflow{
  max-width:1500px;
}

.process-line{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:14px;
}

.process-line div{
  position:relative;
  padding:24px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.055);
  border-radius:24px;
}

.process-line span{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:linear-gradient(135deg,var(--primary),var(--cyan));
  font-weight:900;
  margin-bottom:16px;
}

.cta-card{
  text-align:center;
  border-radius:34px;
  padding:56px;
  max-width:1040px;
  margin:auto;
}

.cta-card p{
  max-width:730px;
  margin:18px auto 26px;
}

.page-hero{
  text-align:center;
  max-width:1050px;
}

.page-hero p{
  max-width:820px;
  margin:24px auto 0;
}

.two-col{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px;
}

.info-box{
  padding:34px;
  border-radius:28px;
}

.info-box h2{
  font-size:34px;
  margin-bottom:18px;
}

.info-box p + p{
  margin-top:16px;
}

.accent-box{
  border-color:rgba(35,215,255,.34);
}

/* CONTACTO */

.contact-section{
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:36px;
  align-items:start;
}

.contact-copy p{
  margin:22px 0;
}

.contact-cards,
.social-grid{
  display:grid;
  gap:12px;
}

.social-grid{
  grid-template-columns:repeat(3,1fr);
  margin-top:16px;
}

.contact-cards a,
.social-grid a{
  padding:18px;
  border-radius:18px;
  background:rgba(255,255,255,.06);
  border:1px solid var(--line);
  font-weight:800;
  transition:.25s;
}

.contact-cards a:hover,
.social-grid a:hover{
  transform:translateY(-4px);
  border-color:rgba(35,215,255,.38);
  background:rgba(35,215,255,.08);
}

.contact-form{
  border-radius:28px;
  padding:30px;
  display:grid;
  gap:16px;
}

.contact-form label{
  display:grid;
  gap:8px;
  color:#d5f7ff;
  font-weight:800;
}

.contact-form input,
.contact-form select,
.contact-form textarea{
  width:100%;
  border:1px solid var(--line);
  background:rgba(2,11,20,.7);
  color:white;
  border-radius:16px;
  padding:14px 16px;
  font:inherit;
  outline:none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus{
  border-color:rgba(35,215,255,.55);
}

.form-note{
  font-size:13px;
}

/* FOOTER */

.site-footer{
  padding:34px 6%;
  border-top:1px solid var(--line);
  background:rgba(2,11,20,.76);
  display:flex;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
  color:var(--muted);
}

/* ANIMACIONES */

.reveal{
  opacity:0;
  transform:translateY(22px);
  transition:1s ease;
}

.reveal.show{
  opacity:1;
  transform:none;
}

.delay{
  transition-delay:.14s;
}

@keyframes spin{
  to{
    transform:rotate(360deg);
  }
}

@keyframes pulse{
  0%,100%{
    opacity:.3;
    transform:scaleX(.92);
  }

  50%{
    opacity:1;
    transform:scaleX(1);
  }
}

/* TABLET */

@media(max-width:1150px){
  .hero,
  .livity,
  .split,
  .contact-section,
  .two-col{
    grid-template-columns:1fr;
    gap:34px;
  }

  .hero{
    min-height:auto;
  }

  .cards-grid.four,
  .cards-grid,
  .principles-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .process-line{
    grid-template-columns:repeat(3,1fr);
  }

  .section-video{
    height:380px;
  }

  body::before{
    background-size:720px;
    opacity:.04;
  }
}

/* CELULAR */

@media(max-width:768px){
  .site-header{
    padding:14px 5%;
  }

  .brand span{
    font-size:14px;
  }

  .menu-btn{
    display:block;
  }

  .nav{
    position:absolute;
    top:72px;
    left:5%;
    right:5%;
    display:none;
    flex-direction:column;
    align-items:stretch;
    padding:14px;
    background:rgba(2,11,20,.97);
    border:1px solid var(--line);
    border-radius:22px;
    box-shadow:var(--shadow);
  }

  .nav.open{
    display:flex;
  }

  .nav a{
    text-align:center;
    padding:13px;
  }

  .section{
    padding:62px 5%;
  }

  .hero{
    padding-top:72px;
  }

  .hero-video{
    opacity:.32;
  }

  .hero-overlay{
    background:linear-gradient(180deg,rgba(2,11,20,.72),#020b14 92%);
  }

  h1{
    font-size:clamp(36px,12vw,54px);
    letter-spacing:-2px;
  }

  h2{
    font-size:clamp(28px,9vw,40px);
    letter-spacing:-1px;
  }

  p,
  .hero p{
    font-size:16px;
  }

  .hero-actions,
  .trust-row{
    flex-direction:column;
  }

  .btn{
    width:100%;
  }

  .cards-grid.four,
  .cards-grid,
  .principles-grid,
  .metrics,
  .process-line,
  .social-grid{
    grid-template-columns:1fr;
  }

  .hero-panel,
  .contact-form,
  .info-box,
  .cta-card{
    padding:22px;
    border-radius:24px;
  }

  .dashboard-card{
    padding:24px;
  }

  .dashboard-card h3{
    font-size:28px;
  }

  .dashboard-header h3{
    font-size:42px;
  }

  .metrics-premium{
    grid-template-columns:1fr;
  }

  .metric-box{
    min-height:110px;
  }

  .product-video,
  .section-video{
    height:300px;
  }

  .section-image{
    max-height:320px;
  }

  .site-footer{
    font-size:14px;
  }

  body::before{
    background-size:520px;
    opacity:.035;
  }
}

/* CELULAR PEQUEÑO */

@media(max-width:420px){
  .brand img{
    width:36px;
    height:36px;
  }

  .brand span{
    max-width:190px;
    line-height:1.1;
  }

  .section{
    padding:52px 4.5%;
  }

  .hero{
    padding-top:58px;
  }

  .dashboard-card h3{
    font-size:25px;
  }

  .dashboard-header h3{
    font-size:34px;
  }

  .metric-box strong{
    font-size:28px!important;
  }

  .product-video,
  .section-video{
    height:240px;
  }

  body::before{
    background-size:420px;
    opacity:.03;
  }
}

/* =====================================================
   MEJORAS CONSERVANDO EL ESTILO ORIGINAL - SAUL IA
   ===================================================== */
.saul-hero{
  grid-template-columns:1fr .78fr;
}

.saul-showcase{
  position:relative;
  overflow:hidden;
  border-radius:34px;
  min-height:520px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:linear-gradient(180deg,rgba(4,104,124,.20),rgba(2,11,20,.80));
}

.saul-showcase::before{
  content:"";
  position:absolute;
  inset:-30%;
  background:radial-gradient(circle at 50% 35%,rgba(35,215,255,.28),transparent 42%);
  pointer-events:none;
}

.saul-showcase img{
  position:relative;
  width:100%;
  max-width:520px;
  max-height:720px;
  object-fit:contain;
  display:block;
  filter:drop-shadow(0 28px 70px rgba(0,0,0,.45));
}

.saul-showcase.small{
  min-height:420px;
}

.saul-showcase.small img{
  max-height:520px;
}

.saul-card{
  border-radius:30px;
  padding:30px;
}

.chat-demo{
  display:grid;
  gap:14px;
  margin-top:20px;
}

.chat-demo p{
  padding:16px;
  border-radius:18px;
  background:rgba(255,255,255,.06);
  border:1px solid var(--line);
  font-size:15px;
}

.saul-img-contained{
  width:100%;
  max-height:620px;
  object-fit:contain;
  display:block;
  background:rgba(2,11,20,.48);
}

.saul-mini-section{
  padding-top:40px;
}

@media(max-width:1150px){
  .saul-hero{grid-template-columns:1fr;}
  .saul-showcase{min-height:460px;}
}

@media(max-width:768px){
  .saul-showcase{min-height:360px;padding:16px;}
  .saul-showcase img{max-height:430px;}
  .saul-showcase.small{min-height:320px;}
}

.livity-logo-box {
  width: 100%;
  max-width: 220px;
  margin: 0 auto 20px auto;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(0, 208, 255, 0.35);
  box-shadow: 0 0 40px rgba(0, 208, 255, 0.25);
}

.livity-logo-box img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.brand img {
  object-fit: cover;
  border-radius: 12px;
}

/* =====================================================
   AJUSTES MDQ - Navegación unificada e imágenes premium
   Mantiene colores/estilo base del proyecto.
   ===================================================== */

.brand img{
  object-fit:contain;
  background:rgba(2,11,20,.72);
  border:1px solid rgba(35,215,255,.18);
}

.livity-logo-box{
  max-width:280px;
  aspect-ratio:1/1;
  padding:10px;
  background:linear-gradient(180deg,rgba(2,11,20,.86),rgba(4,104,124,.24));
  border-radius:28px;
  border:1px solid rgba(35,215,255,.34);
  box-shadow:
    0 20px 70px rgba(0,0,0,.42),
    0 0 44px rgba(35,215,255,.20);
}

.livity-logo-box img{
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
  border-radius:22px;
}

.saul-showcase{
  max-width:560px;
  width:100%;
  justify-self:center;
  min-height:auto;
  padding:22px;
  border-radius:34px;
  border:1px solid rgba(35,215,255,.22);
  box-shadow:
    0 28px 80px rgba(0,0,0,.45),
    inset 0 0 36px rgba(35,215,255,.06);
}

.saul-showcase img{
  width:100%;
  max-width:440px;
  max-height:520px;
  object-fit:contain;
  border-radius:26px;
  border:1px solid rgba(35,215,255,.20);
  box-shadow:0 24px 70px rgba(0,0,0,.52), 0 0 48px rgba(35,215,255,.22);
  background:rgba(2,11,20,.72);
}

.hero-panel .dashboard-card{
  overflow:hidden;
}

.form-note{
  margin-top:14px;
  font-size:13px;
  text-align:center;
  color:var(--muted);
}

.form-note.error{
  color:#ffb8b8;
}

@media(max-width:980px){
  .saul-showcase{
    max-width:440px;
    margin:auto;
  }

  .saul-showcase img{
    max-height:420px;
  }

  .livity-logo-box{
    max-width:220px;
  }
}
