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

body{
font-family:'Poppins',sans-serif;
background:#0b1220;
color:white;
}

/* Loader */

#loader{
position:fixed;
width:100%;
height:100%;
background:#020617;
display:flex;
justify-content:center;
align-items:center;
z-index:9999;
}

.loader-circle{
width:50px;
height:50px;
border:5px solid #1e293b;
border-top:5px solid #22c55e;
border-radius:50%;
animation:spin 1s linear infinite;
}

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

/* Header */

header{
position:fixed;
width:100%;
top:0;
display:flex;
justify-content:space-between;
align-items:center;
padding:15px 20px;
background:rgba(2,6,23,.75);
backdrop-filter:blur(14px);
border-bottom:1px solid rgba(255,255,255,.05);
z-index:1000;
}

.logo{
font-weight:700;
font-size:18px;
line-height:1.2;
max-width:170px;
}

nav{
display:none;
}

/* Botones */

.btn{
display:inline-block;
background:#22c55e;
padding:12px 18px;
border-radius:12px;
text-decoration:none;
color:white;
font-weight:600;
font-size:15px;
transition:.3s;
}

.section .btn{
margin-top:20px;
}

.btn:hover{
transform:scale(1.05);
box-shadow:0 5px 20px rgba(34,197,94,.6);
}

/* Hero */

.hero{
min-height:70vh;
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
text-align:center;
gap:15px;
padding:120px 20px 60px;
background:
linear-gradient(rgba(2,6,23,.75),rgba(2,6,23,.92)),
url('https://images.unsplash.com/photo-1519389950473-47ba0277781c');
background-size:cover;
background-position:center;
}

.hero h1{
font-size:48px;
line-height:1.1;
font-weight:700;
margin-bottom:10px;
}

.hero p{
color:#cbd5e1;
font-size:16px;
line-height:1.7;
max-width:850px;
}

/* Secciones */

.section{
padding:70px 20px;
text-align:center;
}

.section:nth-child(even){
background:#071426;
}

.section p{
max-width:850px;
margin:0 auto 20px;
line-height:1.8;
color:#dbe4ee;
}

h1{
font-weight:700;
line-height:1.1;
}

h2{
font-size:34px;
margin-bottom:20px;
line-height:1.2;
}

/* Servicios */

.services{
display:flex;
flex-direction:column;
align-items:center;
gap:20px;
}

a.card{
background:linear-gradient(145deg,#111827,#1e293b);
padding:25px 20px;
border-radius:18px;
transition:.35s;
width:100%;
max-width:260px;
text-decoration:none;
color:white;
display:block;
text-align:center;
border:1px solid rgba(255,255,255,.06);
box-shadow:0 10px 30px rgba(0,0,0,.25);
}

a.card:hover{
transform:translateY(-8px) scale(1.02);
box-shadow:0 15px 40px rgba(0,0,0,.5);
}

/* Galería */

.gallery-container{
display:flex;
flex-wrap:wrap;
justify-content:center;
gap:20px;
padding:10px 0;
}

.gallery-img{
width:100%;
max-width:320px;
height:220px;
object-fit:cover;
border-radius:14px;
transition:.4s;
box-shadow:0 10px 30px rgba(0,0,0,.35);
}

.gallery-img:hover{
transform:scale(1.05);
box-shadow:0 10px 30px rgba(0,0,0,.6);
}

/* Stats */

.stats{
display:flex;
flex-direction:column;
gap:20px;
}

.stat{
font-size:22px;
font-weight:bold;
}

/* Footer */

footer{
background:#020617;
color:#9ca3af;
padding:40px 20px;
text-align:center;
border-top:1px solid rgba(255,255,255,.05);
font-size:13px;
}

.footer-links{
margin:20px 0;
}

.footer-links a{
display:inline-block;
margin:6px 10px;
color:white;
text-decoration:none;
font-size:14px;
}

.footer-links a:hover{
color:#22c55e;
}

/* WhatsApp */

.whatsapp-float{
position:fixed;
bottom:20px;
right:20px;
background:#22c55e;
color:white;
padding:15px;
border-radius:50%;
font-size:20px;
text-decoration:none;
animation:pulse 1.5s infinite;
}

@keyframes pulse{
0%{
box-shadow:0 0 0 0 rgba(34,197,94,.7);
}
70%{
box-shadow:0 0 0 15px rgba(34,197,94,0);
}
100%{
box-shadow:0 0 0 0 rgba(34,197,94,0);
}
}

/* Animaciones */

.fade-in{
opacity:0;
transform:translateY(30px);
transition:all .8s ease;
}

.fade-in.visible{
opacity:1;
transform:translateY(0);
}

/* Responsive */

@media(max-width:768px){

.hero{
min-height:55vh;
padding:100px 20px 50px;
}

.hero h1{
font-size:26px;
line-height:1.2;
margin-bottom:18px;
max-width:95%;
}

.hero p{
font-size:15px;
line-height:1.7;
max-width:95%;
text-align:left;
}

.section{
padding:50px 18px;
}

.section p,
.section ul{
font-size:15px;
line-height:1.7;
max-width:95%;
text-align:left;
padding-left:20px;
}

h2{
font-size:24px;
line-height:1.25;
}

.gallery-img{
height:180px;
}

}

@media(min-width:768px){

nav{
display:block;
}

nav a{
margin:0 10px;
color:white;
text-decoration:none;
font-size:14px;
}

.services{
flex-direction:row;
flex-wrap:wrap;
justify-content:center;
}

.stats{
flex-direction:row;
justify-content:center;
}

}