/* =========================================================
   INDEX.CSS — INFRONEX FINAL PREMIUM
========================================================= */

/* =========================================================
   HERO
========================================================= */

.hero{
  position:relative;
  height:92vh;
  min-height:820px;
  overflow:hidden;
  background:#020409;
}

.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(120deg,rgba(0,255,156,.05),transparent 38%),
    linear-gradient(260deg,rgba(10,132,255,.06),transparent 45%);
  pointer-events:none;
  z-index:5;
}

.hero-slide{
  position:absolute;
  inset:0;
  opacity:0;
  visibility:hidden;
  transition:.8s ease;
  z-index:1;
}

.hero-slide.active{
  opacity:1;
  visibility:visible;
  z-index:2;
}

.hero-slide::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}

.hero-slide:nth-child(1)::before{
  background-image:url("../img/hero-slide-1.jpg");
}

.hero-slide:nth-child(2)::before{
  background-image:url("../img/hero-slide-2.jpg");
}

.hero-slide:nth-child(3)::before{
  background-image:url("../img/hero-slide-3.jpg");
}

.hero-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(
      90deg,
      rgba(0,0,0,.84),
      rgba(0,0,0,.56),
      rgba(0,0,0,.24)
    );
  z-index:2;
}

.hero-content{
  position:relative;
  z-index:6;
  height:100%;
  min-height:100%;
  display:flex;
  align-items:center;
  padding-top:120px;
}

.hero-text{
  max-width:850px;
  animation:heroTextUp .9s ease forwards;
}

.hero-text h1{
  max-width:900px;
  font-size:clamp(52px,6vw,92px);
  line-height:.92;
  letter-spacing:-4px;
  margin:18px 0 26px;
  text-shadow:0 12px 45px rgba(0,0,0,.55);
}

.hero-text strong{
  display:block;
  background:linear-gradient(135deg,var(--green),var(--blue));
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}

.hero-text p{
  max-width:760px;
  font-size:18px;
  color:#d8d8d8;
  margin-bottom:36px;
  line-height:1.8;
}

.hero-actions{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
}

.hero-actions .btn-primary{
  position:relative;
  overflow:hidden;
}

.hero-actions .btn-primary::before{
  content:"";
  position:absolute;
  top:0;
  left:-120%;
  width:70%;
  height:100%;
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255,255,255,.32),
      transparent
    );
  transform:skewX(-20deg);
  transition:.6s ease;
}

.hero-actions .btn-primary:hover::before{
  left:140%;
}

.hero-controls{
  position:absolute;
  left:50%;
  bottom:34px;
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  gap:10px;
  z-index:20;
}

.hero-dot{
  width:11px;
  height:11px;
  border:none;
  border-radius:999px;
  background:rgba(255,255,255,.35);
  transition:.3s ease;
}

.hero-dot.active{
  width:34px;
  background:linear-gradient(135deg,var(--green),var(--blue));
  box-shadow:0 0 20px rgba(0,255,156,.45);
}

/* =========================================================
   SECTION TITLE
========================================================= */

.section-title{
  text-align:center;
  max-width:920px;
  margin:0 auto 55px;
}

.section-title h2{
  font-size:clamp(36px,4vw,62px);
  line-height:1.05;
  letter-spacing:-2px;
  margin:14px 0 18px;
}

.section-title p{
  color:#d8d8d8;
  font-size:16px;
  line-height:1.8;
}

/* =========================================================
   SERVICES
========================================================= */

