/* ========= Importar Google Font ==========*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

/* ========= Estilo general ==========*/

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


    font-family: "Poppins", sans-serif;
}

html {
    scroll-behavior: smooth;
}


body {
    height: 100vh;
        max-width: 100%;
    overflow-x: hidden;
    width: 100%;
    background-color: var(--body-color);

}

h2 {
    color: var(--parrafo_text-color);
    font-size:40px;
}

p {
    color: var(--parrafo_text-color);
    font-size:20px;
}

/* ===== Colores modo claro y oscuro ======
lila original: AD7BE9 | azul original: 11009E | azul secundario: 5968f2 
| NEGRO TRASPARENCIAS: #0102024f
| gris TRASPARENCIAS: rgba(128, 128, 128, 0.5)
linear-gradient(to right, #000000b4 0% , #10009e9a 80% , #ad7be988 100%);
linear-gradient(to bottom, #000000b4 0% , #10009e9a 80% , #ad7be988 100%);
linear-gradient(to bottom right, #000000b4 0% , #10009e9a 80% , #ad7be988 100%);
linear-gradient(to bottom left, #000000b4 0% , #10009e9a 80% , #ad7be988 100%);
linear-gradient(to left, #000000b4 0% , #10009e9a 80% , #ad7be988 100%);

*/


:root {
    --body-color: #C0BFC5;
    --nav-color: #121820;
    --side-nav: #121820;
    --text-color: #FFF;
    --transparent: #ad7be900;
    --parrafo_text-color: #121820;
}


body.dark {
    --body-color: #000;
    --nav-color: #111111ef;
    /* == simple #242526de ==*/
    --side-nav: #242526;
    --text-color: #ECEEFA;
    --search-bar: #242526;
    --transparent: #ad7be900;
    --parrafo_text-color: #CCC;
}


/* ========= barra de navegacion ==========*/

nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 70px;
    width: 100%;
    background: var(--nav-color);
    z-index: 100;
}

nav .nav-bar {
    position: relative;
    height: 100%;
    max-width: 1080px;
    width: 100%;
    background-color: var(--transparent);
    margin: 0 auto;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;


}





nav .nav-bar .logo a {
    font-size: 27px;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
}

.menu .logo-toggle {
    display: none;

}

/*nav .nav-bar .logo a::before{
    content:'';
    position: absolute;
    height: 6px;
    width: 6px;
    border-radius: 50%;
    background-color: var(--text-color);

}
*/


.nav-bar .nav-links {
    display: flex;
    align-items: center;
}


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


.nav-links li a {
    position: relative;
    font-size: 17px;
    font-weight: 400;
    color: var(--text-color);
    text-decoration: none;
    padding: 10px 20px;
}


.nav-links li a::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    height: 6px;
    width: 6px;
    border-radius: 50%;
    background-color: #8696FE;
    opacity: 0;
    transition: all 0.3s ease;

}

.nav-links li:hover a::before {
    opacity: 1;
}


.nav-bar .darklight-searchbox {
    display: flex;
    align-items: center;

}


.darklight-searchbox .darklight,
.darklight-searchbox .searchToggle {
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
}

.darklight i,
.searchToggle i {
    position: absolute;
    color: var(--text-color);
    font-size: 20px;
    cursor: pointer;
    transition: all o.3s ease;
    margin-right: 70px;
}

.darklight i.sun {
    opacity: 0;
    pointer-events: none;
    transition: transform 0.5s ease;
}
.darklight i.sun:active {
    transform: rotate(360deg);
}

.darklight i.moon {
    transition: transform 0.5s ease;
}
.darklight i.moon:active {
    transform: rotate(360deg);
}

.darklight.active i.sun {
    opacity: 1;
    pointer-events: auto;
}


.darklight.active i.moon {
    opacity: 0;
    pointer-events: none;
}




/* ========= Pagina de Inicio ==========*/

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #51565A;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    width: 100%;
    max-height: 100VH;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-color);
    padding: 0 20px;
    background: rgba(0, 0, 0, 0.3);
    /* opcional para contraste */
}

.hero-content .logo {
    max-width: 35%;
    width: auto;
    margin: 0;
    padding: 0;

}

.hero-content h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    padding: 0;
}

.about {
    padding-top: 70px;
    height: 100vh;

}

.about .photo_about {
    width: 300px;

}

/* ========= Servicios ==========*/
#monitoreo-titulo{
  color: #fff;
}

.servicios{
    padding-top: 70px;

}

