    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      
    }

    html, body {
      height: 100%;
        font-family: "Work Sans", sans-serif;
      color: white;
      overflow-x: hidden;
   
    }
a{
  text-decoration: none;
}
::selection {
      color: #fff;         /* Color del texto seleccionado */
      background: #ed301a; /* Opcional: color de fondo del texto seleccionado */
}
  .main-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: transparent;
  padding: 20px 0;
}

.header-container {
  width: 1280px;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: white;
  width: 220px;
}
.menu-desktop{
  margin-top: -30px;
}
.menu-desktop ul {
  display: flex;
  gap: 50px;
  align-items: center;
  list-style: none;
}

.menu-desktop a,
.btn-contacto {
  text-decoration: none;
  color: white;
  font-weight: 400;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
}

.btn-contacto {
  font-family: "Work Sans", sans-serif;
  border: 1px solid white;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background 0.3s ease;
  font-size: 16px;
  font-weight: 500;
}

.btn-contacto:hover {
  background: rgba(152, 26, 42, 0.5);
  
}

/* Botón menú mobile */
.menu-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 26px;
  display: none;
  cursor: pointer;

}
.menu-toggle:active {
   background: rgba(237, 48, 26, 0.3);
       
      }
/* Off-canvas */
.offcanvas {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 200;
}

.offcanvas-content {
  background: #ed301a;
  width: 260px;
  height: 100%;
  padding: 30px 20px;
  box-shadow: 5px 0 10px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: slideIn 0.3s forwards;
}

@keyframes slideIn {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

.offcanvas ul {
  list-style: none;
  padding: 0;
  margin: 40px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.offcanvas a {
  color: white;
  text-decoration: none;
  font-size: 18px;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-desktop {
    display: none;
  }

  .menu-toggle {
    display: block;
  }
  .logo {
  width: 160px;
}
.header-container {
  width: 100%;
  
}
}

/* hero */
 .hero {
      position: relative;
      width: 100%;
      height: 100vh;
      overflow: hidden;
    }

    video {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      z-index: 0;
    }

    .overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.6);
      z-index: 1;
    }

    .hero-text {
      position: relative;
      z-index: 2;
      height: 100%;
      display: flex;
      align-items: center;
      padding-left: 15%;
      margin-top: -50px;
    }

    .text-content {
      width: 70%;
      font-size: 3rem;
      color: white;
      opacity: 0;
      transform: translateX(-50%);
      transition: transform 1s ease, opacity 1s ease;
      font-weight: 600;
    }

    .text-enter {
      opacity: 1 !important;
      transform: translateX(0) !important;
    }

    .text-exit {
      opacity: 0 !important;
      transform: translateX(-50%) !important;
    }
@media (max-width:1024px){
      .hero-text {
      padding-left: 5%;
      margin-top: 0;
    }

    .text-content {
      width: 70%;
      font-size: 2.5rem;
      color: white;
      opacity: 0;
      transform: translateX(-50%);
      transition: transform 1s ease, opacity 1s ease;
      font-weight: 600;
    }
    .logo {
      width: 180px;
    }
}
/* caja*/
.wrapper{
  width: 1280px;
  position: relative;
  margin: 0 auto;
}
  .cont-1 {
      margin: 0;
     
      color: white;
      display: flex;  
      justify-content: center;
      padding: 0 0 0 0;
      z-index: 9999;
      position: absolute;
      bottom: 0;
      
    }
.caja-container {
      display: flex;
      gap: 0;
      width: 1280px;
      max-width: 100%;
    justify-content: center;
    }

    .caja {
      position: relative;
      overflow: hidden;
      flex: 1;
      background-color: transparent;
      /*border: 1px solid rgba(255, 255, 255, 0.2);*/

      padding: 40px 20px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: space-between;
      transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
      text-align: center;
      backdrop-filter: none;
      /*height: 240px;*/
      height: auto;
    }
.borde-derecho{
  background-image: url(../images/bg-linea.png);
  background-position: top right;
  background-repeat: no-repeat;
}
    /* Efecto de barrido */
    .caja::before {
      content: "";
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
   /*   background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
      transition: left 0.6s ease;*/
      z-index: 1;
    }

    .caja:hover::before {
      left: 100%;
      background-color: rgba(255, 255, 255, 0.1);
    }
