.particles-js {
    background: #00b1c7;
    background-image: url('../../images/modales/luminares-servicios.webp');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* z-index: 1; */
}

/* Efectos Servicios */
#constelacion {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* background-color: red; */
}

.texto-servicio {
    position: absolute;
    color: white;
    font-family: 'AcuminB';
    font-weight: bold;
    z-index: 10;
    /* Asegura que estén sobre el canvas */
    pointer-events: auto;
    padding: 8px 12px;
    /* background: rgba(0, 0, 0, 0.3); */
    /* Fondo semitransparente */
    border-radius: 6px;
    text-align: center;
    width: 240px;
    /* Ancho mínimo para consistencia */
    /* backdrop-filter: blur(4px); */
    transform: translate(-50%, -50%);
    /* Centrado preciso */

}

.texto-servicio {
    position: absolute;
    color: white;
    font-family: sans-serif;
    z-index: 10;
    /* pointer-events: none; */
    font-size: clamp(18px, 3vw, 12px);
    line-height: 1.4;
    padding: 4px 8px;
    /* background-color: rgba(0, 0, 0, 0.7); */
    border-radius: 6px;
    max-width: 160px;
    font-family: 'AcuminB';
    font-size: 18px;


    transition: all 0.3s ease;
}

/* Posiciones aproximadas para desktop */
#t0 { left: 10%; top: 20%; }
#t1 { left: 5%; top: 50%; }
#t2 { left: 40%; top: 65%; }
#t3 { left: 70%; top: 80%; }
#t4 { left: 85%; top: 70%; }
#t5 { left: 85%; top: 35%; }
#t6 { left: 45%; top: 15%; }

/* Posiciones iniciales aproximadas para mobile (se reescriben por media query) */
@media (max-width: 540px) {
  #t0 { left: 60%; top: 10%; }
  #t1 { left: 60%; top: 22%; }
  #t2 { left: 60%; top: 34%; }
  #t3 { left: 60%; top: 46%; }
  #t4 { left: 60%; top: 58%; }
  #t5 { left: 60%; top: 70%; }
  #t6 { left: 60%; top: 82%; }
}
.heBacCon {
    height: 500px;
}
.texto-servicio:hover {
    animation: sparkle1 .5s ease-in-out;
    color: #FFC35D;
    font-weight: bold;
}

@keyframes sparkle1 {
    0% {
        text-shadow: 0 0 5px rgba(255, 195, 93, 0.8);

    }

    50% {
        text-shadow: 0 0 20px rgba(255, 195, 93, 0.8);

    }

    100% {
        text-shadow: 0 0 0px rgba(255, 195, 93, 0.8);

    }
}

@media screen and (max-width:1280px) {
    #constelacion {
        height: 85%;
    }
        .heBacCon {
        height: 400px;
    }
}

@media screen and (max-width:1024px) {
    #constelacion {
        height: 100%;
    }
}

@media screen and (max-width:998px) {

    /* Efectos Servicios */
    #constelacion {
        height: 88%;
    }
        .heBacCon {
        height: 450px;
        /*background: red;*/
    }
}

@media screen and (max-width:540px) {
    #constelacion {
        height: 100%;
    }

    .texto-servicio {
        left: 15% !important;
        right: 0% !important;
        width: 100% !important;
        text-align: left;
        transform: none !important;
        margin-left: 0 !important;
        /* background-color: rgba(0, 0, 0, 0.8); */
        padding: 0px 0px;
        /* border-left: 2px solid #00ffd4; */
        /* margin-top: -3.5rem; */
        animation: none;
    }
}

/* Estilos específicos para móvil */
@media (max-width: 468px) {

    #constelacion {
        height: 100%;
    }

    .texto-servicio {
        font-size: 14px;
    }
        .heBacCon {
        height: 600px;
        /* background: red; */
    }
}

/* Estilos para desktop */
@media (min-width: 769px) {
    .texto-servicio {
        text-align: center;
        background-color: transparent;
        transform: translateX(-50%);
        max-width: 200px;
    }
}

@media screen and (max-width:280px) {
    .texto-servicio {
        font-size: clamp(15px, 3vw, 12px);
    }

    .titlServ {
        font-size: 45px;
    }

    .contServ {
        font-size: 15px;
    }
}


.cont {
    width: 500px;
    height: 500px;
    list-style-type: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 20px;
    box-shadow: 0 20px 30px rgba(255, 255, 255, 0.3) inset;
    transition: transform 0.1s, left 0.75s, top 0.75s, width 0.75s, height 0.75s;
    left: 60%;
}

