:root {

    /* Colores */
    --gris: #454238;
    --rojo: #ea0029;
    --azul: #0000ff;
    --blanco: #fff;
    --negro: #000;
}


/* Fuentes */

@font-face {
  font-family: 'Title-bold';
  src: url('../../fonts/AvenirNextCyr-Bold.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap; /* Mejora la renderización mientras carga */
}

@font-face {
  font-family: 'Title';
  src: url('../../fonts/AvenirLTStd-Medium.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap; /* Mejora la renderización mientras carga */
}

@font-face {
  font-family: 'Text';
  src: url('../../fonts/AvenirLTStd-Light.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap; /* Mejora la renderización mientras carga */
}

/********************************************* Reset cfg *********************************************/
html {
  box-sizing: border-box !important; 
  /* scroll-behavior: smooth !important; */
  scroll-snap-type: y proximity !important;
}

*, *:before, *:after {
    box-sizing: inherit !important;
}

ul{padding: 0 !important; margin: 0 !important;}
li{list-style: none;}
a{text-decoration: none;}

h2{
  font-family: 'Title-bold' !important;
}

p{font-family: 'Title';}
li{font-family: 'Title';}

.v-row{
    margin: 0 !important;
    padding: 0 !important;
}

.v-col{
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
}

.markbackground{background-color: var(--gris);}
.anymargin{border: 1px solid red;}


/********************************************* Headers movil y responsive *********************************************/

.v-navigation-drawer--bottom.v-navigation-drawer--is-mobile{max-height: 63%;}

.v-navigation-drawer__content{height: 75%;}

/* Menu sidebar */
.sidebar{
    background-color: var(--gris) !important;
    display: flex;
    justify-content: center !important;
    z-index: 11;
}

.sidebar .v-list-item__title{
  font-family: 'Title';
  font-size: 1.1rem !important;
}


.whatsapp-float_mob {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    z-index: 100;
    background-color: #25d366;
    border-radius: 50%;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
    padding: .8rem;
    animation: breathing 2s infinite ease-in-out; 
}

.headermenu{
    width: 100%;
    height: 3.5rem;
    display: flex;
    align-items: center;
    padding: 2.5rem 1rem;
    position: fixed;
    background-color: #f3f3f3;
    z-index: 100 !important;
}

.header_desk_contact{display: none;}
.header_desk_sections{display: none;}

.header_sections{
    /* border: 1px solid blue; */
    width: 100%;
}

.headermenu_logo_mov{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.headermenu_logo_mov img{
    width: auto;
    height: 2.5rem;
    max-height: 100%;
    display: block;
    margin: 0 auto;
}

/* WhatsApp  Drawer Menu*/

.whats_btn{
    display: flex;
    justify-content: center;
}

.whatsapp-float {
    background-color: #25d366;
    border-radius: 50%;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
    padding: .3rem;
    /* transition: transform 0.3s ease, opacity 0.3s ease; */
    animation: breathing 2s infinite ease-in-out; /* Animación continua */
}

@keyframes breathing {
    0% {
      transform: scale(1);
      box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.2);
    }
    50% {
      transform: scale(1.1);
      box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.3);
    }
    100% {
      transform: scale(1);
      box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.2);
    }
  }



.whatsapp-float:hover {
    opacity: 0.9;
    box-shadow: 0 0 10px 3px rgba(135, 211, 37, 0.7) !important;
}

/********************************************* Slider *********************************************/

.slider-container{
  /* border: 1px solid red; */
  margin-top:5rem;
  width: 100%;
  /* height: auto; */
  padding: .2rem 0rem;
}

.slide{
  /* border: 1px solid green; */
  width: 97%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 200px;
  max-height: 420px;
  /* overflow: hidden; */
}

.slide-image{
  width: 100%;
  border-radius: 1rem;
}

.info-btn{
  position: absolute;
  left: 50%;
  top: 55%;
  transform: translateX(-50%);
  background: linear-gradient(220deg, rgb(221, 27, 27) 0%, rgb(216, 76, 76) 75%);
  color: #000 !important;
  border-radius: 1.5rem !important;
  padding: .4rem .4rem !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
  opacity: .95;

}

.info-btn .v-icon{
    background-color: #fff;
    border-radius: 3rem;
    padding: .1rem;
}

.slide-fade-enter-active, .slide-fade-leave-active {
  transition: all 0.5s ease;
  position: absolute;
  width: 100%;
}

.animated-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
}

