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

body {
    font-family: "Montserrat", sans-serif;
    background-color: #0B132B;
}

header {
    background-color: #0B132B;
    color: #fff;
    padding: 20px;
    text-align: center;

    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100px;
}

header .logo img{
    height: 50px;
}

.hamburger-btn {
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 6px;
  position: relative;
}

/* Estilo general para las 3 barras */
.hamburger-btn .line {
  width: 100%;
  height: 4px;
  background-color: white;
  border-radius: 4px;
  transition: all 0.3s ease-in-out;
  transform-origin: center;
}

/* ==========================================
   TRANSFORMACIÓN A CRUZ (Clase .open)
   ========================================== */

/* 1. Ocultar la línea del medio suavemente */
.hamburger-btn.open .line:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

/* 2. Rotar la línea superior 45 grados */
.hamburger-btn.open .line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
  background-color: white;
}

/* 3. Rotar la línea inferior -45 grados */
.hamburger-btn.open .line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
  background-color: white;
}

body.menu-open {
    overflow: hidden;
    height: 100dvh;
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: start;
    background: linear-gradient(135deg, #00519df8 50%, #0B132B 100%);
    backdrop-filter: blur(2px);
    width: 100%;
    height: calc(100dvh - 100px);
    position: fixed;
    z-index: 100;
    right: -100%;
    top: 100px;
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.nav-menu li:first-child {
    border-top: none;
}

.nav-menu li:last-child {
    border-bottom: 1px solid #00A3E0;
}

.nav-menu li {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-top: 1px solid #00A3E0;
    padding: 15px 40px;
    height: 70px;
    width: 100%;
}

.nav-menu li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
}

.nav-menu.open {
    right: 0;
    transition: right 0.3s ease-in-out;
}

.hero {
    color: #fff;
    background-color: #0B132B;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 480px;
    height: 60vh;
    background-image: url("/assets/images/hero.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero span {
    color: #079FF0;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: calc(100% - 40px);
    max-width: 500px;
    height: 50%;
    margin-left: 20px;
}

.hero a {
    font-size: 15px;
    text-decoration: none;
    width: 300px;
}

.hero a i, .hero a span {
    height: 100%;
    color: white;
}

.hero a {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #079FF0;
    border: none;
    padding: 10px 15px;
}

.hero h2 {
    font-size: clamp(2rem, 6vw, 2.5rem);
}

/* -------------------------------- */

.services-container {
    padding: 30px 30px;
}

.services-container h4{
    color: #00A3E0;
}

.cards {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.card {
    border: 1px solid rgba(0, 255, 255, 0.2);
    padding: 5px;
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.1);
    min-width: 0;
    padding: 16px;
}

.cardLogo img {
    width: 60px;
    filter: drop-shadow(0 0 5px cyan);
}

.cardTitle, .cardP {
    padding: 5px;
}

.cardTitle h3, .cardP p {
    color: #fff;
}

.cardTitle h3 {
    font-size: 16px;
}

.cardP p {
    font-size: 14px;
    line-height: 1.6;
}

/*------------------------------------------------*/

.about {
    height: auto;
    background-image: url("/assets/images/aboutImg.jpg");
    background-position: center;
    background-repeat: no-repeat;
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-content {
    background-color: rgba(0, 255, 255, 0.1);
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 24px 20px;
    color: #00A3E0;
    display: flex;
    align-items: center;
}

.aboutImg {
    padding: 10px 0;
}

.about-content img {
    display: none;
}

.about .aboutInfo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    max-width: 480px;
}


.aboutInfo span img {
    width: 30px;
}

.aboutInfo {
    padding-left: 0;
}

.aboutInfo h4 {
    font-size: 17px;
}

.aboutInfo p {
    line-height: 1.6;
    font-size: 15px;
    padding: 10px 0;
    color: #fff;
}

.aboutList {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.aboutList span {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #fff;
}

/*------------------------------*/

.contactUs-bk {
    background-image: url("/assets/images/formImage.png");
    background-position: left;
}

.contactUs {
    object-fit: cover;
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 60vh;
    padding: 16px 0;
}

.contactUs-text {
    padding: 20px;
}

.contactUs-text h4 {
    color: #00A3E0;
    font-weight: bold;
    margin-bottom: 10px;
}

.contactUs-text p {
    color: #fff;
    font-weight: bold;
    font-size: 14px;
}

.contactUs form {
    max-width: 480px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 70%;
}

.contactUs .form-row {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.contactUs input, .contactUs textarea {
    margin: 12px 0;
    background-color: transparent;
    border: 2px solid #00a4e042;
    width: 90%;
    height: 40px;
    padding: 10px 12px;
    color: white;
}

.contactUs input::placeholder, .contactUs textarea::placeholder {
    display: flex;
    align-items: center;
    justify-self: center;
    color: white;
    background-color: transparent ;
    font-family: "Montserrat", sans-serif;
}

.contactUs input:focus, .contactUs textarea:focus {
    outline: none;
    border: 2px solid cyan;
    transition: all .5s;
}

.contactUs button{
    margin: 12px 0;
    background-color: #00A3E0;
    border: none;
    width: 90%;
    padding: 10px 12px;
    color: white;
}

/*------------------------*/

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
}

footer .flogo img{
    width: 150px;
}

footer .socialMedia img {
    width: 50px;
}

.form-status{
    opacity: 1;
    transition: opacity 0.5s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 60px;
    bottom: 0;
    text-align: center;
    position: absolute;
}

.form-status.success {
    background-color: rgba(0, 128, 0, 0.5);
    color: white;
    border: 1px solid green;

}

.form-status.error {
    background-color: rgba(220, 20, 60, .5);
    color: white;
    border: 1px solid crimson;
}

.form-status.ocultar {
    opacity: 0;
    pointer-events: none;
}

/*-----*/

@media (max-width: 360px) {
    .hero h1 {
        font-size: clamp(1.7rem, 8vw, 2.2rem);
        overflow-wrap: break-word;
    }

    .hero a,
    .hero button {
        max-width: calc(100% - 32px);
    }

    .services {
        grid-template-columns: minmax(0, 1fr);
    }

    .service-card {
        min-width: 0;
        width: 100%;
    }
}

@media (min-width: 480px) {
    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 750px) {
    .hero {
        justify-content: center;
        align-items: center;
    }

    .hero-content {
        justify-content: space-around;
        align-items: center;
    }

    .hero-text {
        text-align: center;
    }

    .aboutInfo h4 {
        font-size: 30px;
    }

    .aboutInfo p {
        font-size: 20px;
    }

    .aboutInfo span {
        font-size: 15px;
    }

    .contactUs-text h4 {
        font-size: 30px;
    }

    .contactUs-text p {
        font-size: 20px;
    }


}

@media (min-width: 1024px) {
    .h-menu {
        display: none;
    }

    .nav-menu {
        position: relative;
        height: auto;
        top: 0;
        right: 0;
        flex-direction: row;
        width: 70%;
        background: none;
    }

    .nav-menu li{
        border: none;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .nav-menu li:last-child {
        border: none;
    }

    .nav-menu li a {
        font-size: 15px;
        font-weight: 100;
        transition: all .5s;
    }

    .nav-menu li a:hover {
        color: #00A3E0;
        transition: all .5s;
    }

    .hero-content {
        width: 100%;
        max-width: 1000px;
    }

    .hero-text h2{
        font-size: 60px;
    }

    .hero-btn {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .hero-btn a {
        width: 400px;
        padding: 20px;
        font-size: 20px;
        transition: all .5s;
    }

    .hero-btn i {
        font-size: 25px;
    }

    .hero-btn:hover a{
        background-color: rgb(80, 158, 158);
        transition: all .5s;
    }

    .about {
        background: none;
    }

    .about-content {
        flex-direction: row;
        justify-content: space-around;
        padding: 0;
        margin: 0;
    }

    .about-content img {
        display: flex;
        height: 100%;
        width: 50%;
        filter: opacity(.7);
        object-fit: cover;
        justify-content: flex-start;
        align-items: center;
    }

    .contactUs {
        text-align: center;
    }

    .cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    #contactForm button {
        transition: all .5s;
    }

    #contactForm button:hover {
        background-color: rgb(80, 158, 158);
        transition: all .5s;
    }

}