/* Tamaño responsivo para pantallas pequeñas (móviles) */
  @media (max-width: 480px) {
    .hero-style2 .hero-title {
      font-size: clamp(1.5rem, 6vw, 2rem) !important;
      line-height: 1.2 !important;
    }
  }

  /* Tamaño responsivo para tablets pequeñas */
  @media (min-width: 481px) and (max-width: 767px) {
    .hero-style2 .hero-title {
      font-size: clamp(2rem, 4vw, 2.5rem) !important;
      line-height: 1.3 !important;
    }
  }

  .hero-style2 .hero-title {
    font-size: 62px;
  }

  .main-menu > ul > li > a {
    padding: 20px 0 !important;
  }

  .header-logo {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }

  /* Logo responsivo SOLO para móviles */
  @media (max-width: 320px) {
    .img-logo {
      height: auto !important;
      max-height: 45px !important;
      width: auto !important;
      max-width: 150px !important;
      object-fit: contain !important;
    }
  }

  @media (min-width: 321px) and (max-width: 480px) {
    .img-logo {
      height: auto !important;
      max-height: 50px !important;
      width: auto !important;
      max-width: 180px !important;
      object-fit: contain !important;
    }
  }

  @media (min-width: 481px) and (max-width: 767px) {
    .img-logo {
      height: auto !important;
      max-height: 55px !important;
      width: auto !important;
      max-width: 200px !important;
      object-fit: contain !important;
    }
  }

.main-menu ul li {
    max-width: 125px;
    text-align: center;
    text-transform: uppercase;
  }

  .main-menu ul.sub-menu li {
    max-width: 100%;
    text-align: left;
  }

  .main-menu a {
    color: #f7a30f !important;
    font-weight: 700 !important;
  }

  /* Reglas para que las imágenes del portfolio tengan el mismo tamaño y cubran todo lo alto */
  .portfolio-card.style2 {
    height: 400px; /* Altura fija para uniformidad */
  }

  .portfolio-card.style2 .portfolio-img {
    height: 100%; /* Cubrir toda la altura del contenedor */
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .portfolio-card.style2 .portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Mantener proporción y cubrir todo el contenedor */
    object-position: center; /* Centrar la imagen */
  }

  .portfolio-card.style2 .portfolio-img .portfolio-card-shape {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
  }

  .portfolio-card.style2 .portfolio-img .portfolio-card-shape img {
    width: auto;
    height: 80%; /* Ajustar tamaño del overlay */
    max-width: 90%;
    object-fit: contain; /* Mantener proporción del overlay */
  }

  /* Controlar el padding-bottom máximo para #process-area2 */
  #process-area2 {
    /* El JavaScript aplicará su padding dinámico, pero podemos limitarlo */
    max-height: none; /* Permitir que funcione el efecto de superposición */
  }

   .step-number {
     color: #fff;
     font-size: 50px;
   }

   /* Contacto: iconos a blanco en hover */
.hover-white i {
  color: currentColor;
  transition: color .2s ease-in-out;
}
.hover-white:hover i,
.hover-white:focus i {
  color: #fff !important;
}

.hero-2 .hero-grid-thumb .box-img .slider-number {
  font-size: 24px;
}

.dropdown-item.active, .dropdown-item:active {
  background-color: #f0f0f0;
}

.grecaptcha-badge {
    display: none !important;
}

/* Anular efecto de rotación en iconos de tarjetas de servicio */
.service-card .service-card-icon .icon img {
    transform: none !important;
    transition: none !important;
}

.service-card:hover .service-card-icon .icon img {
    transform: none !important;
}

.th-mobile-menu ul li a {
    text-transform: uppercase !important;
}

/* Separación del botón del hero con respecto al slider de thumbnails */
/* Ajustamos el margin-top negativo del slider para que no se pegue al botón */
@media (min-width: 1200px) and (max-width: 1500px) {
    .hero-2 .hero-grid-thumb {
        margin-top: -140px !important; /* Reducimos de -192px a -140px */
    }
}

@media (min-width: 1501px) {
    .hero-2 .hero-grid-thumb {
        margin-top: -180px !important; /* Ajuste para pantallas grandes */
    }
}

/* Para el contenedor del botón, añadimos padding-bottom */
.hero-2 .hero-style2 {
    padding-bottom: 40px !important;
}

@media (max-width: 1199px) {
    /* En estas resoluciones el slider se oculta, así que no hay problema */
    .hero-2 .hero-style2 {
        padding-bottom: 20px !important;
    }
}

@media (max-width: 767px) {
    .hero-2 .hero-style2 {
        padding-bottom: 15px !important;
    }
}

/* Ajustes para el about-tag para evitar que quede detrás del texto */
.hero-2 .about-tag {
    z-index: 10 !important; /* Asegurar que esté por encima del contenido */
    cursor: pointer !important; /* Prepararlo como botón */
    transition: all 0.3s ease !important; /* Añadir transición suave */
}

/* Efecto hover para el about-tag como botón */
.hero-2 .about-tag:hover {
    transform: translate(0, calc(-50% - 65px)) scale(1.05) !important;
}

