
/* =========================================================
   HERO (VISUAL)
   ========================================================= */

/* SOLO aspecto visual — sin controlar flujo de página */
.hero{
  position:relative;
  isolation:isolate;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:clamp(520px,72vh,720px);
}

/* ================= CAPAS DE FONDO ================= */

.hero-bg{
  position:absolute;
  inset:0;
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
  transition:opacity 1.2s ease, transform 6s ease;
  transform:scale(1.06);
}

.hero-bg-a{ opacity:1; }
.hero-bg-b{ opacity:0; }

.hero-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,.35),rgba(0,0,0,.55));
}

.hero.is-switching .hero-bg-b{
  opacity:1;
  transform:scale(1);
}

.hero.is-switching .hero-bg-a{
  opacity:0;
  transform:scale(1.12);
}

/* ================= CONTENIDO ================= */

.hero-content{ position:relative; z-index:2; width:100%; }

.hero-wrap{
  max-width:750px;
  padding:120px 20px 40px;
}

/* TITULO */

.hero h1{
  color:#fff;
  font-size:clamp(34px,4.2vw,60px);
  line-height:1.05;
  margin-bottom:16px;
  text-shadow:0 10px 40px rgba(0,0,0,.55);
  opacity:0;
  transform:translateY(25px);
  transition:opacity .8s ease, transform .8s ease;
}

.hero.show-text h1{
  opacity:1;
  transform:translateY(0);
}

/* TEXTO */

.lead{
  color:#fff;
  max-width:65ch;
  margin-bottom:22px;
  font-size:clamp(16px,2vw,18px);
  opacity:0;
  transform:translateY(25px);
  transition:opacity .9s ease .25s, transform .9s ease .25s;
}

.hero.show-text .lead{
  opacity:1;
  transform:translateY(0);
}

/* BOTONES */

.actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  opacity:0;
  transform:translateY(25px);
  transition:opacity .9s ease .45s, transform .9s ease .45s;
}

.hero.show-text .actions{
  opacity:1;
  transform:translateY(0);
}
/* BOTONES */

.actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  opacity:0;
  transform:translateY(25px);
  transition:opacity .9s ease .45s, transform .9s ease .45s;
}

.hero.show-text .actions{
  opacity:1;
  transform:translateY(0);
}


/* ================= BOTON NEXT ================= */
/* ======================================================
   NEXT CARD — PROPORCIONAL Y ESCALABLE
   ====================================================== */

.next-tile{
  position:absolute;
  right:clamp(10px,4vw,60px);
  bottom:clamp(20px,8vh,90px);

  width:720px;        /* SOLO EDITAS ESTO */
  height:260px;       /* SOLO EDITAS ESTO */

  display:flex;
  border-radius:14px;
  overflow:hidden;
  z-index:20;
}

/* TEXTO */
.next-wrap{
  flex:0 0 42%;       /* proporción texto */
  padding:0%;
  background:#ffffff;

  display:flex;
  align-items:center;

  transition:transform .45s cubic-bezier(.22,.9,.25,1),
             box-shadow .35s ease;
}

/* invade imagen */
.next-wrap.move{
  transform:translateX(12%);
  box-shadow:0 20px 60px rgba(0,0,0,.25);
}

/* CONTENIDO */
.next-content{
  width:10rem;
  display:flex;
  flex-direction:column;
  gap: 5px;;
}

/* TEXTO ESCALABLE (CLAVE) */
.next-label{
  font-size:.75em;
  letter-spacing:.08em;
}

.next-content h3{
  font-size:1.6em;
  line-height:1.15;
}

.next-content i{
  font-size:1.4em;
  margin-top:.3em;
}

/* IMAGEN */
.next-image{
  flex:1;                 /* ocupa lo restante SIEMPRE */
  min-width:0;
}

.next-image img{
  width:100%;
  height:100%;
  object-fit:cover;
}


.next-content:hover{
  background:#22212166;
  /* transform:translateY(-12px) scale(1.02); */
  box-shadow:0 25px 60px rgba(0, 9, 11, 0.692);



}

/* =========================================================
   SERVICIOS
   ========================================================= */

.services-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:30px;
}

.service{
  background:#f8fafc;
  padding:30px 20px;
  border-radius:20px;
  text-align:center;
  border:2px solid transparent;
  transition:transform .35s cubic-bezier(.2,.8,.2,1),
             box-shadow .35s ease,
             border-color .35s ease;
}

.service:hover{
  transform:translateY(-10px) scale(1.02);
  border-color:var(--brand);
  box-shadow:0 20px 50px rgba(0,0,0,.12);
}

.service i{
  font-size:32px;
  color:#0284c7;
  margin-bottom:15px;
}




/* =========================================================
   WHY
   ========================================================= */

.two-columns{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:40px;
  align-items:start;
}

.why-list{
  list-style:none;
  margin-top:20px;
}

.why-list li{
  margin-bottom:12px;
  font-weight:500;
}

.why-list i{
  color:#16a34a;
  margin-right:8px;
}

.testimonial{
  background:#020617;
  color:#fff;
  padding:30px 20px;
  border-radius:20px;
}

.testimonial blockquote{
  font-style:italic;
  margin-bottom:15px;
}



