@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
}

/*Colores Dinamica*/

:root {
    --azul: #102235;
    --naranja: #ec671a;
    --azul-transparente: rgba(0, 51, 102, 0.7);
}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
}

/*Boton flotante*/

.boton_flotante {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    margin: 0px 25px 25px 0px;
    border-radius: 100px;
    z-index: 1;
}

.boton_flotante img{
    height: 50px;
}

.boton_flotante:hover {
    transform: scale(1.08);
    cursor: pointer;
    transition: transform 1s;
}

/* Barra superior */
.top-bar {
    background-color: var(--naranja);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    font-size: 14px;
    gap: 20px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons img {
    width: 32px;
}

/* Menú principal */
.header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 20px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    gap: 40px;
}

.logo img{
    width: 220px;
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--gris);
    font-size: 16px;
    padding: 5px 10px;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    min-width: 150px;
    top: 120%;
    left: 0;
    z-index: 10;
}

.dropdown-content a {
    color: var(--gris);
    padding: 10px;
    display: block;
    text-decoration: none;
}

.dropdown-content a:hover {
    background-color: var(--naranja);
    color: white;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.menu-icon {
    display: none;
    cursor: pointer;
}

.menu {
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100%;
    background-color: var(--azul);
    color: white;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    transition: right 0.3s;
    padding-top: 50px;
    z-index: 2000;
}

.menu a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px;
    font-size: 18px;
}

.menu a:hover {
    background-color: var(--naranja);
}

.menu.active {
    right: 0;
}

.submenu {
    display: none;
    padding-left: 20px;
}

.menu .dropdown.active .submenu {
    display: block;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
}

/*Banner*/

.carrusel_publicidad {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.carrusel_publicidad img {
    max-width: 100%;
    height: auto;
    display: none;
}

.carrusel_publicidad img:first-child {
    display: block;
}

.carrusel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    padding: 10px;
}

.carrusel-button:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.carrusel-prev {
    left: 30px;
}

.carrusel-next {
    right: 30px;
}

/* Botón de descarga */

.download-bar {
    background-color: var(--naranja);
    text-align: center;
    padding: 20px 0;
    width: 100%;
}
  
  .download-bar h2 {
    color: white;
    margin: 0;
    padding: 0 20px;
    display: inline-block;
    vertical-align: middle;
    font-size: 1.5em;
    font-weight: 800;
  }
  
  .download-button {
    display: inline-block;
    background-color: var(--azul);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    vertical-align: middle;
    margin-left: 20px;
  }
  
  .download-button:hover {
    background-color: #555;
  }

/*Div 1 Inicio*/

.div1-inicio {
    background-color: #fff;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.banner-content {
    max-width: 1000px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    background-color: #ff7f32;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.image-container {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 0;
    background-color: #fff; /* Fondo blanco para la imagen */
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
}

.image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 0 0 0 15px; /* Solo la parte izquierda tiene borde redondeado */
}

.text-container {
    flex: 2 1 400px;
    padding: 30px;
    color: white;
    text-align: left;
}

.text-container h2 {
    margin-top: 0;
    font-size: 1.6em;
}

.text-container p {
    margin: 10px 0;
    font-size: 0.9em;
    font-weight: 300;
}

.text-container button {
    background-color: #fff;
    color: #ff7f32;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.text-container button:hover {
    background-color: #ffe6d5;
}

/* Lineas de producto */

.portfolio-materiales-electricos {
    padding: 2rem;
    text-align: center;
}

.portfolio-materiales-electricos__titulo {
    color: var(--naranja);
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.portfolio-materiales-electricos__descripcion {
    max-width: 800px;
    margin: 0 auto 2rem auto;
    font-size: 1rem;
    line-height: 1.5;
    color: #555;
}

.grid-materiales-electricos {
    display: grid;
    padding: 0px 13rem;
    grid-template-columns: repeat(4, minmax(250px, 1fr));
    gap: 2rem;
}

.grid-materiales-electricos__item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
}

.grid-materiales-electricos__item:hover {
    transform: scale(1.05);
}

.grid-materiales-electricos__item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.grid-materiales-electricos__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--azul-transparente);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 1.2rem;
    font-weight: bold;
}

.grid-materiales-electricos__item:hover .grid-materiales-electricos__overlay {
    opacity: 1;
}

/* Clientes */

.clientes-container {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 250px;
    font-weight: 100;
    margin-top: 30px;
    margin-bottom: 40px;
}

.clientes-container h2 {
    font-weight: 400;
}

.carousel {
    width: 80%; 
    display: flex;
    max-height: 250px; 
    overflow: hidden;
}

.slide {
    flex: 0 0 25%;
    height: 150px;
}

.slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

.arrow {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    color: #fff;
    text-align: center;
    line-height: 40px;
    cursor: pointer;
    margin: 0 10px;
    user-select: none;
    transition: background-color 0.3s ease;
}

.arrow:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.navigation {
    display: flex;
}

/* Form y botones */

.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 20px 320px;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 20px;
}

.social-and-directions h3 {
    color: var(--rojo);
    margin-bottom: 10px;
}