.services{
  position:relative;
  overflow:hidden;
  padding:100px 0;
  background:
    radial-gradient(circle at 12% 18%,rgba(0,255,156,.14),transparent 24%),
    radial-gradient(circle at 88% 22%,rgba(10,132,255,.18),transparent 28%),
    linear-gradient(135deg,#020409 0%,#061827 45%,#020409 100%);
}

.services-grid{
  width:100%;
  max-width:1320px;
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}

.service-card{
  position:relative;
  min-height:250px;
  padding:28px;
  border-radius:26px;
  overflow:hidden;
  cursor:pointer;
  isolation:isolate;
  background:rgba(5,15,35,.92);
  border:1px solid rgba(0,255,200,.16);
  transition:
    transform .35s ease,
    border-color .35s ease,
    box-shadow .35s ease;
}

.service-card::before{
  content:"";
  position:absolute;
  width:180px;
  height:180px;
  right:-90px;
  bottom:-90px;
  background:
    radial-gradient(
      circle,
      rgba(10,132,255,.14),
      transparent 72%
    );
  z-index:1;
}

.service-card:hover{
  transform:translateY(-8px);
  border-color:rgba(0,255,200,.34);
  box-shadow:0 18px 50px rgba(0,0,0,.22);
}

.service-card i,
.service-card h3,
.service-card p,
.card-action{
  position:relative;
  z-index:2;
}

.service-card i{
  font-size:34px;
  color:#00ffd0;
  margin-bottom:18px;
}

.service-card h3{
  font-size:26px;
  line-height:1.15;
  color:#fff;
  margin-bottom:14px;
}

.service-card p{
  color:rgba(255,255,255,.74);
  font-size:15px;
  line-height:1.7;
}

.card-action{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:20px;
  color:#00FF9C;
  font-size:14px;
  font-weight:800;
  transition:.3s ease;
}

.card-action i{
  font-size:20px;
  margin:0;
}

.service-card:hover .card-action{
  transform:translateX(4px);
  color:#ffffff;
}

/* =========================================================
   PROCESS
========================================================= */

.process-section{
  position:relative;
  overflow:hidden;
  padding:110px 0;
  background:
    radial-gradient(circle at 18% 20%,rgba(0,255,156,.12),transparent 28%),
    radial-gradient(circle at 82% 75%,rgba(10,132,255,.16),transparent 34%),
    linear-gradient(135deg,#020409 0%,#071424 50%,#020409 100%);
}

.process-section::before{
  content:"";
  position:absolute;
  left:50%;
  top:55%;
  width:76%;
  height:1px;
  transform:translateX(-50%);
  background:linear-gradient(90deg,transparent,rgba(0,255,156,.28),transparent);
  opacity:.7;
}

.process-grid{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:24px;
  margin-top:55px;
}

.process-card{
  position:relative;
  min-height:280px;
  padding:34px 30px;
  border-radius:28px;
  overflow:hidden;
  background:
    linear-gradient(145deg,rgba(7,13,24,.92),rgba(3,8,16,.96));
  border:1px solid rgba(0,255,156,.18);
  box-shadow:
    0 22px 70px rgba(0,0,0,.26),
    inset 0 0 22px rgba(255,255,255,.015);
  transition:
    transform .35s ease,
    border-color .35s ease,
    box-shadow .35s ease;
}

.process-card::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 85% 15%,rgba(0,255,156,.16),transparent 28%),
    radial-gradient(circle at 20% 90%,rgba(10,132,255,.12),transparent 34%);
  opacity:.65;
  pointer-events:none;
}

.process-card::after{
  content:"";
  position:absolute;
  right:-55px;
  top:-55px;
  width:150px;
  height:150px;
  border-radius:50%;
  border:1px solid rgba(0,255,156,.16);
}

.process-card:hover{
  transform:translateY(-10px);
  border-color:rgba(0,255,156,.42);
  box-shadow:
    0 30px 90px rgba(0,0,0,.36),
    0 0 32px rgba(0,255,156,.10);
}

