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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

}




#navbar {
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 50px;
    width: 100%;
    height: 80px;
    position: fixed;
    top: 0;
    z-index: 1000;
    /* transition: background-color 0.3s ease; */
    transition: all 0.3s ease;
}

#navbar.scrolled {
    background: rgba(75, 75, 75, 0.4);
    backdrop-filter: blur(5px);
}

.logo-container svg {
    width: 120px;
    height: 120px;
    fill: #fff;
    transition: all 0.3s ease;
}

.menu-toggle {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
}

.nav-links {
    display: flex;
    transition: all 0.3s ease;
}

.nav-links.scrolled-links {
    background: rgba(75, 75, 75, 0.4);
    backdrop-filter: blur(5px);
}

.nav-links ul {
    background: rgba(0, 0, 0, 0);
}

.nav-links li {
    list-style: none;
    margin: 0 20px;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-size: 17px;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
    font-family: Arial, Helvetica, sans-serif;
}

.nav-links a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #00BFFF;
    left: 0;
    bottom: -4px;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #00BFFF;
}

.nav-links a:hover::after {
    width: 100%;
}

/* hero section */


.hero {
    height: 100vh;

}

.video-container {
    position: fixed;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
}

.video-container::after {
    content: '';
    /* position: fixed;
    bottom: 0;
    left: 0; */
    width: 100%;
    height: 150px;
    /* altura del degradado */
    background: linear-gradient(to top, #0A192F, transparent);
    pointer-events: none;
}

.video-fondo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-text {
    position: absolute;
    max-width: 60%;
    margin: 15% 20px;
    color: #fff;
}

.hero-text h1 {
    font-family: 'Roboto', sans-serif;
    font-size: 60px;
    margin-bottom: 20px;
}

.hero-text h2 {
    font-size: 33px;
    margin: 0;
}

.hero-text p {
    font-size: 25px;
    margin: 20px 0;
}

/* service */

main {
    padding: 20% 0 26% 0;
    /* background: #0e1a15;
    background: radial-gradient(circle at 50% 0%, rgb(15, 26, 23) 0%, rgb(46, 46, 46) 100%); */

    /* background: #0E1A15;
    background: radial-gradient(circle at 50% 0%, rgba(14, 26, 21, 1) 20%, rgba(0, 0, 0, 1) 60%, rgba(46, 46, 46, 1) 100%); */

}

.service-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
}


