/* ========== VARIABLES ========== */
:root{
  --color-bg:#000;
  --color-bg-elevated:#0b0b0b;
  --color-primary:#3d9bff;
  --color-primary-hover:#2b85e0;
  --color-text:#fff;
  --color-text-muted:#999;
  --color-text-dim:#666;
  --radius-card:18px;
  --radius-btn:35px;
  --transition-base:.3s;
}

/* ========== BASE ========== */
body{
margin:0;
font-family:Poppins,sans-serif;
background-color:var(--color-bg);
background-image:
  linear-gradient(rgba(61,155,255,.03) 1px, transparent 1px),
  linear-gradient(90deg, rgba(61,155,255,.03) 1px, transparent 1px);
background-size:40px 40px;
color:var(--color-text);
scroll-behavior:smooth;
}

a{text-decoration:none;color:white}

/* ========== ANIMACIONES ========== */

@keyframes fadeUp{
from{opacity:0;transform:translateY(40px)}
to{opacity:1;transform:translateY(0)}
}

@keyframes float{
0%{transform:translateY(0)}
50%{transform:translateY(-8px)}
100%{transform:translateY(0)}
}

@keyframes pulse{
0%{transform:scale(1)}
50%{transform:scale(1.08)}
100%{transform:scale(1)}
}

.fade{
opacity:0;
transform:translateY(40px);
transition:1s;
}

.fade.show{
opacity:1;
transform:translateY(0);
}

/* ========== NAVBAR ========== */

.navbar{
position:fixed;
top:0;
width:100%;
background:rgba(0,0,0,.85);
padding:15px 40px;
z-index:1000;
}

.navbar img{height:40px}

/* ========== FLOATING ========== */

.header-phone{
position:fixed;
top:0;
right:0;
background:rgba(0,123,255,.9);
padding:8px 20px;
z-index:1001;
font-size:14px;
font-weight:500;
display:flex;
align-items:center;
gap:8px;
border-radius:0 0 0 15px;
}

.header-phone a{
color:white;
display:flex;
align-items:center;
gap:6px;
}

.header-phone:hover{
background:var(--color-primary-hover);
}

.insta-float{
position:fixed;
bottom:20px;
right:20px;
background:linear-gradient(45deg,#405DE6,#833AB4,#E1306C);
padding:12px 18px;
border-radius:40px;
z-index:2000;
transition:.3s;
}

.insta-float:hover{transform:scale(1.15)}

.whatsapp-float{
position:fixed;
bottom:90px;
right:20px;
background:#25D366;
width:55px;height:55px;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
font-size:28px;
z-index:2000;
transition:.3s;
}

.whatsapp-float:hover{
transform:scale(1.2);
background:#1ebe5a;
}

/* ========== HERO ========== */

header{
min-height:100vh;
position:relative;
background:
linear-gradient(rgba(0,0,0,.75),rgba(0,0,40,.8)),
url("../../assets/images/hero.jpg") center/cover;
display:flex;
align-items:center;
justify-content:center;
text-align:center;
padding:8%;
overflow:hidden;
}

#hero-video{
position:absolute;
top:0;left:0;
width:100%;height:100%;
object-fit:cover;
z-index:0;
}

header::after{
content:"";
position:absolute;
inset:0;
background:linear-gradient(rgba(0,0,0,.75),rgba(0,0,40,.8));
z-index:1;
pointer-events:none;
}

.hero{
position:relative;
z-index:2;
}

.hero img{
width:300px;
animation:float 6s ease-in-out infinite;
}

.hero h1{
color:var(--color-primary);
font-size:3rem;
}

.hero p{
max-width:800px;
margin:20px auto;
}

/* ========== BACKGROUND SHAPES ========== */

.section-bg{
position:absolute;
inset:0;
z-index:0;
pointer-events:none;
overflow:hidden;
}
.bg-shape{
position:absolute;
color:rgba(61,155,255,.08);
filter:blur(1px);
animation:shapeFloat 30s ease-in-out infinite;
}
.bg-hex{width:400px;top:-100px;right:-100px}
.bg-network{width:500px;bottom:-150px;left:-150px;animation-delay:-15s;animation-duration:35s}
.bg-star{width:300px;top:20%;left:-80px;animation-delay:-8s;animation-duration:28s}
.bg-spotlight{width:350px;bottom:-100px;right:10%;animation-delay:-20s;animation-duration:32s}

@keyframes shapeFloat{
0%{transform:translateY(0) rotate(0deg) scale(1)}
25%{transform:translateY(-15px) rotate(90deg) scale(1.02)}
50%{transform:translateY(-25px) rotate(180deg) scale(1.04)}
75%{transform:translateY(-10px) rotate(270deg) scale(1.02)}
100%{transform:translateY(0) rotate(360deg) scale(1)}
}

header > *,section > *{
position:relative;
z-index:1;
}

/* ========== BUTTON ========== */

