/* Hacer que el body y html ocupen el 100% de la pantalla */

        html, body {
            height: 100%;
            width: 100%;
            margin: 0;
            display: flex;
            flex-direction: column;
        }

        /* El main debe crecer para ocupar todo el espacio disponible */
        main {
            flex-grow: 1;
            transition: margin-left .3s;
             background-color: white;
              margin-left:250px;
             
            
        }
        header{
            margin-left: 250px;
        }
           /*-------------barra de busqueda------------*/
           /* Estilo para los íconos en círculos */
.circle-icon {
    width: 40px;
    height: 40px;
    margin-top: 10px;
    margin-left: 10px;
    margin-right: 10px;
    background-color: #343a40; /* Color de fondo */
    color: white; /* Color del ícono */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%; /* Hace que sean círculos */
    font-size: 1.25rem; /* Tamaño del ícono */
    text-decoration: none; /* Elimina el subrayado */
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.circle-icon:hover {
    background-color: #007bff; /* Color al pasar el ratón */
    transform: scale(1.1); /* Efecto de zoom al pasar el ratón */
}

/* Contenedor de redes sociales */
.social-icons {
    margin-left: 100px;
    margin-right: 0;/* Empuja las redes hacia la derecha en pantallas grandes */
}

/* Responsividad para el header */
header {
    padding: 10px 15px;
}
.btn-whatsapp {
    background-color: #25d366; /* Verde de WhatsApp */
    color: white;
    margin-left: 100px;
    padding: 10px 20px;
    border-radius: 5px; /* Bordes redondeados */
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-whatsapp i {
    font-size: 1.25rem; /* Tamaño del ícono */
}

.btn-whatsapp:hover {
    background-color: #1da851; /* Verde más oscuro */
    transform: scale(1.05); /* Zoom al pasar el mouse */
}



       
       /*-------------menu lateral para todas las paginas------------*/
           #sidebar {
            min-width: 250px;
            max-width: 250px;
            background-color: #343a40;
            color: white;
            height: 100vh;
            position: fixed;
            display: flex;
            flex-direction: column;
            top: 0;
            left: 0;
            transition: transform 0.3s ease;
            z-index: 1000;
        }
        .logo{
            width: 10px;
        }

        #sidebar .nav-link {
            color: #343a40;
            padding: 1rem 1.5rem;
        }

        #sidebar .navbar-brand {
            padding: 1rem 0;
        }

        #sidebar .nav-link:hover {
            color: #007bff;
            background-color: #495057;
        }

        #sidebar .navbar-brand img {
            width: 80%;
            padding: 1rem;
        }
        
    
       
         /* Estilo del botón de cierre (X) - oculto por defecto */
         
         
    .close-btn {
    display: none;
    background-color: transparent;
    color: white;
    border: none;
    font-size: 1.5rem;
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    z-index: 1001;
}

/*-------------------------------- Estilo del botón de menú---------------------------------- */
    .menu-btn {
            position: absolute;
            top: 15px;
            left: 15px;
            z-index: 1000;
            display: none;
            background-color: #343a40;
            color: white;
            border: none;
            padding: 10px 15px;
            cursor: pointer;
            border-radius: 3px;
        }
       /*aqui van los estilos del index*/
     
       
       
    
        
    #content {
       
       
        width: 100%;
    }

  .hero {
    
    /* Ajuste por el ancho del sidebar */
    height: 100vh; /* Toda la altura de la ventana */
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), 
        url('Imagenes/portadas.jpg') center center / cover no-repeat;
   
    padding: 0;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    margin-top:0px;
    margin-left: 250px;
   
}

