*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/* HEADER GENERAL */
.header-custom {
  background-color: #09000e;
  font-family: 'Arial', sans-serif;
  padding: 10px 40px;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo-group {
  display: flex;
  align-items: center;
}

.header-logo-img {
  height: 100px;
  width: 220px;
  margin-right: 10px;
}

.header-logo-text {
  display: flex;
  flex-direction: column;
}


.header-company {
  font-size: 20px;
  font-weight: bold;
  color: #000;
}

/* MENU */
.header-nav {
  display: flex;
  align-items: center;
}

.header-nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-link {
  text-decoration: none;
  color: #efefef;
  font-size: 16px;
  margin: 0 12px;
}

.header-link.active {
  background-color: #cdb775;
  color: white !important;
  padding: 20px;
  border-radius: 2px;
}

/* SUBMENU */
.header-dropdown {
  position: relative;
}

.header-submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  list-style: none;
  padding: 8px 0;
  margin: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  z-index: 999;
}

.header-dropdown:hover .header-submenu {
  display: block;
}

.header-submenu-link {
  display: block;
  padding: 6px 20px;
  text-decoration: none;
  color: #000;
  font-size: 14px;
  white-space: nowrap;
}

.header-submenu-link:hover {
  background-color: #f0f0f0;
}

/* ICONO HAMBURGUESA oculto por defecto */
.header-burger {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* BACKDROP oculto por defecto */
#back_menu {
  display: none;
}

/* LOGO SECUNDARIO oculto por defecto */
.header-logo-secondary {
  display: none;
}


/*MENU QUE SE DESPLIQGA HACIA ABAJO*/

.menu #btn_menu{
    display: none;
}

.menu ul li a:hover {
    background: #cdb775;
    color: #ffffff;
    padding: 20PX;
    border-radius: 30px;
}
/* Submenú refinado */
ul li ul.dropdown {
    position: absolute;
    top: 115%;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    background: #ffffff;
    border-radius: 16px;
    padding: 12px 0;
    min-width: 260px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 10;
}


/* Ítems del submenú */
ul li ul.dropdown li {
    border: none;
    text-align: center;
}

ul li ul.dropdown li:last-child {
    border-bottom: none;
}

ul li ul.dropdown a {
    display: block;
    padding: 14px 20px;
    color: #cdb775;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.25s ease, color 0.25s ease;
    border-radius: 10px;
    margin: 4px 12px;
}

ul li ul.dropdown a:hover {
    background-color: #f8f5ff;
    color: #09000E;
}
/* Mostrar el submenú al hacer hover */
ul li ul.dropdown {
    transform: translateX(-50%) translateY(10px);
    transition: all 0.3s ease;
}

ul li:hover > ul.dropdown {
    display: block;
    opacity: 1;
    visibility: visible;
}

ul li:hover > ul.dropdown {
    transform: translateX(-50%) translateY(0);
}

/*-----------------------------------------------------------------*/
/*FOOTER*/
.pie_pagina{
    width: 100%;
    background-color: #09000E;
}

.pie_pagina .grupo-1{
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns:repeat(4,3fr);
    padding: 35px 45px;
}

.box figure{
    width: 100%;
    height:100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.LogoFooter{
    width: 320px;
}

.box h2{
    color: #cdb775;
    margin-bottom:25px;
    font-size: 20px;
}

.box p{
    color: #efefef;
    margin-bottom:10px;
    padding: 10px;
   
}

.footer_ul{
    list-style: none;
}

.footer_ul li{
    padding: 10px;
}


.footer_ul a{
    color: #ffffff;
    font-size: 20px;
    text-decoration: none;
    transition: all 700ms;
    text-transform: uppercase;
}

.footer_ul a:hover{
    color: #cdb775;
}


.red_social a{
    display: inline-block;
    text-decoration: none;
    width: 45px;
    line-height: 40px;
    height: 45px;
    color: #ffffff;
    font-size: 20px;
    margin-left: 10px;
    background-color: #09000e;
    text-align: center;
    transition: all 1000ms ;
    border-radius: 20px;
    border: 1px outset #ffffff;
}

.red_social a:hover{
    color: #cdb775;
    background-color: #09000e;
    box-shadow:  -19px 19px 9px 0px rgba(94, 2, 136, 0.379);
    border: 2px outset #09000E;
}


.grupo-2{
    margin-top: 15px;
    background-color: #09000e;
    padding: 15px 10px;
    text-align: center;
    color: #cdb775;
    padding-top: 30px;
    font-size: 14px;
    letter-spacing: 2.67px;
    border-top: 1px solid rgba(255,255,255,.1);
}

.grupo-2 small{
    font-size: 15px;
}

/*-----------------------------------------------------------------*/
/*Portada*/

#particles-js{
    height: 700px;
    width: 100%;
    position: absolute;
    z-index: 1;
    padding: 50px;
}

