* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* width */
::-webkit-scrollbar {
  width: 1.7px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #262424;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #888;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #1e1d1d;
}

body {
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
  background: #0a0a0a;
  color: #ffffff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
}

.gradient-text {
  background: linear-gradient(135deg, #192364 0%, #5073FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-bg {
  background: linear-gradient(135deg, #192364 0%, #5073FF 100%);
}

.gradient-bg-green {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.glass-effect {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-gradient {
  background: radial-gradient(
      circle at 20% 50%,
      rgba(25, 35, 100, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(80, 115, 255, 0.15) 0%,
      transparent 50%
    );
}

.floating {
  animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.floating-logo {
  position: absolute;
  top: 60px;
  right: 80px;
  width: 80px;
  height: auto;
  z-index: 10;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  animation: floating 3s ease-in-out infinite;
}

.hover-scale {
  transition: transform 0.3s ease;
}

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

.glow-effect {
  box-shadow: 0 0 30px rgba(80, 115, 255, 0.3);
}

.pricing-card {
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(80, 115, 255, 0.3);
}

.feature-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  font-size: 24px;
  margin-bottom: 1rem;
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: linear-gradient(135deg, #192364 0%, #5073FF 100%);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.subrayado {
  position: relative;
  cursor: pointer;
  transition: color 0.3s ease;
  display: inline-block;
}

.subrayado::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background: linear-gradient(135deg, #192364 0%, #5073FF 100%);
  transition: width 0.3s ease;
}

.subrayado:hover {
  color: #ffffff;
}

.subrayado:hover::after {
  width: 100%;
}

.tech-badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(80, 115, 255, 0.1);
  border: 1px solid rgba(80, 115, 255, 0.3);
  border-radius: 20px;
  font-size: 14px;
  margin: 5px;
  transition: all 0.3s ease;
}

.tech-badge:hover {
  background: rgba(80, 115, 255, 0.2);
  transform: translateY(-2px);
}

#new-roles-section {
  position: relative;
  background-image: url('../images/backgrounds/background-new-roles.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

#new-roles-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 100, 0.6);
  z-index: 0;
}

#new-roles-section .container {
  position: relative;
  z-index: 1;
}

#portfolio {
  position: relative;
  background-image: url('../images/backgrounds/background-categories.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

#portfolio::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 50, 0.85);
  z-index: 0;
}

#portfolio .container {
  position: relative;
  z-index: 1;
}

#process {
  position: relative;
  background-image: url('../images/backgrounds/background-process.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

#process::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 50, 0.85);
  z-index: 0;
}

#process .container {
  position: relative;
  z-index: 1;
}

.tooltip-trigger {
  position: relative;
  cursor: pointer;
}

.tooltip {
  position: absolute;
  z-index: 1000;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: #ffffff;
  max-width: 280px;
  min-width: 200px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(80, 115, 255, 0.2);
  pointer-events: none;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
}

.tooltip.show {
  opacity: 1;
  transform: translateY(0);
}

.tooltip::before {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border: 6px solid transparent;
}

.tooltip.tooltip-top::before {
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  border-top-color: rgba(255, 255, 255, 0.1);
}

.tooltip.tooltip-bottom::before {
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.tooltip.tooltip-left::before {
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  border-left-color: rgba(255, 255, 255, 0.1);
}

.tooltip.tooltip-right::before {
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  border-right-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .tooltip {
    max-width: 250px;
    min-width: 180px;
    font-size: 12px;
    padding: 10px 14px;
  }
}

.timeline-item {
  position: relative;
  padding-left: 40px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #192364 0%, #5073FF 100%);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(25, 35, 100, 0.5);
}

.cta-button {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.5s ease;
}

.cta-button:hover::before {
  left: 100%;
}

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-menu.active {
  max-height: 500px;
}

.mobile-menu-button {
  position: relative;
  width: 24px;
  height: 24px;
  transform: rotate(0deg);
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mobile-menu-button span {
  position: absolute;
  left: 0;
  display: block;
  opacity: 1;
  width: 100%;
  height: 3px;
  border-radius: calc(3px / 2);
  background: currentColor;
  transform: rotate(0deg);
  transition: 0.25s ease;
  transform-origin: center center;
}

.mobile-menu-button span:nth-child(1) {
  top: 0;
}

.mobile-menu-button span:nth-child(2) {
  top: calc(50% - 3px / 2);
}

.mobile-menu-button span:nth-child(3) {
  bottom: 0;
}

.mobile-menu-button.active span:nth-child(1) {
  transform: rotate(45deg);
  top: calc(50% - 1.5px);
  left: 0;
}

.mobile-menu-button.active span:nth-child(2) {
  width: 0%;
  opacity: 0;
}

.mobile-menu-button.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: calc(50% - 1.5px);
  left: 0;
  bottom: auto;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .floating-logo {
    width: 60px;
    top: 60px;
    right: 80px;
  }
}

/* Media query para resoluciones menores a 1024px (769px - 1023px) */
@media (max-width: 1023px) and (min-width: 769px) {
  /* Reducir espacio entre nav-links */
  nav .space-x-8 {
    gap: 0.125rem !important; /* Reduce al mínimo el espacio entre items */
    margin-left: 10px !important;
    margin-right: 10px !important;
  }
  
  /* Reducir tamaño de fuente de nav-links */
  nav a.nav-link {
    font-size: 0.875rem !important;
    white-space: nowrap;
  }
  
  /* Ajustar botón de español - mantener estilo pero más compacto */
  nav button.gradient-bg {
    padding: 0.625rem 0.875rem !important;
    font-size: 0.875rem !important;
    min-width: auto !important;
    white-space: nowrap;
  }
  
  /* Asegurar que el contenedor del navbar no se rompa */
  nav .container > div {
    flex-wrap: nowrap;
  }
  
  /* Reducir logo Logolines a la mitad del tamaño */
  .floating-logo {
    width: 40px !important; /* Mitad de 80px */
    right: 60px !important;
  }
}

/* Subject Tags Input Styles */
.subject-tags-container {
  position: relative;
  cursor: text;
}

.subject-tags-container:focus-within {
  border-color: #fef08a !important;
}

.subject-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(135, 206, 250, 0.3);
  border: 1px solid rgba(135, 206, 250, 0.5);
  border-radius: 20px;
  font-size: 14px;
  color: #ffffff;
  user-select: none;
  transition: all 0.2s ease;
}

.subject-tag:hover {
  background: rgba(135, 206, 250, 0.4);
  border-color: rgba(135, 206, 250, 0.7);
}

.subject-tag-remove {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
  font-size: 12px;
  line-height: 1;
  margin-left: 4px;
}

.subject-tag-remove:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.subject-tag-remove::before {
  content: '×';
  color: #ffffff;
  font-weight: bold;
}

.subject-tags-input {
  flex: 1;
  min-width: 120px;
  padding: 0 !important;
  margin: 0;
  background: transparent !important;
  border: none !important;
}

.subject-tags-input:focus {
  outline: none;
}

@media (max-width: 768px) {
  .subject-tag {
    font-size: 13px;
    padding: 5px 10px;
  }
  
  .subject-tag-remove {
    width: 16px;
    height: 16px;
    font-size: 11px;
  }
}