/* Custom propertys */

:root {
    --blue-dark-color: #0F172A;
    --blue-dark-alpha-color: rgba(15, 23, 42, 0.8);
    --blue-light-color: #22D3EE;
    --pink-color: #d946ef;
    --pink-alpha-color: rgba(217, 70, 239, 0.7);
    --pink-dark-color: #8f399c;
    --text-color: #1E293B;
    --bg-color: #F8FAFC;
    --bg-alpha-color: rgba(255, 255, 255, 0.6);
}
  
  
  
/* Reset styles */
  
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body{
    scroll-padding-top: 80px;
    scroll-behavior: smooth;
    font-size: 16px;
    width: 100%;
    height: auto;
    font-family: 'Raleway', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: hidden;
}

h1{
    font-weight: bold;
    text-align: center;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgb(217, 70, 239, 0.7);
}

h2{
    font-weight: bold;
}

h3{
    color: var(--pink-color);
    font-weight: bold;
}

h4{
    color: var(--blue-light-color);
    font-weight: bold;
}

h2 span{
    color: var(--pink-color);
    font-weight: bold;
}

a{
    transition: all .3s ease-in-out;
    text-decoration: none;
}

a:hover{
    color: var(--pink-color);
}

li{
    list-style: none;
}

.img-fluid {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.container{
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    gap: 5rem;
}

.line{
    margin: 5rem auto;
    display: flex;
    width: 100%;
    height: 2px;
    background-color: var(--blue-light-color);
}

.btn {
    display: inline-block;
    background-color: var(--pink-dark-color);
    color:var(--bg-color);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    max-width: 200px;
    font-weight: bold;
}

.btn:hover {
    background-color: var(--pink-color);
}



  
/* My styles */
  
@keyframes transicionX {
    0%{
        transform: translateX(-200px);
    }

    100%{
        transform: translateX(0);
    }
}

@keyframes saltar{
    0%{
        transform: scale(1);
    }

    50%{
        transform: scale(1.1);
    }

    100%{
        transform: scale(1);
    }
}

@keyframes transicionY {
    0%{
        transform: translateY(0);
    }

    50%{
        transform: translateY(30px);
    }

    100%{
        transform: translateY(0);
    }
}

.viajando{
    animation-name: transicionY;
    animation-duration: 2s;
    animation-fill-mode: both;
    animation-iteration-count: infinite;
}

.empezar{
    animation-name: saltar;
    animation-duration: 1.5s;
    animation-fill-mode: both;
    animation-iteration-count: infinite;
}

.bg-pink-color{
    background-color: var(--pink-color);
}

.text-third{
    color: var(--pink-color);
}

.bg-color{
    background-color: var(--bg-color);
}

.text-first-color{
    color: var(--blue-dark-color);
}

.animacion{
    animation-name: button;
    animation-duration: 1.5s;
    animation-iteration-count: infinite;
}

@keyframes button {
    0%{
        transform: scale(1);
    }

    50%{
        transform: scale(1.2);
    }

    100%{
        transform: scale(1);
    }
}

/* Efectos */

.fadeTop {
    opacity: 0; 
    transform: translate(0, 10vh);
    transition: all 1s;
}

.fadeRight {
    opacity: 0;
    transform: translate(10vh, 0vh);
    transition: all 1s;
}

.fadeLeft {
    opacity: 0;
    transform: translate(-10vh, 0vh);
    transition: all 1s;
}

.visible {
    opacity: 1;
    transform: translate(0, 0);
}

.none{
    display: none;
}
  







/* General navbar styles */
.navbar {
    position: fixed;
    max-width: 1200px;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 2rem;
    background-color: var(--blue-dark-color);
    color: var(--pink-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.navbar-brand p{
    color: var(--bg-color);
}

.navbar-brand p:hover{
    color: var(--pink-color);
}

.navbar-brand img {
    height: 65px;
}

.navbar-text {
    display: none;
}

/* Menu */
.menu-btn{
    outline: thin-solid var(--blue-dark-color);
    border: 0;
    cursor: pointer;
    background-color: var(--blue-dark-color-color);
}

.menu-btn svg{
    fill: var(--pink-color);
    width: 2.8rem;
    height: auto;
}

.menu-btn svg:last-child{
    fill: var(--blue-light-color);
    width: 2.8rem;
    height: auto;
}

.navbar-menu {
    display: none;
}

.is-active{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 1rem;
    width: 100%;
    transition: all 0.3s ease;
    pointer-events: auto;
}

@media (min-width: 768px) {
    .menu-btn{
        display: none;
    }

    .navbar-menu{
        display: flex;
    }

    .navbar-text{
        margin-top: 15px;
        display: flex;
        font-weight: bold;
        white-space: nowrap;
        overflow: hidden;
        color: var(--bg-color);
    }
}

/* Links */
.navbar-links {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.navbar-links li {
    font-weight: bold;
    font-size: 18px;
}

.nav-link:hover {
    color: var(--bg-color);
}

#icon-rrss{
    color: var(--blue-light-color);
}

@media (min-width: 768px) {
    .navbar-links {
        flex-direction: row;
        gap: 1.5rem;
    }
}

@keyframes fadeLeft {
    0% {
      opacity: 0;
      transform: translateX(-200px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
}
  
.logo-animado {
    width: 100px;
    object-fit: cover;
    animation: fadeLeft 1s ease-out forwards;
    opacity: 0;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}






/*----------------------Inicio----------------------------*/
main{
    margin-top: 120px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#presentacion{
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

}

.first-content, .second-content{
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 5rem;
    text-align: left;
}

.first-content article, .second-content article{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.first-content article div{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.second-content article div{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}




/*Cards*/
#cards{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 1rem;
}

.container-card {
    display: flex;
    flex-direction: column;
    width: 350px;
    border: 2px solid var(--blue-light-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease-in-out;
    border-radius: 8px;
    background-color: var(--bg-color);
    padding: 0.7rem;
    gap: 1rem;
}

.container-card ion-icon {
    color: var(--blue-dark-color-color);
    font-size: 2rem;
}

.card{
    flex: 1;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    flex-direction: column;
    padding: 1rem;
    gap: 0.5rem;
    color: var(--bg-color);
    background-color: var(--blue-dark-color);
}

.card-btn{
    display: inline-block;
    align-items: center;
    padding: 1rem;
    background-color: var(--pink-color);
    border-radius: 10px;
    color: var(--blue-dark-color);
    font-weight: bold;
}

.card-btn:hover{
    background-color: var(--pink-dark-color);
    color: var(--bg-color);
}

.arrow {
    display: inline-block;
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.card-btn:hover .arrow {
    transform: translateX(4px);
}







@media (min-width: 768px) {
    .first-content{
        display: grid;
        grid-template-columns: 1.3fr 1fr;
        place-content: center;
    }

    .first-content article{
        flex-direction: column;
    }

    .second-content{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        place-content: center;
    }

    .second-content-text{
        order: 2;
    }

    #cards{
        flex-direction: row;
    }
}












/*--------------------------Servicios------------------------------*/
#servicios{
    text-align: center;
    width: 100%;
    height: auto;
}

#servicios h2{
    margin-bottom: 3rem;
}

.servicios{
    padding: 0.5rem;
    background-color: var(--blue-dark-color);
    color: var(--bg-color);
}

.service-card{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem auto;
    padding: 1rem;
    text-align: center;
    border: 2px solid var(--bg-color);
}

.service-card svg{
    fill: var(--blue-light-color);
}


@media (min-width: 768px) {
    .servicios{
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        place-items: center;
        gap: 1rem;
        padding: 3rem;
    }

    .service-card{
        max-width: 320px;
        align-items: center;
        justify-content: baseline;
    }
}












/*--------------------------Proyectos------------------------------*/
#ultimos-proyectos{
    padding: 1rem;
    width: 100%;
    text-align: center;
    margin-bottom: 5rem;
}

.scroll-container{
    display: flex;
    overflow-x: auto;
    max-width: 100%;
    white-space: nowrap;
    gap: 10px;
    padding: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--pink-color) var(--bg-color);
}

.scroll-container::-webkit-scrollbar {
    height: 8px;
}

.scroll-container::-webkit-scrollbar-thumb {
    background-color: var(--blue-light-color);
    border-radius: 4px;
}

.scroll-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 350px;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
}

.scroll-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}








/*Single page*/

.single-page-section {
    position: relative;
    background-image: url('/img/servicios-2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 1rem;
    color: #000;
    z-index: 1;
    width: 100%;
    min-height: 600px;
    margin-bottom: 2rem;
}
  
.single-page-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--bg-alpha-color); 
    z-index: -1;
}

