@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Gloria+Hallelujah&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');


:root {
    --mainfont: "Poppins", sans-serif;
    --colorletter: #12110F;
    --colorYellow: #FFCC26;
    --colorWhite: #ffffff;
    --itemhover: #e2e2e2;
}

body{
    font-family: var(--mainfont);
    color: var(--colorletter);
}

main{
    flex-direction: column;
    margin-top: 30px;
}

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

img{
    width: 100%;
    height: 100%;
}

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

.flex-align-center{
    display: flex;
    align-items: center;
}

.font-weight{
    font-weight: 500;
}

h1 {
    font-family: "Gloria Hallelujah", cursive;
    font-weight: 400;
    font-style: normal;
}

div h1{
    width: 100%;
    height: auto;
    font-size: 2.6vw;
    text-decoration: 3.5px underline var(--colorYellow);
    margin-bottom: 60px;
    margin-top: 20px;
}

div h3{
    width: 100%;
    height: auto;
    font-size: 1.25vw;
    margin-bottom: 80px;
    text-align:left;
}

h2,
p {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    transition: all 100ms ease-out;
}

h6{
    height: 30px;
    color: #C4C4C4;
    font-size: 1.3vw;
    letter-spacing: 0.3px;
}

a{
    text-decoration: none;
    color: var(--colorletter);
}

header{
    width: 100%;
    height: auto;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    /* backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); */
    position: fixed;
    background-color: var(--colorWhite);
    top: 0;
    z-index: 1000;
}

#header1 {
    height: auto;
    width: 90%;
    display: flex;
}

#logo {
    width: 60%;
    height: auto;
}

#main-title {
    font-size: 2.5vw;
    font-family: "Poppins", sans-serif;
}

#nav{
    width: 100%;
    height: auto;
    display: flex;
    justify-content: right;
    align-items: center;
}

#title-proyectos{
    width: 100%;
    height: auto;
    padding-right: 20px;
    font-size: 1.1vw !important;
}

#title-proyectos:hover{
    text-decoration: 3px underline var(--colorYellow);
}

#btn-descargar{
    border: none;
    width: 20%;
    height: auto;
    border-radius: 5px;
    background-color: #1967d2;
    color: white;
    font-size: 1.1vw !important;
    cursor: pointer;
    padding: 10px;
    box-shadow: 6px 6px 9px rgba(0,0,0,0.2);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 10%;
    height: 20px;
    cursor: pointer;
    margin-left: auto;
    margin-top: 10px;
    margin-bottom: 10px;
}

.hamburger span {
    background: #333;
    height: 3px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Menú colapsable para móviles */
#nav {
    display: flex;
    gap: 10px;
}

/* Botón cerrar (X) */
.close-btn {
    display: none;
    align-self: flex-end;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
}

#introduction{
    width: 90%;
    height: auto;
    margin-bottom: 120px;
    margin-top: 80px;
}

#introduction1{
    width: 100%;
    height: auto;
}

#img-introduction {
    display: inline-grid;
    place-items: center;
    position: relative;
    width: 100%;
    height: auto;
}

.bg-rotated {
    background-color: var(--colorletter);
    transform: rotate(-9deg);
    width: 60%;
    height: auto;
    z-index: 0;
    position: absolute;
}

.framed-img {
    border: 6px solid var(--colorYellow);
    width: 60%;
    height: auto;
    z-index: 1;
    position: relative;
}

.btn-black{
    border: none;
    width: 40%;
    height: auto;
    font-size: 1.2vw;
    border-radius: 5px;
    background-color: #12110F;
    color: var(--colorWhite);
    font-family: "Poppins", sans-serif;
    cursor: pointer;
    padding: 10px;
}

.btn-black:hover{
    border: 2px solid var(--colorletter);
    color: var(--colorletter);
    background-color: var(--colorWhite);
}

#phrase{
    width: 100%;
    height: auto;
    background-image: url("../media/fondo5.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    margin-bottom: 150px;
    margin-top: 30px;
}

#phrase h1{
    border: 5px solid var(--colorYellow);
    font-family: "Poppins", sans-serif;
    text-align: center;
    color: var(--colorletter);
    font-size: 1.9vw;
    width: 70%;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.815);
    margin: 50px;
}

#services{
    width: 100%;
    height: auto;
    flex-direction: column;
    margin-bottom: 150px;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin: auto;
    height: auto;
}

.carousel {
    display: flex;
    overflow-x: auto; /* ⚠️ necesario para scroll en tiempo real */
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
    height: auto;
}
  
.carousel::-webkit-scrollbar {
    display: none;
}

