* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* SUAVIZADO GENERAL */
html {
    scroll-behavior: smooth;
}

body {
      padding-top: 100px; /**********************************/
    font-family: Arial, sans-serif;
    line-height: 1.6;
    
}

/* TODOS LOS ENLACES DE LA PÁGINA COMO BOTONES */


a {
    /* width: 130px;     /*************************************/
    /*min-height: 60px; */ /***********************************/
    line-height: 1.2;

    display: inline-block;
    padding: 12px 24px;
    margin: 8px;
    color: #00265f !important;
    text-decoration: none;
    text-align: center;
    font-size: 15px;
    font-weight:bold;
    border-radius: 5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(102,126,234,0.4);
    border: 2px solid transparent;
    background: #ffffff;
    }


header {
    position: fixed; /**************************************/
    top: 0;
    left: 50%;
    transform: translateX(-50%);

    width: 100%;
    max-width: 1200px;
    background: #ffffff;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000; 
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.LogoDizatel {

    height: 60px;
    width: auto;
}

.logotext{
    color: #001f51;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0.5em;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    text-align: center;
}




.navbar{
  width: 100%;
  max-width: 800px;

  /*background: #1269afe7; */
  display: flex;
  align-items: center;
  gap: 2rem;
  overflow: hidden;
  border-radius: 5px;


}

.nav-links {
/*****listado de Burger**/ 
    display: flex;
    list-style: none;
    border-radius: 5px;
    gap: 10px;
}

.nav-links li {

  flex: 1;
  max-width: 180px;
    
}

.nav-links a {
        width: 130px; /*********************************/
    min-height: 60px; /*******************************/

    display: block;
    text-decoration: none;
    color: rgb(255, 255, 255);
    text-align: center;
    /*background: rgba(255,255,255,0.1); ************************************/
    border: 1px solid transparent;
    border-radius: 5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;

    margin: auto;
}

.nav-links a::before {
    /* content: ''; */
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

 .nav-links a:hover {
    background: linear-gradient(45deg, #0073b6, #001154);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.4);
    color: rgb(255, 255, 255);
    border-bottom: 10px solid #ff6b35
    

  } 

.nav-links a:hover::before {
    left: 100%;
}

.nav-links a.active {
    background: linear-gradient(45deg, #ff6b35, #f7931e) !important;
    box-shadow: 0 0 20px rgba(255,107,53,0.5);
}

/* TELÉFONO COMO BOTÓN */
.phone {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: rgb(255, 255, 255) !important;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255,107,53,0.4);
    white-space: nowrap;
}

.phone:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255,107,53,0.6);
    color: white !important;
}

/* HAMBURGER MOBILE */


.hamburger {
    background: #001f51;
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* TRANSICIÓN HAMBURGUESA */
.hamburger {
    transition: transform 0.3s ease;
}

.hamburger.active {
    transform: scale(0.9);
}





/* Banner */
.hero {
  position: relative;
  width: 100%;
  max-width: 1200px;              /* Ancho máximo 1200px */
  /*height: 600px;                  /* Alto fijo deseado */ /***********************************************/
  height: 100vh; /***********************************/
  min-height: 500px; /*******************************/

  margin: 0 auto;                 /* Centrado en la página */
  overflow: hidden;
  color: white;
  text-align: center;
}

  .video-banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  
}  

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 40px;
  background: rgba(0, 0, 0, 0.45); /* Fondo semi-transparente para legibilidad */
  /*backdrop-filter: blur(4px); */     /* Efecto vidrio (opcional, quítalo si no te gusta) */



}

.hero-content h1 {
  margin: 10px 0;
  font-size: 1.5rem;               /* Ajusta según tu tipografía */
  text-shadow: 0 3px 10px rgba(0,0,0,0.8);
}

.hero-content p {
  max-width: 800px;
  font-size: 1rem;
  margin: 20px 0 30px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.7);
}

.hero-buttons button {
  margin: 10px 15px;
  padding: 14px 35px;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: #d4af37;             /* Dorado a juego con tu tema */
  color: #000;
  font-weight: bold;
}

/* Animación de slide left */

/* VARIOS */

.services, .nequipo, .mi-galeria, .galvanizado {
 

    padding: 50px 20px;
    text-align: center;
}



/***nuestro equipo***/
.nequipo{
    margin: auto;
    /*background: #2066a0;*/
    max-width: 1200px;
}


.team-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.team-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  padding: 20px;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.team-card img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 2px solid #d4af37; /* dorado a juego */
}

.team-card h3 {
  margin: 10px 0 5px;
  font-size: 1.3rem;
}

.team-card .role {
  color: #d4af37;
  font-weight: bold;
  margin-bottom: 10px;
}