#content {
    margin-top: 0; /* Ajusta el margen para respetar la posición de la hero */
    padding: 0;
}


    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.5rem;
    }

    .footer-custom {
        background-color: #343a40;
        color: white;
        padding: 2rem 0;
    }

        /* Sección de empleados */
        
    .empleado-photo {
        width: 150px;
        height: 150px;
        object-fit: cover;
        border-radius: 50%;
    }
    
    .empleado-img {
        max-width: 150px; 
        height: auto; 
        object-fit: cover; 
        border-radius: 5%; 
    }

    .empleado-card {
        max-width: 200px; 
        margin: auto;
    }

        /* Sección de carrusel */
        
    .logo-carousel img {
        width: 100px;
        height: auto;
        filter: grayscale(100%);
        transition: filter 0.3s ease;
    }

    .logo-carousel img:hover {
        filter: grayscale(0%);
    }
    #servicios {
        text-align:center;
        display: flex;
       margin-left:250px;
        justify-content: center;
       
    }
    #proyectos {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        height: auto; 
        margin-left:250px;
        padding: 20px 20px; 
        gap: 10px; 
    }

    #proyectos .row {
        display: flex; 
        justify-content: center; 
        align-items: stretch; 
        gap: 15px; 
        flex-wrap: nowrap; 
    }

    #proyectos h2 {
        margin-top: 40px;
        margin-bottom: 40px; 
        font-size: 2rem; 
    }

    #proyectos .card {
        width: 400px; 
        flex: 0 0 350px; 
        height: auto; 
        display: flex; 
        flex-direction: column; 
        justify-content: space-between; 
        align-items: center; 
        text-align: center;
        padding: 15px; 
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
        border: 1px solid #ddd; 
        border-radius: 8px; 
        overflow: hidden; 
    }

    #proyectos .card img {
        width: 100%; 
        height: 200px; 
        object-fit: cover; 
        border-radius: 5px; 
    }

    #proyectos .card h5 {
        font-size: 1.25rem;
        margin: 10px 0;
    }

    #proyectos .card p {
        font-size: 1rem;
        margin: 0;
        overflow: visible; 
        text-overflow: ellipsis; 
        max-height: 3.5em; 
        line-height: 1.5; 
        white-space: normal;
    }
    
    #logos {
        display: flex; 
        flex-direction: column; 
        align-items: center; 
        justify-content: center; 
         margin-left:250px;
        padding: 20px; 
        text-align: center; 
    }

    #logos .row {
        display: flex; 
        flex-wrap: wrap; 
        justify-content: center; 
        align-items: center; 
        gap: 0; 
    }

    #logos .col-6 {
        flex: 0 1 33%; 
        max-width: 33%; 
        display: flex; 
        justify-content: center;
        align-items: center;
        padding: 0; 
        box-sizing: border-box; 
    }

    #logos img {
        width: 100px; 
        height: auto; 
        display: block; 
        margin: 0 auto; 
        object-fit: contain; 
    }   

    #logos img:hover {
        filter: grayscale(0%); 
    }
    
    #empleados {
        display: flex; 
        flex-direction: column;
        align-items: center; 
        justify-content: center; 
        margin-left: 250px; 
        padding: 20px; 
        text-align: center; 
    }

    #empleados .row {
        display: flex; 
        flex-wrap: wrap;
        justify-content: center; 
        align-items: stretch; 
        gap: 20px; 
    }

    #empleados .empleado-card {
        flex: 1 1 200px; 
        min-height: 300px; 
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        padding: 15px;
        border: 1px solid #ddd;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        text-align: center;
        transition: transform 0.3s ease, box-shadow 0.3s ease; 
    }

    #empleados .empleado-card:hover {
        transform: scale(1.05); 
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }

    #empleados .empleado-img {
        width: 150px;
        height: 150px;
        object-fit: cover; 
        border-radius: 5%;
        margin-bottom: 10px;
    }

    #empleados h5 {
        font-size: 1.2rem;
        margin: 10px 0;
    }

    #empleados p {
        font-size: 1rem;
        margin: 0;
        text-align: center;
        line-height: 1.5; 
    }
    .logo-grayscale { /* Estilo para hacer los logos en blanco y negro */
        width: 80px; 
        filter: grayscale(100%); 
        transition: filter 0.3s ease; 
    }
    
    .logo-grayscale:hover {  /* Cambia a color cuando el mouse pase por encima */
        filter: grayscale(0%);
    }
    
  

      

    

 
       