.slide {
  position: relative;
  overflow: hidden;
}

.slide-fade-enter-active,
.slide-fade-leave-active {
  transition: all 0.4s ease;
}

.slide-fade-enter {
  transform: translateX(100%);
  opacity: 0;
}

.slide-fade-enter-to {
  transform: translateX(0%);
  opacity: 0;
}

.slide-fade-leave {
  transform: translateX(0%);
  opacity: 1;
}

.slide-fade-leave-to {
  transform: translateX(-100%);
  opacity: 0;
}

.slider-controls {
  position: absolute;
  bottom: 0rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  z-index: 1;
  /* border: 1px solid black; */
  padding: .5rem .7rem;
  background-color: #fff;
  border-radius: .8rem;
}

.dot {
  width: 1rem;
  height: 1rem;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: var(--rojo);
}

/********************************************* Nosotros *********************************************/

.us_content{
    /* border: 1px solid green; */
    width: 100%;
    background-image: url('../img/nosotros/fondo.png');
    background-size: cover;
    background-position: center center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.engi_img_content{
    /* border: 1px solid red; */
    width: 100%;
    /* text-align: center; */
}

.engi_img_content img{
    width: 17rem;
    display: block;
    margin: 0 auto;
}

.us_text {
  color: #fff;
  padding: 0rem 0;
  line-height: 1.3rem;
  display: grid;
  gap: 0.4rem;
}

.us_item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.us_text_cfg {
  border: 1px solid #ffffff80;
  width: 97%;
  max-width: 410px;
  /* padding: 0.9rem 0.5rem 0.9rem 0.5rem !important; */
  border-radius: 2.8rem !important;
  background: linear-gradient(295deg, rgb(23, 22, 161) 0%, rgba(30, 58, 138, 0) 73%);
  text-align: center;
  margin-bottom: 0.5rem;
  height: 9rem;
  align-content: center;
}

.us_text_cfg p {
    width: 90%;
    margin: 0 auto;
}

.us_circle img {
  width: 5rem;
}

.us_item:nth-child(1) .us_circle {
  display: none;
}
.us_item:nth-child(2) .us_circle {
  align-self: center;
}
.us_item:nth-child(3) .us_circle {
  align-self: center;
}


/********************************************* Servicios *********************************************/

.sticky-container {
    position: relative;
    /* border: 1px solid pink; */
    height: fit-content;
    background-image: url('../img/servicios/fondo_movil.png');
    background-position: center;
    background-size: 100% 100%;
}

.sticky-section {
    /* border: 1px solid green; */
    position: relative;
    width: 100%;
    margin: 0 auto;
    max-width: 768px;
    padding: 1rem 0rem;
    /* height: 100vh; */
}

.section-content {
    /* border: 1px solid red; */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 97%;
    margin: 0 auto;
    background: linear-gradient(220deg, rgb(221, 27, 27) 0%, rgba(46, 26, 26, 0.322) 75%);
    color: #fff;
    padding: 1rem 1.3rem;
    backdrop-filter: blur(5rem) !important;
    margin-bottom: 2rem;
    border-radius: 2.5em;
    position: sticky;
    top: 0;
    will-change: opacity; /* Mejora rendimiento */
    height: 10rem !important;
   
}

/* Z-index en orden ascendente */
.one {
    z-index: 1 !important;
}
.two {
    z-index: 2 !important;
}
.three {
    z-index: 2 !important;
}
.four {
    z-index: 2 !important;
}
.five {
    z-index: 2 !important;
}

.section-content .four{
    background-color: var(--gris);
}


.img-content{
    /* border: 1px solid powderblue; */
    display: flex;
    justify-content: center;
    height: 10rem !important;

}

.img-content img{
    /* border: 1px solid yellow; */
    width: 12rem;
}

.imper, .pintu, .recu, .constr, .mante{
    /* border: 1px solid white; */
    margin-bottom: 2rem !important;
}

/********************************************* Elegirnos *********************************************/

#elegirnos {
    background-color: var(--negro);
    padding: 1rem;
    .titulo,
    .subtitulo,
    .text {
        color: var(--blanco);
    }

    .titulo{
      /* font-family: 'Title-bold' !important; */
      font-size: 1.8rem;
    }

    .text{
      font-family: 'Text';
      font-size: 1.25rem;
    }

    .subtitulo{
      font-family: 'Title';
      font-size: 1.3rem;
    }

    .cards_container {
      display: flex;
      flex-direction: column;
      gap: 2rem;
      justify-content: center;
      align-items: center;
    }
    
  .card {
    border: .5px solid #ffffff56;
    background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 1) 0%,
    rgba(200, 200, 200, 0.2) 50%,
    rgba(0, 0, 0, 1) 100%
  );
    border-radius: 2.5rem;
    max-width: 350px;
    height: 150px;
    position: relative;

    .card_icon {
      width: 3rem;
      height: 3rem;
      position: absolute;
      top: -1rem;
      left: -1rem;
      
      img {
        width: 100%;
      }     
    }

    &:nth-child(2){

      .card_icon{
        top: -1rem;
        right: -1rem;
        left: auto;
      }       
    }
    
    .card_content {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 1rem;
      height: 100%;

      .subtitulo {
        color: var(--rojo);
        text-transform: uppercase;        
      }

      .text {
        color: var(--blanco);
      }
    }    
  }
}