/* Contenedor general */
.container__cover {
    width: 100%;
    padding: 60px 20px;
    background: #fff;
}

/* Cover alineado horizontalmente */
.cover {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* centrado horizontal */
    align-items: center;     /* centrado vertical */
    gap: 60px;
}

/* Columna de texto */
.cover .text {
    flex: 1 1 500px;
    text-align: left;
}

.cover .text h1 {
    font-size: 3.0rem;
    font-weight: 700;
    color: #09000e;
    margin-bottom: 20px;
}

.cover .text p {
    font-size: 1.7rem;
    line-height: 1.6;
    color: #09000E;
    margin-bottom: 30px;
}

.btn__text {
    background-color: #09000e;
    color: #cdb775;
    padding: 14px 36px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}

.btn__text:hover {
    background-color: #efefef;
    color: #09000E;
}


/*-------- SLIDER--------*/


.contenedor {
    width: 100%;
    overflow: hidden;
}

.slider-contenedor {
    display: flex;
    width: 100%;
    -webkit-transition: transform 0.8s; /* Agregar el prefijo -webkit- */
    transition: transform 0.8s;
}

.contenido_slider {
    width: 100%;
    display: flex;
    height: 400px;
    justify-content: space-around;
    align-items: center;
    background-color: #09000E;
    flex-shrink: 0;
    padding: 10px;
    background-size: cover;
    background-position: 20%;
    background-repeat: no-repeat;

}

