/* Encapsular todo el submenú */
.navbar-nav .has-submenu {
  position: relative;
}

/* Submenú oculto por defecto */
.navbar-nav .has-submenu .submenu {
  display: none;
  position: absolute;
  top: 100%; /* justo debajo del enlace padre */
  left: 0;
  background: #11111159;
  padding: 10px 15px;
  border-radius: 10px;
  white-space: nowrap;
  flex-direction: row;
  gap: 1rem;
  z-index: 1000;
}

/* Mostrar al pasar el mouse */
.navbar-nav .has-submenu:hover .submenu {
  display: flex;
}

/* Estilos de items */
.navbar-nav .has-submenu .submenu li {
  list-style: none;
}

.navbar-nav .has-submenu .submenu a {
  color: #fff;
  font-size: 12px;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.navbar-nav .has-submenu .submenu a:hover {
  background: #c9005aff;
  transform: translateY(-2px);
}

.hover-modal {
  display: none;
  position: absolute;
  top: 100%;
  left: 110%;
  width: 820px;
  max-height: 550px; 
  background: #fdf9ff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 4px 25px rgba(0,0,0,0.25);
  z-index: 2000;
  font-family: 'Montserrat', sans-serif;

  /* reset para evitar interferencia con submenú */
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  white-space: normal !important;
}

/* Para animación / desplazamiento */
.hover-modal {
  transform: translateY(30px);
}

/* Contenedor interno: imagen + texto */
.hover-modal .modal-content {
  display: flex !important;       /* fuerza flex */
  flex-direction: row !important; /* horizontal */
  align-items: center;            /* alinea verticalmente */
  justify-content: flex-start;    /* opcional */
  gap: 18px;
  flex-wrap: nowrap;              /* evita que se rompa vertical */
}

/* Texto del modal */
.modal-text {
  flex: 1;
  padding: 30px;
}

/* Título */
.hover-modal h4 {
  font-size: 18px;
  color: #0b397eff;
  margin-top: 10px;
}

/* Párrafo */
.hover-modal p {
  font-size: 14px;
  color: #444;
  margin-bottom: 15px;
  line-height: 1.5;
}

/* Botones */
.modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.modal-actions .btn-primary {
  background: #0d6efd;
  color: #fff;
  border: none;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}

.modal-actions .btn-outline {
  background: transparent;
  border: 1px solid #0d6efd;
  color: #0d6efd;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}

/* Imagen */
.modal-image img {
  max-width: 320px;
  border-radius: 12px;
  display: flex;
  flex-direction: column; 
  align-items: left; 
  margin: 30px;  
}

.image-text {
  padding: 24px 7px 0;
  font-size: 18px;
  font-weight: 500;
  color: #0b397eff;
  margin-bottom: 6px; /* separación con la imagen */
  text-align: left;
  margin: 30px;
}

.image-text p {
  font-size: 14px;
  font-weight: 400;
  color: #424242ff;
  margin-bottom: 15px; /* separación con la imagen */
  text-align: left;
  max-width: 320px;
}

.navbar-nav .has-submenu:hover #modal1 {
  display: flex; /* mostrar modal al pasar el mouse */
}

.shine-btn {
  position: relative;
  overflow: hidden;
}

/* Capa para el reflejo */
.shine-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%; /* arranca fuera del botón */
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.19) 50%,
    rgba(255, 255, 255, 0.2) 100%
  );
  transform: skewX(-20deg);
}

/* Animación al pasar el mouse */
.shine-btn:hover::before {
  animation: shine 0.5s ease forwards;
}

/* También al hacer click */
.shine-btn:active::before {
  animation: shine 0.5s ease forwards;
}

/* Definición del efecto */
@keyframes shine {
  from {
    left: -75%;
  }
  to {
    left: 125%;
  }
}
/* Estilo base para los links principales */
.navbar-nav > .nav-item > .nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 12px;
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Línea animada debajo */
.navbar-nav > .nav-item > .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background-color: #007bff; /* color inicial */
  transition: width 0.3s ease, background-color 0.3s ease;
}

/* Hover: se estira la línea */
.navbar-nav > .nav-item > .nav-link:hover::after {
  width: 100%;
}

/* Estado activo (cuando das clic) */
.navbar-nav > .nav-item > .nav-link.active {
  color: #0669d4ff; /* cambia el texto también si quieres */
}

.navbar-nav > .nav-item > .nav-link.active::after {
  width: 100%;
  background-color: #fa0668ff; /* color cuando está activo */
}
/* 🔹 Modal de video exclusivo */
.modal-video-only {
  display: none;
  position: absolute;
  top: 100%;
  left: 110%;
  width: 820px;
  max-height: 550px;
  background: #ffffffff; /* negro por si el video no carga */
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 25px rgba(253, 251, 251, 0.25);
  z-index: 2000;
  font-family: 'Montserrat', sans-serif;
}

/* Contenedor de video */
.modal-video-only .modal-video-full {
  position: relative;
  width: 100%;
  height: 100%;
}

.modal-video-only video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* rellena todo el modal */
  display: block;
}

