/* Cargar Montserrat desde el servidor local */
@font-face {
    font-family: 'Montserrat';
    src: url('../../assets/fonts/Montserrat-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../../assets/fonts/Montserrat-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../../assets/fonts/Montserrat-Light.ttf') format('truetype');
    font-weight: 300; /* Light */
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../../assets/avasoft/fonts/Montserrat-Black.ttf') format('truetype');
    font-weight: 900; /* Black */
    font-style: normal;
}

/* Cargar Montserrat desde Google Fonts como respaldo */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700;900&display=swap');

/* Estilos generales */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.6;
    /* color: #B1BABF; */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    /* text-align: justify; */
}

/* Header */
header {
    background-color: #fff;
    color: #2563eb;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; 
}

header .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

img {
    height: 50px;
}

header nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap; 
}

header nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: #d1d5db;
}

header .btn-primary {
    background-color: white;
    color: #2563eb;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

header .btn-primary:hover {
    background-color: #1e40af;
    color: white;
}

/* Hero Section */
.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
    overflow: hidden; 
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: 1; /
}

.hero .container {
    position: relative;
    z-index: 2; 
}

.hero h1 {
    font-size: 2.5rem; /* Tamaño ajustado para móviles */
    margin-bottom: 20px; 
    /*animation: slideInFromLeft 1s ease-out;*/
    animation: blink 5s infinite;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    animation: fadeIn 2s ease-out;
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}

.cta-buttons {
    animation: fadeIn 3s ease-out;
}

.cta-buttons .btn-primary,
.cta-buttons .btn-secondary {
    /* padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold; */
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
}

.cta-buttons .btn-primary {
    background-color: white;
    color: #2563eb;
}

.cta-buttons .btn-secondary {
    border: 2px solid white;
    color: white;
    margin-left: 10px;
}

/* Funcionalidades */
.features {
    padding: 60px 0;
    text-align: center;
}