.single-page-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.single-page-text {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 600px;
}

.solicitar-btn{
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    color: var(--pink-dark-color);
    font-weight: bold;
    line-height: 1;
}

.solicitar-btn:hover{
    color: var(--pink-color);
}

.arrow {
    display: inline-flex;
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.solicitar-btn:hover .arrow {
    transform: translateX(4px);
}

.check-list {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.check-list > div {
    flex: 1;
    min-width: 200px;
}

.check-list p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 8px 0;
    font-size: 16px;
}

.check-icon::before {
    content: "✔️";
    margin-right: 10px;
    color: var(--pink-color);
}





/*Multi page */
.multi-page-section {
    position: relative;
    background-image: url('/img/servicios-3.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 1rem;
    width: 100%;
    color: #000;
    z-index: 1;
    min-height: 600px;
}
  
.multi-page-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--bg-alpha-color); 
    z-index: -1;
}

.multi-page-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.multi-page-text {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 600px;
}





@media (min-width: 768px){
    .single-page-section{
        padding: 3rem 5rem;
    }

    .multi-page-section{
        padding: 3rem 5rem;
    }
}







/*---------------------------------Comencemos-----------------------------*/
#comencemos{
    padding: 1rem;
}

.content-text{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.content-text span{
    font-size: 32px;
    font-weight: bold;
}

.step1-container{
    display: flex;
    flex-direction: column;
    text-align: right;
    gap: 2rem;
    margin-top: 3rem;
}

.step2-container{
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 2rem;
    margin-top: 3rem;
}

.step2-content{
    order: 1;
}



@media (min-width: 768px){
    .step1-container{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        place-items: center;
        text-align: right;
        gap: 2rem;
        margin-top: 3rem;
    }
    
    .step2-container{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        place-items: center;
        text-align: left;
        gap: 2rem;
        margin-top: 3rem;
    }
   
}








/*-----------------------------Contacto------------------------------------*/
#contacto{
    width: 100%;
    padding: 1rem;
    background-color: var(--bg-color);
}