.process-card span{
  position:relative;
  z-index:2;
  width:46px;
  height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:16px;
  margin-bottom:26px;
  color:#00110a;
  font-size:15px;
  font-weight:950;
  background:linear-gradient(135deg,#00FF9C,#0A84FF);
  box-shadow:0 0 24px rgba(0,255,156,.28);
}

.process-card h3{
  position:relative;
  z-index:2;
  font-size:26px;
  line-height:1.1;
  margin-bottom:16px;
}

.process-card p{
  position:relative;
  z-index:2;
  color:#d8d8d8;
  font-size:15px;
  line-height:1.75;
}

/* =========================================================
   ABOUT
========================================================= */

.about{
  background:
    radial-gradient(circle at 15% 70%,rgba(0,255,156,.14),transparent 32%),
    radial-gradient(circle at 85% 18%,rgba(10,132,255,.16),transparent 34%),
    linear-gradient(135deg,#020409 0%,#061611 45%,#03101f 100%);
}

.about-content{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:55px;
  align-items:center;
}

.about-text h2{
  font-size:clamp(36px,4vw,56px);
  line-height:1.05;
  letter-spacing:-2px;
  margin:14px 0 18px;
}

.about-text p{
  color:#d8d8d8;
  margin-bottom:14px;
  line-height:1.8;
}

.about-box{
  background:rgba(8,14,24,.68);
  border:1px solid rgba(0,255,156,.14);
  border-radius:30px;
  padding:44px;
  backdrop-filter:blur(18px);
  box-shadow:0 24px 80px rgba(0,0,0,.32);
}

.about-box h3{
  font-size:34px;
  line-height:1.1;
  margin-bottom:16px;
}

/* =========================================================
   DIFFERENTIALS
========================================================= */

.differentials{
  background:
    radial-gradient(circle at 20% 20%,rgba(10,132,255,.16),transparent 30%),
    radial-gradient(circle at 90% 75%,rgba(0,255,156,.10),transparent 34%),
    linear-gradient(135deg,#020409 0%,#071424 50%,#020409 100%);
}

.differentials-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
}

.diff-item{
  background:rgba(8,14,24,.68);
  border:1px solid rgba(0,255,156,.14);
  border-radius:24px;
  padding:30px;
  backdrop-filter:blur(18px);
  transition:.3s ease;
}

.diff-item:hover{
  transform:translateY(-6px);
  border-color:rgba(0,255,156,.34);
}

.diff-item i{
  color:#00FF9C;
  font-size:34px;
  margin-bottom:14px;
}

.diff-item h3{
  margin-bottom:10px;
}

.diff-item p{
  color:#d8d8d8;
  line-height:1.7;
}

/* =========================================================
   CONTACT
========================================================= */

.contact{
  background:
    radial-gradient(circle at 18% 25%,rgba(10,132,255,.16),transparent 32%),
    radial-gradient(circle at 86% 75%,rgba(0,255,156,.10),transparent 36%),
    linear-gradient(135deg,#020409 0%,#071a24 48%,#020409 100%);
}

.contact-content{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:55px;
  align-items:center;
}

.contact h2{
  font-size:clamp(36px,4vw,58px);
  line-height:1.05;
  letter-spacing:-2px;
  margin:14px 0 18px;
}

.contact p{
  color:#d8d8d8;
}

.contact-list{
  margin-top:30px;
  display:grid;
  gap:14px;
}

.contact-list i{
  color:#00FF9C;
  margin-right:8px;
}

.contact-form{
  padding:36px;
  border-radius:30px;
  display:grid;
  gap:16px;
  background:rgba(8,14,24,.68);
  border:1px solid rgba(0,255,156,.14);
  backdrop-filter:blur(18px);
}

/* =========================================================
   FINAL CTA
========================================================= */

.final-cta{
  padding:120px 0;
  background:
    radial-gradient(circle at 20% 20%,rgba(0,255,156,.12),transparent 28%),
    radial-gradient(circle at 80% 80%,rgba(10,132,255,.14),transparent 34%),
    linear-gradient(135deg,#020409 0%,#071424 50%,#020409 100%);
}

.final-cta-box{
  text-align:center;
  padding:70px;
  border-radius:36px;
  background:
    linear-gradient(
      145deg,
      rgba(8,14,24,.92),
      rgba(4,8,14,.96)
    );
  border:1px solid rgba(0,255,156,.18);
  box-shadow:0 30px 90px rgba(0,0,0,.42);
}

.final-cta-box h2{
  max-width:900px;
  margin:18px auto;
  font-size:clamp(42px,5vw,72px);
  line-height:1;
  letter-spacing:-3px;
}

.final-cta-box p{
  max-width:760px;
  margin:0 auto;
  color:#d8d8d8;
  line-height:1.9;
}

.final-cta-actions{
  margin-top:36px;
  display:flex;
  justify-content:center;
  gap:16px;
  flex-wrap:wrap;
}

/* =========================================================
   MODAL
========================================================= */

.service-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.88);
  backdrop-filter:blur(10px);
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  visibility:hidden;
  transition:.4s ease;
  z-index:9999;
  overflow-y:auto;
  padding:40px 16px;
}

.service-modal.active{
  opacity:1;
  visibility:visible;
}

.service-modal-content{
  width:90%;
  max-width:950px;
  background:#07111f;
  border:1px solid rgba(0,255,200,.16);
  border-radius:30px;
  padding:50px;
  position:relative;
  box-shadow:0 0 50px rgba(0,255,200,.08);
  max-height:90vh;
  overflow-y:auto;
}

.service-modal-content h2{
  font-size:48px;
  margin-bottom:20px;
}

.service-modal-content p{
  color:#d8d8d8;
  line-height:1.7;
}

#modalList{
  list-style:none;
  padding-left:0;
  margin-top:18px;
}

#modalList li{
  margin-bottom:12px;
  color:#d8d8d8;
  font-weight:700;
}

.service-modal-content video,
#modalVideo{
  width:100%;
  border-radius:22px;
  margin-top:25px;
  border:1px solid rgba(0,255,200,.16);
  background:#000;
}

.modal-close{
  position:absolute;
  top:20px;
  right:20px;
  width:50px;
  height:50px;
  border:none;
  border-radius:50%;
  background:rgba(255,255,255,.08);
  color:#fff;
  font-size:20px;
  transition:.3s ease;
}

.modal-close:hover{
  background:#00ffd0;
  color:#000;
}

/* =========================================================
   ANIMATION
========================================================= */

@keyframes heroTextUp{
  from{
    opacity:0;
    transform:translateY(28px);
  }

  to{
    opacity:1;
    transform:translateY(0);
  }
}

/* =========================================================
   RESPONSIVO
========================================================= */

@media(max-width:1100px){

  .services-grid,
  .process-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .about-content,
  .contact-content{
    grid-template-columns:1fr;
  }

  .differentials-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:768px){

  .hero{
    min-height:92vh;
    height:auto;
  }

  .hero-content{
    min-height:92vh;
    padding-top:110px;
  }

  .hero-text h1{
    font-size:40px;
    line-height:1.05;
    letter-spacing:-2px;
  }

  .hero-text p{
    font-size:15px;
  }

  .services,
  .process-section,
  .about,
  .differentials,
  .contact,
  .final-cta{
    padding:80px 0;
  }

  .services-grid,
  .process-grid,
  .differentials-grid{
    grid-template-columns:1fr;
  }

  .service-card{
    min-height:auto;
  }

  .process-section::before{
    display:none;
  }

  .process-card{
    min-height:auto;
    padding:30px 26px;
  }

  .final-cta-box{
    padding:40px 24px;
  }

  .final-cta-box h2{
    font-size:38px;
    line-height:1.05;
    letter-spacing:-2px;
  }

  .service-modal-content{
    width:95%;
    padding:25px;
    border-radius:22px;
  }

  .service-modal-content h2{
    font-size:30px;
  }
}