/*----------------------aqui va el diseño de formulario-----------------------------------*/

        .form-image {
            height: 100%;
            width: 100%;
            object-fit: cover;
            border-top-left-radius: 10px;
            border-bottom-left-radius: 10px;
        }

        .form-right {
            padding: 30px;
        }

        .btn-primary {
            background-color: #007bff;
            border-color: #007bff;
        }
           .close-btn {
    display: none;
    background-color: transparent;
    color: white;
    border: none;
    font-size: 1.5rem;
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    z-index: 1001;
}

      .imagen-portada {
    width: 100%;
    display: none;
    height: 300px; /* Altura fija para la portada, ajusta según necesites */
    overflow: hidden; /* Recorta cualquier parte de la imagen que sobresalga */
    border-radius: 8px; /* Bordes redondeados opcionales */
    margin-bottom: 30px;
}

.imagen-portada img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Aplica zoom y recorte */
    object-position: center; /* Centra el zoom en el medio de la imagen */
}
        .tema-card {
            
            border: 1px solid #ddd;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            margin: 10px 0;
            padding: 15px;
            display: flex;
            align-items: center;
            text-align:center;
        }
            .footer {
            background-color: #2d2d2d; /* Gris oscuro */
            color: #f5f5f5; /* Texto blanco */
            padding: 30px 0;
             margin-left:250px;
            z-index:1210;
           
        }
        .footer a {
            color: #1e90ff; /* Azul para los enlaces */
            text-decoration: none;
        }
        .footer a:hover {
            color: #007bff; /* Azul más intenso al pasar el mouse */
            text-decoration: underline;
        }
        .footer .icon {
            color: #1e90ff; /* Azul para los íconos */
            margin-right: 10px;
        }
        .footer h5 {
            font-weight: bold;
            margin-bottom: 15px;
        }
        
        
        
        
        /*---------------------estilo de productos.php --------------------------------*/
/* Eliminar o comentar las reglas anteriores y usar estas */

/* Estilos para los selects */
.form-select-sm {
    height: 38px !important;
    padding: 0.375rem 2.25rem 0.375rem 0.75rem !important;
    line-height: 1.5;
    border-radius: 0.375rem !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    display: flex !important;
    align-items: center;
}

/* Estilos para los botones */
.filter-btn {
    width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem !important;
}

/* Alineación vertical de íconos */
.bi {
    vertical-align: middle;
    font-size: 1.1rem;
}

.btn-sm {
    min-width: 38px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}


        
       
.btn {
    padding: 0.5rem 1rem; /* Ajusta el padding para todos los botones */
    border-width: 2px;    /* Asegura un grosor consistente para el borde */
    transition: all 0.2s ease-in-out; /* Para animaciones suaves */
}

.btn.active {
    background-color: #0056b3; /* Color del fondo cuando está activo */
    color: white; /* Color del texto */
    border-color: #004085; /* Color del borde */
    padding: 0.5rem 1rem; /* Asegura que el padding no cambie */
    border-width: 2px; /* Consistencia en el grosor del borde */
}

.btn:hover {
    transform: scale(1.05); /* Efecto de hover opcional */
}


      


.card {
    height: 100%; /* Asegura altura uniforme */
    display: flex;
    flex-direction: column;
}

.card-body {
    flex: 1; /* Ocupa el espacio disponible */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-text {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limita a 3 líneas */
    -webkit-box-orient: vertical;
    line-height: 1.4; /* Espaciado entre líneas */
    max-height: 4.2em; /* Altura máxima basada en line-height */
}

.card-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    min-height: 3em; /* Altura mínima para 2 líneas */
}

.card-img-top {
    height: 200px; /* Ajusta la altura de la imagen */
    object-fit: cover; /* Mantén la proporción de la imagen y cúbrela */
}

.btn-primary {
    align-self: center; /* Centra el botón horizontalmente */
    margin-top: 0.5rem;
}




/*------------------------------------------ estilo de servicios.html----------------------------------------*/

.container-form {
    background-color: #f8f9fa;
    padding: 0;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin-top: 50px;
    overflow: hidden;
}

