/* =========================
GOOGLE FONT
========================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;700;900&display=swap');

/* =========================
RESET
========================= */

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

:root{

    --rojo:#ff1a1a;
    --rojo-dark:#7a0012;

    --negro:#050505;
    --negro-soft:#0b0b0f;

    --gris:#bdbdbd;

}

body{

    font-family:'Space Grotesk',sans-serif;

    overflow-x:hidden;

    color:white;

    background:
    radial-gradient(circle at top left, rgba(177,18,38,.15), transparent 30%),
    radial-gradient(circle at bottom right, rgba(177,18,38,.08), transparent 30%),
    linear-gradient(180deg,#020202 0%, #090909 100%);
}

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

section{
    padding:130px 8%;
    position:relative;
    z-index:5;
}

/* =========================
SCROLLBAR
========================= */

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#050505;
}

::-webkit-scrollbar-thumb{
    background:linear-gradient(
    var(--rojo),
    var(--rojo-dark)
    );
    border-radius:20px;
}

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

.background{
    position:fixed;
    inset:0;
    z-index:-10;
    overflow:hidden;
}

.glow{
    position:absolute;
    border-radius:50%;
    filter:blur(140px);
    opacity:.35;
    animation:move 12s infinite alternate ease-in-out;
}

.glow1{
    width:500px;
    height:500px;
    background:#ff1a1a;
    top:-150px;
    left:-100px;
}

.glow2{
    width:500px;
    height:500px;
    background:#5c000d;
    bottom:-150px;
    right:-100px;
}

.glow3{
    width:350px;
    height:350px;
    background:#2a0007;
    opacity:.15;
    top:40%;
    left:45%;
}

@keyframes move{

    0%{
        transform:translate(0,0) scale(1);
    }

    100%{
        transform:translate(60px,-50px) scale(1.2);
    }

}

.grid{
    position:fixed;
    inset:0;
    z-index:-9;

    background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);

    background-size:55px 55px;

    mask-image:radial-gradient(circle at center, black 35%, transparent 90%);
}

/* =========================
PARTICLES
========================= */

.particles span{
    position:absolute;
    width:4px;
    height:4px;

    background:var(--rojo);

    border-radius:50%;

    box-shadow:
    0 0 12px rgba(177,18,38,.8);

    opacity:.4;

    animation:particle 12s linear infinite;
}

@keyframes particle{

    0%{
        transform:translateY(0px);
        opacity:0;
    }

    50%{
        opacity:.4;
    }

    100%{
        transform:translateY(-1000px);
        opacity:0;
    }

}

/* =========================
HEADER
========================= */

header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height: 100px;
    z-index:1000;

    background:rgba(0,0,0,1);

    backdrop-filter:blur(18px);

    border-bottom:1px solid rgba(255,255,255,.05);

    transition:.4s;
}

header.scrolled{
    background:rgba(0,0,0,.88);
    /*padding:5px 0;*/
}

.container{
    width:90%;
    max-width:1400px;
    margin:auto;
}

.nav{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:22px 0;
}

.logo{
    font-size:34px;
    font-weight:900;
    letter-spacing:-1px;
}

.logo span{

    background:#ff1a1a;

    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

nav{
    display:flex;
    gap:40px;
}

nav a{
    position:relative;
    transition:.4s;
    font-weight:500;
}

nav a::after{

    content:'';

    position:absolute;

    left:0;
    bottom:-7px;

    width:0%;
    height:2px;

    background:var(--rojo);

    transition:.4s;
}

nav a:hover{
    color:var(--rojo);
}

nav a:hover::after{
    width:100%;
}

/* =========================
BUTTONS
========================= */

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:18px 34px;

    border-radius:70px;

    font-weight:700;

    transition:.4s;

    position:relative;

    overflow:hidden;
}

.btn-primary{

    background:linear-gradient(
    135deg,
    #ff1a1a,
    #5c000d
    );

    box-shadow:
    0 10px 35px rgba(177,18,38,.35);
}

.btn-primary:hover{

    transform:
    translateY(-7px)
    scale(1.03);

    box-shadow:
    0 20px 60px rgba(177,18,38,.45);
}