.btn{
background:var(--color-primary);
padding:15px 40px;
border:none;
border-radius:35px;
color:white;
cursor:pointer;
font-weight:600;
transition:.3s;
margin-top:30px;
}

.btn:hover{
background:var(--color-primary-hover);
transform:scale(1.05);
}

.btn:active{
animation:pulse .3s;
}

.btn-ghost{
background:transparent;
border:2px solid var(--color-primary);
color:var(--color-primary);
margin-left:12px;
}

.btn-ghost:hover{
background:var(--color-primary);
color:white;
}

.btn-hero{
padding:18px 50px;
font-size:17px;
margin-top:35px;
}

/* ========== SECTIONS ========== */

section{
padding:90px 10%;
}

h2{
color:var(--color-primary);
text-align:center;
margin-bottom:50px;
}

/* ========== GRID ========== */

.grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:35px;
}

/* ========== SERVICES ========== */

.service-btn{
background:#0b0b0b;
padding:35px;
border-radius:18px;
border:1px solid rgba(0,123,255,.3);
cursor:pointer;
text-align:center;
transition:.4s;
position:relative;
overflow:hidden;
}

.service-btn h3{
margin:10px 0 0 0;
font-size:18px;
color:white;
}

.service-btn::after{
content:"";
position:absolute;
top:0;left:-100%;
width:100%;
height:100%;
background:linear-gradient(120deg,transparent,rgba(0,123,255,.4),transparent);
transition:.6s;
}

.service-btn:hover::after{
left:100%;
}

.service-btn:hover{
transform:translateY(-10px) scale(1.05);
box-shadow:0 15px 40px rgba(0,123,255,.4);
}

/* ========== BOX ========== */

.box{
background:#0b0b0b;
padding:35px;
border-radius:18px;
border:1px solid rgba(0,123,255,.3);
transition:.4s;
position:relative;
overflow:hidden;
cursor:pointer;
}

.box::after{
content:"";
position:absolute;
top:0;left:-100%;
width:100%;
height:100%;
background:linear-gradient(120deg,transparent,rgba(0,123,255,.4),transparent);
transition:.6s;
}

.box:hover::after{
left:100%;
}

.box:hover{
transform:translateY(-10px) scale(1.05);
box-shadow:0 15px 40px rgba(0,123,255,.4);
}

/* ========== VALUES ========== */

.values{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
gap:20px;
text-align:center;
}

.value{
background:#070707;
padding:25px;
border-radius:15px;
transition:.4s;
position:relative;
overflow:hidden;
cursor:pointer;
}

.value::after{
content:"";
position:absolute;
top:0;left:-100%;
width:100%;
height:100%;
background:linear-gradient(120deg,transparent,rgba(0,123,255,.4),transparent);
transition:.6s;
}

.value:hover::after{
left:100%;
}

.value:hover{
transform:translateY(-10px) scale(1.05);
box-shadow:0 15px 40px rgba(0,123,255,.4);
background:#0b1630;
}

/* ========== GALLERY ========== */

.gallery{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
gap:15px;
}

.gallery img{
width:100%;
border-radius:12px;
transition:.5s;
}

.gallery img:hover{
transform:scale(1.12) rotate(1deg);
filter:brightness(1.2);
}

/* ========== CLIENTS ========== */

.client-logos{
overflow:hidden;
max-width:900px;
margin:0 auto;
}

.marquee-track{
display:flex;
gap:40px;
animation:marquee 30s linear infinite;
width:max-content;
}
.marquee-track:hover{animation-play-state:paused}

@keyframes marquee{
0%{transform:translateX(0)}
100%{transform:translateX(-50%)}
}

.client-logos img{
max-width:140px;
max-height:80px;
object-fit:contain;
padding:5px;
filter:grayscale(1) brightness(1.1);
opacity:.7;
transition:.3s;
flex-shrink:0;
}

.client-logos img:hover{
filter:grayscale(0) brightness(1.1);
opacity:1;
transform:scale(1.08);
}

/* ========== TESTIMONIAL ========== */

.testimonials{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:30px;
}

.testimonial{
background:#0b0b0b;
padding:30px;
border-radius:18px;
transition:.3s;
text-align:left;
}

.testimonial:hover{
transform:translateY(-6px);
box-shadow:0 10px 25px rgba(0,123,255,.3);
}

.testimonial p{
font-style:italic;
margin-bottom:15px;
line-height:1.6;
}

.testimonial strong{
color:var(--color-primary);
display:block;
margin-top:10px;
font-size:15px;
}

.testimonial span{
color:var(--color-text-muted);
font-size:13px;
}

/* ========== FORM ========== */

form input,form select,textarea{
width:100%;
padding:14px;
margin-bottom:15px;
background:#111;
border:1px solid rgba(255,255,255,.1);
color:white;
border-radius:8px;
font-family:Poppins,sans-serif;
font-size:14px;
}