.servicios h2 {
    margin-top: 30px;
}



.servicios-section {
    padding: 60px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    padding: 0%;
    margin-top: 0%;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background-color: #8696FE;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    
    margin-bottom: 50px;
    font-weight: 300;
}

/* Grid de servicios */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Tarjetas de servicios */
.servicio-card, .beneficio-card {
    background: #ECEEFA;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.servicio-card:hover, 
.beneficio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    background-color: #51565A;
    color: #1D294F;
}


.servicio-card::before, .beneficio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: #8696FE;
}

.beneficio-card {
    background-color: #8696FE;
    color: #ECEEFA;
}

.beneficio-card h3 {
    color: rgb(209, 209, 209);
}

.servicio-icon, .beneficio-icon {
    font-size: 2.5rem;
    color: #1D294F;
    margin-bottom: 20px;
}

.beneficio-icon {
    color: #fff;
}

.servicio-card h3, .beneficio-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #1D294F;
}



.servicio-card p, .beneficio-card p {
    font-size: 1rem;
    color: #848888;
    margin-bottom: 15px;
}

.beneficio-card p {
    color: #ecf0f1;
}


/* ====== Carrusel de Clientes ====== */
.casos {
  padding: 100px 20px;
  background-color: #f7f7f7;
  text-align: center;
  height: 100vh; /* eliminamos el alto fijo */
}

.clientes-carousel {
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 40px auto;
}

.carousel-track {
  display: flex;
  width: fit-content;
  animation: scroll 40s linear infinite;
  gap: 60px;
}

.cliente-logo {
  flex: 0 0 auto;
  width: 160px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.cliente-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

.cliente-logo img {
  max-height: 80px;
  max-width: 100%;
}

/* ====== Sección Casos de Éxito con logos + testimonios ====== */
.casos {
    padding-top: 90px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--body-color);
  text-align: center;
}

.clientes-carousel-block {
  flex: 1;
}

.vid-mond{
  margin-top: 20px;
}

.testimonios-block {
  background-color: var(--body-color);
  padding: 60px;
  color: var(--parrafo_text-color);
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  border-radius: 10px;
  max-width: 1400px;
  margin: 0 auto;
}

.testimonial {
  flex: 1 1 300px;
  max-width: 340px;
  background-color: var(--nav-color);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  font-style: italic;
  transition: transform 0.3s ease;
}

.testimonial:hover {
  transform: translateY(-5px);
}

.testimonial p {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--parrafo_text-color);
}

.testimonial span {
  font-size: 0.9rem;
  color: var(--parrafo_text-color);
}

/* Responsive */
@media (max-width: 768px) {
  .testimonios-block {
    flex-direction: column;
    padding: 10px;
  }
}






/* Animación de scroll horizontal */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .carousel-track {
    gap: 40px;
  }

  .cliente-logo {
    width: 120px;
    height: 80px;
  }

  .cliente-logo img {
    max-height: 60px;
  }
}



footer {
    text-align: center;
    justify-content: center;
    color: var(--parrafo_text-color);
     border-top: 1px solid rgba(255, 255, 255, 0.1);
     margin-top: auto;
     padding: 13px 10px;
}


.test {
    height: 100vh;
}


/* ======= Estilo sección "Nosotros" ======= */
.about {
    padding: 100px 20px 60px;
    color: var(--parrafo_text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}




.about h2 {
    margin-bottom: 10px;
}

.about .subtitulo {
    font-weight: 400;
    margin-bottom: 40px;
}

.about-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap:40px;
    max-width:1600px;
    margin-bottom: 40px;
}

.about-cards-p {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap:40px;
    max-width:1600px;
    margin-bottom: 40px;
}
.about-cards .card {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    padding: 20px;
    width: 420px;
    height: 320px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    color: white; /* Asegura legibilidad sobre imagen */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 0.3s ease;
}

.about-cards-p .card {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    padding: 20px;
    width: 600px;
    height: 320px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    color: white; /* Asegura legibilidad sobre imagen */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 0.3s ease;
}

.about-cards .card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5); /* Overlay oscuro */
    backdrop-filter: blur(0px);
    z-index: 0;
    border-radius: 11px;
}

.about-cards .card h3,
.about-cards .card p {
    position: relative;
    z-index: 1;
}

.about-cards .card h3{
    font-size: 20px;
}

.about-cards .card p {
    color: white;
    font-size: 15px;
}