.btn-secondary{

    background:rgba(255,255,255,.04);

    border:1px solid rgba(255,255,255,.08);

    backdrop-filter:blur(14px);
}

.btn-secondary:hover{
    background:white;
    color:black;
    transform:translateY(-7px);
}

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

.hero{

    min-height:100vh;

    display:flex;

    justify-content:center;

    align-items:center;

    text-align:center;

    background:
    radial-gradient(circle at center,
    rgba(177,18,38,.12) 0%,
    transparent 65%);
}

.hero-content{
    max-width:1200px;
    position:relative;
    z-index:5;
}

.hero-badge{

    display:inline-flex;
    align-items:center;
    gap:12px;

    padding:14px 26px;

    border-radius:50px;

    background:rgba(255,255,255,.04);

    border:1px solid rgba(255,255,255,.08);

    backdrop-filter:blur(14px);

    margin-bottom:35px;

    font-size:14px;

    letter-spacing:1px;
}

.hero-badge .dot{
    width:10px;
    height:10px;
    background:var(--rojo);
    border-radius:50%;

    box-shadow:0 0 15px var(--rojo);
}

.hero h1{

    font-size:clamp(4rem,9vw,9rem);

    line-height:.9;

    letter-spacing:-5px;

    font-weight:900;

    margin-bottom:35px;
}

.gradient-text{

    background:linear-gradient(0deg, #ff1a1a, #5c000d);

    -webkit-background-clip:text;

    -webkit-text-fill-color:transparent;
}

.hero p{
    max-width:900px;
    margin:auto;

    color:#d0d0d0;

    line-height:1.9;

    font-size:24px;

    margin-bottom:50px;
}

.hero-buttons{
    display:flex;
    justify-content:center;
    gap:20px;
    flex-wrap:wrap;
}

/* =========================
CARDS
========================= */

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

.card{

    position:relative;

    overflow:hidden;

    padding:45px;

    border-radius:35px;

    background:
    linear-gradient(
    180deg,
    rgba(15,15,15,.95),
    rgba(5,5,5,.95)
    );

    border:1px solid rgba(255,255,255,.06);

    backdrop-filter:blur(24px);

    box-shadow:
    inset 0 1px 1px rgba(255,255,255,.04),
    0 10px 45px rgba(0,0,0,.45);

    transition:.5s;
}

.card::before{

    content:'';

    position:absolute;

    inset:0;

    padding:1px;

    border-radius:35px;

    background:linear-gradient(
    140deg,
    transparent,
    rgba(177,18,38,.9),
    transparent
    );

    -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);

    -webkit-mask-composite:xor;

    opacity:0;

    transition:.5s;
}

.card:hover::before{
    opacity:1;
}

.card:hover{

    transform:
    translateY(-10px)
    scale(1.02);

    box-shadow:
    0 25px 80px rgba(177,18,38,.18);
}

.card i{

    font-size:55px;

    margin-bottom:30px;

    color:var(--rojo);
}

.card h3{
    font-size:32px;
    margin-bottom:18px;
}

.card p{
    color:#d0d0d0;
    line-height:1.9;
}

/* =========================
TITLE
========================= */

.title{
    text-align:center;
    margin-bottom:80px;
}

