/* =========================================
   PROYECTOS
========================================= */

.proyectos-container{
    width:90%;
    max-width:1280px;
    margin:0 auto;
}

/* GENERALES */

/* ==============================
   TIPOGRAFÍA GENERAL PROYECTOS
============================== */

body{
    font-family:'Rubik', sans-serif !important;
    font-weight:300;
}

body *,
body *::before,
body *::after{
    font-family:'Rubik', sans-serif;
}






.proyectos-tag{
    display:inline-block;
    margin-bottom:1.2rem;
    font-size:.82rem;
    font-weight:600;
    letter-spacing:.16em;
    text-transform:uppercase;
    color:#7867ff;
}

.proyecto-seccion{
    position:relative;
    padding:4.5rem 0;
    overflow:hidden;
}

.proyecto-claro{
    background:#f9f9fc;
    color:#0a1028;
}

.proyecto-oscuro{
    background:#08091b;
    color:#fff;
}


/* HERO */

.proyectos-hero{
    position:relative;
    min-height:100vh;
    padding:12rem 5% 6rem;

    background:url("../assets/proyectos/fondo_proyectos.png") center/cover no-repeat;
    overflow:hidden;
}

.proyectos-hero-overlay{
    position:absolute;
    inset:0;

    background:linear-gradient(
        90deg,
        rgba(6,7,25,.94) 0%,
        rgba(6,7,25,.75) 40%,
        rgba(6,7,25,.25) 75%,
        rgba(6,7,25,.08) 100%
    );
}

/* Misma ubicación que Blog */
.proyectos-hero-content{
    position:absolute;
    z-index:2;

    left:5%;
    bottom:10%;

    width:90%;
    max-width:1000px;
}

.proyectos-hero h1{
    max-width:600px;
    margin:0;

    font-family:'Rubik', sans-serif !important;
    font-size:7rem;
    font-weight:900;
    line-height:.88;
    letter-spacing:-.055em;

    color:#fff;
}

.proyectos-hero h1 span{
    display:block;

    font-family:'Rubik', sans-serif !important;
    font-weight:900;

    background:linear-gradient(
        90deg,
        #807dfe,
        #c879ff,
        #ff8da1,
        #ffae7a
    );

    padding-bottom:.12em;

    -webkit-background-clip:text;
    background-clip:text;
    -webkit-text-fill-color:transparent;
    color:transparent;
}

.proyectos-hero .hero-frase{
    max-width:520px;
    margin-top:1.5rem;
    margin-bottom:0;

    font-family:'Rubik', sans-serif !important;
    font-size:1.8rem;
    font-weight:400;
    line-height:1.55;

    color:rgba(240,238,248,.72);
}

/* INTRO */

/* INTRO MARKETING INTEGRAL */

#intro-proyectos .resaltado-titulo{
    background:none !important;
}

#intro-proyectos .resaltado-titulo::after{
    display:none !important;
}

.proyecto-intro{
    padding:5rem 0 4.5rem;
}

.proyecto-claro{
    background:#f8f8fc;
}

.texto-editorial{
    max-width:1400px;
    margin:0 auto;
}

.texto-editorial .texto-destacado{
    max-width:1250px;
    margin:0 0 3.5rem;
    font-size:clamp(2rem,3.2vw,3.2rem);
    font-weight:400;
    line-height:1.25;
    letter-spacing:-.025em;
    color:#11172c;
}

.texto-editorial > p:not(.texto-destacado){
    max-width:1250px;
    margin:0 0 2.2rem;
    font-size:1.15rem;
    font-weight:300;
    line-height:1.75;
    color:#4c5268;
}

/* BLOQUE DESTACADO */

.destacado-integral{
    position:relative;
    max-width:1250px;
    margin-top:3.2rem;
    padding:2.4rem 3rem;
    background:rgba(128,125,254,.07);
    border-radius:0 22px 22px 0;
}

.destacado-integral::before{
    content:"";
    position:absolute;
    left:0;
    top:0;
    bottom:0;
    width:5px;
    border-radius:5px 0 0 5px;
    background:linear-gradient(to bottom,#807dfe,#c879ff,#ff8da1,#ffae7a);
}

.destacado-integral p{
    margin:0 0 1.8rem;
    font-size:1.15rem;
    font-weight:300;
    line-height:1.75;
    color:#4c5268;
}

.destacado-integral p:last-child{
    margin-bottom:0;
}

/* RESALTADO DEL TITULAR */
#intro-proyectos .resaltado-titulo{
    position:static;
    white-space:normal;
    background:linear-gradient(
        transparent 65%,
        rgba(200,121,255,.35) 65%
    ) !important;
    box-decoration-break:clone;
    -webkit-box-decoration-break:clone;
}