/* Ajustes responsivos específicos para about-tag */
@media (min-width: 1200px) and (max-width: 1500px) {
    .hero-2 .about-tag {
        right: 40px !important; /* Ajustar posición horizontal */
        transform: translate(0, calc(-50% - 10px)) !important; /* Pequeño ajuste vertical */
    }
    
    .hero-2 .about-tag:hover {
        transform: translate(0, calc(-50% - 15px)) scale(1.05) !important;
    }
}

@media (min-width: 1300px) and (max-width: 1500px) {
    .hero-2 .about-tag {
        right: 50px !important;
    }
}

@media (min-width: 1501px) {
    .hero-2 .about-tag {
        right: 70px !important; /* Más separación en pantallas grandes */
        transform: translate(0, calc(-50% - 70px)) !important; /* Más separación del centro */
    }
    
    .hero-2 .about-tag:hover {
        transform: translate(0, calc(-50% - 75px)) scale(1.05) !important;
    }
}

/* En resoluciones donde se convierte en relativo, mantener el comportamiento de botón */
@media (max-width: 1199px) {
    .hero-2 .about-tag:hover {
        transform: translate(-50%, -5px) scale(1.05) !important;
    }
}

/* Mejorar la apariencia del about-tag como botón */
.hero-2 .about-tag .about-experience-tag {
    transition: all 0.3s ease !important;
}

.hero-2 .about-tag:hover .about-experience-tag {
    background-color: rgba(247, 163, 15, 0.1) !important; /* Sutil efecto de fondo */
    border-radius: 50% !important;
}

.hero-2 .about-tag .about-tag-thumb {
    transition: all 0.3s ease !important;
}

.hero-2 .about-tag:hover .about-tag-thumb img {
    filter: brightness(1.1) !important; /* Ligero brillo al hacer hover */
}

/* Solución simple: mover el slider de thumbnails más abajo para que no interfiera */
.hero-2 .hero-grid-thumb {
    margin-top: -150px !important; /* Reducir significativamente el margen negativo */
}

/* Darle más espacio inferior al contenido del hero para que el slider no interfiera */
.hero-2 .hero-style2 {
    padding-bottom: 80px !important; /* Espacio suficiente para que el slider no interfiera */
}

/* Ajustes responsivos simples */
@media (min-width: 1200px) and (max-width: 1500px) {
    .hero-2 .hero-style2 {
        padding-right: 150px !important; /* Espacio para el about-tag */
        padding-bottom: 100px !important; /* Más espacio para el slider */
    }
    
    .hero-2 .hero-grid-thumb {
        margin-top: -120px !important; /* Ajustar posición del slider */
    }
}

@media (min-width: 1501px) {
    .hero-2 .hero-style2 {
        padding-right: 180px !important; /* Más espacio para about-tag */
        padding-bottom: 120px !important; /* Espacio generoso para el slider */
    }
    
    .hero-2 .hero-grid-thumb {
        margin-top: -100px !important; /* Posición más conservadora */
    }
}

/* En móviles, restaurar comportamiento normal */
@media (max-width: 1199px) {
    .hero-2 .hero-style2 {
        padding-right: 0 !important;
        padding-bottom: 40px !important; /* Espacio básico */
    }
}

.testi-card.style3 .card_date {
    font-size: 14px !important;
}

/* Estilos para el modal de video */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.video-modal.active {
    display: flex;
}

.video-modal .modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.video-modal .close-modal {
    position: absolute;
    top: -45px;
    right: 0;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 10000;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.video-modal .close-modal:hover {
    color: #ff0000;
}

.video-modal .video-container {
    position: relative;
    padding-bottom: 56.25%; /* Relación de aspecto 16:9 */
    height: 0;
    overflow: hidden;
}

.video-modal .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.title-landing {
    font-size: 48px !important;
}

.number-contact {
    width: 40px; 
    height: 40px; 
    min-width: 40px;
}

.number-contact strong {
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
}

.th-btn.style-whatsapp {
    background-color: #25D366 !important;
    color: #fff !important;
    border-color: #25D366 !important;
}

.th-btn.style-whatsapp:hover {
    background-color: #128C7E !important;
    border-color: #128C7E !important;
    color: #fff !important;
}

.price-card2 .price-card-thumb .img2 {
  margin-left: 30px !important;
}

/* Responsive */
@media (max-width: 768px) {
    .video-modal .modal-content {
        width: 95%;
    }
    
    .video-modal .close-modal {
        top: -40px;
        font-size: 28px;
    }
}

.video-wrap4 img {
  border-radius: 30px;
  width: 100%;
  height: 800px; /* Altura máxima */
  object-fit: cover; /* Mantiene la proporción y recorta si es necesario */
  object-position: center; /* Centra la imagen */
}

.text-body {
  color: #000 !important;
}

.sub-title2 {
  color: #000 !important;
}

.copyright-wrap .copyright-text a {
  text-decoration: underline !important;
}

/* Para responsive */
@media (max-width: 768px) {
  .video-wrap4 img {
    height: 300px; /* Altura menor en móviles */
  }

  .title-landing {
    font-size: 20px !important;
  }
}

@media (max-width: 576px) {
  .video-wrap4 img {
    height: 250px; /* Altura aún menor en móviles pequeños */
  }
}