.title h2{

    font-size:clamp(3rem,6vw,5.5rem);

    margin-bottom:20px;

    background:linear-gradient(0deg, #ff1a1a, #5c000d);

    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.title p{
    font-size:21px;
    color:#cfcfcf;
}

/* =========================
PROJECTS
========================= */
/* =========================
SHOWCASE
========================= */

.showcase{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:30px;

    margin-top:60px;
}

/* CARD */

.project{

    background:
    linear-gradient(
    180deg,
    rgba(8,8,12,.98),
    rgba(3,3,5,.98)
    );

    border:1px solid rgba(255,255,255,.06);

    border-radius:24px;

    overflow:hidden;

    transition:.4s;

    padding:20px;

    text-align:center;

    position:relative;
}

.project:hover{

    transform:
    translateY(-10px);

    border-color:
    rgba(177,18,38,.35);

    box-shadow:
    0 20px 50px rgba(177,18,38,.18);
}

/* IMG */

.project img{

    width:100%;

    height:180px;

    object-fit:cover;

    border-radius:14px;

    transition:.5s;
}

.project:hover img{

    transform:scale(1.03);
}

/* INFO */

.overlay{

    position:relative;

    inset:auto;

    background:none;

    padding:25px 10px 10px;
}

.overlay h3{

    font-size:32px;

    margin-bottom:18px;

    color:#fff;
}

.overlay p{

    color:#d0d0d0;

    line-height:1.6;

    font-size:16px;

    margin-bottom:22px;
}

/* PRECIO */

.precio{

    color:#fff;

    font-size:34px;

    font-weight:800;

    margin-bottom:28px;
}

/* BOTON */

.project .btn{

    width:100%;

    display:flex;

    justify-content:center;

    align-items:center;

    height:58px;

    border-radius:12px;

    background:#ff1b1b;

    color:#fff;

    font-weight:700;

    font-size:17px;

    transition:.3s;
}

.project .btn:hover{

    background:#c70f0f;

    transform:translateY(-3px);
}

/* TABLET */

@media(max-width:1100px){

    .showcase{

        grid-template-columns:repeat(2,1fr);
    }

}

/* MOBILE */

@media(max-width:700px){

    .showcase{

        grid-template-columns:1fr;
    }

}

/* =========================
STATS
========================= */

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

.stat{

    padding:45px;

    border-radius:35px;

    text-align:center;

    background:
    linear-gradient(
    180deg,
    rgba(15,15,15,.95),
    rgba(5,5,5,.95)
    );

    border:1px solid rgba(255,255,255,.07);

    backdrop-filter:blur(24px);

    transition:.4s;
}

.stat:hover{
    transform:
    translateY(-10px)
    scale(1.02);
}

.stat h2{

    font-size:70px;

    margin-bottom:10px;

    color:var(--rojo);
}

.stat p{
    color:#d0d0d0;
    font-size:18px;
}

/* =========================
CTA
========================= */

.cta{

    position:relative;

    overflow:hidden;

    padding:120px 60px;

    border-radius:45px;

    text-align:center;

    background:
    linear-gradient(
    180deg,
    rgba(15,15,15,.95),
    rgba(5,5,5,.95)
    );

    border:1px solid rgba(255,255,255,.07);

    backdrop-filter:blur(24px);
}

.cta::before{

    content:'';

    position:absolute;

    width:550px;
    height:550px;

    background:var(--rojo);

    filter:blur(170px);

    opacity:.14;

    top:-250px;
    right:-150px;
}

.cta h2{
    font-size:clamp(3rem,6vw,5.5rem);
    margin-bottom:25px;
    position:relative;
    z-index:2;
}

.cta p{
    font-size:22px;
    color:#d0d0d0;
    margin-bottom:45px;
    position:relative;
    z-index:2;
}

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

footer{
    padding:60px;
    text-align:center;
    color:#888;
    border-top:1px solid rgba(255,255,255,.06);
}

/* =========================
RESPONSIVE
========================= */

@media(max-width:1000px){

    nav{
        display:none;
    }

    .hero h1{
        letter-spacing:-2px;
    }

    .hero-buttons{
        flex-direction:column;
    }

    .btn{
        width:100%;
    }

    .cta{
        padding:70px 25px;
    }

}

@media(max-width:768px){

    section{
        padding:100px 7%;
    }

    .hero h1{
        font-size:60px;
    }

    .hero p{
        font-size:18px;
    }

    .title h2{
        font-size:45px;
    }

    .overlay h3{
        font-size:30px;
    }

    .project img{
        height:350px;
    }

    .card{
        padding:35px;
    }

}

@media(max-width:480px){

    .hero h1{
        font-size:45px;
    }

    .title h2{
        font-size:35px;
    }

    .stat h2{
        font-size:50px;
    }

}

/* =========================
REVEAL ANIMATION
========================= */

.reveal{

    opacity:0;

    transform:translateY(70px);

    transition:
    opacity 1s ease,
    transform 1s ease;
}

.reveal.active{

    opacity:1;

    transform:translateY(0px);
}

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

.floating-card{

    position:absolute;

    width:280px;

    padding:28px;

    border-radius:30px;

    background:
    linear-gradient(
    180deg,
    rgba(15,15,15,.95),
    rgba(5,5,5,.95)
    );

    border:1px solid rgba(255,255,255,.06);

    backdrop-filter:blur(20px);

    box-shadow:
    0 15px 45px rgba(0,0,0,.45);

    z-index:3;

    animation:float 5s ease-in-out infinite;
}

.floating-card h3{

    font-size:42px;

    color:var(--rojo);

    margin-bottom:10px;
}

.floating-card p{

    color:#d0d0d0;

    line-height:1.7;
}

.float1{

    top:31%;
    left:4%;
}

.float2{

    top:31%;
    right:4%;

    animation-delay:2s;
}

@keyframes float{

    0%{
        transform:translateY(0px);
    }

    50%{
        transform:translateY(-20px);
    }

    100%{
        transform:translateY(0px);
    }

}

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

.tech-grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(180px,1fr));

    gap:25px;
}

