@import url('https://fonts.googleapis.com/css2?family=Kode+Mono:wght@400..700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Kode Mono", monospace;
    font-optical-sizing: auto;
    font-style: normal;
}


::-webkit-scrollbar {
    width: 7px;
    background: #000;
}

::-webkit-scrollbar-thumb {
    color: #ff0000;
}

/* === FONDO DE CUADROS QUE SE MUEVE CON EL SCROLL === */
.grid-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* min-height: 400vh; */
    pointer-events: none;
    z-index: -1;

    background-image:
        linear-gradient(rgba(255, 0, 0, 0.253) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 0, 0.253) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0;
    background-repeat: repeat;
    background-color: #000;

    animation: frequencyPulse 5s infinite;
}

@keyframes frequencyPulse {

    0%,
    80%,
    100% {
        background-size: 40px 40px;
        /* normal */
        filter: none;
    }

    82% {
        background-size: 38px 42px;
        /* distorsión ligera */
        filter: brightness(1.5);
    }

    84% {
        background-size: 42px 38px;
        /* distorsión inversa */
        filter: hue-rotate(45deg);
    }

    86% {
        background-size: 39px 41px;
        filter: brightness(1.3);
    }

    88% {
        background-size: 41px 39px;
        filter: hue-rotate(-45deg);
    }

    90% {
        background-size: 40px 40px;
        /* vuelve a normal */
        filter: none;
    }
}

/* === CONTENIDO === */
body {
    background: #000;
    /* color: #ff0000; */
    font-family: 'Courier New', monospace;
    position: relative;
    overflow-x: hidden;
    padding: 0.1px;
    display: flex;
    place-content: center;
    place-items: center;
    flex-wrap: wrap;
}


.fondo {
    top: 0px;
    position: absolute;
    width: 100%;
    height: 100vh;
    /* background: linear-gradient(to top, #000,#00000000,#00000000, #00000000, #00000000, #00000000); */
    /* background-size: cover; */
    opacity: 0.2;
}

.fondo video {
    width: 100%;
    height: 100%;
    object-fit: cover;

}