.impact-msg { font-style: italic; color: #444; margin-top: 12px; font-size: 0.95rem; }

.team-card p {
  color: #555;
  font-size: 0.95rem;
}


/**NOSOTROS**/

.services {
    max-width: 1200px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: auto;
    border: 5px; 

}
/* Estilos para la sección */
#nosotros {
    padding: 50px 20px;
    overflow-x: hidden; /* Importante: oculta elementos durante animación */
}

/* Contenedor de las cards - si no existe, lo creamos */
#nosotros .services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

/* Estilos base para todas las cards */
#nosotros .nosotros-card {
    width: 250px;
    margin-top: 100px;
    padding: 25px;
    background: #f0f0f0;
    border-radius: 10px;
    /*box-shadow: 0 4px 8px rgba(0,0,0,0.3);*/
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    opacity: 0; /* Todas las cards empiezan invisibles */
}

/* Animaciones */
@keyframes slideInLeft {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Clases para las animaciones específicas */
#nosotros .nosotros-card:nth-child(3).visible { /* VISIÓN - Primer card */
    animation: slideInLeft 0.8s ease forwards;
}

#nosotros .nosotros-card:nth-child(4).visible { /* MISIÓN - Segundo card */
    animation: fadeIn 0.8s ease forwards;
}

#nosotros .nosotros-card:nth-child(5).visible { /* VALORES - Tercer card */
    animation: slideInRight 0.8s ease forwards;
}

/* Estilos para el texto y la imagen */
#nosotros .nosotros-card h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 24px;
}

#nosotros .nosotros-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

#nosotros .nosotros-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 10px;
}




/***Carrousel***/

.carrusel-section {
  padding: 40px 20px;
  text-align: center;
  background: #f0f0f0;
  /*background: #ffffff; /* o el color que uses en tu sitio */
  margin: 40px auto;
  border-radius: 10px;

}

.carrusel-container {
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.carrusel-track {
  display: flex;
  animation: slide 24s linear infinite; /* 24s = 8s por grupo × 3 grupos visibles antes de repetir */
  will-change: transform;
}

.carrusel-slide {
  flex: 0 0 100%;           /* Cada "slide" ocupa el 100% del ancho del contenedor */
  display: flex;
  justify-content: center;
  gap: 20px;                /* espacio entre las 3 fotos */
  padding: 0 10px;
  box-sizing: border-box;
}

.item {
  width: 225px;
  flex-shrink: 0;
  text-align: center;
}

.item img {
  width: 225px;
  height: 300px;
  object-fit: cover;        /* o contain si prefieres ver todo sin recorte */
  border-radius: 8px;
  /*box-shadow: 0 4px 12px rgba(0,0,0,0.15);*/
  display: block;
  margin: 0 auto 10px;
}

.item p {
  margin: 8px 0 0;
  font-size: 0.95rem;
  color: #444;
}

/* Animación de desplazamiento automático */
@keyframes slide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-300%);   /* -100% × 3 (porque duplicamos 1 grupo al final) */
  }
}

/* Pausa al pasar el mouse (opcional pero muy recomendado) */
.carrusel-container:hover .carrusel-track {
  animation-play-state:paused;
}


/**Galeria**/
.mi-galeria {
  max-width: 1200px;
  /*  background: #f0f0f0; */
  padding: 60px 20px;
  text-align: center;
  margin: auto;
}

.image-gallery {
  width: 100%;
  max-width: 1200px;
  height: auto;

  background: #f0f0f0;   
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 40px auto;
}

.gallery-img {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;

  object-fit: cover;
  border-radius: 10px;
  margin-top: 2%;
  /*box-shadow: 0 4px 12px rgba(0,0,0,0.5);*/
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
}

.txt-gallery{
  height: 50px;
  margin-top: 5px;
  margin-bottom: 15px;
  padding-top: 5px;
  padding-bottom: 5px;
}