.card:hover{
    transform: scale(0.95);
}
.card {
    flex: 0 0 calc(100% / 4);
    position: relative;
    margin: 0 10px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.title-carousel{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    font-size: 1.2vw;
    color: var(--colorletter);
    font-weight: 600;
    border-radius: 20px;
    border: 2px solid var(--colorYellow);
    margin-bottom: 20px;
}


/*.card {
    flex: 0 0 calc(100% / 4);
    box-sizing: border-box;
    padding: 10px;
    height: 450px;
    margin: 0 10px;
    display: flex;
    justify-content: center;
    align-items: end;
    cursor: pointer;
    border-radius: 10px;
    object-fit: cover;
    transition: transform 0.3s ease;
    width: 100%;
}*/

.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    border: none;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    width: 4%;
    height: auto;
}

.prev:hover{
    border: 4px solid #FFCC26;
}

.next:hover{
    border: 4px solid #FFCC26;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

button img{
    width: 75%;
}

#why-cadt{
    width: 90%;
    height: auto;
    margin-bottom: 90px;
}

#why-cadt h2{
    width: 100%;
    height: auto;
    font-size: 1.9vw;
    text-decoration: 5px underline var(--colorYellow);
}

#why-cadt-container{
    width: 100%;
    height: auto;
    display: flex;
    justify-content: space-between;
    column-gap: 50px;
}

article{
    width: 100%;
    height: auto;
    flex-direction: column;
}

article h3{
    width: 100%;
    font-family: "Gloria Hallelujah", cursive;
    font-weight: 800;
    font-size: 1.35vw;
    height: auto;
    margin-bottom: 20px;
    text-decoration: 3px underline var(--colorYellow);
}

article p{
    width: 100%;
    margin-bottom: 20px;
    font-size: 1.1vw;
    text-align: center;
}

.icon{
    width: 110px;
    height: 110px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.icon img{
    width: 100%;
    height: auto;
}

.star{
    width: 50px;
    height: 50px;
    margin-bottom: 25px;
}

.star img{
    width: 100%;
    height: auto;
}

#projects{
    width: 100%;
    height: auto;
    margin-bottom: 200px;
    flex-direction: column;
}
  
#projects-title{
    width: 90%;
    height: auto;
    margin-bottom: 40px;
}

#projects-title h2{
    width: 100%;
    height: auto;
    font-size: 1.9vw;
}

#img-estrella {
    width: 85px;
    height: 85px;
}

#img-estrella img{
    /*border: 1px solid black;*/
    width: 100%;
    height: auto;
}

.project{
    border: 6px double var(--colorYellow);
    border-radius: 50px;
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    padding: 0;
    height: auto;
    width: 100%;
}

.project:hover{
    border: 6px double var(--colorletter);
}

.project h3{
    width: 100%;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.3vw;
    text-align: center;
    height: auto;
    padding: 20px;
}

.bg-project{
    width: 100%;
    height: auto;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.btn-project{
    background-color: var(--colorletter);
    color: var(--colorWhite);
    border-radius: 0;
    width: 2.5%;
    height: auto;
    font-size: 3vw;
    font-weight: 500;
}

.bg-project img{
    width: 100%;
    height: 100%;
}

#bg-project1 img{
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

#bg-project2 img{
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
}

#bg-project3 img{
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
}

#bg-project4 img{
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
}

#bg-project5 img{
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
}

footer{
    width: 100%;
    height: auto;
    flex-direction: column;
}

#footer1{
    /*border: 1px solid black;*/
    width: 70%;
    height: auto;
    display: flex;
    justify-content: space-evenly;
    margin-bottom: 70px;
}

.footer-container{
    width: 100%;
    height: auto;
    display: flex;
    justify-content: start;
    align-items: start;
}

#container1 .h3-footer{
    font-weight: 400;
    color: #636363;
    font-size: 0.8vw;
}

#container1{
    flex: 2;
    flex-direction: column;
}

#container1 img{
    width: 45%;
    height: auto;
    margin-bottom: 20px;
    display: flex;
    justify-content: left;
}

#container1 h3{
    font-size: 0.9vw;
    font-weight: 600;
    margin-bottom: 15px;
}

#container3{
    flex: 3;
    display: flex;
    justify-content: space-between;
}

.div-container3{
    width: 100%;
    height: auto;
}

.div-container3 p:hover{
    text-decoration: underline;
}

h4{
    width: 100%;
    height: auto;
    font-size: 0.9vw;
    margin-bottom: 25px;
    font-weight: 600;
}

#acerca p{
    font-size: 0.8vw;
}

#privacy p{
    font-size: 0.8vw;
    margin-bottom: 20px;
}

#social h4{
    text-align: center;
}

.social-network{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: auto;
}

