/* RESET */
/* RESET */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Inter',sans-serif;
}

body{
background:#0f172a;
color:white;
overflow-x:hidden;
}

img{
max-width:100%;
display:block;
}

/* CURSOR */
.cursor{
position:fixed;
width:120px;
height:120px;
background:radial-gradient(circle, rgba(59,130,246,0.25), transparent 70%);
border-radius:50%;
pointer-events:none;
transform:translate(-50%,-50%);
z-index:999;
transition:transform 0.15s;
}

/* HEADER */
.header{
position:fixed;
top:0;
left:0;
width:100%;
display:flex;
justify-content:space-between;
align-items:center;
padding:15px 8%;
background:rgba(15,23,42,0.7);
backdrop-filter:blur(12px);
z-index:1000;
transition:0.3s;
}

.header.scrolled{
background:#020617;
box-shadow:0 5px 20px rgba(0,0,0,0.4);
}

.logo img{
height:90px;
}

/* NAV */
.menu-btn{
display:none;
font-size:26px;
cursor:pointer;
}

.nav a{
margin-left:30px;
text-decoration:none;
color:white;
font-weight:500;
transition:.3s;
}

.nav a:hover{
color:#38bdf8;
}

/* =========================
   HERO APPLE STYLE
========================= */

.hero{
height:100vh;
display:flex;
align-items:center;
justify-content:center;
text-align:center;
position:relative;
background:linear-gradient(180deg,#020617,#0f172a);
overflow:hidden;
}

.hero::before{
content:"";
position:absolute;
width:600px;
height:600px;
background:radial-gradient(circle, rgba(59,130,246,0.25), transparent 70%);
top:50%;
left:50%;
transform:translate(-50%,-50%);
filter:blur(80px);
z-index:1;
}

#particles{
position:absolute;
width:100%;
height:100%;
z-index:2;
}

.hero-content{
position:relative;
z-index:3;
max-width:700px;
padding:20px;
animation:fadeUp 1s ease;
}

.hero h1{
font-size:64px;
font-weight:600;
margin-bottom:20px;
letter-spacing:-1px;
}

.hero p{
font-size:20px;
margin-bottom:30px;
opacity:.7;
}

@keyframes fadeUp{
from{
opacity:0;
transform:translateY(40px);
}
to{
opacity:1;
transform:translateY(0);
}
}

/* BOTONES */
.btn{
display:inline-block;
background:linear-gradient(90deg,#3b82f6,#38bdf8);
padding:14px 32px;
border-radius:8px;
text-decoration:none;
color:white;
transition:.3s;
}

.btn:hover{
transform:translateY(-4px);
box-shadow:0 10px 25px rgba(56,189,248,.4);
}

/* SECCIONES */
section{
  position:relative;
  padding:120px 10%;
  border-radius:30px 30px 0 0;

  transform-origin:top center;
  will-change: transform, opacity;
}

/* efecto stack */
section:not(.hero){
  margin-top:-80px;
  background:rgba(2,6,23,0.9);
  backdrop-filter:blur(12px);
  box-shadow:0 -20px 50px rgba(0,0,0,0.6);
}

/* profundidad visual */
section:nth-child(odd){
  transform:scale(0.98);
}

/* TITULOS */
.titulo{
font-size:36px;
text-align:center;
margin-bottom:60px;
}

/* GRID SERVICIOS */
.grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:30px;
}

/* SERVICIOS */
.card{
background:rgba(255,255,255,0.05);
backdrop-filter:blur(16px);
padding:35px 25px;
border-radius:18px;
text-align:center;
border:1px solid rgba(255,255,255,0.1);
transition:0.4s;
position:relative;
overflow:hidden;
}

.card::before{
content:"";
position:absolute;
width:200%;
height:200%;
top:-50%;
left:-50%;
background:radial-gradient(circle, rgba(56,189,248,0.15), transparent 60%);
opacity:0;
transition:0.4s;
}

.card:hover{
transform:translateY(-10px) scale(1.02);
border:1px solid rgba(56,189,248,0.4);
box-shadow:0 20px 50px rgba(0,0,0,0.4);
}

.card:hover::before{
opacity:1;
}
.titulo.reveal{
  transform:translateY(60px);
}
.card.reveal{
  transform:translateY(80px) scale(0.95);
}

/* =========================
   PRECIOS
========================= */

.precios-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
gap:30px;
max-width:1100px;
margin:auto;
align-items:stretch;
}

