* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    color: #333;
    line-height: 1.6;
}
.homepg{
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* Header Top */
.header-top{
    width: 100%;
    background-color: #11aad2;
    border-radius: 0 0 30px 30px;
    display: flex;
    justify-content: center;
}

.header-top-container{
    display: flex;
    justify-content: space-between;
    width: 95%;
    padding: 15px 0;
}

.header-social-media{
    width: 50%;
    display: flex;
    gap: 10px;

}

.social-media-icon-btn{
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    @media(max-width: 768px){
        width: 35px;
        height: 35px;
    }
}

.social-media-icon-btn:hover{
    text-decoration: none;
    background-color: #031e40;
}

.fa-brands{
    color: #000;
    transition: all 0.3s ease-in-out;
}

.fa-brands:hover{
    color: #fff
}

.header-mail{
    width: 50%;
    display: flex;
    justify-content: end;
}

.header-mail-icon{
    background-color: #fff;
    width: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 30px;
    height: 30px;
    gap: 5px;
    transition: all 0.3s ease-in-out;
    color: #000;
    text-decoration: none;
}

.header-mail-icon:hover{
    color: #fff;
    background-color: #031e40;
    text-decoration: none;
}

.header-top-text{
    font-family: Helvetica, sans-serif;
}

/* Header */

header {
    background-color: #fff;
    padding: 30px 0;
    width: 90%;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    width: 20%;
    display: flex;
    justify-content: center;
}

.logo-img{
    max-width: 80px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    flex-wrap: wrap;
    justify-content: end;
    width: 80%;
}

.nav-links a {
    color: #031e40;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: #11aad2;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #031e40;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */

.hero {
    color: white;
    width: 100%;
    height: 600px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-row{
    display: flex;
    width: 90%;
    justify-content: center;
    align-items: start;
    flex-direction: column;
    gap: 30px;
}

#bg-video {
  position: absolute;
  right: 0;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -1; /* Places video behind content */
  object-fit: cover; /* Ensures video fills screen without distortion */
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* 50% dark overlay */
  z-index: -1;
}

.hero h1 {
    font-size: 9rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
    @media(max-width: 768px){
        font-size: 5rem;
    }
}

.hero h2 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease 0.2s both;
    @media(max-width: 768px){
        font-size: 2rem;
    }
}

.cta-button {
    background: #11aad2;
    color: #fff;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    animation: fadeInUp 1s ease 0.4s both;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    color: #031e40;
}

/* Sección Sobre Nosotros */
.about {
    width: 100%;
    margin: 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background-color: #1e3c72;
    @media(max-width: 768px){
        flex-direction: column;
    }
}

.about-img-column{
    width: 50%;
    background: url('../images/welcome.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 630px;
    @media(max-width: 768px){
        width: 100%;
        min-height: 360px;
    }
}

.about-img-column img{
    width: 100%;
}

.about-text{
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: start;
    gap: 10px;
    flex-direction: column;
    @media(max-width: 768px){
        width: 90%;
        align-items: center;
        padding: 30px 0;
    }
}

.about-text h2 {
    font-size: 5.5rem;
    color: #fff;
    margin-bottom: 1rem;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #fff;
    text-align: center;
}

.about-text a{
    background: #fff;
    color: #11aad2;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    animation: fadeInUp 1s ease 0.4s both;
    text-decoration: none;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    color: #031e40;
}

/* Servicios */
.services {
    background: #f8f9fa;
    padding: 30px 0;
    width: 90%;
}

.services h2 {
    text-align: left;
    font-size: 2.5rem;
    color: #11aad2;
    margin-bottom: 3rem;
}

.services-grid {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5vw 2%;
    @media(max-width: 768px){
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
}

.service-cta {
    padding: 2rem;
    border-radius: 10px;
    width: 30%;
    text-align: center;
    display: flex;
    justify-content: center;
    padding: 0;
    border: 2px solid #0f1e3c;
    height: 20vw;
    flex-direction: column;
    @media(max-width: 768px){
        width: 100%;
        height: 360px;;
    }
}

.service-cta:nth-child(1){
    background: url(../images/estudios.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.3s ease-in-out;
}

.service-cta:nth-child(2){
    background: url(../images/ingenieria.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.3s ease-in-out;
}

.service-cta:nth-child(3){
    background: url(../images/capacitacion.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.3s ease-in-out;
}

.service-cta:nth-child(4){
    background: url(../images/mantenimiento.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.3s ease-in-out;
}

.service-cta:nth-child(5){
    background: url(../images/asesoria.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.3s ease-in-out;
}

.service-cta-link{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: end;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
    padding: 30px;
    background-color: rgba(0,0,0,0.5);
    transition: all 0.3s ease-in-out;
}

.service-cta-link:hover{
    background-color: rgba(0, 0, 0, 0.1);
}

.service-cta-link h2 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    text-decoration: none;
    margin-bottom: 0;
    @media(max-width: 768px){
        font-size: 2rem;
    }
}

.service-cta-link p {
    background: #11aad2;
    color: #fff;
    width: 12vw;
    height: 4vw;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    animation: fadeInUp 1s ease 0.4s both;
    text-decoration: none;
    @media(max-width: 768px){
        width: 200px;
        height: 60px;
        font-size: 1.5rem;
    }
}

.service-cta-link p:hover{
    color: #0f1e3c;
}

.service-cta-multiple-link{
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: start;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
    width: 100%;
    height: 100%;
    transition: all 0.3s ease-in-out;
    @media(max-width: 768px){
        align-items: center;
    }
}

.service-cta-multiple-link:hover{
    color: #11aad2;
}

.service-cta-multiple-link h3{
    color: #000;
    font-weight: bold;
    font-size: 1.3rem;
    white-space: nowrap;
    @media(max-width: 768px){
        font-size: 2rem;
        white-space: normal;
        text-align: center;
    }
}

.service-cta-multiple-link ul{
    display: flex;
    justify-content: center;
    align-items: start;
    flex-direction: column;
    list-style: none;
    @media(max-width: 768px){
        align-items: center;
    }
}

.service-cta-multiple-link li{
    color: #000;
    font-weight: bold;
    font-size: 1.2rem;
    white-space: nowrap;
    text-align: center;
}

/* Marcas/Productos */
.brands {
    width: 90%
}

.brands h2 {
    text-align: left;
    font-size: 2.5rem;
    color: #11aad2;
    margin-bottom: 3rem;
}

.brand-grid {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    @media(max-width: 768px){
        flex-direction: column;
        gap: 30px;
        justify-content: center;
        align-items: center;
    }
}

.brand-card {
    color: white;
    padding: 2rem;
    border-radius: 10px;
    width: 20%;
    border: 2px solid #11aad2;
    transition: all 0.3s ease-in-out;
    text-align: center;
    @media(max-width: 768px){
        width: 50%;
    }
}

.brand-card:hover {
    transform: scale(1.05);
}

.product-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Footer */
footer {
    background: #11aad2;
    color: white;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 30px 0;
}

.footer-top{
    width: 90%;
    display: flex;
    gap: 2%;
    align-items: start;
    @media(max-width: 768px){
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
}

.footer-logo{
    display: flex;
    justify-content: center;
    width: 20%;
    @media(max-width: 768px){
        width: 100%;
    }
}

.footer-logo a{
    text-align: center;
}

.footer-logo-img{
    max-width: 80%;
    max-height: 250px;
}

.hours{
    width: 25%;
    display: flex;
    justify-content: center;
    align-items: start;
    flex-direction: column;
    gap: 30px;
    @media(max-width: 768px){
        width: 100%;
        align-items: center;
    }
}

.hours h3{
    color: #fff;
    font-weight: bold;
    font-size: 1.5rem;
    @media(max-width: 768px){
        font-size: 3rem;
    }
}

.hours ul{
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: start;
    flex-direction: column;
    gap: 20px;
}

.hours li{
    font-size: clamp(0.75rem, 0.5833rem + 0.3472vw, 1rem);
    display: flex;
    gap: 10px;
    width: 100%;
    @media(max-width: 768px){
        font-size: 1rem;
    }
}

.hours span.day{
    width: 30%;
    white-space: nowrap;
}

.hours span.time{
    width: 70%;
    white-space: nowrap;
}

.footer-links{
    width: 25%;
    display: flex;
    justify-content: center;
    align-items: start;
    flex-direction: column;
    gap: 30px;
    @media(max-width: 768px){
        width: 100%;
        align-items: center;
    }
}

.footer-links h3{
    color: #fff;
    font-weight: bold;
    font-size: 1.5rem;
    @media(max-width: 768px){
        font-size: 3rem;
    }
}

.footer-links ul{
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: start;
    flex-direction: column;
    gap: 20px;
    @media(max-width: 768px){
        align-items: center;
        width: 100%;
    }
}

.footer-links li{
    display: flex;
    justify-content: center;
}

.footer-links li a{
    font-size: clamp(0.75rem, 0.5833rem + 0.3472vw, 1rem);
    gap: 10px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    @media(max-width: 768px){
        font-size: 1rem;
        width: 100%;
    }
}

.footer-links li a:hover{
    text-decoration: none;
    color:#031e40;
}

.contact-info{
    width: 25%;
    display: flex;
    justify-content: center;
    align-items: start;
    flex-direction: column;
    gap: 30px;
    @media(max-width: 768px){
        width: 100%;
        align-items: center;
    }
}

.contact-info h2{
    color: #fff;
    font-weight: bold;
    font-size: 1.5rem;
    @media(max-width: 768px){
        font-size: 3rem;
    }
}
.contact-details{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
}
.contact-details p{
    font-size: clamp(0.75rem, 0.5833rem + 0.3472vw, 1rem);
    gap: 10px;
    color: #fff;
    text-decoration: none;
    @media(max-width: 768px){
        font-size: 1rem;
    }
}

.footer-social-media{
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.bottom-footer{
    padding: 15px 0;
    width: 90%;
    display: flex;
    justify-content: center;
    @media(max-width: 768px){
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

.bottom-footer-nav{
    width: 40%;
    display: flex;
    justify-content: start;
    align-items: center;
    @media(max-width: 768px){
        width: 100%;
    }
}

.bottom-footer-nav ul{
    display: flex;
    justify-content: space-between;
    list-style: none;
    width: 100%
}

.bottom-footer-nav a{
    color: #1e3c72;
    font-size: clamp(0.5rem, 0.25rem + 0.5208vw, 0.875rem);
    text-decoration: none;
}

.bottom-footer-copy{
    width: 30%;
    display: flex;
    justify-content: center;
    align-items: center;
    @media(max-width: 768px){
        width: 100%;
    }
}

.bottom-footer-copy p{
    color: #1e3c72;
    font-size: clamp(0.5rem, 0.25rem + 0.5208vw, 0.875rem);
}

.bottom-footer-logo{
    width: 30%;
    display: flex;
    justify-content: end;
    align-items: center;
    @media(max-width: 768px){
        width: 100%;
        justify-content: center;
    }
}

.bottom-footer-logo img{
    max-width: 180px;
    width: 30%
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        text-align: center;
        padding-top: 1rem;
    }

    .nav-links.active {
        display: flex;
    }
}