.form-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.form-section h2{
    margin-bottom: 2rem;
}

.form-and-map {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.map-container {
    overflow: hidden;
    border-radius: 8px; 
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 100%;
    height: 400px;
    position: relative;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    position: absolute;
    top: 0;
    left: 0;
}


.form-container{
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 350px;
}

.form-group {
    text-align: left;
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--pink-color);
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
    resize: none;
}

input.valid,
textarea.valid {
    border-color: var(--pink-color);
}

input.invalid,
textarea.invalid {
    border-color: red;
}

.error-msg {
    color: red;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}


@media (min-width: 768px) {
   .form-map{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row-reverse;
    gap: 2rem;
   }
}









/*----------------------------------------------Footer-------------------------------*/
footer{
    background-color: var(--blue-light-color);
    padding: 1rem;
}

.footer-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo-footer{
    width: 150px;
}

.icons{
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.icons a {
    font-size: 2rem;
    margin: 0 10px;
    color: var(--pink-dark-color);
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--bg-color);
}

footer .text-white{
    color: var(--pink-dark-color) !important;
    font-size: 1.2rem;
    font-weight: bold;
}

@media (min-width: 768px) {
    footer{
        padding: 0;
    }
    .footer-container{
        flex-direction: row;
        justify-content: space-around;
    }

    .icons{
        justify-content: center;
    }
}
 











/*-----------------------------Whatsap----------------------------------------*/
.whatsapp-button {
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 999;
    background-color: var(--bg-color);
    border-radius: 50%;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.whatsapp-button img {
    width: 32px;
    height: 32px;
}

.whatsapp-button:hover {
    transform: scale(1.1);
}  

@media(min-width: 768px){
    .whatsapp-button{
        bottom: 20px;
        right: 20px;
    }
}







/*---------------------------------Flecha-----------------------------*/
.arrow-link {
    position: fixed;
    bottom: 80px;
    right: 10%;
    background-color: var(--blue-dark-color);
    padding: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    z-index: 999;
}

.arrow-link svg {
    width: 28px;
    height: 28px;
    fill: white;
}

/* Efecto de hover: cambia tamaño al pasar el ratón */
.arrow-link:hover {
    transform: scale(1.1);
    background-color: var(--pink-color);
}

@media(min-width: 768px){
    .arrow-link{
        opacity: 0;
        pointer-events: none;
    }
}








::-webkit-scrollbar{
    width: 10px;
    background: var(--blue-dark-color);
}

::-webkit-scrollbar-thumb{
    background: var(--pink-color);
    border-radius: 3px;
    cursor: pointer;
}