.price-card{
background:linear-gradient(145deg,#020617,#0f172a);
padding:40px;
border-radius:18px;
text-align:center;
border:1px solid rgba(255,255,255,0.08);
transition:0.4s;
position:relative;
overflow:hidden;

display:flex;
flex-direction:column;
justify-content:space-between;
height:100%;
}

.price-card ul{
list-style:none;
margin:20px 0;
flex-grow:1;
}

.price-card ul li{
margin:10px 0;
opacity:0.8;
}

.price-card:hover{
transform:translateY(-10px);
box-shadow:0 25px 60px rgba(0,0,0,0.5);
border:1px solid rgba(59,130,246,0.5);
}

.price-number{
font-size:48px;
margin:20px 0;
font-weight:700;
background:linear-gradient(90deg,#38bdf8,#3b82f6,#60a5fa);
background-size:200%;
background-clip:text;
color:transparent;
-webkit-background-clip:text;
-webkit-text-fill-color:transparent;
animation:shine 4s linear infinite;
}

@keyframes shine{
0%{background-position:0%}
100%{background-position:200%}
}

.btn-precio{
background:linear-gradient(90deg,#3b82f6,#38bdf8);
padding:14px 28px;
border-radius:8px;
border:none;
color:white;
cursor:pointer;
transition:0.3s;
}

.btn-precio:hover{
transform:scale(1.05);
}

.destacado{
border:2px solid #3b82f6;
box-shadow:0 0 30px rgba(59,130,246,0.3);
}

/* PORTFOLIO */
.portfolio{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
gap:30px;
}

.item{
position:relative;
overflow:hidden;
border-radius:12px;
}

.item img{
width:100%;
transition:.4s;
}

.item:hover img{
transform:scale(1.1);
}

.overlay{
position:absolute;
bottom:0;
width:100%;
background:rgba(0,0,0,.7);
padding:12px;
text-align:center;
}

/* STATS */
.stats{
background:#020617;
padding:70px 10%;
text-align:center;
}

.stats-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
gap:40px;
max-width:1000px;
margin:auto;
}

.stat{
background:rgba(255,255,255,0.05);
padding:35px;
border-radius:12px;
}

.stat h3{
font-size:48px;
color:#38bdf8;
}

/* TESTIMONIOS */
.testimonios{
background:#c7e9ff;
color:#0f172a;
padding:80px 10%;
}

.testimonios-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
gap:30px;
max-width:1100px;
margin:auto;
align-items:stretch;
}

.testimonio{
background:white;
padding:30px;
border-radius:12px;
box-shadow:0 10px 25px rgba(0,0,0,0.15);
transition:0.3s;

display:flex;
flex-direction:column;
justify-content:space-between;
height:100%;
}

.testimonio p{
flex-grow:1;
margin-bottom:15px;
}

.testimonio:hover{
transform:translateY(-8px);
}

/* FORM */
.form{
max-width:600px;
margin:auto;
display:flex;
flex-direction:column;
gap:20px;
}

.form input,
.form textarea{
padding:14px;
border-radius:8px;
border:none;
background:#1e293b;
color:white;
}

/* FOOTER */
.footer{
  background:#020617;
  padding:80px 10% 30px;
  margin-top:100px;
}

.footer-container{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:40px;
  margin-bottom:40px;
}

.footer-col h3{
  font-size:24px;
  margin-bottom:15px;
}

.footer-col h4{
  margin-bottom:15px;
}

.footer-col p{
  opacity:.7;
  line-height:1.6;
}

.footer-col ul{
  list-style:none;
}

.footer-col ul li{
  margin-bottom:10px;
}

.footer-col ul li a{
  color:white;
  text-decoration:none;
  opacity:.7;
  transition:.3s;
}

.footer-col ul li a:hover{
  opacity:1;
  color:#38bdf8;
}

.footer-bottom{
  text-align:center;
  border-top:1px solid rgba(255,255,255,0.1);
  padding-top:20px;
  opacity:.6;
}

/* WHATSAPP */
.whatsapp{
  position:fixed;
  bottom:25px;
  right:25px;
  background:#25d366;
  color:white;
  padding:14px 20px;
  border-radius:30px;
  text-decoration:none;
  font-weight:600;
  box-shadow:0 10px 25px rgba(0,0,0,.3);

  z-index:99999;              /* 👈 CLAVE */
  pointer-events:auto;        /* 👈 CLAVE */
  isolation:isolate;          /* 👈 PRO FIX */
  transform:translateZ(0);    /* 👈 evita blur */
  backface-visibility:hidden;/* 👈 evita blur */

  animation:whatsappPulse 2s infinite;
}

@keyframes whatsappPulse{
0%{transform:scale(1);}
50%{transform:scale(1.1);}
100%{transform:scale(1);}
}

/* DIVIDER */
.section-divider{
height:100px;
position:relative;
overflow:hidden;
background:#0f172a;
}

.section-divider::before{
content:"";
position:absolute;
width:140%;
height:200%;
top:-50%;
left:-20%;
background:radial-gradient(circle, rgba(56,189,248,0.25), transparent 70%);
animation:dividerMove 8s linear infinite;
}

@keyframes dividerMove{
0%{transform:translateX(-10%);}
50%{transform:translateX(10%);}
100%{transform:translateX(-10%);}
}

/* ANIMACIONES */
.reveal{
  opacity:0;
  transform:translateY(80px) scale(0.98);
  filter:blur(6px);
  transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active{
  opacity:1;
  transform:translateY(0) scale(1);
  filter:blur(0);
}

/* RESPONSIVE */
@media(max-width:768px){

.menu-btn{
display:block;
}

.nav{
position:absolute;
top:70px;
right:0;
background:#020617;
width:200px;
display:none;
flex-direction:column;
padding:20px;
}

.nav.active{
display:flex;
}

.nav a{
margin:10px 0;
}

.hero h1{
font-size:40px;
}

}
/* =========================
   HERO PRO MAX
========================= */

.hero{
display:flex;
align-items:center;
justify-content:space-between;
padding:120px 10% 80px;
min-height:100vh;
position:relative;
background:linear-gradient(180deg,#020617,#0f172a);
overflow:hidden;
gap:40px;
}

.hero-content{
flex:1;
max-width:600px;
z-index:3;
animation:fadeUp 1s ease;
}

.hero h1{
font-size:58px;
font-weight:600;
line-height:1.1;
margin-bottom:20px;
letter-spacing:-1px;
}

.hero h1 span{
background:linear-gradient(90deg,#38bdf8,#3b82f6);

/* FIX */
background-clip:text;
-webkit-background-clip:text;
color:transparent;
-webkit-text-fill-color:transparent;
}
.hero p{
font-size:18px;
opacity:.7;
margin-bottom:30px;
}

.hero-buttons{
display:flex;
gap:15px;
flex-wrap:wrap;
}

.btn-secondary{
padding:14px 28px;
border-radius:8px;
border:1px solid rgba(255,255,255,0.2);
color:white;
text-decoration:none;
transition:0.3s;
}

.btn-secondary:hover{
background:rgba(255,255,255,0.1);
}

/* IMAGEN */
.hero-image{
flex:1;
display:flex;
justify-content:center;
z-index:3;
}

.hero-image img{
width:100%;
max-width:500px;
border-radius:20px;
box-shadow:0 30px 80px rgba(0,0,0,0.6);
transition:0.4s;
}

.hero-image img:hover{
transform:scale(1.05);
}

/* GLOW */
.hero::before{
content:"";
position:absolute;
width:600px;
height:600px;
background:radial-gradient(circle, rgba(59,130,246,0.25), transparent 70%);
top:50%;
left:50%;
transform:translate(-50%,-50%);
filter:blur(80px);
z-index:1;
}

/* RESPONSIVE HERO */
@media(max-width:900px){

.hero{
flex-direction:column;
text-align:center;
padding-top:120px;
}

.hero-content{
max-width:100%;
}

.hero-buttons{
justify-content:center;
}

.hero h1{
font-size:42px;
}

.hero-image img{
max-width:90%;
}

}
/* TEXTO ANIMADO HERO */
.hero-title span{
opacity:0;
display:inline-block;
transform:translateY(20px);
animation:wordFade 0.6s forwards;
}

.hero-title span:nth-child(1){animation-delay:0.2s;}
.hero-title span:nth-child(2){animation-delay:0.4s;}
.hero-title span:nth-child(3){animation-delay:0.6s;}
.hero-title span:nth-child(4){animation-delay:0.8s;}

@keyframes wordFade{
to{
opacity:1;
transform:translateY(0);
}
}
.hero-image img{
animation:float 6s ease-in-out infinite;
}

@keyframes float{
0%{transform:translateY(0px);}
50%{transform:translateY(-15px);}
100%{transform:translateY(0px);}
}
/* BADGE */
.badge{
display:inline-block;
background:rgba(56,189,248,0.1);
border:1px solid rgba(56,189,248,0.3);
padding:6px 14px;
border-radius:20px;
font-size:13px;
margin-bottom:20px;
}

/* SUBTEXTO HERO */
.hero-sub{
font-size:18px;
opacity:.7;
margin-bottom:30px;
max-width:500px;
}

/* BOTON MEJORADO */
.btn{
position:relative;
overflow:hidden;
}

.btn::after{
content:"";
position:absolute;
width:200%;
height:200%;
top:-50%;
left:-50%;
background:linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
transform:rotate(25deg);
opacity:0;
transition:0.5s;
}

.btn:hover::after{
opacity:1;
left:120%;
}

/* PRECIOS MÁS PRO */
.price-card{
position:relative;
}

.price-card::after{
content:"";
position:absolute;
inset:0;
border-radius:18px;
background:linear-gradient(120deg, transparent, rgba(56,189,248,0.2), transparent);
opacity:0;
transition:0.4s;
}

.price-card:hover::after{
opacity:1;
}

/* PLAN RECOMENDADO */
.destacado::before{
content:"RECOMENDADO";
position:absolute;
top:-10px;
left:50%;
transform:translateX(-50%);
background:#3b82f6;
padding:5px 12px;
font-size:12px;
border-radius:6px;
}

/* SCROLL SUAVE */
html{
scroll-behavior:smooth;
}
.cta-final{
text-align:center;
padding:100px 10%;
background:linear-gradient(180deg,#020617,#0f172a);
}

.cta-final h2{
font-size:36px;
margin-bottom:15px;
}

.cta-final p{
opacity:.7;
margin-bottom:25px;
}
/* EFECTO APPLE SCROLL */
section{
position:relative;
z-index:1;
background:#020617;
}

/* cada sección se monta sobre la anterior */
section:not(.hero){
margin-top:-20px;
border-radius:30px 30px 0 0;
box-shadow:0 -20px 40px rgba(0,0,0,0.5);
}

/* separación interna */
section{
padding:100px 10%;
}

/* HERO queda arriba de todo */
.hero{
z-index:10;
position:relative;
}

/* efecto suave al aparecer */
.reveal{
opacity:0;
transform:translateY(60px);
transition:all 1s ease;
}

.reveal.active{
opacity:1;
transform:translateY(0);
}

.reveal{
  opacity:1; /* GSAP controla esto */
}

section{
  will-change: transform;
}
section{
  position:relative;
  z-index:1;
}

.hero{
  z-index:2;
}

.trabajos-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:25px;
}

.trabajo-card{
  padding:18px;
  border-radius:18px;
  background:rgba(255,255,255,0.05);
  backdrop-filter:blur(10px);
  transition:all .3s ease;
}

.trabajo-card img{
  width:100%;
  border-radius:12px;
  margin-bottom:12px;
}

.trabajo-card h3{
  font-size:18px;
  margin-bottom:6px;
}

.trabajo-card p{
  font-size:14px;
  opacity:.7;
}

.trabajo-card:hover{
  transform:translateY(-6px) scale(1.02);
}
.testimonios-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:25px;
}

.testimonio-card{
  padding:20px;
  border-radius:18px;
  background:rgba(255,255,255,0.05);
  backdrop-filter:blur(10px);
  transition:.3s;
}

.testimonio-card p{
  font-size:14px;
  line-height:1.5;
  margin-bottom:10px;
}

.testimonio-card h4{
  font-size:15px;
  opacity:.8;
}

.testimonio-card:hover{
  transform:translateY(-5px);
}
.trabajo-card,
.testimonio-card{
  box-shadow:0 10px 30px rgba(0,0,0,0.3);
}

.iphone-effect{
  height:120vh;
  position:relative;
}

.iphone-wrapper{
  position:relative;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* imágenes */
.iphone{
  position:absolute;
  width:260px;
  border-radius:30px;
  box-shadow:0 30px 80px rgba(0,0,0,0.6);
  will-change:transform;
}

/* posiciones iniciales */
.img-left{
  left:20%;
  top:55%;
  transform:translate(-50%, -50%);
}

.img-right{
  right:20%;
  top:45%;
  transform:translate(50%, -50%);
}

.reveal{
  will-change: transform, opacity;
}