.fondo::after {
    content: "";
    display: block;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    background: linear-gradient(to top, #000, #00000000, #00000000, #00000000, #00000000, #00000000);
    ;
    position: absolute;
    /* z-index: 2; */
}

.logo {
    display: block;
    max-width: 98%;
    width: 800px;
    height: auto;
    filter: brightness(0.8);
}

.home {
    position: relative;
    width: 100%;
    height: 100vh;
    display: block;
    place-content: center;
    place-items: center;
}

.abajo {
    position: absolute;
    bottom: 30px;
    text-shadow: 0px 0px 20px #ff0000, 0px 0px 40px #ff0000, 0px 0px 60px #ff0000;
    font-weight: bold;
    font-size: 50px;
    color: #ffcccc;
    animation: abajo 1s infinite alternate-reverse;
    place-content: center;
    place-items: center;
    margin: 0 auto;
    left: 50%;
    transform: translate(-50%, 0%);
}


@keyframes abajo {
    0% {
        bottom: 30px;
    }

    100% {
        bottom: 10px;
    }
}

.home p {
    max-width: 100%;
    text-align: center;
    width: 1000px;
    font-size: 1.4em;
    color: #ffdede;
    text-shadow: 0px 0px 20px #ff0000, 0px 0px 40px #ff0000, 0px 0px 50px #ff0000;

}

.home .btns {
    place-content: center;
    place-items: center;
    flex-wrap: wrap;
    margin-top: 30px;
    gap: 30px;
    display: flex;
}

.home .btns a {
    text-decoration: none;
    display: block;
    width: 230px;
    height: 45px;
    text-align: center;
    place-items: center;
    place-content: center;
    border-radius: 10px;
    color: #fff;
    background: #141414;
    box-shadow: 0 0px 24px 0 rgba(255, 0, 0, 0.25), 0 1.5px 0 0 #ff0000;
    text-shadow: 0px 0px 10px #ff0000, 0px 0px 40px #ff0000;
}

.home .btns .a {
    display: block;
    width: 100%;
    text-align: center;
    place-content: center;
    place-items: center;
}



.PROYECTOS {
    width: 100%;
    place-content: center;
    place-items: center;
    min-height: 100vh;
    height: auto;
    margin-top: 100px;
    /* border: 1px solid #fff; */
}

.PROYECTOS h2 {
    text-align: center;
    font-size: 4.2em;
    text-transform: uppercase;
    color: #ffdede;
    text-shadow: 0px 0px 20px #ff0000, 0px 0px 40px #ff0000;
    margin-bottom: 10px;
}

.PROYECTOS p {
    max-width: 100%;
    text-align: center;
    width: 800px;
    font-size: 1.1em;
    color: #ffdede;
    text-shadow: 0px 0px 20px #ff0000, 0px 0px 40px #ff0000, 0px 0px 50px #ff0000;
    margin-bottom: 40px;
}


.tec {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    place-content: left;
    place-items: left;
}

.tec span {
    text-transform: uppercase;
    border-radius: 4px;
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 5px;
    padding-bottom: 5px;
    width: auto;
    height: 25px;
    display: block;
    font-size: 0.9em;
    place-content: center;
    place-items: center;
    display: flex;
    font-weight: bold;
}



.tec i {
    margin-right: 7px;
}

.PROYECTOS .btns {
    display: flex;
    gap: 20px;
}

.PROYECTOS .btns a {
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    display: block;
    width: 150px;
    padding: 0px 20px 0px 20px;
    /* background: #fff; */
    height: 35px;
    text-align: left;
    place-items: center;
    place-content: left;
    border-radius: 10px;
    font-size: 1em;
    display: flex;
    justify-content: space-between;
}

.PROYECTOS .btns a:nth-child(1) {
    color: #fff;
    background: linear-gradient(to right, red, red, rgb(126, 0, 0), rgb(51, 0, 0), #000, #000);
    /* box-shadow: 0 0px 10px 0 rgba(255,0,0,0.25); */
    border: 1px solid #ff0000;
}

.PROYECTOS .btns a:nth-child(1) svg {
    font-weight: bold;
    color: white;
    width: 20px;
    /* font-weight: bold; */
    /* margin-right: 10px; */
    display: block;
    /* font-size: 1em; */
}


.PROYECTOS .btns a:nth-child(2) {
    border: 1px solid #ff0000;
    color: #fff;
}

.PROYECTOS .btns a:nth-child(2) svg {
    color: white;
    width: 22px;
    display: block;
    /* font-size: 1em; */
}

.carusel {
    width: 100%;
    place-content: center;
    place-items: center;
}

.item {
    /* height: 100vh; */
    max-width: 100%;
    width: 1200px;
    display: flex;
    flex-wrap: wrap;
}

.left {
    max-width: 100%;
    width: 600px;
    flex-wrap: wrap;
    place-content: center;
    place-items: left;
}

.tipo {
    width: 100%;
    display: flex;
    align-items: flex-end;
}

.tipo i {
    width: 65px;
    height: 65px;
    border-radius: 1000px;
    background: linear-gradient(120deg, rgba(255, 0, 0, 1) 0%, rgba(255, 121, 0, 1) 50%, rgba(255, 242, 0, 1) 100%);
    place-content: center;
    place-items: center;
    display: flex;
    font-weight: bold;
    font-size: 1.7em;
    color: white;
    z-index: 2;
}

.tipo span {
    height: 37px;
    /* background: rgba(247, 55, 55, 0.466); */
    color: rgb(0, 0, 0);
    background: linear-gradient(240deg, rgba(255, 121, 0, 1) 0%, #fff200 100%);
    font-weight: bold;
    font-size: 1.1em;
    text-transform: uppercase;
    place-content: center;
    place-items: center;
    padding-left: 50px;
    margin-left: -40px;
    padding-right: 20px;
    border-radius: 10px;
    /* border: 1px solid rgb(255, 198, 198); */
}



.left .text {
    color: white;
}

.left .text h3 {
    text-transform: uppercase;
    font-size: 3em;
    margin-top: 20px;
    margin-bottom: 20px;
}

.left .text p {
    text-shadow: none;
    color: white;
    text-align: left;
    width: 550px;
}


.cali {
    margin-top: 20px;
    color: white;
    /* place-content: center; */
    place-items: left;
    text-align: left;
    place-content: left;
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.cali span {
    height: 40px;
    display: flex;
    place-content: center;
    place-items: center;
    color: #ff9999;
}

.cali svg {
    width: 20px;
    height: 20px;
}

.cali span p {
    margin: 0;
    margin-left: 10px;
    text-shadow: none;
    color: #ff9999;
    width: auto;
}


.rith {
    flex-wrap: wrap;
    max-width: 100%;
    display: flex;
    place-content: center;
    place-items: center;
    width: 600px;
}

.rith img {
    width: 100%;
    height: 100%;
}


.rith .img {
    max-width: 98%;
    cursor: pointer;
    border: 2px solid #fff;
    overflow: hidden;
    border-radius: 15px;
    display: block;
    width: 550px;
    height: 350px;
    position: relative;
    transition: 1s;
}

.item:hover .img {
    scale: 1.1;
    transition: 1s;
}

.rith span {
    text-transform: uppercase;
    bottom: 0px;
    display: flex;
    position: absolute;
    width: 100%;
    height: 50px;
    display: flex;
    /* place-content: center; */
    place-items: center;
    justify-content: space-between;
    color: #fff;
    font-weight: bold;
    background: #00000073;
}

.rith p {
    margin: 0;
    margin-left: 40px;
    text-shadow: none;
    box-shadow: none;
    width: auto;
    height: auto;
    display: block;
}

.rith i {
    margin-right: 40px;
}


.rdr {
    margin-top: 50px;
    gap: 15px;
    /* position: absolute; */
    /* bottom: 30px; */
    /* left: 50%; */
    /* transform: translate(0%, -50%); */
    /* text-align: center; */
    display: flex;
    place-content: center;
    place-items: center;
    width: 100%;
}

.rdr span {
    border-radius: 1000px;
    background: #6d0000;
    width: 20px;
    height: 20px;
    display: block;
}

.rdr span.act {
    background: rgb(255, 126, 126);
    box-shadow: 0 0px 10px 0 rgb(255, 0, 0), 0 0px 20px 10px rgb(255, 0, 0);
}

.servicios {
    margin-top: 100px;
    width: 100%;
    min-height: 100vh;
    height: auto;
    place-content: center;
    place-items: center;
    display: flex;
    flex-wrap: wrap;
}

.servicios h2 {
    text-align: center;
    display: block;
    width: 100%;
    font-size: 4.2em;
    text-transform: uppercase;
    color: #ffdede;
    text-shadow: 0px 0px 20px #ff0000, 0px 0px 40px #ff0000;
    margin-bottom: 40px;
}


.cartas {
    display: flex;
    gap: 20px;
    place-content: center;
    place-items: center;
    width: 1200px;
    flex-wrap: wrap;
}

.carta {
    perspective: 1000px;
    width: 250px;
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.1s ease;
    box-shadow: 0 5px 10px rgba(148, 0, 0, 0.5);
    /* background: #000; */
    position: relative;
}


.carta img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}



.contacto {
    width: 100%;
    min-height: 100vh;
    height: auto;
    place-content: center;
    place-items: center;
    display: flex;
    flex-wrap: wrap;
}

.carta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%),
            rgba(255, 255, 255, 0.233),
            transparent 40%);
    pointer-events: none;
    transition: background 0.2s;
    display: none;
}