#intro-proyectos .resaltado-titulo::before,
#intro-proyectos .resaltado-titulo::after{
    content:none !important;
}

/* RESALTADOS DEL RECUADRO */
#intro-proyectos .destacado-integral strong{
    position:static;
    font-weight:600;
    color:#11172c;
    background:linear-gradient(
        transparent 65%,
        rgba(200,121,255,.35) 65%
    );
    box-decoration-break:clone;
    -webkit-box-decoration-break:clone;
}

#intro-proyectos .destacado-integral strong::before{
    content:none !important;
}

/* ÚLTIMO RESALTADO ROSA / NARANJA */
#intro-proyectos .destacado-integral .texto-cierre strong{
    background:linear-gradient(
        transparent 65%,
        rgba(255,174,122,.45) 65%
    );
}

/* SECCIONES */

.proyecto-grid{
    display:grid;
    grid-template-columns:minmax(260px,.55fr) minmax(0,1.45fr);
    gap:4rem;
    align-items:center;
}

.proyecto-grid-invertido{
    grid-template-columns:minmax(0,1.45fr) minmax(260px,.55fr);
}

.proyecto-texto h2{
    max-width:900px;
    margin:0 0 1.5rem;
    font-size:clamp(2.6rem,3.7vw,4.2rem);
    font-weight:900;
    line-height:1;
    letter-spacing:-.045em;
}

