/* === RESETEO BÁSICO === */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: "Poppins", sans-serif;
      color: #333;
    }

    /* === SECCIÓN PRINCIPAL CON IMAGEN DE FONDO === */
    .hero {
      position: relative;
      height: 70vh;
      background-image: url('/img/estr7.png');
      background-size: cover;
      background-position: center;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .hero2 {
      position: relative;
      height: 70vh;
      background-image: url('/img/estr8.png');
      background-size: cover;
      background-position: center;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .hero3 {
      position: relative;
      height: 70vh;
      background-image: url('/img/elect1.png');
      background-size: cover;
      background-position: center;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .hero4 {
      position: relative;
      height: 70vh;
      background-image: url('/img/somos1.png');
      background-size: cover;
      background-position: center;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .hero5 {
      position: relative;
      height: 70vh;
      background-image: url('/img/contact1.png');
      background-size: cover;
      background-position: center;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .hero::before {
      content: "";
      position: absolute;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0, 0, 0, 0.4);
      z-index: 1;
    }

    /* LOGO */
    .logo {
      position: absolute;
      top: 20px;
      left: 30px;
      z-index: 2;
    }

    .logo img {
      height: 65px;
      width: auto;
      border-radius: 10px;
    }

    /* TEXTO DE BIENVENIDA CON EFECTO */
    .hero-content {
      z-index: 2;
      text-align: center;
      color: #fff;
      animation: fadeInUp 2s ease;
    }

    .hero-content h1 {
      font-size: 3rem;
      font-weight: 700;
      text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
      transition: all 0.4s ease;
    }

    /* === EFECTO HOVER AL TEXTO === */
    .hero-content h1:hover {
      color: #9eb475;
      transform: scale(1.08);
      text-shadow: 0 0 20px rgba(255, 183, 3, 0.8);
      cursor: pointer;
    }

    /* === EFECTO Responsive === */
    @keyframes fadeInUp {
      0% {
        opacity: 0;
        transform: translateY(40px);
      }
      100% {
        opacity: 1;
        transform: translateY(0);
      }
    }



   header {
            background-color: #003366;
            color: white;
            position: sticky;
            top: 0;
            z-index: 1000;
            
}


/* Barra Menú*/ 
.container__menu{
    width: 100%;
    height: 70px;
    background-color: #003366;
    padding: 0px 20px;
    justify-items: center;
}

.menu{
    max-width: 1200px;
    margin: auto;
    height: 100%;
    
   
}

nav{
    height: 100%;
   
}

nav > ul{
    height: 100%;
    display: flex;
    
}

nav  ul  li{
    height: 100%;
    list-style: none;
    position: relative;
    
}

nav > ul > li:first-child > a{
    background-image: url();
    background-size: 24px;
    background-repeat: no-repeat;
    background-position: center center;
    padding: 20px 40px;
     
}

nav > ul > li:first-child:hover > a{
    background-image: url();
    background-size: 24px;
    background-repeat: no-repeat;
    background-position: center center;
}

nav > ul > li >a{
    width: 100%;
    height: 100%;
    align-items: center;
    padding: 14px;
    display: flex;
    color: #fff;
    text-transform: uppercase;
    font-size: 18px;
    transition: all 300ms ease;
    text-decoration: none;
    
}

nav > ul > li >a:hover{
    transform: scale(1.1);
    background-color:#1a4c7e;
    box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5);
}
/*Submenu*/
nav ul li ul{
    width: 200px;
    display: flex;
    flex-direction: column;
    background: rgb(62, 115, 165);
    position: absolute;
    top: 90px;
    left: -5px;
    visibility: hidden;
    opacity: 0;
    box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5);
    z-index: 10;
    transition: all 300ms ease;
    
}

nav ul li:hover ul{
    visibility: visible;
    opacity: 1;
    top: 70px;

}

nav ul li ul:before{
    content: '';
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 12px solid rgb(62, 115, 165);
    position: absolute;
    top: -12px;
    left: 20px;
}

nav ul li ul li a{
    display: block;
    color: #fff;
    padding: 6px;
    padding-left: 14px;
    margin-top: 10px;
    font-size: 14px;
    text-transform: uppercase;
    transition: all 300ms ease;
    text-decoration: none;
}

nav ul li ul li a:hover{
    background: rgb(163, 183, 190);
    color: black; 
    transform: scale(1.1);
    padding-left: 30px;
    font-size: 14px;
    box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5);
}
/*Fin Menu*/

        /* =============================== */
        /* Responsive - Menú Móvil */
        /* =============================== */

        /* Botón hamburguesa */
        .menu__toggle {
            display: none;
            flex-direction: column;
            justify-content: space-between;
            width: 25px;
            height: 18px;
            cursor: pointer;
        }

        .menu__toggle span {
            display: block;
            height: 3px;
            width: 100%;
            background-color: #fff;
            border-radius: 2px;
            transition: all 0.3s ease;
        }

        /* Vista móvil */
        @media (max-width: 768px) {

            .container__menu {
                height: auto;
                flex-direction: column;
                align-items: flex-start;
            }

            .menu__toggle {
                display: flex;
                margin: 15px 0;
            }

            nav {
                width: 100%;
            }

            nav > ul {
                flex-direction: column;
                width: 100%;
                background-color: black;
                max-height: 0;
                overflow: hidden;
                transition: max-height 0.4s ease;
            }

            nav > ul > li {
                width: 100%;
                border-top: 1px solid #333;
            }

            nav > ul > li > a {
                width: 100%;
                padding: 15px;
                font-size: 16px;
            }

            /* Submenús dentro del menú móvil */
            nav ul li ul {
                position: relative;
                top: 0;
                left: 0;
                box-shadow: none;
                visibility: visible;
                opacity: 1;
                background: #222;
                display: none;
            }

            nav ul li:hover ul {
                display: block;
            }

            /* Activar menú desplegado */
            nav.active > ul {
                max-height: 500px; /* Ajustar según cantidad de enlaces */
            }
        }
 /* Fin menú */

        /* ===== BOTÓN FLOTANTE WHATSAPP ===== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
    animation: bounceIn 1s ease;
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #1ebe5d;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.6);
}

.whatsapp-float:hover img {
    transform: rotate(10deg);
}

/* ===== Animación de entrada ===== */
@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    60% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
    }
}