/* Fade-in */
.fade-in.animated {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Slide desde derecha */
.slide-right {
  transform: translateX(50px) scale(0.95);
}
.slide-right.animated {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* Slide desde izquierda */
.slide-left {
  transform: translateX(-50px) scale(0.95);
}
.slide-left.animated {
  opacity: 1;
  transform: translateX(0) scale(1);
}


/**Galvanizado**/
.galvanizado {
    background: #f0f0f0;
    border-radius: 10px;
    max-width: 1200px;
    padding: 60px 20px;
    text-align: center;
    margin: auto;
}

.image-galvanizado {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 40px auto;
}

/**Corte Metal CNC**/
.cortecnc {
    background: #f0f0f0;
    border-radius: 10px;
    max-width: 1200px;
    padding: 60px 20px;
    text-align: center;
    /* Borde dorado doble */
    border: 8px double #d4af37;       /* #d4af37 es un dorado clásico */
    border-radius: 12px;              /* opcional: esquinas suaves */
    padding: 20px;                    /* espacio interno importante */
    box-sizing: border-box;
    margin: 20px auto;
}

.image-cortecnc {
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 40px auto;

/* Fondo oscuro para que resalte el metal */
  background: #000000;
  padding: 24px;
  border-radius: 14px;
  box-sizing: border-box;

  /* Borde dorado metálico de doble apariencia */
  border: 10px solid transparent;
  background:
    linear-gradient(#cfcfcf, #000000) padding-box,    /* fondo interno */
    linear-gradient(135deg,
      #f9e4b7 0%,   #f0d08a 20%,   #d4af37 40%,
      #b5893e 50%,  #8b6f2e 60%,   #d4af37 80%,
      #f0d08a 100%
    ) border-box;

}

.video-bg{
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;
}

.video-bg2{
    width: 100%;
    max-width: 1200px;
    height: auto;
    display: block; 
}



.video-cortecnc {

   width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;

  margin: 1px auto;
  background: #ffffff;
  border-radius: 15px;
  box-sizing: border-box;
  border: 2px solid transparent;
}



.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;               /* cambia a left: 40px; si lo prefieres a la izquierda */
    background-color: #25D366; /* verde oficial de WhatsApp */
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;             /* para que quede sobre todo */
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;

    animation: pulse 2s infinite; /***********************************/
}

.whatsapp-float img {
    width: 45px;
    height: 45px;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128C7E; /* verde más oscuro al hover */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.whatsapp-float:hover img {
    transform: rotate(10deg);
}

/* Opcional: pequeño pulso animado para llamar la atención */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}






/** Footer **/
footer {
    height: 100%;
    max-height: 150px;
    

    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    justify-items: center;
}

.barra_rs{
  width: 100px;
  justify-items: center;
  text-align: center;
}

.barra_rs a{
  background: fixed;
}

.barra_rs a:hover{
  background: #b536e9;

}



.social-links a {
    color: #fff;
    margin: 0 10px;
    text-decoration: none;
}




.img-bredes{
  width: 40px;
  height: 40px;
}

.contact-section {
  padding: 60px 0;
  background: #f8f9fa;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.map-container{
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;

/******************************************************************/

}


.contact-section h2, .map-container h3 {
  text-align: center;
  margin-bottom: 40px;
  color: #333;
}

.form-container {
  max-width: 600px;
  margin: 0 auto 60px;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  box-sizing: border-box;
}

button {
  width: 100%;
  padding: 15px;
  background: #001f51;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background: #2066a0;
}

.google-maps {
  position: relative;
  padding-bottom: 75%; /* Aspect ratio 4:3 */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #eee;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.google-maps iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
}

textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  box-sizing: border-box;
  resize: vertical;
}




.back-to-top{
    background: #25D366;
    color: #00d4ff;
    font-size: 30px ;
    font-weight: bold;
    width: 60px;
    height: 60px;


}


@media (max-width: 1024px) 
{
    .nav-links {
        gap: 0.5rem;
    }
    
    .nav-links li {
        max-width: 140px;
    }
    
    .nav-links a {
        padding: 10px 16px;
        font-size: 0.9rem;
        min-width: 120px;
    }



    .image-gallery {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }


/***Carrousel**/

    .carrusel-slide 
    {
        justify-content: center;
    }
    .item 
    {
        width: 100%;
        max-width: 225px;
    }

.map-container{
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;
}


}






@media (max-width: 768px) 
{
 header {

        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .navbar {
        width: 100%;
        justify-content: center;
        gap: 1rem;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(30,60,114,0.98);
        padding: 1rem 0;
        box-shadow: 0 5px 20px rgba(0,0,0,0.2);
        gap: 5px;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hamburger {
        display: flex;
    }
    
    .phone {
        order: -1;
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    a {
        width: 100%;
        max-width: 280px;
        margin: 5px auto;
        display: block;
    }

    main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    }





    .nosotros-card, .industry-card {
        width: 100%;
    }



   .image-gallery {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }   

    .txt-gallery{

      font-size: 13px;
      margin-bottom: 15px;
  }

    .form-container, .google-maps {
    padding: 0 10px;
  }



  /***carrusel**/
  .carrusel-slide {
    gap: 12px;
    justify-content: space-around;
  }
  .item {
    width: 180px;
  }
  .item img {
    width: 180px;
    height: 240px;
  }


  /***boton whatsapp ***/
  .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-float img {
        width: 40px;
        height: 40px;
    }



    /* banner */

    .hero { 
      height: 55vh; min-height: 500px; 
    }
    .hero-content { 
      padding: 60px 15px;
 
    }
    .hero-content h1 {
        font-size: 1.2rem;               /* Ajusta según tu tipografía */
      }

    .hero-content p {
        font-size: 1rem;
      }

    .hero-buttons button {
        font-size: 1rem;
        font-weight: bold;
      }

.video-bg{
  width: 250%;
}

.video-bg2{
  width: 100%;
}



.google-maps{
  width: 100%;
  max-width: 768px;
  height: 500px;

  display: block;
}

}

@media (max-width: 450px) {


}