.about-cards .card:hover {
    transform: translateY(-10px) rotateX(4deg) rotateY(2deg) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.about .mision {
    max-width: 900px;
    font-size: 20px;
    font-weight: 500;
    margin-top: 20px;
    margin-bottom: 30px;
}

.about-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.about-icons .icon-block {
    
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}



/* ======= .about .photo_about {
    width: 220px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}


/* ===== Iconos Sociales en Navbar ===== */
.social-icons {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: px;
}

.social-icons a {
    color: var(--text-color);
    font-size: 1.3rem;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.social-icons a:hover {
    opacity: 1;
    transform: translateY(-3px);
}

/* Efectos individuales para cada icono */
.social-icons a[aria-label="LinkedIn"]:hover { color: #0A66C2;}
.social-icons a[aria-label="Instagram"]:hover { color: #ce566c;}
.social-icons a[aria-label="WhatsApp"]:hover { color: #25D366;}
.social-icons a[aria-label="Email"]:hover { color: #c28d2b;}

/* Responsive: Ocultar en móviles */
@media (max-width: 790px) {
    .social-icons {
        display: none;
    }
}

.social-icons a {
    position: relative;
}

.social-icons a::after {
    content: attr(aria-label);
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #000000a9;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.social-icons a:hover::after {
    opacity: 1;
}




/* ===== Botón flotante de WhatsApp ===== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 65px;
  height: 65px;
  background-color: #25D366;
  color: #FFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 99;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  background-color: #128C7E;
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}






/* Responsive para móviles */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 25px;
    bottom: 20px;
    right: 20px;
  }
}


/* ========= RESPONSIVE de 790px para abajo ==========*/


@media (max-width:790px) {

    nav .nav-bar .sidebarOpen {
        color: var(--text-color);
        display: block;
    }


    .menu {
        position: fixed;
        height: 100%;
        width: 320px;
        left: -100%;
        top: 0;
        padding: 20px;
        background-color: var(--side-nav);
        z-index: 100;
        transition: all 0.4s ease;
    }

    nav.active .menu {
        left: -0%;
    }


    nav.active .nav-bar .navLogo a {
        opacity: 0;
        transition: all 0.3s ease;
    }

    .menu .logo-toggle {
        display: block;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .logo-toggle .sidebarClose {
        color: var(--text-color);
        font-size: 24px;
        cursor: pointer;


    }

    .nav-bar .nav-links {
        flex-direction: column;
        padding-top: 30px;

    }

    .nav-links li a {
        display: block;
        margin-top: 20px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .servicios-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
}

/* Responsive para móviles */
@media (max-width: 790px) {
    .about-cards {
        flex-direction: column;
        align-items: center;
    }

    .about .mision {
        padding: 0 10px;
    }

    .about-icons {
        flex-direction: column;
        align-items: center;
    }

    .about .photo_about {
        width: 160px;
        margin-top: 20px;
    }
}


.contact {
  height: 100vh;
  padding-top: 95px;
  background: var(--body-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.contact > .section-title {
  margin-bottom: 25px;
  color: var(--parrafo_text-color);
}

.contact-wrapper {
  display: flex;
  width: 100%;
  max-width: 1300px;
  height: 100%;
  background: var(--body-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.contact-info, .contact-map {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.contact-info p {
  margin-bottom: 10px;
  font-size: 1rem;
  color: var(--parrafo_text-color);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 60px;
}

.contact-form input,
.contact-form textarea {
  padding: 10px 15px;
  border: 1px solid #cccccc9a;
  border-radius: 8px;
  font-size: 15px;
  resize: none;
}

.contact-form textarea{
    height: 200PX;
}

.contact-form button {
  border: none;
    background-color: #ccccccb7;
  padding: 12px;
  font-size: 17px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: #AD7BE9;
}

/* Redes sociales grandes y vistosas */
.contact-socials {
  display: flex;
  gap: 45px;
  font-size: 2rem;
  margin-top: 0px;
  justify-content: center;
}

.contact-socials a {
  color: var(--parrafo_text-color);
  transition: transform 0.3s, color 0.3s;
  font-size: 45px;
}

.contact-socials a:hover {
  transform: scale(1.2);
  color: #8697ff;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Responsive */
@media (max-width: 980px) {
  .contact-wrapper {
    flex-direction: column;
    height: auto;
  }

  .contact-map {
    height: 300px;
    padding: 0;
  }

  .contact-info {
    padding: 30px 20px;
  }

  .contact > .section-title {
    font-size: 2rem;
  }

  .contact-socials {
    font-size: 1.8rem;
  }
}
