@import url("fonts.googleapis.com");

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Raleway", sans-serif;
    color: #666;
    background: #f2f2f2;
    font-size: 1em;
    line-height: 1.5em;
    box-sizing: border-box;
}
/* 	<uniquifier>: Use a unique and descriptive class name
	<weight>: Use a value from 100 to 900 */
nav {
    position: sticky;
    top: 0;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background-color: #474b4e;
    transition: .4s;
    z-index: 10; 
}
.logo {
    display: flex;
}
.logo img {
    width: 40px;
    align-content: center;
}
.logo h3 {
    margin-left: 10px;
    color: white;
    text-decoration: none;
    font-size: 22px;
    font-family: "Raleway", sans-serif;
    align-content: flex-end;
}
.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
}
.nav-links a {
    display: block;
    padding: 20px 10px;
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-family: "Raleway", sans-serif;
    transition: all ease-in-out 100ms;
}
.nav-links a:hover {
    background-color: darkorange;
}
.nav-links .nav-contact-button {
    padding: 10px 18px;
    margin-left: 16px;
    border: orange solid 2px;
    border-radius: 50px;
}
.nav-links .nav-contact-button:hover {
    background-color: orange;
}
.movilemenu {
    display: none;
    cursor: pointer;
    width: 34px;
}
.movilemenu .bar {
    flex-basis: 100%;
    height: 4px;
    background-color: white;
    margin: 3px;
}
h1 {
    font-weight: 400;
    text-align: center;
    padding: 20px, 0;
    font-size: 40px;
    margin: 10px;
}
.linea {
    background: #550b51;
    height: 5px;
    width: 100%;
    display: block;
}

/* Spin cards */
.cards {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    background-color: white;
}
.card {
    position: relative;
    width: 300px;
    height: 350px;
    margin: 20px;
}
.card .face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden;
    transition: 0.5s;
}
.card .front {
    transform: perspective(600px) rotateY(0deg);
    box-shadow: 0 5px #000;
}
.card .front img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card .front h3 {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 45px;
    line-height: 45px;
    color: #fff;
    background: rgba(0, 0, 0, 0.4);
    text-align: center;
}
.card .back {
    transform: perspective(600px) rotateY(180deg);
    background: rgb(3, 35, 54);
    padding: 15px;
    color: #f3f3f3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    box-shadow: 0, 5px, 10px, black;
}
.card .back h3 {
    font-size: 30px;
    margin-top: 20px;
    letter-spacing: 2px;
}
.card .back p {
    letter-spacing: 1px;
}
.card:hover .front {
    transform: perspective(600px) rotateY(180deg);
}
.card:hover .back {
    transform: perspective(600px) rotateY(0deg);
}

.deskwork {
    width: 100%; /* Define el ancho deseado para el contenedor */
    height: 100%; /* Define la altura deseada para el contenedor */
    overflow: hidden; /* Oculta cualquier parte de la imagen que sobresalga */
    display: flex; /* Habilita Flexbox para centrado */
    justify-content: center; /* Centra horizontalmente el contenido */
    align-items: center; /* Centra verticalmente el contenido */
}

.deskwork img {
    width: 100%; /* Asegura que la imagen tenga al menos el ancho del contenedor */
    height: 100%; /* Asegura que la imagen tenga al menos la altura del contenedor */
    object-fit: cover; /* Escala la imagen para cubrir todo el contenedor, recortando los bordes si es necesario */
    object-position: center; /* Centra la parte visible de la imagen dentro del contenedor */
}

/* --- Botón WhatsApp Flotante --- */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    text-decoration: none;
    transition: 0.3s;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}


@media all and (max-width: 375px) {
    nav {
        flex-wrap: wrap;
    }
    .movilemenu {
        display: flex;
        flex-wrap: wrap;
    }
    .nav-links {
        display: none;
        flex-basis: 100%;
        flex-wrap: wrap;
    }
    .nav-links li {
        flex-basis: 100%;
    }
    .nav-links a {
        text-align: center;
        font-size: 20px;
    }
    .nav-links a:hover {
        background-color: darkorange;
    }
    .nav-links .nav-contact-button {
        padding: 10px 19px;
        margin-left: 0;
        border: none;
        border-radius: 0;
        margin-bottom: 10px;
    }
    .nav-links .nav-contact-button:hover {
        background-color: darkorange;
    }
}