.form-image {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.form-right {
    padding: 30px;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}
.myCarousel {
    
    margin-left: 250px;
    overflow: hidden;
}

.textos{
    text-align: justify;
}






  /*----------------------------------------- Estilos para pantallas pequeñas ------------------------------------------------*/

        /* Estilos para pantallas de tablet horizontales */
        @media (max-width: 1268px) {
            
            #servicios {
                max-width:950px;
        text-align:center;
        display: flex;
        margin-left:0px;
        justify-content: center;
       
    }
        }
 @media (max-width: 768px) {
     
     .hero{
        width:100%;
        margin-left:0px;
    }
         .menu-btn {
        display: block !important; /* Visible en móviles */
        }
         .close-btn {
         display: block; /* Visible solo en móviles */
         }

    

             #sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1000; /* Asegura que el sidebar esté en la parte superior */
             }

         #sidebar.active {
        transform: translateX(0);
             }
             #sidebar {
        position: fixed;
        transform: translateX(-100%);
        margin: 0px;
             }
               header {
        text-align: center; /* Centra el contenido en pantallas pequeñas */
         margin-left: 0px;
    }
    
    .social-icons {
        margin-left: 0; /* Quita el margen a la izquierda */
        margin-top: 10px; /* Añade espacio entre la barra de búsqueda y los íconos */
    }
    .circle-icon {
        width: 35px; /* Íconos más pequeños en pantallas pequeñas */
        height: 35px;
        font-size: 1rem;
    }
     .btn-whatsapp {
        display: none; /* Ocultar el botón */
    }
        #content {
            margin-left: 0px;
            width: 100%;
        }
        .productos{
            
            margin-left:0px;
        } 

        .offcanvas-backdrop {
            display: none;
        }

        .offcanvas-active #sidebar {
            transform: translateX(0);
        }

      

        .menu-btn:hover {
            background-color: #495057;
        }
        .imagen-portada {
    
             display: inline;

            }
            .footer{
                margin-left: 0px;
            }
     #servicios {
        text-align:center;
        margin-left: 0px; 
        justify-content: center;
      
    }
         /* Sección de Proyectos Recientes */
         #logos{
             margin:0px;
         }
         #proyectos{
             margin:0px;
         }
         #empleados{
             margin:0px;
         }
    #proyectos .row {
        flex-direction: column;  /* Alinear elementos uno debajo del otro */
    }
    #proyectos .card {
        width: 100%;  /* Ocupa todo el ancho disponible */
    }

    /* Sección de Empleados */
    #empleados .row {
        flex-direction: column;  /* Alinear elementos uno debajo del otro */
        gap: 10px;  /* Espacio entre elementos */
    }
    #empleados .empleado-card {
        width: 80%;  /* Ancho ajustado para mejor visualización */
        max-width: 300px;
        margin:  auto;  /* Centrar la tarjeta */
    }
    #footer{
        z-index:1050;
    }
  
     .row-prod{
            margin-left:0px;
            
        }
        .TitProd{
            margin-left:0px;
            
        }
      .d-flex.flex-wrap a {
            flex: 1 1 45%; /* Los botones ocupan el 45% del ancho */
            text-align: center;
        }

    main {
        margin-left: 0; /* Sin margen en pantallas pequeñas */
          text-align:justify;
    }
       /* Botón hamburguesa */
            
        

        .menu-btn:hover {
            background-color: #495057;
        }
        
          .myCarousel {
        margin-left: 0px;
    }
      .carousel-item img,
    .img-fluid {
        width: 100%; /* Asegura que las imágenes no se desborden */
        height: auto;
    }
       .col-md-6 {
        width: 100%;
        padding: 15px;
    }
    .carousel-control-prev,
.carousel-control-next {
    display:none;
    z-index: 3;
    width: 5%;
}

       
    }
    .carousel-item img {
    width: 100%;
    height: 80vh;
    object-fit: cover;
    object-position: center;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
}

.carousel-caption h1,
.carousel-caption p {
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.carousel-control-prev,
.carousel-control-next {
    z-index: 3;
    width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
}

.container-fluid {
    margin: 0;
    padding: 0;
}