.cont .circleLight {
    top: 0px;
    left: 0px;
    opacity: 0;
    content: '';
    width: 100%;
    height: 100%;
    display: block;
    transition: 0.5s;
    position: absolute;
    border-radius: 20px;
    background: radial-gradient(circle at 80px 40px, #fff, transparent);
}

.cont:hover .circleLight {
    opacity: 0.4;
}

.cont:hover {
    box-shadow: 0px 0px 70px #b5b5b5;
    /* top: 50%; */
    /* transform: scale(1.02); */
}

main {
    position: relative;
    width: 100%;
    height: 85vh;
    background: rgba(255, 255, 255, 0.418);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    overflow: hidden;

}

.item {
    width: 500px;
    height: 500px;
    list-style-type: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 20px;
    box-shadow: 0 20px 30px rgba(255, 255, 255, 0.3) inset;
    transition: transform 0.1s, left 0.75s, top 0.75s, width 0.75s, height 0.75s;
    left: 60%;
}

.item:nth-child(1) {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transform: none;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
}

.content {
    width: min(40vw, 45rem);
    position: absolute;
    top: 50%;
    left: -54%;
    transform: translate(-100%, -50%);
    font: 400 0.85rem helvetica, sans-serif;
    color: white;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
    opacity: 0;
    display: none;
}

.content .title {
    font-family: 'arial-black';
    text-transform: uppercase;
}

.content .description {
    line-height: 1.7;
    margin: 1rem 0 1.5rem;
    font-size: 0.8rem;
}

.content button {
    width: fit-content;
    background-color: rgba(0, 0, 0, 0.1);
    color: white;
    border: 2px solid white;
    border-radius: 0.25rem;
    padding: 0.75rem;
    cursor: pointer;
}

.item:nth-of-type(2) .content {
    display: block;
    animation: show 0.75s ease-in-out 0.3s forwards;
}

@keyframes show {
    0% {
        filter: blur(5px);
        transform: translateY(calc(-50% + 75px));
    }

    100% {
        opacity: 1;
        filter: blur(0);
    }
}

.nav {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    user-select: none;
}

.nav .btn {
    color: #ACACAC;
    border: 2px solid #ACACAC;
    margin: 0 0.25rem;
    padding: 0.75rem;
    border-radius: 50%;
    cursor: pointer;
}

.nav .btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}



@media screen and (max-width:1440px) {
    .content {
        left: -40%;
    }

    .content {
        width: min(45vw, 45rem);
    }

    .cont,
    .item {
        width: 400px;
        height: 400px;
        left: 62%;
    }
}

@media screen and (max-width:1366px) {
    main {
        height: 60vh;
    }

    .cont,
    .item {
        width: 350px;
        height: 350px;
        left: 65%;
    }

    .content {
        left: -50%;
        width: min(49vw, 45rem);
    }

}

@media screen and (max-width:1024px) {
    main {
        height: 45vh;
    }

    .cont,
    .item {
        width: 300px;
        height: 300px;
        left: 60%;
    }

    .content {
        left: -29%;
    }
}

@media screen and (max-width:991px) {
    .content {
        left: -22%;
    }
}

@media screen and (max-width:768px) {
    main {
        height: 80vh;
    }

    .cont,
    .item {
        width: 500px;
        height: 500px;
        left: 17%;
        top: 34%;
    }

    .content {
        left: 65%;
        top: 84%;
        transform: translate(-50%, 100%);
        /* background: red; */
        width: min(80vw);
    }
}

@media screen and (max-width:540px) {
    main {
        height: 85vh;
    }

    .cont,
    .item {
        width: 250px;
        height: 250px;
        left: 29%;
        top: 25%;
    }

    .content {
        left: 47%;
        top: 65%;
        transform: translate(-50%, 100%);
        /* background: red; */
        width: min(100vw);
        padding: 1rem 1rem 1rem 1rem;
    }
}

@media screen and (max-width:468px) {

    .cont,
    .item {
        width: 250px;
        height: 250px;
        left: 50%;
        top: 20%;
        transform: translate(-50%, -50%);
    }

    .content {
        left: 50%;
        top: 60%;
        transform: translate(-50%, 100%);
        /* background: red; */
        width: min(100vw);
        padding: 2rem 2rem 2rem 2rem;
    }
}

@media screen and (max-width:430px) {
    main {
        height: 75vh;
    }
}

@media screen and (max-width:428px) {
    main {
        height: 95vh;
    }
}

@media screen and (max-width:390px) {
    main {
        height: 100vh;
    }
}

@media screen and (max-width:360px) {

    .cont,
    .item {
        left: 50%;
        top: 30%;
        transform: translate(-50%, -50%);
    }

    .content {
        top: 40%;
    }
}

@media screen and (max-width:320px) {

    .cont,
    .item {
        top: 25%;
    }

    .content {
        top: 50%;
    }

    main {
        height: 110vh;
    }
}