/* ===== Animación de vibración periódica ===== */
@keyframes vibrate {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(3deg); }
    20% { transform: rotate(-3deg); }
    30% { transform: rotate(2deg); }
    40% { transform: rotate(-2deg); }
    50% { transform: rotate(1deg); }
    60% { transform: rotate(-1deg); }
    70%, 100% { transform: rotate(0deg); }
}

/* La vibración se repite cada 8 segundos */
.vibrate {
    animation: bounceIn 1s ease, vibrate 0.6s ease-in-out 3s infinite alternate;
    animation-delay: 0s, 3s;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float img {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-float img {
        width: 25px;
        height: 25px;
    }
}
 /* ===== FIN BOTÓN FLOTANTE WHATSAPP ===== */

  /* ===== GSLERIA DE FOTOS ===== */

  /* Estilo general */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f7f7f7;
    margin: 0;
    padding: 0;
}

/* Contenedor principal */
.galeria-container {
    max-width: 1200px;
    margin: 50px auto;
    text-align: center;
    padding: 20px;
}

.galeria-container h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 30px;
}

/* Galería */
.galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

/* Cada imagen */
.imagen {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Efecto hover */
.imagen:hover img {
    transform: scale(1.1);
}

.imagen:hover {
    transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 600px) {
    .galeria-container h2 {
        font-size: 1.5rem;
    }

    .galeria {
        gap: 10px;
    }
}



/* Sección del Texto del servicio de Estructuras*/
.servicio-metalico {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 60px auto;
    padding: 30px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    gap: 40px;
}

/* Contenido textual */
.contenido-servicio {
    flex: 1 1 500px;
}

.contenido-servicio h2 {
    font-size: 2rem;
    color: #222;
    margin-bottom: 20px;
    border-left: 5px solid #0078ff;
    padding-left: 15px;
}

.contenido-servicio p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 1rem;
}

/* Imagen */
.imagen-servicio {
    flex: 1 1 400px;
    text-align: center;
}