.social-network a {
    width: 100%;
    height: auto;
    border-radius: 20%;   
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-network i{
    font-size: 1.5vw;
    transition: transform 0.3s ease;
}

.social-network a:hover {
    background-color: var(--colorYellow);
    transform: scale(1.1);
}

.text-center{
    font-size: 0.8vw;
    margin-bottom: 30px;
}













/*--------------------------------MEDIA MOVIL--------------------------------*/


@media (max-width: 430px) {

    #nav {
        display: none;
        flex-direction: column;
        background-color: rgb(255, 255, 255);
        position: absolute;
        top: 40px;
        right: 0%;
        width: 100%;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        padding: 10px;
        z-index: 999;
    }

    #nav.open {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    #btn-descargar {
        font-size: 4vw !important;
    }

    #btn-descargar {
        width: 100%;
    }

    .close-btn {
        display: flex;
        width: 100%;
        justify-content: right;
        margin-right: 5%;
    }

    h6{
        font-size: 3.5vw;
    }

    div h1{
        
        font-size: 7vw;
        margin-bottom: 40px;
        margin-top: 10px;
    }
    
    div h3{
        font-size: 3.6vw;
        margin-bottom: 50px;
        text-align:center;
    }

    #logo {
        width: 45px;
    }

    #main-title {
        font-size: 5vw;
        margin-left: 5px;
    }

    #title-proyectos{
        padding-right: 0px;
        font-size: 4.2vw !important;
    }

    #title-proyectos:active {
        text-decoration: underline 3px var(--colorYellow);
    }

    #btn-descargar{
        width: 50%;
        font-size: 4vw !important;
        padding: 10px;
        letter-spacing: 0.4px;
        margin: 10px 0px;
    }

    #introduction{
        width: 90%;
        height: auto;
        flex-wrap: wrap;
        margin-bottom: 60px;
        margin-top: 40px;
    }
    
    #introduction1{
        height: 260px;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 20px;
    }

    #img-introduction {
        margin-top: 160px;
    }
    
    .bg-rotated {
        width: 60%;
        height: auto;
    }
    
    .framed-img {
        width: 60%;
        height: auto;
    }

    .btn-black{
        width: 100%;
        font-size: 3.9vw;
        height: 45px;
        padding: 10px;
    }

    #phrase{
        width: 100%;
        height: auto;
        margin-bottom: 60px;
    }
    
    #phrase h1{
        font-weight: 600;
        font-size: 4.1vw;
        width: 100%;
        border: 2px solid var(--colorYellow);
        padding: 6px;
    }

    #services{
        margin-bottom: 60px;
    }
    
    .card {
        flex: 0 0 calc(100% / 1.5); /* 3.5 tarjetas visibles */
        height: auto;
    }
    
    .title-carousel {
        width: 100%;
        font-size: 4vw;
        border: 3px solid var(--colorYellow);
    }
    
    .prev,
    .next {
        width: 15%;
        height: auto;
    }

    #why-cadt{
        margin-bottom: 60px;
    }
    
    #why-cadt h2{
        height: auto;
        font-size: 5.2vw;
        margin-bottom: 15px;
    }
    
    #why-cadt-container{
        height: auto;
        flex-wrap: wrap;
        column-gap: 0px;
        row-gap: 20px;
    }
    
    article{
        height: auto;
    }
    
    article h3{
        font-size: 4.7vw;
        margin-bottom: 10px;
    }
    
    article p{
        font-size: 3.9vw;
    }
    
    .icon{
        width: 80px;
        height: 80px;
        margin-top: 20px;
        margin-bottom: 30px;
    }
    
    .star{
        height: 40px;
        width: 40px;
        margin-bottom: 20px;
        margin-top: 10px;
    }

    #projects{
        margin-bottom: 100px;
    }
      
    #projects-title{
        height: auto;
    }
    
    #projects-title h2{
        font-size: 5vw;
    }
    
    #img-estrella{
        height: 40px;
        margin-right: 10px;
        width: 15%;
    }
    
    .project h3{
        font-size: 4vw;
        height: auto;
        margin-bottom: 0px;
    }
    
    .bg-project{
        width: 100%;
        height: auto;
        border-bottom-left-radius: 40px;
        border-bottom-right-radius: 40px;
    }
    
    .btn-project{
        width: 8%;
        height: 60px;
        font-size: 6vw;
        font-weight: 800;
    }
    
    #footer1{
        width: 90%;
        flex-direction: column;
        margin-bottom: 20px;
    }
    
    .footer-container{
        height: auto;
    }
    
    #container1 .h3-footer{
        font-size: 3.7vw;
    }
    
    #container1{
        flex: 0;
        margin-bottom: 40px;
    }
    
    #container1 img{
        width: 40%;
        margin-bottom: 10px;
    }
    
    #container1 h3{
        font-size: 3.8vw;
        display: flex;
        align-items: start;
    }
    
    #container2{
        flex: 0;
    }
    
    #container2 img{
        height: auto;
    }
    
    #container3{
        flex: 0;
        column-gap: 0px;
    }

    #container3 p{
        font-size: 3.3vw;
    }
    
    h4{
        font-size: 3.8vw;
    }
    
    .social-network{
        justify-content: center;
        height: auto;
    }
    
    .social-network a {
        width: 25%;
        height: 30px;
        transition: 0.3s ease, transform 0.3s ease;
        margin-bottom: 10px;
    }
    
    .social-network i{
        font-size: 6vw;
    }

    .text-center{
        font-size: 3vw;
        margin-top: 30px;
    }

}