/* =========================================================
   TESTIMONIOS
   ========================================================= */

.testimonios-section{
  background:#e8ecff;
  padding:80px 0;
}

.testimonials-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:25px;
  margin-top:50px;
}

/* tarjetas */

.card{
  position:relative;
  height:480px;
  border-radius:20px;
  overflow:hidden;
  border:2px solid transparent;
  transition:transform .35s cubic-bezier(.2,.8,.2,1),
             box-shadow .35s ease,
             border-color .35s ease;
}

.card:hover{
  transform:translateY(-12px) scale(1.02);
  box-shadow:0 25px 60px rgba(3, 12, 255, 0.987);
  border-color:var(--brand);
}

.card img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.card h3{
  position:absolute;
  bottom:45px;
  left:20px;
  color:#15ff08;
}

.card span{
  position:absolute;
  bottom:20px;
  left:20px;
  color:#ffffff;
}

.card::after{
  content:"";
  position:absolute;
  inset:auto 0 0 0;
  height:40%;
  background:linear-gradient(transparent,rgba(4, 21, 255, 0.519));
}

/* =========================================================
   ANIMACION CONTROLADA POR JS (SIN PARPADEO)
   ========================================================= */

.reveal{
  opacity:0;
  transform:translateY(70px);
}

.reveal.show{
  animation:revealUp 1.2s cubic-bezier(.22,.61,.36,1) forwards;
}

.reveal.reset{
  opacity:0;
  transform:translateY(70px);
  animation:none;
}

@keyframes revealUp{
  from{
    opacity:0;
    transform:translateY(70px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}
/* =========================================================
   CTA COMO TARJETA DESTACADA
   ========================================================= */

.cta{
  max-width:1500px;
  margin:25px auto 90px;
  padding:50px 20px;

  border-radius:28px;
  background:linear-gradient(135deg,#1d04ffef,#021150f8);
  color:#fff;
  text-align:center;

  box-shadow:
    0 40px 90px rgba(2,6,23,.35),
    0 10px 30px rgba(1, 6, 68, 0.774);

  position:relative;
  overflow:hidden;
}

/* glow */
.cta::before{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius:inherit;
  background:linear-gradient(120deg,#1f0f77ce,#1701d6dc,transparent 70%);
  opacity:.5;
  filter:blur(40px);
  z-index:0;
}

/* asegura contenido arriba del glow */
.cta > *{
  position:relative;
  z-index:1;
}

/* texto */
.cta h2{
  margin-bottom:25px;
}

.cta p{
  margin-bottom:50px;
  opacity:1.9;
  color:#f6f6ff;
}

/* botones contenedor */
.cta-buttons{
  margin-top:28px;
  display:flex;
  justify-content:center;
  gap:100px;
  flex-wrap:wrap;
}

/* =========================================================
   BOTONES PROPIOS DE CTA (sobrescriben globales)
   ========================================================= */

/* BOTON BASE */
.cta .btn-primary{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding:14px 28px;
  font-size:16px;
  font-weight:700;

  color:#f6f6ff;
  background:#13a9ff;

  border:2px solid #ffffff;   /* borde blanco real */
  border-radius:12px;
  
  /* transition:
    transform .25s ease,
    font-size .25s ease,
    box-shadow .25s ease,
    color .25s ease,
    background .25s ease; */
}

/* HOVER */
.cta .btn-primary:hover{
  background:#07810d;
  color:#fff;
  
  transform:scale(1.08);
  font-size:17.5px;
  
  box-shadow:0 12px 30px rgba(0,0,0,.35);
  border:2px solid #07f7ff;   /* borde blanco real */
}

.cta .btn-secondary{

  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding:14px 28px;
  font-size:16px;
  font-weight:700;

  color:#000000;
  background:#ffffff;

  border:2px solid #43c3ff;   /* borde blanco real */
  border-radius:12px;

 
  /* background:transparent; */
}




.cta .btn-secondary:hover{
  
 
  
  box-shadow:0 12px 30px rgba(0,0,0,.35);
  border:2px solid #07f7ff;   /* borde blanco real */
  background:linear-gradient(120deg, #ffe70ede,#ee206f7e,#29da37f1, #08e3eb,#ff9e2e,  #29da37f1,#ff9e2e,#ee206f7e 70%);
  
  color:#ff2b06;
  border-color:#ffffff;
  transform:scale(1.08);
  font-size:17.5px;
  background:linear-gradient(120deg,#ffe70ede,#ee206f7e,#29da37f1, #08e3eb,#ff9e2e 70%);
}

/* =========================================================
   RESPONSIVE CTA
   ========================================================= */

@media (max-width:768px){
  .cta{
    margin:60px 16px 80px;
    padding:45px 22px;
    border-radius:22px;
  }

  .cta-buttons{
    flex-direction:column;
  }
}


/* =========================================================
   HOVER GLOBAL LIMPIO (IMPORTANTE)
   ========================================================= */

/* a,.btn,button{
  transition:transform .25s ease, filter .25s ease, background-color .25s ease, color .25s ease;
}

a:hover,.btn:hover,button:hover{
  transform:translateY(-2px);
  filter:brightness(1.05);
} */