form input:focus,form select:focus,textarea:focus{
outline:none;
border-color:var(--color-primary);
}

form select option{
background:#111;
color:white;
}

/* ========== MODAL ========== */

.modal{
display:none;
position:fixed;
top:0;left:0;
width:100%;height:100%;
background:rgba(0,0,0,.9);
z-index:3000;
justify-content:center;
align-items:center;
}

.modal-content{
background:#0b0b0b;
padding:40px;
border-radius:20px;
max-width:500px;
width:90%;
animation:fadeUp .5s;
}

/* ========== LIGHTBOX ========== */

.lightbox{
display:none;
position:fixed;
inset:0;
background:rgba(0,0,0,.95);
z-index:5000;
justify-content:center;
align-items:center;
}
.lightbox.active{display:flex}
.lightbox-img{
max-width:90%;
max-height:85vh;
border-radius:8px;
object-fit:contain;
}
.lightbox-close{
position:absolute;
top:20px;right:25px;
font-size:36px;
color:#fff;
background:none;
border:none;
cursor:pointer;
z-index:5001;
}
.lightbox-close:hover{color:var(--color-primary)}
.lightbox-prev,.lightbox-next{
position:absolute;
top:50%;transform:translateY(-50%);
font-size:28px;
color:#fff;
background:rgba(255,255,255,.1);
border:none;
cursor:pointer;
padding:15px 12px;
border-radius:50%;
transition:background .2s;
z-index:5001;
}
.lightbox-prev{left:20px}
.lightbox-next{right:20px}
.lightbox-prev:hover,.lightbox-next:hover{background:rgba(255,255,255,.25)}

/* ========== COOKIE BANNER ========== */

.cookie-banner{
position:fixed;
bottom:0;
left:0;
width:100%;
background:rgba(0,0,20,.95);
padding:15px 20px;
display:flex;
flex-wrap:wrap;
align-items:center;
justify-content:space-between;
gap:10px;
z-index:5000;
border-top:1px solid rgba(0,123,255,.3);
box-sizing:border-box;
}

.cookie-banner p{
margin:0;
font-size:13px;
color:#ccc;
flex:1;
min-width:200px;
}

.cookie-banner .btn{
padding:8px 25px;
margin:0;
font-size:13px;
white-space:nowrap;
}

/* ========== FOOTER ========== */

footer{
background:#050505;
padding:40px 10%;
text-align:center;
border-top:1px solid rgba(255,255,255,.1);
}

.footer-social{
margin-bottom:20px;
}

.footer-social a{
margin:0 10px;
color:#ccc;
font-size:18px;
transition:.3s;
}

.footer-social a:hover{
color:var(--color-primary);
transform:scale(1.2);
}

.footer-copyright{
color:#888;
font-size:13px;
margin:10px 0;
}

.footer-legal{
color:var(--color-text-muted);
font-size:13px;
}

.footer-legal a{
color:#888;
text-decoration:underline;
transition:.3s;
}

.footer-legal a:hover{
color:var(--color-primary);
}

/* ========== FOCUS VISIBLE ========== */
:focus-visible{
outline:2px solid var(--color-primary);
outline-offset:2px;
}
.btn:focus-visible,
.service-btn:focus-visible,
.box:focus-visible,
.value:focus-visible{
outline:2px solid var(--color-primary);
outline-offset:3px;
}

/* ========== FORM STATES ========== */
form input:invalid:not(:placeholder-shown),
form select:invalid,
textarea:invalid:not(:placeholder-shown){
border-color:#e74c3c;
}
form input:valid:not(:placeholder-shown){
border-color:#2ecc71;
}
.btn:disabled{
opacity:.5;
cursor:not-allowed;
transform:none;
}

/* ========== TABLET ========== */
@media(max-width:1024px){
.grid{grid-template-columns:repeat(2,1fr)}
.values{grid-template-columns:repeat(3,1fr)}
.testimonials{grid-template-columns:repeat(2,1fr)}
.gallery{grid-template-columns:repeat(3,1fr)}
section{padding:80px 8%}
}

/* ========== REDUCED MOTION ========== */
@media(prefers-reduced-motion:reduce){
*,*::before,*::after{
animation-duration:0.01ms!important;
transition-duration:0.01ms!important;
}
html{scroll-behavior:auto}
.fade{opacity:1;transform:none}
}

/* ========== MAX-WIDTH ULTRA-WIDE ========== */
section{max-width:1400px;margin:0 auto}

/* ========== MOBILE ========== */

@media(max-width:768px){

.hero h1{font-size:2rem}
section{padding:70px 7%}
.gallery{grid-template-columns:1fr 1fr}
.header-phone{font-size:12px;padding:6px 12px}
.cookie-banner{padding:12px 15px}
.insta-float{display:none}
.whatsapp-float{bottom:20px;width:50px;height:50px;font-size:24px}

}