.contenido_slider:nth-child(1) {
    background-image: linear-gradient(180deg,#0000008c 0%,#0000008c 100%), url(/Img/img_rodillos.jpg);
}

.contenido_slider:nth-child(2) {
    background-image: linear-gradient(180deg,#0000008c 0%,#0000008c 100%), url(/Img/metalmec1.jpg);
}

.contenido_slider:nth-child(3) {
    background-image: linear-gradient(180deg,#0000008c 0%,#0000008c 100%), url(/Img/tornoo.jpg);
}

.contenido_slider:nth-child(4) {
    background-image: linear-gradient(180deg,#0000008c 0%,#0000008c 100%), url(/Img/tornoo.jpg);
}


.contenido_slide{
    width: 100%;
    display: flex;
    height: 400px;
    justify-content: space-around;
    align-items: center;
    background-color: #e2e2e2;
    flex-shrink: 0;
    padding: 10px;
    background-size: cover;
    background-position: 20%;
    background-repeat: no-repeat;
    background-image: linear-gradient(180deg,#0000008c 0%,#0000008c 100%), url(/Img/Imgns/img6.jpeg);
}


.contenido_slider img , .contenido_slide img{
    width: 700px;
    border-radius: 10px;
}

.contenido_slider section , .contenido_slide section {
    width: 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

.contenido_slider h2 , .contenido_slide h2{
    font-weight: 300;
    text-align: center;
    color: #e2e2e2;
    font-size: 45px;
}

.contenido_slider a, .contenido_slide a{
    color: #e2e2e2;
    background-color: #cdb775;
    width: 130px;
    display: block;
    padding: 15px 0;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
}

.contenido_slider:nth-child(2) a {
    background-color: #cdb775;
    color: #09000E;
    color: #e2e2e2;
}


/*------Cards generales----*/

.container__card-primary{
    padding: 10px 100px 20px 100px;
}

.card__primary{
    margin: auto;
    text-align: center;
    padding: 0px 40px;
}

.text__card-primary{
    max-width: 800px;
    margin: auto;
    color: #f0f0f0;
}

.text__card-primary p{
    color: #09000e;
    letter-spacing:4px;
    font-size: 18px;
    margin-top: 10px;
}

.text__card-primary h1{
    font-size: 30px;
    color: #09000E;
}


.container__box-cardPrimary{
    display: flex;
    justify-content: center;
    margin-top: 40px;
    color: #f0f0f0;
}

.box__card-primary h2{
    color: #cdb775;
}

.box__card-primary{
    max-width: 400px;
    padding: 40px 10px;
    border: 3px outset #cdb775;
    border-radius: 20px;
    margin: 35px;
    background-color:#09000e;
    display: block;
    animation: mover-cards 10s alternate infinite;
}


@keyframes mover-cards{
    0%{
        transform: translateY(-10px);
        animation: backwards;
    }
    50%{
        transform: translateY(0px);
    }
    100%{
        transform: translateY(10PX);
    }
}

.video-full {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  background-color: #000;
}

.img-full {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  background-color: #000;
}


.box__card-primary h2{
    font-size: 25px;
    margin-top: 40px;
    font-weight: 500;
}

.box__card-primary p{
    margin-top: 20px;
}

    .container__card-primary{
        padding: 50px 10px;
    }

    .container__card-primary h1{
        font-size: 25px;
    }

.icon_card-1 {
  width: 80px;
  margin-bottom: 10px;
}

.btn-ver-mas {
  margin-top: 10px;
  background-color: #cdb775;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}
.detalle-servicio {
  margin-top: 15px;
  padding: 0 10px;
  background-color: #09000e;
  border-radius: 8px;
  color: #f8f5ff;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.4s ease;
}

.detalle-servicio.mostrar {
  padding: 10px;
  max-height: 200px; /* ajusta según necesidad */
  opacity: 1;
}

/*-------------Nosotros Mision y Vision ------------------*/
.seccion-mision-vision {
  background-color: #fff;
  position: relative;
  margin-top: 0;
}

.wave-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2;
}

.wave-top svg {
  display: block;
  width: 100%;
  height: auto;
  line-height: 0;
}

/* Contenido después de la curva */
.contenido-mv {
 background-color: #09000e;
  padding: 60px 20px 100px 20px;
  text-align: center;
  position: relative;
  z-index: 99;
  margin-top: -50px; /* Ajusta según el tamaño de tu curva */
}

.text__objt p {
  color: #f0f0f0;
  font-weight: 500;
  letter-spacing: 1px;
}

.text__objt h1 {
  font-size: 2.3rem;
  margin-top: 10px;
  font-weight: bold;
  color: #f0f0f0;
  z-index: 999;
}

/* Tarjetas */
.tarjetas-obj {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.obj__icons {
  background-color: #f0f0f0;
  padding: 30px;
  border-radius: 20px;
  border: 3px solid #cdb775;
  box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.2);
  max-width: 400px;
  transition: transform 0.3s ease;
  z-index: 99;
}

.obj__icons:hover {
  transform: translateY(-5px);
}

.obj__icons h3 {
  color: #cdb775;
  font-size: 1.5rem;
  margin-bottom: 10px;
  font-weight: bold;
  z-index: 999;
}

.obj__icons p {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.6;
}

/* METALMECANICA */


.procesos-industriales {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  padding: 80px 20px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  text-align: center;
      flex-shrink: 0;
    padding: 10px;
    background-size: cover;
    background-position: 20%;
    background-repeat: no-repeat;
    height: 400px;
  background-image: linear-gradient(180deg,#0000009c 0%,#000000ab 100%), url(/Img/tornoo.jpg);
}

.proceso h3 {
  color: #c8b46b;
  font-size: 1.8rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.proceso p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #fff;
}


.productos-industriales {
  display: flex;
  flex-wrap: wrap;
  background-color: #000;
  color: white;
  margin: 10px 0px;
}

.contenido {
  flex: 1;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.contenido p {
  font-size: 1.1rem;
  margin: 20px 0;
  line-height: 1.6;
  text-transform: uppercase;
}

.lista-productos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
}

.etiqueta {
  color: white;
  font-weight: bold;
  font-size: 1rem;
}

.borde {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid #c8b46b;
  position: relative;
}

.borde::before,
.borde::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid #c8b46b;
}

.borde::before {
  top: -5px;
  left: -5px;
  border-bottom: none;
  border-right: none;
}

.borde::after {
  bottom: -5px;
  right: -5px;
  border-top: none;
  border-left: none;
}

.nota {
  margin-top: 40px;
  font-size: 0.9rem;
  color: #ccc;
  text-transform: uppercase;
  border-top: 1px solid #c8b46b;
  border-bottom: 1px solid #c8b46b;
  padding: 20px 0;
}

.imagen-lateral {
  flex: 1;
  min-width: 300px;
}

.imagen-lateral img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.imagen-lateral video {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.tipos-rodillos {
  text-align: center;
  padding: 60px 20px;
  background-color: #09000E;
}

.titulo-box {
  display: inline-block;
  padding: 10px 30px;
  border: 1px solid #bfa76f;
  font-weight: bold;
  background: #000;
  color: white;
  font-size: 1.2em;
}

.contenedor-rodillos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.item {
  width: 280px;
}

.item h3 {
  color: #bfa76f;
  font-size: 1.4em;
  margin-bottom: 5px;
}

.item p {
  font-size: 0.95em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #e2e2e2;
}

/* Recubrimiento Section */
.recubrimiento {
  display: flex;
  flex-wrap: wrap;
  padding: 60px 30px;
  border-top: 1px solid #333;
  background-color: #000;
}

.recubrimiento-contenido, .recubrimiento-beneficios {
  flex: 1 1 400px;
  padding: 20px;
}

.recubrimiento-contenido h2 {
  font-size: 2em;
  text-align: left;
  color: white;
  font-weight: 900;
  margin-bottom: 20px;
}

.recubrimiento-contenido p {
  font-size: 1em;
  line-height: 1.6em;
  margin-bottom: 20px;
}

.materiales {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.etiqueta {
  border: 1px solid #bfa76f;
  padding: 6px 10px;
  display: inline-block;
  width: fit-content;
}

.nota {
  font-style: italic;
  color: #ccc;
  font-size: 0.9em;
  margin-top: 30px;
}

.recubrimiento-beneficios h3 {
  font-size: 1.4em;
  color: white;
  margin-bottom: 15px;
  border-bottom: 2px solid #bfa76f;
  padding-bottom: 5px;
}

.recubrimiento-beneficios ul {
  list-style-type: none;
  padding-left: 0;
  font-size: 1.6em;
  color: #ccc;
}

.recubrimiento-beneficios li {
  margin-bottom: 10px;
  line-height: 1.5em;
  color: #ccc;
}

.rectificado {
  display: flex;
  flex-wrap: wrap;
  background-color: #000;
  color: #fff;
  padding: 40px 20px;
}

.rectificado-contenido {
  flex: 1;
  min-width: 300px;
  padding: 20px;
}

.rectificado h2 {
  color: #e3c884;
  font-size: 2rem;
  margin-bottom: 10px;
}

.rectificado .descripcion {
  font-size: 1rem;
  margin-bottom: 30px;
  max-width: 600px;
}

.rectificado .garantia h3 {
  color: #fff;
  border: 2px solid #e3c884;
  display: inline-block;
  padding: 10px 20px;
  margin-bottom: 20px;
  font-size: 1rem;
}

.beneficios {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.beneficio {
  flex: 1 1 200px;
  text-align: center;
}

.beneficio img {
  width: 60px;
  height: auto;
  margin-bottom: 10px;
  filter: brightness(0) saturate(100%) invert(80%) sepia(36%) saturate(234%) hue-rotate(11deg) brightness(95%) contrast(90%);
}

.beneficio p {
  font-size: 0.9rem;
  color: #fff;
}

.rectificado-video   {
  flex: 1;
  min-width: 300px;
  padding: 20px;
}

rectificado-video video{
  height: 400px;
}


@media screen and (max-width: 1100px){
    .hero{
        padding: 10px;
    }

     .contenido_slider img {
        width: 350px;
    }

    .contenido_slider section {
        width: 50%;
    }

     .container__cover .svg img{
        width: 450px;
    }

        .container__box-cardPrimary{
        display: flex;
        flex-wrap: wrap;
    }

         .objt_main{
        width: 100%;
        padding: 100px 10px;
        display: grid;
        gap: 5em;
        grid-template-columns: repeat(auto-fit,minmax(420px,auto));
        align-items: center;
        justify-items: center;
    }

}

@media screen and (max-width: 1000px) {

       .pie_pagina .grupo-1{
        width: 90%;
        grid-template-columns:repeat(1,1fr);
        grid-gap:30px;
        padding: 35px 0px;
        
    }

        .container__box-cardPrimary{
        display: flex;
        flex-wrap: wrap;
    }

     .productos-industriales {
    flex-direction: column;
  }

  .contenido {
    padding: 40px 20px;
  }

  .lista-productos {
    gap: 15px;
  }

  .nota {
    padding: 15px 0;
  }

}

@media screen and (max-width: 650px) {
  .header-nav {
    display: block;
    position: fixed;
    top: 0;
    right: -250px; /* Oculto fuera de pantalla */
    width: 250px;
    height: 100%;
    background-color: #09000e;
    box-shadow: -2px 0 5px rgba(0,0,0,0.2);
    padding-top: 60px;
    transition: right 0.3s ease;
    z-index: 999;
    
  }

  .procesos-industriales {
    grid-template-columns: 1fr;
    gap: 30px;
    height: auto;
  }

  .proceso h3 {
    font-size: 1.5rem;
  }

  .proceso p {
    font-size: 1rem;
  }

  .header-nav.open {
    right: 0; /* Muestra el menú */
  }

  .header-nav-list {
    flex-direction: column;
    padding: 0;
  }

  .header-nav-list li {
    margin: 10px 0;
  }

  .header-burger {
    display: block;
    color: #cdb775;
  }

  #back_menu {
    display: none; /* controlado por JS */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
  }

  .header-logo-secondary {
    display: block;
    height: 40px;
    margin: 20px auto;
  }

  .header-link.active{
    padding: 10px;
  }
}

@media screen and (max-width: 700px){
        
    .img-Logo{
        width: 320px;
        margin-left: 50px;
    }

    .contenido_slider {
        
        flex-direction: column-reverse;
        height: 404px;
        padding: 20px;
        margin-bottom: 30px;
    }

    .contenido_slider section {
        width: 80%;
    }

    .objt_main{
    width: 100%;
    padding: 100px 10px;
    display: grid;
    gap: 3em;
    grid-template-columns: repeat(auto-fit,minmax(320px,auto));
}

.text__objt h1{
    font-size: 18px;
 }

  .rectificado {
    flex-direction: column;
  }

  .beneficios {
    flex-direction: column;
    align-items: center;
  }
  .contenedor-rodillos {
    flex-direction: column;
    align-items: center;
  }

  .item {
    width: 90%;
    text-align: center;
  }

  .recubrimiento {
    flex-direction: column;
  }

  .recubrimiento-contenido,
  .recubrimiento-beneficios {
    padding: 10px;
  }

  .recubrimiento-contenido h2,
  .recubrimiento-beneficios h3 {
    text-align: center;
  }

  .materiales {
    align-items: center;
  }

  .etiqueta {
    width: auto;
    margin: 0 auto;
    text-align: center;
  }

  video {
    width: 100% !important;
    height: auto !important;
  }
}


@media screen and (max-width: 500px){
       
  .header-custom{
    padding: 20px;
  }

    .header-logo-group img{
        width: 220px;
        margin-right: auto;
    }

    .LogoFooter {
        width: 250px;
    }

    .contenido_slider h2 , .contenido_slide h2{
      font-size: 30px;
    }

        .container__box-cardPrimary{
       width: 320px;
    }

    .container__card-primary {
    padding: 0px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card__primary {
    margin: auto;
    text-align: center;
    padding: 15px;
}

}