/* Overlay: texto + botones flotantes */
.modal-video-only .overlay-content {
  position: absolute;
  top: 75%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  padding: 20px;
  background: rgba(0,0,0,0.4); /* opcional */
  border-radius: 12px;
  max-width: 80%;
}

.modal-video-only .overlay-content h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

.modal-video-only .overlay-content p {
  font-size: 14px;
  color: #fff;
  margin-bottom: 18px;
}

/* Botones flotantes */
.modal-video-only .overlay-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.modal-video-only .overlay-actions .btn-primary {
  background: #e80061ff;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}

.modal-video-only .overlay-actions .btn-outline {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}

/* 🔹 Ajustes responsivos generales */
@media (max-width: 768px) {
  /* Submenús */
  .navbar-nav .has-submenu .submenu {
    position: static;
    display: none;
    background: #111111e6;
    flex-direction: column;
    padding: 10px;
    border-radius: 0;
    gap: 0;
    width: 100%;
  }
  
  .navbar-nav .has-submenu.open .submenu {
    display: block;
  }

  .navbar-nav .has-submenu:hover .submenu {
    display: block;
  }

  .navbar-nav .has-submenu .submenu a {
    display: block;
    padding: 10px;
    font-size: 14px;
  }

  /* Hover modals */
  .hover-modal,
  .modal-video-only {
    position: static;
    left: 0;
    top: auto;
    width: 100%;
    max-width: 100%;
    height: auto;
    transform: none;
    margin-top: 10px;
    box-shadow: none;
    border-radius: 12px;
    padding: 12px;
  }

  .hover-modal .modal-content {
    flex-direction: column !important;
    gap: 12px;
  }

  .modal-image img {
    max-width: 70%;
    height: auto;
    margin: 10px;
  }

  .image-text {
    text-align: left;
    padding-top: 10px;
    margin: 20px;
  }

  .modal-text {
    text-align: left;
  }

  /* Video modal */
  .modal-video-only .overlay-content {
    position: static;
    transform: none;
    background: rgba(0,0,0,0.5);
    border-radius: 0;
    padding: 12px;
    max-width: 100%;
  }

  .modal-video-only .overlay-content h2 {
    font-size: 18px;
  }

  .modal-video-only .overlay-content p {
    font-size: 13px;
  }

  .modal-video-only .overlay-actions {
    flex-direction: column;
  }

  /* Botones */
  .modal-actions {
    flex-direction: column;
    align-items: center;
  }

  .modal-actions .btn-primary,
  .modal-actions .btn-outline {
    width: 90%;
    font-size: 14px;
  }
}

/* 🔹 Extra pequeños (celulares muy chicos) */
@media (max-width: 480px) {
  .hover-modal,
  .modal-video-only {
    padding: 10px;
  }

  .hover-modal h4 {
    font-size: 16px;
  }

  .hover-modal p {
    font-size: 13px;
  }
}
/* Fondo oscuro al abrir modal móvil */
body.modal-open-mobile::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1999;
}

/* Estilo del modal flotante en móviles */
@media (max-width: 991px) {
  .hover-modal.modal-mobile-active {
    display: flex !important;
    position: fixed !important;
    top: 5% !important; /* deja espacio arriba */
    left: 50% !important;
    transform: translateX(-50%) !important; /* solo centra horizontalmente */
    width: 90% !important;
    max-width: 420px !important;
    height: auto !important;
    max-height: 90vh !important; /* más espacio para scroll */
    overflow-y: auto !important; /* scroll dentro */
    background: #fff;
    border-radius: 16px;
    z-index: 2000;
    padding: 18px;
    flex-direction: column !important;
    -webkit-overflow-scrolling: touch; /* mejora el scroll en iPhone */
  }

  body.modal-open-mobile {
    overflow: hidden; /* bloquea scroll del fondo */
    height: 100vh;
    touch-action: none;
  }
}
@media (max-width: 991px) {
  /* Ocultar submenú dentro de la hamburguesa */
  .navbar-nav .has-submenu {
    display: none !important;
  }
}
/* 🔹 Botón flotante principal */
#floating-services-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #0d6efd;
  color: white;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  z-index: 3000;
  transition: transform 0.3s ease;
}

#floating-services-btn:hover {
  transform: scale(1.1);
}

/* 🔹 Menú flotante */
#floating-services-menu {
  position: fixed;
  bottom: 85px;
  left: 25px;
  display: none;
  flex-direction: column;
  gap: 12px;
  z-index: 2999;
}

#floating-services-menu button {
  background: #fff;
  border: 2px solid #0d6efd;
  color: #0d6efd;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

#floating-services-menu button:hover {
  background: #0d6efd;
  color: #fff;
}

/* 🔹 Mostrar solo en móvil */
@media (max-width: 991px) {
  #floating-services-btn {
    display: flex;
  }
}
/* Asegura que los modales queden por encima de los botones flotantes */
.modal-backdrop {
  z-index: 9998 !important;
}

.modal {
  z-index: 9999 !important;
}

/* Submenú Flotante nuevo diseño*/

/* Fullscreen Modal Styles */
.fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s ease, opacity 0.3s ease;
}