/********************************************* Proyectos *********************************************/

/* Versión móvil (siempre visible) */
  .mobile-gallery {
    display: block;
  }
  
  /* Versión matriz (oculta en móvil) */
  .matrix-gallery {
    display: none;
  }

  #proyectos{
    padding: 1.5rem 0rem;
  }

  .gallery-wrapper{
      width: 92%;
      margin: 0 auto;
      padding: 1.5rem 0rem;
      max-width: 24rem !important;
    }
  
  /* Tablet y desktop (≥768px) */
  @media (min-width: 768px) {

    
  }
  
  /* Desktop grande (≥1024px) */
  @media (min-width: 1024px) {
    /* .matrix-gallery {
      height: 800px;
    } */

    .matrix-gallery, .mobile-gallery {
    position: relative;
    z-index: 4 !important;
}

    .gallery-wrapper{
      /* border: 1px solid green; */
      max-width: 1366px !important;
    }

    .tabs-container{
      margin: 0 auto;
      max-width: 1200px !important;
    }


    .mobile-gallery {
      display: none;
    }
    
    .matrix-gallery {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      grid-template-rows: repeat(2, 1fr);
      gap: 1.1rem;
      height: 29rem !important; /* Altura fija para el contenedor */
      
      
    }
    
    .matrix-cell {
      position: relative;
      border-radius: .8rem;
      overflow: hidden;
    }
    
    .matrix-cell.vertical {
      grid-row: span 2;
    }
    
    /* Ajustes de altura para mantener proporciones */
    .matrix-cell:not(.vertical) {
      height: 100 px; /* (600px total - 16px gap) / 2 */
    }
  
  }
/********************************************* 
  Efecto Hover para Proyectos - CORREGIDO
*********************************************/

/* Contenedor de imagen para posicionar overlay */
.image-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: pointer;
}