.service {
    /* background-color: #1a1a1a; */
    background: radial-gradient(circle at 50% 0%, rgba(27, 27, 36, 0.8) 20%, rgba(0, 0, 0, 0.8) 60%, rgba(46, 46, 46, 0.8) 100%);

    border: 1px solid #333333;

    /* border-radius: 10px; */
    color: #919191;
    width: 90%;
    height: 70vh;
    display: flex;
    /* flex-direction: column; */
    justify-content: center;
    align-items: center;
    /* padding: 20px; */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-title {
    width: 60%;
    height: 100%;
    /* position: relative; */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    /* border: 1px solid #919191; */
    overflow: hidden;
}

.service-title h1 {
    font-family: 'Roboto', sans-serif;
    /* position: absolute;
    top: 50%;
    left: 50%; */
    /* transform: translate(-50%, -50%); */
    z-index: 1;
    color: #fff;
    font-size: 40px;
    text-align: center;
    opacity: 0;
    transform: translateX(-80px);
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.service-title p {
    font-size: 20px;
    color: #919191;
    text-align: center;
    margin-top: 20px;
    z-index: 1;
    opacity: 0;
    transform: translateX(-80px);
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.service-title p.service-visible,
.service-title h1.service-visible {
    transform: translateX(0);
    opacity: 1;
}

.cards-container {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 50px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-section {
    width: 100%;
    height: 100%;
    padding: 50px;
    /* border: 1px solid #919191; */
    display: flex;
    justify-content: center;
    align-items: center;
    /* position: relative; */
    gap: 20px;
}

.card {
    background-color: #1a1a1a;
    max-width: 360px;
    width: 260px;
    height: 320px;
    display: flex;
    margin: 10px 0;
    /* justify-content: space-between; */
    overflow: hidden;
    flex-direction: column;
    padding: 20px 32px;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
    z-index: 10;
    opacity: 0;
    transform: translateY(80px);
    transition: opacity .6s ease, transform .6s ease;
}

.card-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
}



.card.visible {
    opacity: 1;
    transform: translateY(0);
}

.cards-right,
.cards-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 10px;
}


.cards-right {
    margin-top: 10%;
}

.card-icon {
    display: flex;
    overflow: hidden;
    position: relative;
}

.card-icon svg {
    width: 43px;
    height: 43px;
    fill: #1bb6ae;
    transform: translateX(-100px);
    transition: transform 0.8s ease;
}

.card-title.title-visible,
.card-text.text-visible,
.barra.barra-visible,
svg.svg-visible {
    transform: translateX(0);
}

.card-content {
    display: flex;
    /* align-items: flex-start; */
    justify-content: flex-start;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-height: 240px;
    overflow: hidden;

}

.card-title {
    font-size: 18px;
    color: #355170;
    margin: 10px 0;
    transform: translateX(-250px);
    transition: transform 1s ease;
}

.card-text {
    /* overflow-y: auto; */
    font-size: 15px;
    color: #919191;
    padding: 5px;
    height: auto;
    width: 100%;
    transform: translateX(-250px);
    transition: transform 1s ease;
}

.card-text::-webkit-scrollbar {
    width: 6px;
}

.card-text::-webkit-scrollbar-thumb {
    background-color: #2c2c2c;
    border-radius: 10px;
}

.barra {
    border: 1px solid #919191;
    margin-top: auto;
    transform: translateX(-250px);
    transition: transform 1s ease;
}


/* form */

.form-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.video-form {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.fondo-form {
    width: 100%;
    height: auto;
    z-index: -1;
    object-fit: cover;
}

.section-form {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-around;
}

.text-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* margin: 0 200px; */
    color: #fff;
}

.text-form h2 {
    font-size: 40px;
    margin-bottom: 20px;
}

.text-form p {
    font-size: 20px;
    margin-bottom: 20px;
}

form {
    padding: 30px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    max-width: 500px;
    width: 100%;
    color: #fff;
    /* text-align: center; */
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #000;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    /* color: #000000; */
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #ddd;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.3);
}

.btn-form {
    background-color: #204c5a;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-form:hover {
    background-color: #0000005e;
    border: .5px solid #919191;
    transform: scale(1.05);
    transition: all 0.3s ease;
}


.toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 16px;
    position: fixed;
    z-index: 100;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.5s, visibility 0.5s;
}

.toast.show {
    visibility: visible;
    opacity: 1;
}


/* footer */

.footer {
    background-color: #0d0d0d;
    color: #f0f0f0;
    padding: 40px 40px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;

}

/* .footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
} */

.footer-content {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-bottom: 20px;
    gap: 20px;
}

.footer-credentials {
    display: flex;
    align-items: center;
    flex-direction: column;
    font-size: 0.9rem;
    gap: 10px;
}

.footer-credentials h4 {
    margin: 0;
    font-size: 1rem;
    color: #00BFFF;
    font-weight: 600;
}

.footer-credentials a {
    text-decoration: none;
    color: #f0f0f0;
    font-weight: 500;
}

.footer-logo {
    width: 55px;
    height: auto;
    filter: brightness(1.1);
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

/* 
.footer-brand p {
    font-size: 0.9rem;
    color: #b0b0b0;
    margin: 0;
} */

/* Navegación */
.footer-nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    height: 100%;
    padding: 20px;
    width: 100%;
    margin-bottom: 20px;
    border-bottom: 1px solid #919191;
}

.footer-nav a {
    text-decoration: none;
    color: #f0f0f0;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.footer-nav a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #00BFFF;
    left: 0;
    bottom: -4px;
    transition: width 0.3s ease;
}

.footer-nav a:hover {
    color: #00BFFF;
}

.footer-nav a:hover::after {
    width: 100%;
}


/* Navbar responsivo */
@media (max-width: 768px) {
    #navbar {
        flex-direction: column;
        height: 60px;
        padding: 5px 20px;
        align-items: flex-start;
    }

    .logo-container svg {
        width: 55px;
        height: 55px;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        top: 10px;
        right: 20px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        margin-top: 10px;
        position: absolute;
        top: 50px;
        left: 0;
        /* right: 20px; */
        width: 100%;
        background-color: #000000;
        border-radius: 10px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        padding: 10px;

    }

    .nav-links li {
        margin: 10px 0;
        padding: 10px 0;
    }
}