.carta:hover::before {
    display: block;
}
.contac_car {
    margin: 0 auto;
    max-width: 95%;
    background: linear-gradient(to left, #811719, #2e0709, #000, #2e0709, #811719);
    place-content: center;
    place-items: center;
    width: 1500px;
    padding-top: 100px;
    padding-bottom: 100px;
    border-radius: 30px;
}


.icon svg {
    width: 90px;
}

.contac_car h4 {
    text-align: center;
    max-width: 98%;
    margin-top: 20px;
    text-shadow: 0px 0px 20px #ff0000, 0px 0px 40px #ff0000, 0px 0px 50px #ff0000;
    font-size: 3em;
    color: white;
}

.contac_car p {
    max-width: 90%;
    margin-top: 20px;
    text-align: center;
    width: 1000px;
    color: rgb(255, 235, 235);
}

.contac {
    max-width: 100%;
    margin: 0 auto;
    margin-top: 40px;
    display: flex;
    place-content: center;
    place-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contac_car input {
    max-width: 90%;
    border-radius: 10px;
    padding: 10px;
    height: 50px;
    width: 400px;
    text-align: left;
    background: #161515;
    outline: none;
    border: 2px solid rgb(110, 0, 0);
    font-size: 1em;
    text-transform: uppercase;
    color: red;
    font-weight: bold;
}

.contac_car input::placeholder {
    color: #ff6366;
    font-weight: bold;
}

.contac button {
    border-radius: 10px;
    gap: 10px;
    height: 50px;
    display: flex;
    width: 170px;
    place-content: center;
    place-items: center;
    font-weight: bold;
}

.contac svg {
    width: 20px;
    font-weight: bold;
}

.sevillo {
    font-size: 0.8em;
    margin-top: 10px;
    display: block;
    color: rgb(255, 197, 197);
}


@media (max-width: 1210px) {
    .PROYECTOS {
        margin-top: 100px;
        margin-bottom: 200px;
    }

    .PROYECTOS .left {
        max-width: 98%;
        margin: 0 auto;
        width: 650px;
        place-content: center;
        place-items: center;
        margin-bottom: 30px;
    }

    .PROYECTOS .text {
        margin: 0 auto;
        max-width: 98%;
    }

    .PROYECTOS .rith {
        margin: 0 auto;
        width: 98%;
        margin-top: 30px;
    }

    /* .PROYECTOS .rith .img{
        margin: 0 auto;
        width: 100%;
        height: auto;
    } */

    .rith .img {
        cursor: pointer;
        transition: 1s;
    }

    .img img {
        object-fit: cover;
    }

    .item:hover .img {
        scale: 1.0;
        transition: 1s;
    }

    .cartas {
        max-width: 98%;
    }


}



@media (max-width: 530px) {
    *{
        font-size: 98%;
    }
    .left .text h3 {
    text-transform: uppercase;
    font-size: 3em;
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
}
    .text p{
        margin-left: 5px;
    }
    .tec{
        margin: 0 auto;
        max-width: 98%;
        place-content: center;
        place-items: center;
        justify-content: center;
    }
    .home .btns {
        gap: 10px;
    }

    .home .btns a {
        width: 220px;
        height: 45px;
    }
}