/* =========================================================
   AUTOMATIZACIÓN E IA — PRESENTAR STUDIO
========================================================= */

:root{
  --auto-bg:#f2f0ea;
  --auto-dark:#090909;
  --auto-paper:#fffdf8;
  --auto-ink:#0a0a0a;
  --auto-muted:#77736c;
  --auto-lime:#c7ff00;
  --auto-violet:#8f6cff;
  --auto-orange:#ff6b35;
  --auto-blue:#63c7ff;
  --auto-line:rgba(10,10,10,.12);
}

.auto-wrap{
  width:100%;
  max-width:1320px;
  margin:0 auto;
}

.auto-hero{
  min-height:100vh;
  padding:150px 5vw 72px;
  background:#080808;
  color:#fff;
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:flex-end;
}

.auto-hero__grid{
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px);
  background-size:72px 72px;
  mask-image:linear-gradient(to bottom,#000,transparent 95%);
}

.auto-orb{
  position:absolute;
  border-radius:50%;
  filter:blur(10px);
  opacity:.8;
}

.auto-orb--one{
  width:560px;
  height:560px;
  right:-130px;
  top:20px;
  background:radial-gradient(circle,var(--auto-violet),transparent 68%);
}

.auto-orb--two{
  width:380px;
  height:380px;
  left:12%;
  bottom:-160px;
  background:radial-gradient(circle,var(--auto-lime),transparent 70%);
  opacity:.38;
}

.auto-hero__inner{
  position:relative;
  z-index:2;
}

.auto-eyebrow,
.auto-overline{
  font:700 11px 'Space Mono',monospace;
  letter-spacing:.13em;
  text-transform:uppercase;
}

.auto-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin-bottom:24px;
  color:rgba(255,255,255,.72);
}

.auto-eyebrow::before{
  content:'';
  width:10px;
  height:10px;
  border-radius:50%;
  background:var(--auto-lime);
}

.auto-hero h1{
  max-width:1180px;
  font:400 clamp(56px,8.9vw,138px)/.86 'Archivo Black',sans-serif;
  letter-spacing:-.068em;
  text-transform:uppercase;
}

.auto-hero h1 em{
  font-style:normal;
  color:transparent;
  -webkit-text-stroke:1.5px #fff;
}

.auto-hero__bottom{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:50px;
  align-items:end;
  margin-top:46px;
}

.auto-hero__bottom p{
  max-width:650px;
  color:rgba(255,255,255,.72);
  font-size:19px;
  line-height:1.6;
}

.auto-actions{
  display:flex;
  justify-content:flex-end;
  gap:12px;
  flex-wrap:wrap;
}

.auto-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:15px 22px;
  border-radius:999px;
  font-weight:700;
  font-size:14px;
  transition:.25s ease;
}

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

.auto-btn--lime{
  background:var(--auto-lime);
  color:#000;
}

.auto-btn--ghost{
  color:#fff;
  border:1px solid rgba(255,255,255,.28);
}

.auto-section{
  padding:120px 5vw;
}

.auto-section--light{
  background:var(--auto-paper);
  color:var(--auto-ink);
}

.auto-section--dark{
  background:var(--auto-dark);
  color:#fff;
}

.auto-section--demo{
  background:var(--auto-bg);
  color:var(--auto-ink);
}

.auto-heading{
  display:grid;
  grid-template-columns:.65fr 1.35fr;
  gap:70px;
  margin-bottom:62px;
}

.auto-heading h2,
.demo-copy h2,
.integrations-copy h2,
.results-title h2,
.auto-final h2{
  font:400 clamp(44px,6vw,84px)/.93 'Archivo Black',sans-serif;
  letter-spacing:-.055em;
  text-transform:uppercase;
}

.auto-heading p,
.demo-copy p,
.integrations-copy p{
  margin-top:22px;
  max-width:680px;
  color:var(--auto-muted);
  font-size:17px;
  line-height:1.7;
}

.auto-heading--dark p{
  color:#aaa;
}

.pain-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
}

.pain-card{
  min-height:300px;
  padding:28px;
  border:1px solid var(--auto-line);
  border-radius:24px;
  background:#fff;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  transition:.3s ease;
}

.pain-card:hover{
  transform:translateY(-6px);
  box-shadow:0 22px 60px rgba(0,0,0,.08);
}

.pain-card > span{
  font:700 11px 'Space Mono',monospace;
  color:#9c9891;
}

.pain-card h3{
  margin-top:auto;
  font:400 30px/1 'Archivo Black',sans-serif;
  letter-spacing:-.04em;
}

.pain-card p{
  margin-top:16px;
  color:var(--auto-muted);
  line-height:1.6;
}