.tech{

    padding:35px;

    border-radius:25px;

    text-align:center;

    font-size:22px;

    font-weight:700;

    background:
    linear-gradient(
    180deg,
    rgba(15,15,15,.95),
    rgba(5,5,5,.95)
    );

    border:1px solid rgba(255,255,255,.06);

    transition:.4s;

    position:relative;

    overflow:hidden;
}

.tech::before{

    content:'';

    position:absolute;

    inset:0;

    background:
    linear-gradient(
    120deg,
    transparent,
    rgba(177,18,38,.18),
    transparent
    );

    transform:translateX(-100%);

    transition:.7s;
}

.tech:hover::before{

    transform:translateX(100%);
}

.tech:hover{

    transform:
    translateY(-8px)
    scale(1.03);

    border-color:rgba(177,18,38,.4);

    box-shadow:
    0 20px 50px rgba(177,18,38,.18);

    color:white;
}

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

@media(max-width:1100px){

    .floating-card{
        display:none;
    }

}

@media(max-width:768px){

    .tech{
        padding:25px;
        font-size:18px;
    }

}


/* =========================
PROCESO EXACTO
========================= */

#proceso .cards{

    display:flex;

    gap:28px;

    flex-wrap:nowrap;

    justify-content:space-between;

    align-items:stretch;

    margin-top:60px;
}

#proceso .card{

    width:25%;

    min-width:0;

    min-height:220px;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    text-align:center;

    padding:40px 30px;

    border-radius:28px;

    background:
    linear-gradient(
    180deg,
    rgba(10,10,10,.96),
    rgba(5,5,5,.96)
    );

    border:1px solid rgba(255,255,255,.06);

    position:relative;

    overflow:hidden;

    transition:.4s;
}

/* GLOW */

#proceso .card::before{

    content:'';

    position:absolute;

    width:220px;
    height:220px;

    background:rgba(177,18,38,.10);

    filter:blur(80px);

    top:-120px;
    left:-120px;
}

/* HOVER */

#proceso .card:hover{

    transform:
    translateY(-8px)
    scale(1.02);

    border-color:rgba(177,18,38,.35);

    box-shadow:
    0 20px 50px rgba(177,18,38,.14);
}

/* TITULO */

#proceso .card h3{

    color:#ff1a1a;

    font-size:20px;

    margin-bottom:20px;

    font-weight:700;
}

/* TEXTO */

#proceso .card p{

    color:#bdbdbd;

    line-height:1.8;

    font-size:16px;
}

/* TABLET */

@media(max-width:1100px){

    #proceso .cards{

        flex-wrap:wrap;
    }

    #proceso .card{

        width:calc(50% - 14px);
    }

}

/* MOBILE */

@media(max-width:700px){

    #proceso .cards{

        flex-direction:column;
    }

    #proceso .card{

        width:100%;
    }

}

.footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.copy {
  text-align: center;
  padding: 20px;
  background: #0a0a0a;
  font-size: 14px;
  color: #777;
}



.social-icons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.social-icons a {
  color: #cccccc;
  text-decoration: none;
  transition: 0.3s;
}

.social-icons a:hover {
  color: #ff1a1a;
}