@import url(./variables.css
);

.unidades {
    display: flex;
    height: 100vh;
}

.barra-verde {
    background-color: var(--color-secundario-verde-claro);
    height: 5px !important;
}

.icon-item {
    color: var(--color-primario-blanco);
    display: flex;
    flex-direction: column;
    align-items: center;
    /* margin: 0 auto; */
    padding: 0;
    /* Elimina el padding lateral */
}

.icon-item svg {
    width: 70px !important;
    /* Más pequeño para unir más */
    height: 70px !important;
    display: block;
    /* margin: 0 auto; */
}

.icon-item span {
    font-weight: 700;
    font-size: 1.3rem;
    text-align: center;
    /* margin-top: 10px; */
    word-break: break-word;
    /* width: 100%; */
    display: block;
}

.section-1 {
    background: #131313;
    color: var(--white);
}

/* Tira gris con degradado desde los lados al centro */
.grey-strip {
    top: -12px;
    position: relative;
    background: #2a2a2a;
    padding: 18px 0;
    overflow: hidden;
    z-index: 0;
    /* Asegura que el contenido esté por encima del ::before */
}

.grey-strip::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.5) 0%,
            rgba(0, 0, 0, 0.0) 40%,
            rgba(0, 0, 0, 0.0) 60%,
            rgba(0, 0, 0, 0.5)100%,
            rgba(0, 0, 0, 0.85) 100%);
    pointer-events: none;
    z-index: -1;
    /* Hace que el degradado quede detrás del contenido */
}

.grey-strip .content-icon-varios {
    padding: 0px 30px 0px 30px !important;
    /* Limita el ancho máximo para que los íconos no se estiren demasiado */
}

.icon-item {
    font-family: "Poppins", sans-serif;
    font-weight: 300;
}

/* ...existing code... */
.unidades-section {
    background: #131313;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* Título vertical sobresaliendo a la izquierda */
.unidades-title-vertical {
    position: absolute;
    left: -50px;
    /* sobresale 40px fuera de la pantalla */
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    font-size: clamp(0.9rem, 10vw, 8rem);
    font-weight: 800;
    color: #fff;
    line-height: 0.7;
    letter-spacing: 0px;
    background: #232323;
    border-radius: 30px;
    padding: 60px 10px 60px 75px;
    /* más padding a la izquierda */
    box-shadow: 8px 0 30px 0 #0006;
    /* min-width: 220px; */
    text-align: left;
    width: 16%;
    /* Opcional: transición suave si quieres animar */
    transition: left 0.3s;
}

.unidades-title-vertical .unidades-nombre:nth-child(2) {
    display: none !important;
    transition: all 0.3s ease-in-out;
}

.unidades-box {
    padding-right: 12px !important;
    border-radius: 40px 0px 0px 40px;
    border-bottom: 1px solid #fff;
    border-left: 1px solid #fff;
    border-top: 1px solid #fff;
    /* box-shadow: 0 0 30px #000a; */
    width: 100%;
    max-width: 720px;
}

.unidades-box .unidades-item:nth-child(2) .unidades-desc {
    padding-right: 32px !important;
}

.unidades-box .unidades-item:nth-child(3) .unidades-desc {
    padding-right: 7rem !important;
}

.unidades-item {
    display: flex;
    align-items: center;
    gap: 18px;
}

.unidades-logo {
    font-weight: 700;
    font-size: 1.6rem;
    padding: 15px 18px;
    border-radius: 15px;
    color: #fff;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 6px;
}

.unidades-item img {
    width: 40%;
    height: auto;
}

.unidades-desc {
    color: #fff;
    font-size: 1.4rem;
    line-height: 0.9;
    font-weight: 100;

}

.unidades-btn {
    display: flex;
    background: #232323;
    color: #fff;
    font-size: 1.6rem;
    border-radius: 10px;
    padding: 6px 8px 6px 15px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 2px 8px #0004;
    border: 2px solid #232323;
    transition: border 0.2s;
}

.unidades-btn .aqui {
    background: #181818;
    color: #fff;
    border: 2px solid var(--color-secundario-verde-claro);
    border-radius: 6px;
    padding: 0px 5px 0px 5px;
    font-weight: 700;
    margin: 0px 5px 0px 5px;
    display: flex;
    justify-content: center;
}



/* .unidades-btn:hover {
    border: 2px solid var(--color-secundario-verde-claro);
} */

.unidades-glow {
    position: absolute;
    top: 50%;
    left: auto;
    right: -24px;
    /* pegado a la derecha */
    width: 520px;
    height: 520px;
    color: #8be900;
    /* para usar con currentColor en el núcleo */
    /* permitir visibilidad completa para estirar hacia la izquierda */
    -webkit-mask-image: none;
    mask-image: none;
    transform: translateY(-50%);
    z-index: 1;
    pointer-events: none;
}

.unidades-glow::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 86%;
    /* más hacia la derecha para que el cuadrado sea el origen */
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    /* núcleo cuadrado + puntas más estiradas hacia la izquierda */
    background:
        /* punta superior izquierda (más larga y contrastada) */
        radial-gradient(ellipse 240% 58% at 0% 0%,
            rgba(139, 233, 0, 0.72) 0%,
            rgba(139, 233, 0, 0.46) 26%,
            rgba(139, 233, 0, 0.22) 52%,
            rgba(139, 233, 0, 0.10) 72%,
            rgba(139, 233, 0, 0.0) 86%),
        /* punta inferior izquierda (más larga y contrastada) */
        radial-gradient(ellipse 240% 58% at 0% 100%,
            rgba(139, 233, 0, 0.72) 0%,
            rgba(139, 233, 0, 0.46) 26%,
            rgba(139, 233, 0, 0.22) 52%,
            rgba(139, 233, 0, 0.10) 72%,
            rgba(139, 233, 0, 0.0) 86%),
        /* núcleo sólido cuadrado */
        linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    opacity: 0.34;
    /*border-radius: 18px; cuadrado suave */
    filter: blur(220px);
}