.pain-statement{
  margin-top:65px;
  font:400 clamp(42px,6vw,78px)/.95 'Archivo Black',sans-serif;
  letter-spacing:-.05em;
  text-transform:uppercase;
}

.use-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}

.use-card{
  position:relative;
  min-height:410px;
  padding:34px;
  border-radius:28px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  color:#0b0b0b;
  transition:.35s ease;
}

.use-card:hover{
  transform:translateY(-8px);
}

.use-card--lime{background:var(--auto-lime)}
.use-card--violet{background:var(--auto-violet);color:#fff}
.use-card--orange{background:var(--auto-orange);color:#fff}
.use-card--blue{background:var(--auto-blue)}

.use-card__number{
  font:700 11px 'Space Mono',monospace;
  letter-spacing:.1em;
}

.use-card h3{
  max-width:560px;
  font:400 clamp(34px,4.4vw,62px)/.95 'Archivo Black',sans-serif;
  letter-spacing:-.05em;
  text-transform:uppercase;
}

.use-card p{
  max-width:560px;
  margin-top:18px;
  line-height:1.6;
  opacity:.8;
}

.use-card__arrow{
  position:absolute;
  right:28px;
  top:28px;
  font-size:34px;
  transition:.3s ease;
}

.use-card:hover .use-card__arrow{
  transform:rotate(45deg);
}

.demo-layout{
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:90px;
  align-items:center;
}

.demo-copy h2{
  margin-top:18px;
}

.demo-points{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  list-style:none;
  padding:0;
  margin:34px 0 0;
}

.demo-points li{
  padding:14px 16px;
  border-radius:14px;
  background:#fff;
  border:1px solid var(--auto-line);
  font-weight:700;
}

.chat-phone{
  width:min(100%,540px);
  margin-left:auto;
  border:8px solid #111;
  border-radius:42px;
  overflow:hidden;
  background:#efeae3;
  box-shadow:0 40px 100px rgba(0,0,0,.18);
}

.chat-phone__top{
  padding:19px 20px;
  background:#111;
  color:#fff;
  display:flex;
  align-items:center;
  gap:12px;
}

.chat-avatar{
  width:42px;
  height:42px;
  border-radius:50%;
  background:var(--auto-lime);
  color:#000;
  display:grid;
  place-items:center;
  font-weight:800;
}

.chat-phone__top strong{
  display:block;
}

.chat-phone__top span{
  display:block;
  margin-top:2px;
  color:#9fe476;
  font-size:12px;
}

.chat-phone__body{
  min-height:600px;
  padding:28px 20px;
  display:flex;
  flex-direction:column;
  gap:12px;
  background:
    radial-gradient(circle at 20% 20%,rgba(255,255,255,.8),transparent 28%),
    #e9e2d8;
}

.chat{
  max-width:78%;
  padding:12px 14px 8px;
  border-radius:14px;
  font-size:14px;
  line-height:1.45;
  box-shadow:0 4px 12px rgba(0,0,0,.05);
}

.chat small{
  display:block;
  margin-top:5px;
  font-size:9px;
  opacity:.52;
  text-align:right;
}

.chat--client{
  margin-left:auto;
  background:#d9ffc8;
  border-bottom-right-radius:4px;
}

.chat--bot{
  background:#fff;
  border-bottom-left-radius:4px;
}

.chat-phone__input{
  padding:14px 15px;
  background:#f7f7f5;
  display:flex;
  justify-content:space-between;
  align-items:center;
  color:#999;
}

.chat-phone__input b{
  width:34px;
  height:34px;
  border-radius:50%;
  background:var(--auto-lime);
  color:#000;
  display:grid;
  place-items:center;
}

.auto-process{
  border-top:1px solid var(--auto-line);
}

.auto-step{
  display:grid;
  grid-template-columns:80px 1fr 1fr;
  gap:30px;
  padding:30px 0;
  border-bottom:1px solid var(--auto-line);
}

.auto-step > span{
  font:700 11px 'Space Mono',monospace;
  color:#8f8a82;
}

.auto-step h3{
  font:400 clamp(27px,3.6vw,48px)/1 'Archivo Black',sans-serif;
  letter-spacing:-.045em;
  text-transform:uppercase;
}

.auto-step p{
  color:var(--auto-muted);
  line-height:1.65;
}

.auto-section--integrations{
  background:var(--auto-violet);
  color:#fff;
}

.integrations-layout{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:80px;
  align-items:center;
}

.integrations-copy p{
  color:rgba(255,255,255,.78);
}

.integration-cloud{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  justify-content:center;
}

.integration-cloud span{
  padding:17px 22px;
  border:1px solid rgba(255,255,255,.35);
  border-radius:999px;
  background:rgba(255,255,255,.12);
  backdrop-filter:blur(8px);
  font:700 13px 'Space Mono',monospace;
  transition:.25s ease;
}

.integration-cloud span:hover{
  background:#fff;
  color:#111;
  transform:translateY(-4px);
}

.auto-section--results{
  background:#111;
  color:#fff;
}

.results-title{
  max-width:950px;
}

.results-title h2{
  margin-top:18px;
}

.result-grid-auto{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
  margin-top:65px;
}

.result-card-auto{
  min-height:240px;
  padding:28px;
  border-radius:24px;
  background:#1b1b1b;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.result-card-auto strong{
  font:400 clamp(48px,6vw,82px)/.9 'Archivo Black',sans-serif;
  color:var(--auto-lime);
  letter-spacing:-.05em;
}

.result-card-auto span{
  color:#bbb;
}

.results-note{
  margin-top:20px;
  color:#777;
  font-size:12px;
}

.auto-final{
  padding:130px 5vw;
  background:#080808;
  color:#fff;
}

.auto-final h2{
  max-width:1100px;
  margin-top:18px;
}

.auto-final h2 em{
  font-style:normal;
  color:var(--auto-lime);
}

.auto-final p{
  max-width:650px;
  margin:28px 0;
  color:#aaa;
  font-size:18px;
  line-height:1.7;
}

@media(max-width:1000px){
  .pain-grid{grid-template-columns:1fr 1fr}
  .demo-layout,
  .integrations-layout{grid-template-columns:1fr}
  .chat-phone{margin:0 auto}
  .result-grid-auto{grid-template-columns:1fr 1fr}
}

@media(max-width:850px){
  .auto-hero{min-height:auto;padding:135px 22px 60px}
  .auto-hero__bottom,
  .auto-heading{grid-template-columns:1fr;gap:28px}
  .auto-actions{justify-content:flex-start}
  .auto-section{padding:90px 22px}
  .use-grid{grid-template-columns:1fr}
  .auto-step{grid-template-columns:44px 1fr}
  .auto-step p{grid-column:2}
}

@media(max-width:580px){
  .auto-hero h1{font-size:14vw}
  .pain-grid{grid-template-columns:1fr}
  .demo-points{grid-template-columns:1fr}
  .chat-phone__body{min-height:520px}
  .result-grid-auto{grid-template-columns:1fr}
  .auto-final{padding:100px 22px}
}


/* =========================================================
   DEMO CHAT — VIDEO LIMPIO
   Reemplaza visualmente el mockup/chat HTML anterior.
========================================================= */

.demo-layout{
  display:grid;
  grid-template-columns:minmax(0,.95fr) minmax(320px,.75fr);
  gap:clamp(55px,8vw,120px);
  align-items:center;
}

.chat-video{
  width:min(100%,390px);
  aspect-ratio:9 / 16;
  margin-left:auto;
  overflow:hidden;
  border:0;
  border-radius:38px;
  background:transparent;
  box-shadow:0 28px 70px rgba(0,0,0,.16);
}

.chat-video video{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  border:0;
  border-radius:inherit;
  background:transparent;
}

/* El chat anterior ya no existe en el HTML.
   Estas reglas evitan que cualquier bloque residual aparezca. */
.chat-phone,
.chat-phone__top,
.chat-phone__body,
.chat-phone__input{
  display:none !important;
}

@media(max-width:1000px){
  .demo-layout{
    grid-template-columns:1fr;
    gap:52px;
  }

  .chat-video{
    margin:0 auto;
    width:min(100%,360px);
  }
}

@media(max-width:580px){
  .chat-video{
    width:min(100%,300px);
    border-radius:30px;
  }
}


/* =========================================================
   SOFT AURORA — HERO AUTOMATIZACIÓN
   Vanilla WebGL, sin React ni dependencias externas.
========================================================= */
.auto-hero{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  background:#050505 !important;
}

#soft-aurora{
  position:absolute;
  inset:0;
  z-index:0;
  width:100%;
  height:100%;
  pointer-events:none;
  overflow:hidden;
}

#soft-aurora canvas{
  display:block;
  width:100%;
  height:100%;
}