.imagen-servicio img {
    width: 100%;
    max-width: 500px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.imagen-servicio img:hover {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 900px) {
    .servicio-metalico {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .contenido-servicio h2 {
        font-size: 1.7rem;
        border-left: none;
        border-bottom: 3px solid #0078ff;
        display: inline-block;
        padding-left: 0;
        padding-bottom: 5px;
    }

    .imagen-servicio img {
        max-width: 90%;
    }
}
/* Fin Sección del Texto del servicio de Estructuras */

/* Sección del Texto del servicio Electronico*/
.servicio-industrial {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 60px auto;
    padding: 30px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    gap: 40px;
}

/* Contenido textual */
.contenido-servicio {
    flex: 1 1 500px;
}

.contenido-servicio h2 {
    font-size: 2rem;
    color: #222;
    margin-bottom: 20px;
    border-left: 5px solid #0078ff;
    padding-left: 15px;
}

.contenido-servicio p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 1rem;
}

/* Imagen */
.imagen-servicio {
    flex: 1 1 400px;
    text-align: center;
}

.imagen-servicio img {
    width: 100%;
    max-width: 500px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.imagen-servicio img:hover {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 900px) {
    .servicio-industrial {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .contenido-servicio h2 {
        font-size: 1.7rem;
        border-left: none;
        border-bottom: 3px solid #0078ff;
        display: inline-block;
        padding-left: 0;
        padding-bottom: 5px;
    }

    .imagen-servicio img {
        max-width: 90%;
    }
}
/* Fin Sección del Texto del servicio Electronico*/



/* Sección principal Casos de Exito*/
.casos-exito {
    max-width: 1200px;
    margin: 60px auto;
    padding: 40px 20px;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.casos-exito h2 {
    font-size: 2rem;
    color: #222;
    margin-bottom: 15px;
    border-left: 5px solid #0078ff;
    padding-left: 15px;
    display: inline-block;
}

.casos-exito .intro {
    color: #555;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.7;
    font-size: 1rem;
}

/* Contenedor de tarjetas */
.contenedor-casos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Cada caso */
.caso {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.caso:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Imagen del caso */
.caso img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Contenido del caso */
.contenido-caso {
    padding: 20px;
    text-align: left;
}

.contenido-caso h3 {
    font-size: 1.2rem;
    color: #0078ff;
    margin-bottom: 10px;
}

.contenido-caso p {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .casos-exito h2 {
        font-size: 1.6rem;
        border-left: none;
        border-bottom: 3px solid #0078ff;
        padding-left: 0;
        padding-bottom: 5px;
    }

    .contenido-caso {
        text-align: center;
    }

    .contenido-caso h3 {
        font-size: 1.1rem;
    }
}
/* Fin Sección principal Casos de Exito*/


/* Footer general */
.footer {
    background-color: #111;
    color: #fff;
    padding: 40px 20px 10px;
    font-family: 'Poppins', sans-serif;
}

.footer-contenedor {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    gap: 40px;
    text-align: left;
}

/* Información de la empresa */
.footer-info h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.footer-info p {
    color: #bbb;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 5px 0;
}

.footer-ubicacion {
    margin-top: 15px;
}

.footer-ubicacion p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ccc;
    font-size: 0.9rem;
}

.footer-ubicacion i {
    color: #25d366;
}

/* Redes sociales */
.footer-redes h4 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 15px;
}

.redes-sociales {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.redes-sociales a {
    color: #fff;
    background-color: #222;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

/* Hover effects */
.redes-sociales a.instagram:hover {
    background: linear-gradient(45deg, #feda75, #d62976, #962fbf, #4f5bd5);
    transform: scale(1.1);
}

.redes-sociales a.facebook:hover {
    background-color: #1877f2;
    transform: scale(1.1);
}

.redes-sociales a.linkedin:hover {
    background-color: #0077b5;
    transform: scale(1.1);
}

.redes-sociales a.whatsapp:hover {
    background-color: #25d366;
    transform: scale(1.1);
}

/* Derechos reservados */
.footer-derechos {
    margin-top: 30px;
    border-top: 1px solid #333;
    padding-top: 15px;
    text-align: center;
}

.footer-derechos p {
    font-size: 0.85rem;
    color: #aaa;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-contenedor {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .footer-ubicacion p {
        justify-content: center;
    }
}
/* Fin Footer general */


/* QUIENES SOMOS */

.info-dimeg {
    max-width: 1100px;
    margin: 60px auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 40px;
}

.info-dimeg h2 {
    text-align: center;
    color: #0a0a0a;
    font-weight: 700;
    margin-bottom: 10px;
}

.info-dimeg .intro {
    text-align: center;
    color: #555;
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.seccion {
    margin-bottom: 35px;
}

.seccion h3 {
    color: #004aad;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.seccion p {
    color: #444;
    line-height: 1.7;
    text-align: justify;
    margin-bottom: 10px;
}

.seccion a {
    color: #004aad;
    text-decoration: none;
    font-weight: 500;
}

.seccion a:hover {
    text-decoration: underline;
}

/* Íconos */
i {
    color: #004aad;
}

/* Responsividad */
@media (max-width: 768px) {
    .info-dimeg {
        padding: 25px 20px;
        margin: 30px 15px;
    }

    .seccion h3 {
        font-size: 1.05rem;
    }

    .seccion p {
        font-size: 0.95rem;
    }
}
/* FIN QUIENES SOMOS */

/* CONTACTANOS */
.contacto-container {
  max-width: 1100px;
  margin: 60px auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  padding: 40px;
}

.contacto-container h2 {
  text-align: center;
  color: #004aad;
  font-weight: 700;
  margin-bottom: 10px;
}

.contacto-container .intro {
  text-align: center;
  color: #666;
  margin-bottom: 40px;
}

.contacto-contenido {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

/* ===== FORMULARIO ===== */
.formulario-contacto {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.campo label {
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
  display: block;
}

.campo input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.campo input:focus {
  border-color: #004aad;
  box-shadow: 0 0 6px rgba(0,74,173,0.3);
  outline: none;
}

.btn-enviar {
  background-color: #25d366;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-enviar:hover {
  background-color: #1ebe5d;
  transform: scale(1.03);
}

/* ===== MAPA ===== */
.mapa {
  flex: 1 1 45%;
}

.mapa h3 {
  color: #004aad;
  font-size: 1.1rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

iframe {
  border-radius: 12px;
  width: 100%;
  height: 300px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .contacto-contenido {
    flex-direction: column;
  }

  .formulario-contacto, .mapa {
    flex: 1 1 100%;
  }

  .mapa iframe {
    height: 250px;
  }
}
/* FIN CONTACTANOS */