@import "tailwindcss";
@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes spin-reverse {
  from {
    transform: rotate(360deg);
  }

  to {
    transform: rotate(0deg);
  }
}

@keyframes ping {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(2);
    opacity: 0;
  }
}

@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-Thin.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@keyframes shake {
  0% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-2px);
  }

  40% {
    transform: translateX(2px);
  }

  60% {
    transform: translateX(-2px);
  }

  80% {
    transform: translateX(2px);
  }

  100% {
    transform: translateX(0);
  }
}

.hover\:animate-shake:hover {
  animation: shake 0.3s ease-in-out;
}

@keyframes jiggle {
  0% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-1deg);
  }

  50% {
    transform: rotate(1deg);
  }

  75% {
    transform: rotate(-1deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

.hover\:animate-jiggle:hover {
  animation: jiggle 0.2s ease-in-out;
}

@keyframes zoomInOut {
  0% {
    transform: scale(1);
  }

  /* Estado inicial */
  50% {
    transform: scale(0.95);
  }

  /* Reducir ligeramente */
  100% {
    transform: scale(1.05);
  }

  /* Aumentar ligeramente */
}

.animate-zoom-in-out:hover {
  animation: zoomInOut 0.4s ease-in-out forwards;
  /* Ejecuta la animación al hacer hover */
}

@keyframes spinDownAndBack {
  0% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(6deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

.will-spin-down-and-back {
  /* Clase para aplicar la transición en el estado normal */
  transition: transform 0.3s ease-in-out;
}

.hover\:spin-down-and-back:hover {
  animation: spinDownAndBack 0.3s linear forwards;
  /* Ejecuta la animación una vez al hacer hover */
}

@keyframes wobble {
  0% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-5deg);
  }

  50% {
    transform: rotate(5deg);
  }

  75% {
    transform: rotate(-5deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

.hover\:wobble:hover {
  animation: wobble 0.3s ease-in-out 1;
  /* Ejecuta la animación una vez */
}

@keyframes swing {
  0% {
    transform: rotate(0deg);
  }

  20% {
    transform: rotate(-10deg);
  }

  40% {
    transform: rotate(10deg);
  }

  60% {
    transform: rotate(-5deg);
  }

  80% {
    transform: rotate(5deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

.hover\:swing:hover {
  animation: swing 0.5s ease-in-out 1;
  /* Ejecuta la animación una vez */
}

@keyframes shake-vertical {
  0% {
    transform: translateY(0);
  }

  15% {
    transform: translateY(-30px);
  }

  30% {
    transform: translateY(30px);
  }

  45% {
    transform: translateY(-15px);
  }

  60% {
    transform: translateY(15px);
  }

  75% {
    transform: translateY(-8px);
  }

  90% {
    transform: translateY(8px);
  }

  100% {
    transform: translateY(0);
  }
}

.hover\:shake-vertical:hover {
  animation: shake-vertical 0.2s ease-in-out 1;
  /* Ejecuta la animación una vez */
}

@keyframes shake-horizontal {
  0% {
    transform: translateX(0);
  }

  15% {
    transform: translateX(-30px);
  }

  30% {
    transform: translateX(30px);
  }

  45% {
    transform: translateX(-15px);
  }

  60% {
    transform: translateX(15px);
  }

  75% {
    transform: translateX(-8px);
  }

  90% {
    transform: translateX(8px);
  }

  100% {
    transform: translateX(0);
  }
}

.hover\:shake-horizontal:hover {
  animation: shake-horizontal 0.2s ease-in-out 1;
  /* Ejecuta la animación una vez */
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}

.hover\:bounce:hover {
  animation: bounce 0.5s ease-in-out 1;
  /* Ejecuta la animación una vez al hacer hover */
}

.paint-border-hover {
  position: relative;
  /* Necesario para el pseudo-elemento */
}

.paint-border-hover::before {
  content: "";
  position: absolute;
  top: -2px;
  /* Ajuste para cubrir el borde */
  left: -2px;
  right: -2px;
  bottom: -2px;
  border: 2px solid transparent;
  /* Borde transparente inicialmente */
  background: linear-gradient(to right, transparent 50%, rgb(255, 106, 0) 50%)
      top left,
    linear-gradient(to bottom, transparent 50%, rgb(255, 106, 0) 50%) top right,
    linear-gradient(to left, transparent 50%, rgb(255, 106, 0) 50%) bottom right,
    linear-gradient(to top, transparent 50%, rgb(255, 106, 0) 50%) bottom left;
  background-size: 200% 2px, 2px 200%, 200% 2px, 2px 200%;
  background-repeat: no-repeat;
  background-position: 0 0, 100% 0, 100% 100%, 0 100%;
  /* Inicialmente "apagado" */
  transition: background-position 0.3s ease-in-out;
  pointer-events: none;
}

.paint-border-hover:hover::before {
  background-position: 100% 0, 100% 100%, 0 100%, 0 0;
  /* Se "enciende" al hacer hover */
}

html {
  scroll-behavior: smooth;
}

.floating-button {
  position: fixed;
  right: 0;
  /* width: 40px; /* Ajustado para incluir texto */
  height: 40px;
  /* Ajustado para incluir texto */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  /* transition: opacity 0.3s ease-in-out, transform 0.2s ease-in-out; */
  border-radius: 10px 0 0 10px;
  border-bottom: 1.5px solid orange;
  background: linear-gradient(to bottom, #ff7e5f, #feb47b);
  color: white;
  font-weight: 500;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.04),
    0 0 14px 0 rgba(255, 255, 255, 0.19);
  /* transition: all 0.2s ease-in-out; */
}

.floating-button:hover {
  box-shadow: 0 10px 15px -3px rgba(255, 165, 0, 0.3),
    0 4px 6px -2px rgba(255, 165, 0, 0.3);
}

body {
  font-family: "Open Sans", sans-serif, "Geist";
}

.thin-text {
  font-family: "Open Sans", sans-serif, "Geist-Thin";
  font-weight: 100;
}

/* Navbar */
.navbar-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* Menú principal */
.menu-link {
  padding: 8px 10px;
  color: black;
  white-space: nowrap;
  /* Evita que el texto se rompa */
  transition: color 0.3s ease-in-out;
}

.menu-link:hover {
  color: orange;
}

/* Submenús en escritorio */
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  padding: 5px 0;
  z-index: 1000;
  min-width: 180px;
  /* Asegura que el texto se muestre en una línea */
}

.group:hover .submenu {
  display: block;
}

.submenu a {
  display: block;
  padding: 5px 12px;
  color: #333;
  white-space: nowrap;
  /* Mantiene todo el texto en una línea */
}

.submenu a:hover {
  background: orange;
  color: white;
  /* background: #f5f5f5; */
}

/* Submenús en móviles */
.menu-mobile-group {
  border-bottom: 1px solid #eee;
  padding-bottom: 0.5rem;
}

.menu-mobile-btn {
  width: 100%;
  text-align: left;
  padding: 0.75rem;
  background: none;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  color: #111827;
  transition: background 0.3s ease;
}

.menu-mobile-btn:hover {
  background: rgba(255, 165, 0, 0.1);
}

.submenu-mobile {
  display: none;
  margin-top: 0.25rem;
  padding-left: 1rem;
  background-color: #fef3c7;
  border-left: 2px solid #f97316;
  border-radius: 0.375rem;
}

.menu-mobile-group.active .submenu-mobile {
  display: block;
}

/* Submenús internos */
.submenu-mobile a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  color: #374151;
  border-radius: 0.375rem;
  transition: background 0.2s, color 0.2s;
}

.submenu-mobile a:hover {
  background-color: #f97316;
  color: white;
}

/* Flechita que rota */
.arrow {
  transform: rotate(0deg);
}

.menu-mobile-group.active .arrow {
  transform: rotate(180deg);
}

/* Ajustes para evitar separación excesiva */
@media (max-width: 1024px) {
  .navbar-menu {
    gap: 8px;
  }
}

@media (max-width: 768px) {
  .navbar-menu {
    gap: 5px;
  }
}

/* ORBITA */
.orbit-icon {
  animation: spin-reverse 130s linear infinite;
}

/* Contenedor de la órbita */
.orbit-container {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(10, 189, 1, 0.3);
  background: rgba(107, 114, 128, 0.05);
  animation: spin 130s linear infinite;
}

/* Elementos orbitando (solo traslación, sin rotación) */
.orbiting-object {
  position: absolute;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: none;
  /* Eliminamos la rotación */
  transform-origin: center;
  /* Se mantiene centrado */
}

/* Contenido dentro del objeto (NO ROTA) */
.orbit-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
  animation: none !important;
  /* Evita cualquier rotación inversa */
}

.orbit-content img,
.orbit-content i {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* La etiqueta hace la animación inversa para mantenerse fija */
.orbit-label {
  position: absolute;
  top: 100%;
  left: 0%;
  /* La coloca a la derecha del elemento */
  transform: translateY(-50%);
  /* Centra verticalmente */
  white-space: nowrap;
  /* Evita el salto de línea */
  animation: spin-reverse 24s linear infinite;
}

/* Efecto de pulso "ping" */
.ping {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255, 165, 0, 0.5);
  animation: ping 7s ease infinite;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* animación de texto de entrada */
.animate-fade-in {
  animation: fade-in 3s ease-in-out;
}

/* estilo barra de desplazamiento */
/* Para navegadores WebKit (Chrome, Edge, Safari) */
::-webkit-scrollbar {
  width: 6px;
  /* Grosor vertical */
  height: 6px;
  /* Grosor horizontal */
}

::-webkit-scrollbar-track {
  background: #f3f3f3;
  /* Color de fondo de la barra */
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #f97316;
  /* Color naranja */
  border-radius: 10px;
  transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
  background: #ea580c;
  /* Un tono más oscuro al pasar el cursor */
}

/* Para Firefox */
* {
  scrollbar-width: thin;
  /* Grosor fino */
  scrollbar-color: #f97316 #f3f3f3;
  /* Pulgar naranja sobre fondo gris */
}

canvas {
  width: 100%;
}

@keyframes oscillate {
  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(50px);
  }
}

/* Clase que activa la animación */
.animate-oscillate {
  animation: oscillate 6s ease-in-out infinite;
}

/** footer-bottom **/

.footer-bottom {
  position: relative;
  background: #13151a;
  padding: 25px 0px 22px 0px;
}

.footer-bottom .copyright,
.footer-bottom .copyright a,
.footer-bottom .footer-nav li a {
  position: relative;
  color: #9ea0a9;
}

.footer-bottom .copyright a:hover,
.footer-bottom .footer-nav li a:hover {
  color: #ff5e14;
}

.footer-bottom .footer-nav {
  position: relative;
  text-align: right;
}

.footer-bottom .footer-nav li {
  position: relative;
  display: inline-block;
  margin-left: 29px;
}

.footer-bottom .footer-nav li:first-child {
  margin-left: 0px;
}

.footer-bottom .footer-nav li:before {
  position: absolute;
  content: "";
  background: #9ea0a9;
  width: 1px;
  height: 14px;
  top: 7px;
  left: -18px;
}

.footer-bottom .footer-nav li:first-child:before {
  display: none;
}

.logo-box img {
  max-width: 220px;
}

/* Animación de borde para los títulos */
/* .draw-border-on-hover {
  /* Asegura que las clases base de Tailwind se apliquen si no están inline */
/* position: relative; */
/* display: inline-block; */
/* padding: 0.5rem 1rem; */
/* Equivalente a py-2 px-4 
} */

.draw-border-on-hover::before,
.draw-border-on-hover::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  /* Usamos el color naranja-500 de Tailwind */
  border-color: #f97316;
  /* Equivalente a border-orange-500 */
  border-style: solid;
  border-width: 0;
  /* Empezamos sin borde visible */
  box-sizing: border-box;
  transition: width 0.2s ease-out, height 0.2s ease-out, border-width 0s linear;
  /* Transiciones para tamaño */
  transition-delay: 0s;
  /* Delay inicial para las propiedades */
}

/* Pseudo-elemento para la esquina superior-izquierda */
.draw-border-on-hover::before {
  top: -2px;
  /* Ajusta si el borde es más grueso */
  left: -2px;
  /* Al hacer hover, crecerán estas partes del borde */
  border-top-width: 2px;
  border-right-width: 2px;
  /* Primero anima el ancho (horizontal), luego la altura (vertical) */
  transition-delay: 0s, 0.2s, 0s;
}

/* Pseudo-elemento para la esquina inferior-derecha */
.draw-border-on-hover::after {
  bottom: -2px;
  right: -2px;
  /* Al hacer hover, crecerán estas partes del borde */
  border-bottom-width: 2px;
  border-left-width: 2px;
  /* Empieza después de la animación ::before */
  transition-delay: 0.4s, 0.6s, 0s;
}

/* Estado Hover: activa las animaciones */
.draw-border-on-hover:hover::before,
.draw-border-on-hover:hover::after {
  width: calc(100% + 4px);
  /* Ancho completo + grosor del borde en ambos lados */
  height: calc(100% + 4px);
  /* Altura completa + grosor del borde en ambos lados */
  /* Retraso 0 para el grosor al hacer hover para que aparezca */
  transition-delay: 0s, 0.2s, 0s;
  /* ::before delays */
}

.draw-border-on-hover:hover::after {
  /* ::after delays - empieza después que ::before */
  transition-delay: 0.4s, 0.6s, 0s;
}

/* Añade este bloque a tu archivo CSS principal */
/* Asegura que los botones con estos estilos tengan position: relative para controlar su apilamiento */
.bg-orange-500,
.bg-blue-500,
/* Si el botón original con style="link" (que ahora tiene data-action-type="link" según la JS) */
/* también tuviera problemas, podrías añadir su selector aquí. */
/* Por ejemplo: .text-blue-500.underline, */
.group

/* fancy-border ya tiene relative, pero añadirlo aquí no hace daño y lo mantiene explícito */ {
  position: relative;
  /* Opcional: Añadir z-index puede ayudar a asegurar su capa, aunque relative por sí solo ya ayuda */
  z-index: 1;
}

/* Si necesitas ser más específico, por ejemplo, solo para los botones */
/* button.bg-orange-500, */
/* button.bg-blue-500 */
/* { */
/* position: relative; */
/* z-index: 1; */
/* } */

/* CSS para el cursor parpadeante del efecto TypeWritter */
.blinking-cursor {
  /* Añade una barra vertical como cursor. Ajusta el color y el grosor. */
  border-right: 2px solid orange; /* Ejemplo: cursor naranja */
  animation: blink-caret 0.75s step-end infinite; /* Nombre de la animación, duración, tipo, repetición */
}

/* Definición de la animación de parpadeo del cursor */
@keyframes blink-caret {
  from,
  to {
    border-right-color: transparent;
  } /* Transparente al inicio y final */
  50% {
    border-right-color: orange;
  } /* Visible en el 50% del tiempo (ajusta el color) */
}

/* Fin del CSS para el cursor parpadeante del efecto TypeWritter */

/* Destacados */
/* ---------------------------- */

.draw-border-continuous {
  position: relative;
  display: inline-block;
  padding: 10px 15px; /* Ajusta según el espacio necesario para el borde */
  color: #1f2937; /* Color del texto (text-gray-800) */
  /* Asegúrate de que el color del texto sea visible */
}

/* Pseudo-elementos para las líneas del borde */
.draw-border-continuous::before, /* Línea superior */
.draw-border-continuous::after /* Línea inferior */ {
  content: "";
  position: absolute;
  background: #f97316; /* Color naranja (orange-500) */
  /* Inicialmente no visibles */
  width: 0%;
  height: 2px; /* Grosor de la línea */
}

/* Línea superior */
.draw-border-continuous::before {
  top: 0;
  left: 0; /* Empieza en la izquierda */
  animation: draw-collect-top 4s linear infinite; /* Aplica la animación */
}

/* Línea inferior */
.draw-border-continuous::after {
  bottom: 0;
  right: 0; /* Empieza en la derecha */
  animation: draw-collect-bottom 4s linear infinite; /* Aplica la animación */
}

/* Keyframes para la línea superior (dibuja de izq a der, recoge de izq a der con pausas) */
@keyframes draw-collect-top {
  0% {
    width: 0%;
    left: 0%;
  } /* Empieza invisible a la izquierda */
  10% {
    width: 0%;
    left: 0%;
  } /* PAUSA: Se mantiene invisible */
  40% {
    width: 100%;
    left: 0%;
  } /* Dibuja hasta la derecha */
  50% {
    width: 100%;
    left: 0%;
  } /* PAUSA: Se mantiene dibujada */
  80% {
    width: 0%;
    left: 100%;
  } /* Recoge desde la izquierda hacia la derecha */
  90% {
    width: 0%;
    left: 100%;
  } /* PAUSA: Se mantiene invisible al final */
  100% {
    width: 0%;
    left: 0%;
  } /* Vuelve al inicio para el loop */
}

/* Keyframes para la línea inferior (dibuja de der a izq, recoge de der a izq con pausas) */
@keyframes draw-collect-bottom {
  0% {
    width: 0%;
    right: 0%;
  } /* Empieza invisible a la derecha */
  10% {
    width: 0%;
    right: 0%;
  } /* PAUSA: Se mantiene invisible */
  40% {
    width: 100%;
    right: 0%;
  } /* Dibuja hasta la izquierda */
  50% {
    width: 100%;
    right: 0%;
  } /* PAUSA: Se mantiene dibujada */
  80% {
    width: 0%;
    right: 100%;
  } /* Recoge desde la derecha hacia la izquierda */
  90% {
    width: 0%;
    right: 100%;
  } /* PAUSA: Se mantiene invisible al final */
  100% {
    width: 0%;
    right: 0%;
  } /* Vuelve al inicio para el loop */
}


#carouselModal{
  background-color: rgba(0,0,0,0.5) !important;
}
#textModal{
  background-color: rgba(0,0,0,0.5) !important;
}