.caja:hover {
      background-color: rgba(255, 255, 255, 0.2);
    }
    .caja img {
      width: 60%;
      height: auto;
      object-fit: contain;
      margin-bottom: 20px;
      filter: brightness(0) invert(1); /* convierte a blanco y negro invertido (blanco) */
      transition: transform 0.3s ease;
      z-index: 2;
    }

    .caja:hover img {
       filter: none; /* muestra los colores reales al hacer hover */
      transform: scale(1.1);
    }
    

    .boton {
      display: none;
      /*display: flex;*/
      align-items: center;
      /*gap: 8px;*/
      color: white;
      padding: 10px;
      border: 1px solid white;
      border-radius: 10px;
      background-color: transparent;
      cursor: pointer;
      transition: all 0.3s ease;
      font-size: 16px;
      white-space: nowrap;
      z-index: 2;
    }

    .boton-texto::before {
      content: "";
      transition: opacity 0.3s ease;
    }

    .caja:hover .boton-texto::before {
     /* content: "Ver más";*/
    }

    .caja:hover .boton {
      /*background-color: red;*/
      padding-left: 16px;
      padding-right: 16px;
    }

    .flecha {
      transition: transform 0.3s ease;
    }

    .caja:hover .flecha {
      /*transform: translateX(4px);*/
      transition: .3s;
    }

    /* Responsive */
    @media (max-width:1024px){
      .wrapper{
        width: 100%;
      }
      .caja-container {
        width: 100%;
      }
      .caja {
        /*height: 160px;*/
        padding: 40px 20px 40px 20px;
      }
}
@media(max-width:800px){
  .text-content {
      font-size: 2rem;
    }
    .caja img {
      width: 70%;
      margin-bottom: 0;
    }

}
    @media (max-width: 767px) {
      /*.caja-container {
        flex-direction: column;
        align-items: center;
      }

      .caja {
        width: 100%;
      }*/

  /*.cont-1 {
    position: relative;
      bottom: 0;
      background: black;
      
    }*/
    .borde-derecho{
  background-image: none;
}

}
    .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* ajusta la opacidad si lo deseas */
  z-index: 1;
}

/* botones movil */
.cajas-movil{
  display: none;
}
.caja1{
 background-color: rgba(237, 48, 26, 0.4);
  display: flex;
  margin-bottom: 10px;
  border-radius: 10px;
  padding: 10px 15px;
  transition: all ease-in-out 0.3s;
}
.caja1:hover{
   
    background-color: rgba(255, 255, 255, 0.3);
  transition: all ease-out 0.3s;
}
.caja1:active{
 /* background-color: rgba(237, 48, 26, 0.7);*/
   background-color: rgba(255, 255, 255, 0.3);
}
.caja1 .img-caja{
  width: 60%;
  padding-right: 5%;
}
.cont-btn-mov{
  width: 40%;
  display: none;
  /*display: flex;*/
  align-items: flex-end;
  justify-content: flex-end;
}
.caja1 .img-caja img{
  max-width: 100%;
   filter: brightness(0) invert(1); /* convierte a blanco y negro invertido (blanco) */

}
.caja1:hover .img-caja img{
  max-width: 100%;
   filter: none;

}
.btn-mov{
  border: 1px solid #fff;
  display: flex;
  padding: 0 10px;
  font-size: 16px;
  display: flex;
  align-items: center;
  border-radius: 5px;
}
.flecha-mov{
  padding: 5px 0 0 0;

}
.text-btn-mov{
  font-size: 14px;
  color: #fff;
}
@media (max-width:480px){
  .wrapper{
    display: none;
  }
  .logo {
    width: 140px;
  }
  .cajas-movil{
    display: block;
    width: 90%;
    margin: 0 5%;
    position: absolute;
    bottom: 0;
    z-index: 9;
  }
  .text-content {
      width: 90%;
      font-size: 1.8rem;
  }
  .hero-text {
    padding-left: 8%;
    margin-top: 0;
    height: 70%;
  }
}
   