.social-and-directions {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
}

.social-and-directions, .quotation-form {
    flex-basis: 48%;
}

.social-links a, .direction-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--morado);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    margin-right: 10px; /* Ajusta el margen derecho para separación */
}

.social-links a:hover, .direction-buttons a:hover {
    background-color: var(--rojo);
    transform: scale(1.05); /* Efecto de crecimiento al hacer hover */
}

.direction-buttons a {
    border: none; /* Remueve el borde si prefieres un look sin bordes */
}

.direction-buttons a img {
    width: 20px;
    margin-right: 5px;
}

.quotation-form h2 {
    color: var(--rosa);
    text-align: center;
    font-size: 35px;
}

.quotation-form p {
    text-align: center;
    color: var(--morado);
    margin-bottom: 20px;
    font-size: 18px;
    color: var(--naranja);
}

.quotation-form form {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Espacio entre campos */
}

.quotation-form input[type="text"],
.quotation-form input[type="number"],
.quotation-form textarea {
    padding: 10px;
    border: 1px solid var(--azul);
    border-radius: 5px;
    outline: none; /* Elimina el borde al enfocar */
}

.quotation-form input[type="text"]:focus,
.quotation-form input[type="number"]:focus,
.quotation-form textarea:focus {
    border-color: var(--naranja);
}

.quotation-form button {
    padding: 10px 20px;
    background-color: var(--naranja);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.quotation-form button:hover {
    font-size: 15px;
}

/*Footer*/

footer {
    display: flex;
    width: 100%;
    height: auto;
    background-color: var(--azul);
}

.sec_final {
    display: flex;  
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 30px 300px;
    gap: 30px;
}

.sec_final h2{
    font-weight: 500;
}

.footer_descrip{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.footer_descrip img{
    height: 60px;
}

.footer_descrip p{
    line-height: 20px;
    color: white;
    margin-top: 10px;
    font-size: 1em;
}

.redesfooter {
    display: flex;
    flex-direction: column;
    color: white;
}

.redesfooter a{
    text-decoration: none;
    color: white;
}

iframe {
    width: 300px;
    height: 130px;
}

/* Derechos de autor*/

.Derechos_Autor {
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    height: 40px;
    background-color: var(--naranja);
    font-size: 0.8rem;
}

/*Responsive*/

@media (max-width: 992px) {
    /* Lineas de producto */
    .grid-materiales-electricos {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Menu */

    .nav-links {
        display: none;
    }
    .menu-icon {
        display: block;
    }

    /*Div 1*/
    .banner-content {
        max-width: 350px;
        flex-direction: column;
        text-align: center;
    }
    .text-container {
        flex: 2 1 300px;
    }
    
    /* Lineas de producto */

    .portfolio-materiales-electricos__titulo {
        font-size: 2.5rem;
    }

    .grid-materiales-electricos {
        grid-template-columns: 1fr;
        padding: 0px 1rem;
        gap: 2rem;
    }

    .grid-materiales-electricos__item img {
        height: 150px;
    }
    
    /*Clientes*/
    .slide {
        flex: 0 0 50%; /* Muestra 2 logos a la vez en dispositivos móviles */
    }
    .navigation {
        margin-top: -30px;
        z-index: 1;
    }
    footer {
        height: auto;
    }
    .sec_final {
        text-align: center;
        flex-direction: column;
        padding: 50px 50px;
    }
    .footer_descrip{
        margin-right: 0px;
        width: 100%;
        flex-direction: column;
    }
    .custom-container{
        width: 80%;
    }
    .custom-container .header {
        flex-direction: column;
        text-align: center;
      }
    
      .custom-container .header p {
        text-align: center;
        margin-top: 10px;
      }
    
      .custom-container .grid {
        grid-template-columns: 1fr;
      }
    
      .custom-container .item {
        padding: 15px;
      }

      .menu-toggle {
        display: block;
    }

        /*Novedades*/
        .novedades_head {
            padding: 10px 20px;
        }
        .iconos img {
            margin-left: 0px;
            width: 18px;
            height: auto;
        }
    .main-menu {
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }
    .menu {
        justify-content: center;
        align-items: center;
        flex-direction: column;
        margin-bottom: 30px;
        gap: 30px;
    }
    .logo {
        height: 60px;
        margin: 10px 0px 30px 0px;
    }
        /*Descargar*/
        .download-bar h2 {
            font-size: 1em; /* Reduce el tamaño del título para pantallas pequeñas */
            padding: 0 10px;
          }
        
          .download-button {
            padding: 8px 15px; /* Botón más pequeño para pantallas pequeñas */
            margin-left: 10px;
            margin-top: 10px;
          }
        
    /*Formulario inicio*/
    .contact-container {
        padding: 20px 40px;
    }
    .social-and-directions, .quotation-form {
        flex-basis: 100%;
        margin-bottom: 20px; /* Añade margen inferior para separación en dispositivos móviles */
    }

    .social-links a, .direction-buttons a {
        margin-bottom: 10px; /* Añade margen inferior para cada botón en vista móvil */
    }
}