.auto-hero__grid{
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
}

.auto-hero__inner{
  position:relative;
  z-index:3;
}

.auto-hero::after{
  content:'';
  position:absolute;
  inset:0;
  z-index:2;
  pointer-events:none;
  background:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.08) 55%,rgba(0,0,0,.34));
}
/* ==========================================
   VIDEO BACKGROUND — HERO
========================================== */

.auto-hero{
    position: relative;
    overflow: hidden;
}

/* VIDEO */
.auto-hero-bg-video{
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    z-index: 0;
    pointer-events: none;
}

/* GRILLA ORIGINAL */
.auto-hero__grid{
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* CONTENIDO ORIGINAL */
.auto-hero__inner{
    position: relative;
    z-index: 2;
}
/* ==========================================
   VIDEO DE FONDO — CASOS DE USO
========================================== */

.auto-section--dark{
    position:relative;
    overflow:hidden;
    isolation:isolate;
}

.cases-bg-video{
    position:absolute;
    inset:0;

    width:100%;
    height:100%;

    object-fit:cover;
    object-position:center;

    z-index:0;

    pointer-events:none;
}

/* Oscurece el video para mantener legibilidad */
.auto-section--dark::before{
    content:"";

    position:absolute;
    inset:0;

    background:rgba(0,0,0,.62);

    z-index:1;

    pointer-events:none;
}

/* Contenido de la sección sobre el video */
.auto-section--dark > .auto-wrap{
    position:relative;
    z-index:2;
}
/* ==========================================
   DOLORES — TARJETAS + FLECHAS
========================================== */

#dolores .pain-grid{
    position:relative;
    z-index:2;
}

