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

html{
    scroll-behavior:smooth;
}

body{
    font-family: "Poppins", Arial, sans-serif;
    color:#fff;
    

    background:
        radial-gradient(circle at top left,#7c3aed55 0%,transparent 30%),
        radial-gradient(circle at bottom right,#a855f755 0%,transparent 35%),
        linear-gradient(135deg,#090511,#12071f,#1d1036,#28164a);

    background-size:cover;
    background-attachment:fixed;
}
body{
    font-family:Arial,sans-serif;
    background:linear-gradient(135deg,#12061f,#29124a,#4c1d95);
    color:#fff;}
/* ===========================
   NAVBAR
=========================== */
.nav{
    position:fixed;
    top:0;
    left:0;
    width:100%;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:18px 35px;

    background:rgba(18,8,36,.55);
    backdrop-filter:blur(18px);

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

    z-index:999;
}

/* Contenedor de los enlaces */
.nav div{
    display:flex;
    align-items:center;
    gap:14px; /* Más separación entre botones */
    flex-wrap:wrap;
}

/* Estilo de cada botón */
.nav a{
    color:#ffffff;
    text-decoration:none;

    padding:10px 18px;
    border-radius:12px;

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

    transition:all .25s ease;
    position:relative;
    font-weight:600;
}

/* Hover */
.nav a:hover{
    color:#ffffff;
    background:linear-gradient(135deg,#7c3aed,#a855f7);
    transform:translateY(-2px);
    box-shadow:0 8px 20px rgba(168,85,247,.35);
}

/* Elimina la línea inferior anterior */
.nav a::after{
    display:none;
}

/* Responsive */
@media (max-width: 900px){

    .nav{
        flex-direction:column;
        gap:15px;
        padding:18px;
    }

    .nav div{
        justify-content:center;
        gap:10px;
    }

    .nav a{
        padding:10px 14px;
        font-size:.9rem;
    }

}
.nav h1{
    font-size:1.6rem;
    font-weight:800;
    background:linear-gradient(90deg,#ffffff,#d8b4fe,#a855f7);
        background-clip:text;
        -webkit-background-clip:text;
        color:transparent;
}

/* ===========================
   CONTENEDOR HORIZONTAL
=========================== */
.wrap{
    display:flex;
    flex-direction:column;
    width:100%;
    padding-top:90px;
}
.panel{
    width:100%;
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:60px 40px;
}
/* ===========================
   HERO ABAOUT
=========================== */
.hero-about{
    display:grid;
    grid-template-columns:1.3fr .7fr;
    align-items:center;
    gap:60px;
}

.hero-left h1{
    font-size:4rem;
    margin:10px 0;
}

.hero-left h1 span{
    color:#c084fc;
}

.hero-left h2{
    margin-bottom:20px;
    color:#d8b4fe;
}

.hero-left p{
    color:#d7d7d7;
    line-height:1.8;
    margin-bottom:15px;
}

.hero-badge{
    display:inline-block;
    padding:8px 16px;
    border-radius:999px;
    background:linear-gradient(90deg,#7c3aed,#a855f7);
    font-weight:bold;
    margin-bottom:20px;
}

.hero-buttons{
    display:flex;
    gap:15px;
    margin-top:30px;
}

.btn-primary,
.btn-secondary{
    text-decoration:none;
    padding:14px 24px;
    border-radius:12px;
    font-weight:bold;
    transition:.3s;
}

.btn-primary{
    background:#9333ea;
    color:white;
}

.btn-secondary{
    background:rgba(255,255,255,.08);
    color:white;
    border:1px solid rgba(255,255,255,.15);
}

.btn-primary:hover,
.btn-secondary:hover{
    transform:translateY(-3px);
}

.hero-right{
    display:flex;
    justify-content:center;
}

.avatar-glow{
    padding:12px;
    border-radius:50%;
    background:radial-gradient(circle,rgba(168,85,247,.45),transparent 70%);
    animation:pulse 4s infinite;
}

.avatar-img{
    width:300px;
    height:300px;
    object-fit:cover;
    border-radius:50%;
    border:5px solid #a855f7;
}

@keyframes pulse{
    50%{
        transform:scale(1.05);
    }
}

@media(max-width:900px){

    .hero-about{
        grid-template-columns:1fr;
        text-align:center;
    }

    .hero-buttons{
        justify-content:center;
        flex-wrap:wrap;
    }

    .hero-left h1{
        font-size:2.8rem;
    }

}
/* ===========================
   CADA SECCIÓN
=========================== */

.panel{
    min-height:calc(100vh - 70px);

    display:flex;
    justify-content:center;
    align-items:flex-start;

    padding:40px;

    overflow-y:auto;
}

/* ===========================
   TARJETAS
=========================== */
.card{
    animation:fadeUp .8s ease;
}

@keyframes fadeUp{

    from{
        opacity:0;
        transform:translateY(40px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}
.card{
    width:100%;
    max-width:1700px;
    margin:auto;
}
/* ===========================
   SERVICIOS
=========================== */

.gallery{
    display:flex;
    flex-direction:column;
    gap:20px;
    width:35%;
    margin-right:25px;
}

.big{
    height:220px;
}

/* ===========================
   PLACEHOLDERS
=========================== */

.placeholder{
    border:2px dashed #8cff00;
    border-radius:12px;
    padding:30px;
    text-align:center;
    background:#ffffff10;
}

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

.grid{
    display:grid;

    grid-template-columns:
    repeat(auto-fill,minmax(300px,1fr));

    gap:26px;

    margin-top:25px;
}
.grid{
    column-count:4;
    column-gap:20px;
}

.render-card{
    display:inline-block;
    width:100%;
    margin-bottom:20px;
}

@media(max-width:1200px){
    .grid{column-count:3;}
}

@media(max-width:768px){
    .grid{column-count:2;}
}

@media(max-width:500px){
    .grid{column-count:1;}
}

/* ===========================
   IMÁGENES
=========================== */

img{
    max-width:100%;
    display:block;
}

.grid img{
    width:100%;
    aspect-ratio:auto;
    object-fit:cover;
    border-radius:15px;
    transition:.25s;
    cursor:pointer;
}

.grid img:hover{
    transform:scale(1.04);
}

.big-img{
    width:100%;
    height:220px;
    object-fit:cover;
    border-radius:15px;
}

.avatar-img{
    width:140px;
    height:140px;
    object-fit:cover;
    border-radius:50%;
    border:4px solid #ffd400;
    margin:auto;
}

.cliente{
    text-align:center;
}

.cliente img{
    width:120px;
    height:120px;
    object-fit:contain;
    margin:auto;
}

.logos{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
    gap:20px;
    margin-top:20px;
}

/* ===========================
   SCROLLS
=========================== */

.scroll{
    max-height:80vh;
    overflow-y:auto;
    padding-right:10px;
}

/* ESTE ES EL IMPORTANTE PARA CATÁLOGOS GRANDES */

.catalogo-scroll{
    max-height:75vh;
    overflow-y:auto;
    padding-right:10px;
}

.center{
    text-align:center;
}

.avatar{
    width:120px;
    height:120px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    margin:auto;
    background:#ffffff10;
}

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

@media(max-width:900px){

    .wrap{
        display:block;
    }

    .panel{
        min-width:100%;
    }

    .gallery{
        width:100%;
        margin-right:0;
        margin-bottom:20px;
    }

    .grid{
        grid-template-columns:1fr;
    }

    .nav{
        flex-direction:column;
        gap:10px;
    }

}

.servicios-card{
    display:flex;
    gap:30px;
    align-items:flex-start;
}

.preview-panel{
    flex:1;
}

.preview-panel img{
    width:100%;
    border-radius:16px;
    object-fit:cover;
}

.info-panel{
    flex:1;
}

.tabs{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-bottom:20px;
}

.tabs button{

    background:linear-gradient(
        135deg,
        #6d28d9,
        #9333ea
    );

    color:white;

    border:none;

    padding:12px 20px;

    border-radius:14px;

    transition:.3s;

}

.tabs button:hover{

    transform:translateY(-2px);

    box-shadow:
        0 0 20px #9333ea88;

}
#contenidoServicio h3{
    margin-top:18px;
}

.preview-grid{

    columns:3;

    column-gap:16px;

}

.preview-grid img{

    width:100%;

    height:auto;

    display:block;

    margin-bottom:16px;

    break-inside:avoid;

    border-radius:16px;

    transition:.3s;

}

.preview-grid img:hover{

    transform:scale(1.03);

}

/* ===========================
   SERVICIOS - ESTILO PINTEREST
=========================== */


.servicios-layout{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:30px;
    align-items:start;
    margin-top:25px;
}

.preview-panel{
    width:100%;
}

.preview-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:15px;
    width:100%;
}

.preview-grid {
    columns: 3;
    column-gap: 15px;
}

.preview-grid img {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-radius: 12px;
    display: block;
    break-inside: avoid;
}

.preview-grid img:hover{
    transform:scale(1.03);
}

.info-panel{
    width:100%;
}

.tabs{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-bottom:20px;
}

.tabs button{
    background:#2563eb;
    color:#fff;
    border:none;
    padding:10px 18px;
    border-radius:10px;
    cursor:pointer;
    font-weight:bold;
    transition:.2s;
}

.tabs button:hover{
    background:#3b82f6;
}


/* Responsive */

@media(max-width:900px){

    .servicios-layout{
        grid-template-columns:1fr;
    }

    .preview-grid{
        grid-template-columns:1fr;
    }

}
.render-card{

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

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

    border-radius:22px;

    overflow:hidden;

    transition:.35s;

    display:flex;
    flex-direction:column;

}

.render-card:hover{

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

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

}
.render-card img{

    width:100%;
    height:auto;

    object-fit:contain;

    transition:.35s;

}

.render-card:hover img{

    transform:scale(1.05);

}

.render-info{
    padding:15px;
    display:flex;
    flex-direction:column;
    gap:8px;
    flex-grow:1;
}

.render-tag{

    background:linear-gradient(90deg,#7c3aed,#a855f7);

    color:white;

    padding:6px 12px;

    border-radius:999px;

    font-weight:bold;


}
.render-desc{
    color:#d8d8d8;
    margin-bottom:12px;
    line-height:1.5;
}

.render-author{

    color:#d8b4fe;

    font-weight:700;

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

.lightbox{
    position:fixed;
    inset:0;

    background:rgba(5,5,15,.92);
    backdrop-filter:blur(8px);

    display:flex;
    justify-content:center;
    align-items:center;

    opacity:0;
    visibility:hidden;

    transition:.3s;

    z-index:99999;
}

.lightbox.active{
    opacity:1;
    visibility:visible;
}

.lightbox img{
    max-width:92vw;
    max-height:92vh;

    border-radius:18px;

    box-shadow:
        0 0 60px rgba(168,85,247,.35);

    animation:zoomIn .25s ease;
}

.lightbox-close{
    position:absolute;
    top:25px;
    right:35px;

    font-size:55px;
    cursor:pointer;

    color:white;

    transition:.25s;
}

.lightbox-close:hover{
    color:#c084fc;
    transform:rotate(90deg);
}

@keyframes zoomIn{

    from{
        transform:scale(.8);
        opacity:0;
    }

    to{
        transform:scale(1);
        opacity:1;
    }

}
/* ===========================
   FONDO ANIMADO
=========================== */

body{
    background:#0b0818;
    position:relative;
}

body::before,
body::after{
    content:"";
    position:fixed;
    border-radius:50%;
    filter:blur(100px);
    z-index:-2;
    animation:blobMove 18s ease-in-out infinite alternate;
}

body::before{
    width:500px;
    height:500px;
    background:#8b5cf6;
    top:-120px;
    left:-100px;
}

body::after{
    width:450px;
    height:450px;
    background:#a855f7;
    bottom:-120px;
    right:-80px;
    animation-duration:24s;
}

@keyframes blobMove{

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

    50%{
        transform:
            translate(120px,60px)
            scale(1.15);
    }

    100%{
        transform:
            translate(-80px,-60px)
            scale(.95);
    }

}
.particles{
    position:fixed;
    inset:0;
    pointer-events:none;
    z-index:-1;
}

.particles span{
    position:absolute;
    width:8px;
    height:8px;
    border-radius:50%;
    background:#c084fc;
    opacity:.4;
    animation:floatParticle linear infinite;
}

.particles span:nth-child(1){left:10%;animation-duration:18s;}
.particles span:nth-child(2){left:20%;animation-duration:12s;}
.particles span:nth-child(3){left:30%;animation-duration:15s;}
.particles span:nth-child(4){left:40%;animation-duration:22s;}
.particles span:nth-child(5){left:50%;animation-duration:13s;}
.particles span:nth-child(6){left:60%;animation-duration:20s;}
.particles span:nth-child(7){left:70%;animation-duration:17s;}
.particles span:nth-child(8){left:80%;animation-duration:11s;}
.particles span:nth-child(9){left:90%;animation-duration:19s;}
.particles span:nth-child(10){left:95%;animation-duration:14s;}

@keyframes floatParticle{

    from{
        transform:translateY(110vh) scale(.5);
    }

    to{
        transform:translateY(-20vh) scale(1.2);
    }

}

html{
    scroll-behavior:smooth;
}

.wrap{
    display:flex;
    overflow-y:hidden;
    scroll-snap-type:x mandatory;
}

.wrap::-webkit-scrollbar{
    display:none;
}

.panel{
    scroll-snap-align:start;
}

.panel.visible{
    opacity: 1;
    transform: translateY(0);
}




.footer{
    width:100%;
    text-align:center;
    padding:30px 20px;
    background:rgba(10,10,20,.8);
    backdrop-filter:blur(10px);
    border-top:1px solid rgba(255,255,255,.08);
    color:#cfcfcf;
    font-size:.95rem;
}

.footer p{
    margin:6px 0;
}

.footer strong{
    color:#b26cff;
}

#contacto a{
    color:#9b7bff;
    text-decoration:none;
    transition:.2s;
}

#contacto a:hover{
    color:#d7b3ff;
    text-decoration:underline;
}