.proyecto-texto h2 span{
    display:inline;
    background:linear-gradient(90deg,#7568ff,#c477ff,#ff8b9c,#ff9f70);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.proyecto-texto{
    width:100%;
    max-width:none;
}

.proyecto-texto p{
    width:100%;
    max-width:950px;
    margin:0 0 1.15rem;
    font-size:1.05rem;
    line-height:1.65;
}
.proyecto-claro .proyecto-texto p{
    color:#5e6375;
}

.proyecto-claro .proyecto-texto strong{
    color:#12172c;
}

.proyecto-oscuro .proyecto-texto p{
    color:rgba(255,255,255,.68);
}

.proyecto-oscuro .proyecto-texto strong{
    color:#fff;
}

.texto-cierre{
    margin-top:2rem !important;
}

/* IMÁGENES PRINCIPALES */

.proyecto-imagen{
    position:relative;
    width:100%;
    max-width:300px;
    justify-self:center;
    overflow:hidden;
    border-radius:24px;
    box-shadow:0 20px 50px rgba(30,25,80,.12);
}

.proyecto-imagen img{
    display:block;
    width:100%;
    height:auto;
    aspect-ratio:9 / 16;
    object-fit:cover;
    transition:transform .7s ease;
}

.proyecto-imagen:hover img{
    transform:scale(1.035);
}

/* PUBLICIDAD */

.plataformas{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:1.2rem;
    align-items:stretch;
}

.plataforma-card{
    min-height:190px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    padding:1.8rem 2rem;
    border:1px solid rgba(100,90,180,.12);
    border-radius:28px;
    background:#fff;
    box-shadow:0 20px 55px rgba(20,20,70,.07);
    transition:transform .3s ease,box-shadow .3s ease;
}

.plataforma-card:hover{
    transform:translateY(-8px);
    box-shadow:0 30px 70px rgba(20,20,70,.12);
}

.plataforma-card img{
    width:76px;
    height:76px;
    object-fit:contain;
    margin-bottom:1.2rem;
}

.plataforma-card h3{
    margin:0;
    font-size:1.2rem;
    font-weight:500;
    color:#11172c;
    white-space:nowrap;
}

.proyecto-cta{
    margin-top:3rem;
    text-align:center;
}



/* BOTONES */

.btn-proyecto{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:170px;
    padding:1rem 2rem;
    border-radius:100px;
    background:linear-gradient(90deg,#7465ff,#bd71ff,#ff9878);
    color:#fff;
    font-size:.95rem;
    font-weight:600;
    text-decoration:none;
    transition:transform .3s ease,box-shadow .3s ease;
}

.btn-proyecto:hover{
    transform:translateY(-3px);
    box-shadow:0 15px 35px rgba(123,92,255,.30);
}

.btn-proyecto{
    font-size:1.4rem !important;
    padding:1.35rem 3rem !important;
    border-radius:14px !important;
}

/* DESARROLLO WEB */

.web-showcase{
    display:flex;
    flex-direction:column;
    gap:3rem;
    margin-top:4rem;
}

.web-fila{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:2rem;
    height:420px;
}

.web-fila video{
    display:block;
    height:100%;
    width:auto;
    object-fit:contain;
    border-radius:20px;
    background:#121328;
    box-shadow:0 20px 50px rgba(0,0,0,.25);
}

.video-web{
    aspect-ratio:16 / 9;
}

.video-mobile{
    aspect-ratio:9 / 16;
}


/* BRANDING */


.branding-galeria{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:2rem;
    margin-top:4rem;
}

.branding-galeria img{
    display:block;
    width:100%;
    aspect-ratio:16 / 9;
    object-fit:cover;
    border-radius:24px;
    box-shadow:0 20px 55px rgba(20,20,70,.10);
    transition:transform .4s ease;
}

.branding-galeria img:hover{
    transform:translateY(-8px);
}



/* CONTENIDOS */

.contenidos-galeria{
    position:relative;
    height:760px;
    margin-top:4rem;
}

.contenido-card{
    position:absolute;
    aspect-ratio:9 / 16;
    overflow:hidden;
    border-radius:22px;
    box-shadow:0 20px 50px rgba(0,0,0,.3);
    transition:transform .4s ease,opacity .4s ease,filter .4s ease,box-shadow .4s ease;
    cursor:pointer;
}

.contenido-card img,
.contenido-card video{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
}

.contenido-1{
    width:210px;
    left:0;
    top:100px;
    z-index:2;
}

.contenido-2{
    width:180px;
    left:17%;
    top:20px;
    z-index:1;
}

.contenido-3{
    width:235px;
    left:32%;
    top:170px;
    z-index:3;
}

.contenido-4{
    width:190px;
    left:51%;
    top:40px;
    z-index:2;
}

.contenido-5{
    width:225px;
    right:14%;
    top:190px;
    z-index:4;
}

.contenido-6{
    width:185px;
    right:0;
    top:70px;
    z-index:1;
}

.contenidos-galeria:hover .contenido-card{
    opacity:.55;
    filter:blur(1px);
}

.contenidos-galeria .contenido-card:hover{
    opacity:1;
    filter:none;
    z-index:20;
    transform:scale(1.25);
    box-shadow:0 35px 80px rgba(0,0,0,.55);
}

/* CONSULTORÍA */

.consultoria-imagen{
    margin-top:7rem;
}

.consultoria-imagen img{
    display:block;
    width:100%;
    aspect-ratio:16 / 9;
    object-fit:cover;
    border-radius:30px;
    box-shadow:0 30px 70px rgba(20,20,70,.12);
}

/* CTA FINAL */

.proyectos-final{
    position:relative;
    padding:10rem 0;
    overflow:hidden;
    background:#08091b;
}

.proyectos-final::before{
    content:"";
    position:absolute;
    width:700px;
    height:700px;
    left:-250px;
    top:-300px;
    border-radius:50%;
    background:radial-gradient(circle,rgba(122,94,255,.35),rgba(195,104,255,.15) 45%,transparent 70%);
    filter:blur(20px);
}

.proyectos-final::after{
    content:"";
    position:absolute;
    width:600px;
    height:600px;
    right:-200px;
    bottom:-300px;
    border-radius:50%;
    background:radial-gradient(circle,rgba(255,132,110,.25),rgba(190,100,255,.12) 45%,transparent 70%);
    filter:blur(20px);
}

.proyectos-final-content{
    position:relative;
    z-index:2;
    max-width:1000px;
    text-align:center;
}

.proyectos-final h2{
    font-family:'Rubik', sans-serif !important;
    font-size:3.5em !important;
    font-weight:700 !important;
    line-height:1.12 !important;
    overflow:visible !important;
    padding-bottom:.12em !important;
}

.proyectos-final h2 span{
    font-family:'Rubik', sans-serif !important;
    font-weight:700 !important;
    line-height:1.18 !important;

    display:inline-block;
    padding-bottom:.16em;

    background:linear-gradient(
        90deg,
        #807dfe,
        #c879ff,
        #ff8da1,
        #ffae7a
    );

    -webkit-background-clip:text;
    background-clip:text;
    -webkit-text-fill-color:transparent;
    color:transparent;

    overflow:visible !important;
}

.proyectos-final p{
    max-width:760px;
    margin:2rem auto 2.8rem;
    font-size:1.15rem;
    line-height:1.7;
    color:rgba(255,255,255,.65);
}

.web-showcase-toggle{
    display:none;
}