.features h2 {
    font-size: 2rem; /* Tamaño ajustado para móviles */
    margin-bottom: 40px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-card {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: slideInLeft 0.5s ease-out;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.feature-card p {
    color: #666;
    text-align: justify;
}

.about {
    padding: 60px 0;
    text-align: justify;
}

.about h2 {
    font-size: 2rem; /* Tamaño ajustado para móviles */
    margin-bottom: 40px;
    text-align: center;
}

/* Precios */
.pricing {
    background-color: #f9fafb;
    padding: 60px 0;
    text-align: center;
}

.pricing h2 {
    font-size: 2rem; /* Tamaño ajustado para móviles */
    margin-bottom: 40px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.pricing-card {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: slideInRight 0.5s ease-out;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.pricing-card .price {
    font-size: 2rem;
    color: #2563eb;
    margin-bottom: 20px;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.pricing-card ul li {
    margin-bottom: 10px;
}

.pricing-card .btn-primary {
    display: block;
    background-color: #2563eb;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
}

.cta-center {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: slideInRight 0.5s ease-out;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 20px;
}

.cta-center:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.cta-center .btn-primary-demo {
    display: block;
    background-color: #5BC2A9;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
}

.cta-center .btn-primary-camaras {
    display: block;
    background-color: #FAA742;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
}

.cta-center .btn-primary-equipo {
    display: block;
    background-color: #1D9CD7;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
}




/* Contacto */
.contact {
    padding: 60px 0;
    text-align: center;
    animation: fadeIn 1s ease-out;
}

.contact h2 {
    font-size: 2rem; /* Tamaño ajustado para móviles */
    margin-bottom: 40px;
}

.contact form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact form input,
.contact form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
}

.contact form button {
    background-color: #1D9CD7;
    color: white;
    font-weight: 600;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
}

/* Mensajes */
.mensaje-exito-con, .mensaje-error-con {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid transparent;
    width: 90%; 
    margin: 0 auto;
    margin-top: 15px;
    margin-bottom: 15px;
}

.mensaje-exito-con {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.mensaje-error-con {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.mensaje-error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.mensaje-exito {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

/* Estilos para el CAPTCHA */
#captcha {
    margin: 20px 0;
    text-align: center;
}

.imagenes-captcha {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
    flex-wrap: wrap; /* Para que las imágenes se ajusten en móviles */
}

.imagenes-captcha img {
    width: 100px;
    height: 100px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

.imagenes-captcha img.seleccionada {
    border-color: #2563eb;
}

#mensaje-captcha {
    display: none; /* Oculto inicialmente */
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid transparent;
}

/* Carrusel de Imágenes */
.carousel {
    padding: 60px 0;
    background-color: #f9fafb;
}

.swiper-container {
    width: 100%;
    height: 400px;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.swiper-button-next, .swiper-button-prev {
    top: 80% !important; /* Cambia el valor de 100% a 80% */
    transform: translateY(-50%); /* Centrar verticalmente */
    color: #2563eb; /* Color de las flechas */
    /* background-color: rgba(255, 255, 255, 0.8);  */
    border-radius: 50%; /* Forma circular */
    width: 40px; /* Ancho */
    height: 40px; /* Alto */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Sombra suave */
}

/* Cambiar el color al pasar el ratón */
.swiper-button-next:hover,
.swiper-button-prev:hover {
    /* background-color: rgba(37, 99, 235, 0.8);  */
    color: white; /* Color de las flechas */
}

.swiper-pagination-bullet-active {
    background-color: #2563eb;
}

/* Footer */
footer {
    background-color: #1e293b;
    color: white;
    text-align: center;
    padding: 20px 0;
}

/* Media Queries para responsividad */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem; /* Ajustado para tabletas */
    }

    .hero p {
        font-size: 1.1rem; /* Ajustado para tabletas */
        margin-bottom: 30px;
    }
    }
    .features h2,
    .pricing h2,
    .contact h2 {
        font-size: 1.75rem; /* Tamaño ajustado para tabletas */
    }

    .imagenes-captcha img {
        width: 80px; /* Tamaño ajustado para móviles */
        height: 80px;
    }

    .swiper-container {
        height: 300px;
    }

    img {
        height: 35px;
    }

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem; /* Ajustado para móviles */
    }

    .hero p {
        font-size: 1rem; /* Ajustado para móviles */
        margin-bottom: 20px;
    }

    .features h2,
    .pricing h2,
    .contact h2 {
        font-size: 1.5rem; /* Tamaño ajustado para móviles */
    }

    .imagenes-captcha img {
        width: 60px; /* Tamaño ajustado para móviles */
        height: 60px;
    }

    .mensaje-exito-con, .mensaje-error-con {
        width: 90%; 
    }

    .swiper-container {
        height: 200px;
    }

    img {
        height: 35px;
    }
    
}

/* Estilos para el ícono de hamburguesa */
.menu-icon {
    display: none; /* Oculto por defecto en pantallas grandes */
    cursor: pointer;
    font-size: 24px;
    color: #1D9CD7; /* Color del icono */
    z-index: 1000;
}

/* Estilos para el menú */
.admin-menu {
    display: flex;
    flex-direction: row; /* Menú horizontal en escritorio */
    justify-content: space-between; /* Espaciado entre elementos */
    align-items: center; /* Centrar verticalmente */
}

.admin-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; /* Menú horizontal en escritorio */
    gap: 20px; /* Espacio entre elementos */
}

.admin-menu ul li {
    padding: 15px;
}

.admin-menu ul li a {
    color: #1D9CD7; 
    text-decoration: none; 
    font-weight: 600; 
    transition: color 0.3s ease; 
}

.admin-menu ul li a:hover {
    color: #d1d5db; /* Color de fondo al pasar el ratón */
}

/* Estilos para el ícono de cierre (X) */
.close-icon {
    display: none; /* Oculto por defecto */
    cursor: pointer;
    font-size: 24px;
    color: #fff;
    text-align: center;
    padding: 15px;
}

/* Estilos para dispositivos móviles */
@media (max-width: 768px) {
    .menu-icon {
        display: block; /* Mostrar el ícono de hamburguesa en móviles */
    }

    .admin-menu {
        display: flex;
        flex-direction: row; /* Menú vertical en móviles */
        position: fixed; /* Fijar el menú */
        top: 60px; /* Ajustar según la altura del header */
        left: 0;
        width: 95%;
        background-color: #1D9CD7; /* Fondo del menú desplegable */
        box-shadow: 0 4px 6px #fff;
        z-index: 999;
        transition: transform 0.3s ease;
        transform: translateX(-100%); /* Ocultar el menú fuera de la pantalla */
        margin-top: 15px;
    }

    .admin-menu ul li a {
        color: #fff;
    }

    .admin-menu.active {
        transform: translateX(0); /* Mostrar el menú */
    }

    .admin-menu ul {
        flex-direction: column; /* Menú vertical en móviles */
        gap: 0; /* Sin espacio entre elementos */
    }

    .admin-menu.active .close-icon {
        display: block; /* Mostrar el ícono de cierre (X) */
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animación para el título */
@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Animación para el párrafo */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Animación de parpadeo */
@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

/* Sección clientes */
.clientes {
  padding: 60px 0;
  background: #f9f9f9;
  text-align: center;
}

.clientes h2 {
  margin-bottom: 30px;
  font-size: 2rem;
  font-weight: bold;
  color: #333;
}

/* Contenedor del carrusel */
.logo-carousel {
  overflow: hidden;
  position: relative;
  width: 100%;
  display: flex;
}

/* Slide con logos */
.logos-slide {
  display: flex;
  animation: scroll 25s linear infinite;
}

/* .logos-slide img {
  height: 80px;
  margin: 0 40px;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.logos-slide img:hover {
  filter: grayscale(0%);
} */

.logos-slide img {
  /* height: 80px;              /* Tamaño uniforme 
  max-width: 160px;          /* Evita logos demasiado largos 
  margin: 0 40px;
  object-fit: contain;       /* Mantiene proporción 
  background: #fff;          /* Fondo uniforme (puedes quitarlo si los logos ya son transparentes) 
  padding: 10px;             /* Espacio interno para centrar 
  border-radius: 8px;        /* Bordes suaves 
  box-shadow: 0 2px 6px rgba(0,0,0,0.08); /* Elegante 
  filter: grayscale(100%);
  transition: filter 0.3s ease, transform 0.3s ease; */

    height: 80px;              /* Tamaño uniforme */
    max-width: 160px;          /* Evita logos demasiado largos */
    margin: 0 40px;
    object-fit: contain;       /* Mantiene proporción */
    background: #fff;          /* Fondo uniforme (puedes quitarlo si los logos ya son transparentes) */
    padding: 10px;             /* Espacio interno para centrar */
    border-radius: 8px;        /* Bordes suaves */
    box-shadow: 0 2px 6px rgba(0,0,0,0.08); /* Elegante */
    filter: grayscale(100%);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.logos-slide img:hover {
  filter: grayscale(0%);
  transform: scale(1.05); /* Un ligero zoom al pasar el mouse */
}


/* Animación de movimiento infinito */
@keyframes scroll {
    0% {
        transform: translateX(0); /* Inicia en 0 */
    }
    100% {
        transform: translateX(-100%); /* Desplazamiento de toda la distancia */
    }
}

/* Responsividad Carrusel */
@media (max-width: 768px) {
    .logos-slide img {
        height: 60px; /* Ajustado para pantallas más pequeñas */
        max-width: 140px; /* Evita que los logos se estiren */
    }
}

@media (max-width: 480px) {
    .logos-slide img {
        height: 50px; /* Ajustado para móviles */
        max-width: 120px; /* Evita que los logos se estiren */
    }
}

/* Ocultar cta-buttons en móviles */
@media (max-width: 768px) {
  .cta-buttons {
    display: none;
  }
}

/* Ocultar cta-buttons en móviles */
@media (max-width: 480px) {
  .cta-buttons {
    display: none;
  }
}