#dolores .pain-card{
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
}

#dolores .pain-card h3{
    margin:0 0 16px;
    text-align:center;
}

#dolores .pain-card p{
    margin:0;
    max-width:280px;
    text-align:center;
}


/* FLECHAS */

#dolores .pain-connectors{
    width:100%;
    max-width:1200px;
    height:190px;
    margin:0 auto -5px;

    position:relative;
    z-index:1;
}

#dolores .pain-connectors svg{
    width:100%;
    height:100%;
    overflow:visible;
}

#dolores .pain-connectors path{
    fill:none;
    stroke:#8e887f;
    stroke-width:1.5;
    stroke-dasharray:6 6;
    vector-effect:non-scaling-stroke;
}

#dolores .pain-connectors circle{
    fill:#8e887f;
}


/* FRASE FINAL */

#dolores .pain-statement{
    max-width:1100px;
    margin:20px auto 0;

    text-align:center;

    font-family:'Archivo Black',sans-serif;
    font-size:clamp(48px,6vw,86px);
    line-height:.95;

    letter-spacing:-.045em;
    text-transform:uppercase;
}

#dolores .pain-statement-accent{
    width:80px;
    height:6px;

    margin:28px auto 0;

    border-radius:999px;

    background:#c7ff00;
}


/* MOBILE */

@media(max-width:850px){

    #dolores .pain-connectors{
        display:none;
    }

    #dolores .pain-statement{
        margin-top:50px;
        font-size:clamp(38px,11vw,60px);
    }
}
.highlight-lime{
    display:inline;
    color:#000;

    background:
        linear-gradient(
            transparent 5%,
            #c7ff00 5%,
            #c7ff00 94%,
            transparent 94%
        );

    padding:0 .06em;

    box-decoration-break:clone;
    -webkit-box-decoration-break:clone;
}
.integration-logos{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:60px 42px;

    align-items:center;
    justify-items:center;
}

.integration-logo{
    width:150px;
    height:90px;

    display:flex;
    align-items:center;
    justify-content:center;

    transition:.3s ease;
}

.integration-logo img{
    width:auto;
    height:auto;

    max-width:160px;
    max-height:60px;

    object-fit:contain;

    filter:brightness(0) invert(1);
    opacity:.88;

    transition:.3s ease;
}

.integration-logo:hover{
    transform:translateY(-5px);
}

.integration-logo:hover img{
    opacity:1;
    transform:scale(1.08);
}

.integration-logo--text{
    color:#fff;
    font:700 18px 'Space Mono',monospace;
}

@media(max-width:900px){

    .integration-logos{
        grid-template-columns:repeat(2,1fr);
        gap:32px;
    }

}
/* ==========================================
   VIDEO DE FONDO — RESULTADOS
========================================== */

.auto-section--results{
    position:relative;
    overflow:hidden;
    isolation:isolate;
}

.results-bg-video{
    position:absolute;
    inset:0;

    width:100%;
    height:100%;

    object-fit:cover;
    object-position:center;

    z-index:0;
    pointer-events:none;
}

/* capa oscura para mantener legibilidad */
.auto-section--results::before{
    content:"";
    position:absolute;
    inset:0;

    background:rgba(0,0,0,.62);

    z-index:1;
    pointer-events:none;
}

/* todo el contenido queda arriba */
.auto-section--results > .auto-wrap{
    position:relative;
    z-index:2;
}