/* Hero text responsivo */
@media (max-width: 768px) {
    .hero-text {
        max-width: 100%;
        margin: 30% 20px;
    }

    .hero-text h1 {
        font-size: 40px;
    }

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

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

@media (min-width: 1024px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        padding: 0 40px;
    }

    .footer-nav,
    .footer-credentials {
        width: 45%;
        align-items: flex-start;
    }

    .footer-credentials {
        text-align: left;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {

    .service {
        flex-direction: column;
        height: auto;
        width: 100%;
        padding: 20px 0;
        background: none;
        border: none;
    }

    .service-container {
        padding: 50px 0;
    }

    .service-title {
        width: 100%;
        height: 300px;
        border: none;
    }

    .card-section {
        border: none;
    }

    .card {
        width: 90%;

    }
}


/* Responsivo para móviles */
@media (max-width: 768px) {
    main {
        padding: 100px 0;
    }

    .service {
        flex-direction: column;
        height: auto;
        width: 100%;
        padding: 20px 0;
        background: none;
        border: none;
    }

    .service-container {
        padding: 50px 0;
    }

    .service-title {
        width: 100%;
        height: 300px;
        border: none;
    }

    .service-title h1 {
        font-size: 50px;
    }

    .cards-container {
        /* flex-direction: column; */
        padding: 20px;
    }

    .card-section {
        flex-direction: column;
        border: none;
        padding: 20px;
    }

    .card {
        width: 85%;
        padding: 15px 20px;
    }

    .card-icon svg {
        width: 38px !important;
        height: 38px !important;
    }

    .cards-left,
    .cards-right {
        margin: 0;
        width: 100%;
    }

    .card-title {
        font-size: 19px;
    }

    .card-text {
        font-size: 16px;
    }

    .card-icon svg {
        width: 30px;
        height: 30px;
    }
}

/* Responsivo extra pequeño (celulares muy pequeños) */
@media (max-width: 480px) {
    .service-title h1 {
        font-size: 32px;
    }

    .cards-container {
        flex-direction: column;
    }

    .card {
        width: 70%;
        padding: 10px 15px;
    }

    .card-title {
        font-size: 19px;
    }

    .card-text {
        font-size: 16px;
    }

    .footer {
        padding: 30px 20px;
    }

    .footer-nav a {
        font-size: 0.95rem;
    }

    .footer-credentials {
        font-size: 0.85rem;
    }
}



/* Formulario responsivo */
@media (max-width: 900px) {
    .form-container {
        flex-direction: column;
        height: auto;
        padding: 40px 20px;
    }

    .section-form {
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }

    .text-form {
        margin-bottom: 30px;
        text-align: center;
    }

    form {
        width: 100%;
        max-width: 100%;
    }

    .btn-form {
        width: 100%;
        padding: 15px;
        font-size: 1.2rem;
    }
}

/* Video fondo responsivo */
@media (max-width: 768px) {

    .video-fondo,
    .fondo-form {
        height: 100%;
        object-fit: cover;
    }
}

/* Footer ya tiene su media query, pero agregamos alineación vertical */
@media (max-width: 768px) {

    .footer-nav {
        flex-direction: column;
        gap: 10px;
        justify-content: center;

    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

}

@media (min-width: 768px) and (max-width: 1024px) {

    /* Navbar */
    #navbar {
        padding: 0 30px;
    }

    .nav-links li {
        margin: 0 10px;
    }

    .nav-links a {
        font-size: 16px;
    }

    /* Hero section */
    .hero-text {
        max-width: 80%;
        margin: 25% 30px;
    }

    .hero-text h1 {
        font-size: 50px;
    }

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

    .hero-text p {
        font-size: 24px;
    }

    /* Service */

    .card-title {
        font-size: 19px;
    }

    .card-text {
        font-size: 16px;
    }

    /* Formulario */
    .form-container {
        flex-direction: column;
        height: auto;
        padding: 50px 30px;
    }

    .section-form {
        flex-direction: column;
        align-items: center;
    }

    .text-form {
        text-align: center;
        margin-bottom: 30px;
        padding: 0 30px;
    }



    form {
        max-width: 600px;
        width: 100%;
    }

    /* Video fondo */
    .video-fondo,
    .fondo-form {
        object-fit: cover;
        height: 100%;
    }

    /* Footer */
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-nav {
        justify-content: center;
        gap: 15px;
    }
}