body main .unidades-btn2 {
    display: none !important;
    transition: all 0.3s ease-in-out;
}

.esfera {
    z-index: 0;
    /* width: 100vw; */
    position: absolute;
    right: 9rem;
}

.esfera svg {
    width: 85rem !important;
}


.img-movil {
    display: none;
}


/* Tablets grandes (1024px y menos) */
@media (max-width: 990px) {
      .unidades-desc {
        width: 85%;
        font-size: 1.6rem !important;
    }

    .unidades-item {
        width: 25rem !important;
    }
}

@media (max-width: 490px) {
      .unidades-desc {
        font-size: 1rem !important;
    }

    .unidades-item {
        width: 21rem !important;
    }
}
/* Responsive: en móviles, que no sobresalga tanto */
@media (max-width: 1024px) {
    .img-movil {
    display: flex;
    }
    .img-pc {
        display: none;
    }
    .grey-strip {
        padding: 40px 0px;
    }
    .unidades {
        height: 100%;
    }

    .unidades-desc {
        width: 100%;
        font-size: clamp(0.8rem, 10vw, 2rem);
    
    }

    .content-unidad {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .unidades-box .unidades-item:nth-child(2) .unidades-desc {
        padding-right: 0px !important;
    }

    .unidades-box .unidades-item:nth-child(3) .unidades-desc {
        padding-right: 0rem !important;
    }


    .unidades-title-vertical .unidades-nombre:nth-child(2) {
        display: flex !important;
        transition: all 0.3s ease-in-out;
    }

    .unidades-title-vertical .unidades-nombre:nth-child(1) {
        display: none !important;
        transition: all 0.3s ease-in-out;
    }



    .unidades-title-vertical::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 80px;
        /* Ajusta esta altura para controlar la longitud del degradado */
        pointer-events: none;
        /* Permite hacer clic en el contenido debajo del degradado */

        /* El Degradado: De negro a transparente */
        background: linear-gradient(to bottom,
                rgb(19, 20, 19) 0%,
                /* Negro casi opaco en la parte superior */
                rgba(0, 0, 0, 0.0) 100%
                /* Totalmente transparente al final */
            );


    }

    .unidades-title-vertical {
        margin-top: 140px;
        display: flex;
        justify-content: center;
        position: relative;
        border-radius: 0px 0px 20px 20px;
        left: 0px;
        top: 0%;
        width: 60%;
        font-size: 2.5rem;
        padding: 40px 10px 30px 10px;
        box-shadow: none !important;
    }

    .unidades-title-vertical span {
        z-index: 1;
    }

    .unidades-item {
        width: 35rem;
        flex-direction: column;
        text-align: center;
    }

    .unidades-item img {
        width: 80%;
    }

    .unidades-item:nth-child(1),
    .unidades-item:nth-child(2) {
        margin-bottom: 25px !important;
    }

    .unidades-box {
        border-radius: 0px 0px 0px 40px;
        border-bottom: 0px solid #fff;
        border-left: 0px solid #fff;
        border-top: 0px solid #fff;
        /* box-shadow: 0 0 30px #000a; */
    }

    .unidades-btn {
        margin-bottom: 30px;
        font-size: clamp(16px, 3vw, 1.6rem);
    }


    body main .unidades-btn2 {
        margin-bottom: 7rem;
        display: flex !important;
    }


    body main .unidades-btn1 {
        display: none !important;
    }

    .esfera {
        right: 0
    }

    .esfera svg {
        position: relative;
        width: 49rem !important;
        height: auto !important;
        right: 185px;
        top: -15px;
    }

    .icon-item svg {
        width: 60px !important;
        height: 60px !important;
    }

    .icon-item span {
        font-size: 1rem;
        font-weight: 600;
    }


    .grey-strip .content-icon-varios {
        padding: 0px 10px 0px 10px !important;
    }

    body main .barra-verde {
        display: none !important;
    }

    body main .unidades-box {
        display: flex;
        padding: 0px 0px 20px 0px !important;
        flex-direction: column;
        align-items: center;
    }


}

@media (max-width: 392px) {

    .strip-icons div:nth-of-type(5),
    .strip-icons div:nth-of-type(4) {
        margin-top: auto;
    }

    .grey-strip .content-icon-varios {
        padding: 7px !important;
    }


}

/* Responsive: en pantallas grandes, que no sobresalga tanto */
@media (min-width: 1600px) {
    .unidades-title-vertical {
        font-size: clamp(10rem, 10vw, 200rem);
        width: 16.5%;
    }
}

@media (min-width: 1400px) {
    .grey-strip{
        top: 0 !important;
    }
}



/* ...existing code... */