/* Overlay que se mostrará al hacer hover */
.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(197, 11, 11, 0.6) 0%, rgba(197, 11, 11, 0.4) 20%, transparent 100%) !important;
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 2rem;
  box-sizing: border-box;
}

/* Título dentro del overlay - OCULTO POR DEFAULT */
.overlay-title {
  color: white !important;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  transform: translateY(100%);
  transition: transform 0.4s ease, opacity 0.3s ease;
  font-size: .5rem !important;
  width: 90%;
  text-align: center;
  opacity: 0;
  margin-bottom: 1rem;
  font-family: 'Title';
}

/* Efecto hover - MOSTRAR OVERLAY Y TÍTULO */
.project-card:hover .image-overlay {
  opacity: 1;
  z-index: 10 !important;
}

.project-card:hover .overlay-title {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.2s;
}

/* Asegurar que la imagen ocupe todo el espacio */
.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

/* Ajustes específicos para móvil */
@media (max-width: 767px) {
  .overlay-title {
    font-size: 1.4rem !important;
  }
  .image-overlay {
    padding-bottom: 1rem;
  }
}

/* Ajustes para desktop */
@media (min-width: 1024px) {
  .overlay-title {
    font-size: 1.2rem !important;
  }
  
  .matrix-cell:hover {
    transform: scale(1.02);
    z-index: 5 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  }
}

/********************************************* Marcas *********************************************/

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-250px * 9)); }
}

.marcas {
  width: 100%;
      
  .carrusel {
    background: var(--negro);
    /* box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.5); */
    height: 100px;
    margin: auto;
    overflow: hidden;
    position: relative;
    width: 100%;

    .carrusel-track {
      display: flex;
      width: calc(250px * 18);
      animation: scroll 20s linear infinite;
      position: relative;

      .marca {
        height: 100px;
        /* width: 250px; */
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1rem;

        img {
          width: 100%;
          max-height: 80px;
          object-fit: contain;
        }
      }
    }
  }
 }

 /********************************************* Video *********************************************/
 #main-video{
  width: 100%;
  /* padding: 1rem; */
  .video_container{
    width: 100%;
    overflow: hidden;
   
    video {
      width: 100%;
      height: auto;  
       border-radius: 1rem;  
    }
  }
 }

 #main-video .container{
  padding-bottom: 0rem !important;
 }


  /********************************************* Contacto *********************************************/
#contacto {
  width: 100%;
  padding: 1rem;

  .contacto_container {
    width: 100%;
    display: flex;
    flex-direction: column-reverse;
    gap: 1rem;

    .cta_container {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      width: 100%;

      .cta{
        display: flex;
        gap: 0.5rem;
        align-items: start;

        .data_container{
          .subtitulo{
            text-transform: uppercase;
            font-family: 'Title-bold';
            font-size: 1.4rem;
          }
          a.small_text{
            color: var(--negro);
            font-family: 'Title';
            font-size: 1.1rem;
            &:hover{
              color: var(--rojo);
            }
          }

          p.small_text{
            font-size: 1.2rem;
            font-family: 'Title';
          }
        }
      }
    }
    .form_container{
      padding: 0 1rem;
    }
  }
}
 

 /********************************************* Footer *********************************************/

#footer {
  background-color: var(--gris);
    
  .footer_container{
    padding: 1rem;
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    
    .logos_container {
      display: flex;
      gap: 0.5rem;
      justify-content: center;
      .logo{
        color: var(--blanco);
        &:hover{
          color: var(--rojo);
        }
      }
    }
    .logo_footer {
      max-width: 280px ;
      margin: 1rem auto;
      img{
        width: 100%;
      }
    }
  }    
}

/* Mensajes de estado del formulario */
.alert-message {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 25px;
  border-radius: 5px;
  color: white;
  z-index: 1000;
  animation: fadeIn 0.3s, fadeOut 0.3s 2.7s;
}

.alert-success {
  background-color: #4CAF50;
}

.alert-error {
  background-color: #F44336;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-20px); }
}