.fullscreen-modal.active {
    visibility: visible;
    opacity: 1;
}

.fullscreen-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

.fullscreen-modal-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    box-sizing: border-box;
    overflow-y: auto;
}

.modal-close-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
    color: white;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.modal-close-btn svg {
    width: 24px;
    height: 24px;
}

.fullscreen-modal-content {
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    background: white;
    border-radius: 24px;
    overflow-y: auto;
    position: relative;
    z-index: 10001;
    animation: modalSlideUp 0.4s ease;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos para contenido dentro del modal fullscreen */
.fullscreen-modal-content .hover-modal {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    left: 0 !important;
    top: 0 !important;
    transform: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 30px !important;
    
}

.fullscreen-modal-content .modal-content {
    flex-direction: row !important;
    gap: 30px !important;
}

.fullscreen-modal-content .modal-image img {
    max-width: 400px;
    width: 100%;
    height: auto;
}

.fullscreen-modal-content .modal-video-only {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    left: 0 !important;
    top: 0 !important;
}

.fullscreen-modal-content .modal-video-full video {
    max-height: 60vh;
    border-radius: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .fullscreen-modal-container {
        padding: 20px;
    }
    
    .fullscreen-modal-content .modal-content {
        flex-direction: column !important;
    }
    
    .fullscreen-modal-content .modal-image img {
        max-width: 100%;
    }
    
    .modal-close-btn {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
}
/* Estilos específicos para el modal de video en fullscreen */
.fullscreen-modal-content .modal-video-only {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: 500px !important;
    left: 0 !important;
    top: 0 !important;
    background: #000 !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
}

.fullscreen-modal-content .modal-video-full {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 500px !important;
}

.fullscreen-modal-content .modal-video-full video {
    width: 100% !important;
    height: auto !important;
    max-height: 70vh !important;
    object-fit: cover !important;
    display: block !important;
}

.fullscreen-modal-content .overlay-content {
    position: absolute !important;
    bottom: 10% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    text-align: center !important;
    color: #fff !important;
    padding: 30px !important;
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 16px !important;
    width: 80% !important;
    max-width: 500px !important;
    z-index: 10 !important;
}

.fullscreen-modal-content .overlay-content h2 {
    font-size: 28px !important;
    margin-bottom: 15px !important;
    color: white !important;
    font-weight: 600 !important;
}

.fullscreen-modal-content .overlay-content p {
    font-size: 16px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 20px !important;
    line-height: 1.5 !important;
}

.fullscreen-modal-content .overlay-actions {
    display: flex !important;
    gap: 15px !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
}

.fullscreen-modal-content .overlay-actions .btn-primary {
    background: #e80061ff !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 28px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.fullscreen-modal-content .overlay-actions .btn-primary:hover {
    transform: translateY(-2px) !important;
    background: #c50052ff !important;
    box-shadow: 0 5px 15px rgba(232, 0, 97, 0.3) !important;
}

.fullscreen-modal-content .overlay-actions .btn-outline {
    background: transparent !important;
    border: 2px solid #fff !important;
    color: #fff !important;
    padding: 12px 28px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.fullscreen-modal-content .overlay-actions .btn-outline:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px) !important;
}

/* Responsive para móvil */
@media (max-width: 768px) {
    .fullscreen-modal-content .modal-video-only {
        min-height: 400px !important;
    }
    
    .fullscreen-modal-content .modal-video-full video {
        max-height: 50vh !important;
    }
    
    .fullscreen-modal-content .overlay-content {
        width: 90% !important;
        padding: 20px !important;
        bottom: 5% !important;
    }
    
    .fullscreen-modal-content .overlay-content h2 {
        font-size: 22px !important;
    }
    
    .fullscreen-modal-content .overlay-content p {
        font-size: 14px !important;
    }
    
    .fullscreen-modal-content .overlay-actions {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .fullscreen-modal-content .overlay-actions .btn-primary,
    .fullscreen-modal-content .overlay-actions .btn-outline {
        width: 100% !important;
        padding: 10px 20px !important;
    }
}

@media (max-width: 480px) {
    .fullscreen-modal-content .modal-video-only {
        min-height: 350px !important;
    }
    
    .fullscreen-modal-content .overlay-content h2 {
        font-size: 18px !important;
    }
    
    .fullscreen-modal-content .overlay-content p {
        font-size: 12px !important;
    }
}
/* Mejoras para el modal de video en móvil */
@media (max-width: 991px) {
    .fullscreen-modal-content .modal-video-only {
        min-height: 450px !important;
        border-radius: 20px !important;
    }
    
    .fullscreen-modal-content .modal-video-full video {
        max-height: 60vh !important;
    }
    
    .fullscreen-modal-content .overlay-content {
        position: relative !important;
        bottom: auto !important;
        margin-top: -80px !important;
        background: rgba(0, 0, 0, 0.8) !important;
        width: 95% !important;
        border-radius: 12px !important;
    }
}

/* Animación suave para el video */
.fullscreen-modal-content .modal-video-full video {
    transition: all 0.3s ease;
}