/* ============================================
   TISAN FUTURA - CYBERPUNK DYNAMIC DESIGN v2
   ============================================ */

/* --- VARIABLES GLOBALES --- */
:root {
  /* Colores base */
  --bg-dark: #0a0a0f;
  --bg-darker: #050508;
  --bg-card: rgba(15, 15, 25, 0.8);

  /* Neones */
  --neon-cyan: #00f5ff;
  --neon-magenta: #ff00ff;
  --neon-purple: #b347ff;
  --neon-pink: #ff47ab;
  --neon-green: #00ff88;

  /* Holográfico */
  --holo-gradient: linear-gradient(135deg, #ff47ab, #00f5ff, #b347ff, #ff47ab);

  /* Textos */
  --text-primary: #ffffff;
  --text-secondary: #8892a0;
  --text-muted: #4a5568;

  /* Glass */
  --glass-bg: rgba(20, 20, 35, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-hover: rgba(0, 245, 255, 0.3);

  /* Tipografía */
  --font-display: "Orbitron", "Space Grotesk", sans-serif;
  --font-body: "Inter", "Poppins", sans-serif;

  /* Transiciones */
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-secondary);
  line-height: 1.7;
  overflow-x: hidden;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

a {
  color: inherit;
  text-decoration: none;
}

/* --- SCROLL PROGRESS BAR --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--neon-cyan),
    var(--neon-magenta),
    var(--neon-purple)
  );
  z-index: 9999;
  transition: width 0.1s ease;
}

/* --- FONDOS DINÁMICOS --- */
.cyber-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: radial-gradient(
      ellipse at 20% 80%,
      rgba(0, 245, 255, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 80% 20%,
      rgba(255, 0, 255, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 50% 50%,
      rgba(179, 71, 255, 0.05) 0%,
      transparent 70%
    ),
    var(--bg-darker);
}

/* Rain Effect */
.rain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='100'%3E%3Cline x1='2' y1='0' x2='2' y2='100' stroke='rgba(0,245,255,0.08)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 30px 100px;
  animation: rain 0.4s linear infinite;
  opacity: 0.4;
}

@keyframes rain {
  from {
    background-position: 0 -100px;
  }
  to {
    background-position: 30px 0;
  }
}

/* Grid */
.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: linear-gradient(
      rgba(0, 245, 255, 0.02) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(0, 245, 255, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

/* Particles Container */
#particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--neon-cyan);
  border-radius: 50%;
  opacity: 0.6;
  animation: float 15s infinite ease-in-out;
  box-shadow: 0 0 10px var(--neon-cyan);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) translateX(0);
    opacity: 0.6;
  }
  25% {
    transform: translateY(-100px) translateX(30px);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-50px) translateX(-20px);
    opacity: 0.8;
  }
  75% {
    transform: translateY(-150px) translateX(10px);
    opacity: 0.4;
  }
}

/* --- HEADER --- */
.main-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
  transition: all 0.4s var(--transition-smooth);
}

.main-header.scrolled {
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px 0;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 3px;
  background: var(--holo-gradient);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: holoShift 5s ease infinite;
}

@keyframes holoShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Desktop Nav */
.nav-desktop {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav-desktop a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 10px 18px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-desktop a:hover {
  color: var(--neon-cyan);
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--neon-cyan);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-desktop a:hover::after {
  width: 60%;
}

.btn-contact {
  background: transparent;
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan) !important;
  border-radius: 4px;
  padding: 10px 24px !important;
  transition: all 0.3s ease;
}

.btn-contact:hover {
  background: var(--neon-cyan);
  color: var(--bg-dark) !important;
  box-shadow: 0 0 25px rgba(0, 245, 255, 0.5);
  transform: translateY(-2px);
}

.btn-contact::after {
  display: none;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.nav-mobile {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 400px;
  height: 100vh;
  background: rgba(10, 10, 15, 0.98);
  backdrop-filter: blur(20px);
  padding: 100px 40px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: right 0.4s var(--transition-smooth);
  z-index: 999;
  border-left: 1px solid var(--glass-border);
}

.nav-mobile.active {
  right: 0;
}

.nav-mobile a {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.2rem;
  padding: 15px 0;
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.nav-mobile a:hover {
  color: var(--neon-cyan);
  padding-left: 20px;
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 998;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* --- HERO --- */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 80px;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to top, var(--bg-darker) 0%, transparent 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
}

/* Chrome Holographic Title */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 15vw, 10rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 0.9;
  margin-bottom: 10px;
  background: linear-gradient(
    135deg,
    #c0c0c0 0%,
    #ffffff 10%,
    #ff47ab 20%,
    #00f5ff 30%,
    #b347ff 40%,
    #ffffff 50%,
    #ff47ab 60%,
    #00f5ff 70%,
    #c0c0c0 80%,
    #ffffff 90%,
    #b347ff 100%
  );
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: chromeShift 8s ease infinite;
  filter: drop-shadow(0 0 30px rgba(0, 245, 255, 0.3));
}

@keyframes chromeShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  25% {
    background-position: 100% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
  75% {
    background-position: 0% 100%;
  }
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1rem, 3vw, 1.8rem);
  letter-spacing: 8px;
  color: var(--neon-cyan);
  text-shadow: 0 0 20px var(--neon-cyan);
  margin-bottom: 30px;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 30px;
  opacity: 0;
}

.hero-tagline.typed {
  opacity: 1;
}

.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  padding: 10px 25px;
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
}

.hero-location::before {
  content: "📍";
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  color: var(--bg-dark);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1px;
  padding: 16px 40px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s var(--transition-smooth);
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 245, 255, 0.4);
}

/* HUD Cards */
.hud-cards {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 5;
}

.hud-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 15px 20px;
  backdrop-filter: blur(10px);
  min-width: 180px;
  transform: translateX(-20px);
  opacity: 0;
  animation: slideInLeft 0.6s var(--transition-smooth) forwards;
}

.hud-card:nth-child(1) {
  animation-delay: 0.5s;
}
.hud-card:nth-child(2) {
  animation-delay: 0.7s;
}
.hud-card:nth-child(3) {
  animation-delay: 0.9s;
}

@keyframes slideInLeft {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.hud-card-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.hud-card-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--neon-cyan);
  text-shadow: 0 0 10px var(--neon-cyan);
}

.hud-card-value.success {
  color: var(--neon-green);
  text-shadow: 0 0 10px var(--neon-green);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: bounce 2s infinite;
}

.scroll-indicator span {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.scroll-indicator::after {
  content: "";
  width: 20px;
  height: 30px;
  border: 2px solid var(--glass-border);
  border-radius: 20px;
  position: relative;
}

.scroll-indicator::before {
  content: "";
  width: 4px;
  height: 8px;
  background: var(--neon-cyan);
  border-radius: 2px;
  position: absolute;
  bottom: 18px;
  animation: scrollDown 1.5s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

@keyframes scrollDown {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(15px);
  }
}

/* --- TICKER TAPE --- */
.ticker-tape {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: rgba(0, 245, 255, 0.03);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 18px 0;
}

.ticker-content {
  display: flex;
  animation: ticker 40s linear infinite;
  white-space: nowrap;
}

.ticker-content:hover {
  animation-play-state: paused;
}

.ticker-content span {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 3px;
  color: var(--text-muted);
  padding: 0 50px;
  transition: color 0.3s ease;
}

.ticker-content span:hover {
  color: var(--neon-cyan);
}

.ticker-content span::before {
  content: "◆";
  margin-right: 50px;
  color: var(--neon-cyan);
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* --- SECTIONS COMMON --- */
section {
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 4px;
  color: var(--neon-magenta);
  margin-bottom: 20px;
  padding: 8px 20px;
  border: 1px solid var(--neon-magenta);
  border-radius: 50px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s var(--transition-smooth);
}

.section-tag.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: var(--text-primary);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s var(--transition-smooth) 0.1s;
}

.section-title.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s var(--transition-smooth) 0.2s;
}

.section-subtitle.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- SERVICES --- */
#servicios {
  padding: 120px 0;
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

/* Tilt Card Effect */
.service-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 40px;
  transition: all 0.4s var(--transition-smooth);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
  opacity: 0;
  transform: translateY(40px);
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover {
  border-color: var(--glass-border-hover);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 245, 255, 0.1);
}

.service-card:hover::before {
  transform: scaleX(1);
}

/* Glow follow cursor effect */
.service-card .glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 245, 255, 0.15), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover .glow {
  opacity: 1;
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 25px;
  display: block;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 15px;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}

.service-features {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
}

.service-features li {
  list-style: none;
  padding: 8px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-features li::before {
  content: "▹";
  color: var(--neon-cyan);
}

/* --- PROJECTS --- */
#proyectos {
  padding: 120px 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 245, 255, 0.02) 50%,
    transparent 100%
  );
}

.projects-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.project-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s var(--transition-smooth);
  transform-style: preserve-3d;
  opacity: 0;
  transform: translateY(40px);
}

.project-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover {
  transform: translateY(-10px) rotateX(2deg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 245, 255, 0.1);
  border-color: var(--neon-cyan);
}

.project-image {
  height: 200px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-image--ecommerce {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0ea5e9 100%);
}

.project-image--erp {
  background: linear-gradient(135deg, #0f172a 0%, #3b1d5c 50%, #7c3aed 100%);
}

.project-image--security {
  background: linear-gradient(135deg, #0f172a 0%, #4a1d2e 50%, #dc2626 100%);
}

.project-icon {
  font-size: 4rem;
  filter: grayscale(20%) brightness(1.2);
  opacity: 0.8;
  transition: all 0.4s var(--transition-smooth);
  z-index: 2;
}

.project-card:hover .project-icon {
  transform: scale(1.15) rotate(5deg);
  filter: grayscale(0%) brightness(1.4);
  opacity: 1;
}

.project-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 30% 70%,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.project-info {
  padding: 30px;
}

.project-tag {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: var(--neon-magenta);
  margin-bottom: 10px;
  display: block;
}

.project-info h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.project-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.project-stats {
  display: flex;
  gap: 30px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
}

.project-stat {
  text-align: center;
  flex: 1;
}

.project-stat-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--neon-cyan);
  text-shadow: 0 0 15px rgba(0, 245, 255, 0.5);
}

.project-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-top: 5px;
}

/* --- WHY US --- */
#nosotros {
  padding: 120px 0;
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.why-card {
  text-align: center;
  padding: 40px 30px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s var(--transition-smooth);
}

.why-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.why-icon {
  font-size: 3rem;
  margin-bottom: 25px;
  display: block;
  transition: transform 0.3s ease;
}

.why-card:hover .why-icon {
  transform: scale(1.2) rotate(10deg);
}

.why-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 15px;
}

.why-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* --- METHODOLOGY --- */
#metodologia {
  padding: 120px 0;
  background: var(--bg-card);
}

.methodology-steps {
  display: flex;
  gap: 0;
  position: relative;
  flex-wrap: wrap;
}

.methodology-steps::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 30px;
  right: 30px;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--glass-border),
    var(--neon-cyan),
    var(--glass-border)
  );
}

.step {
  flex: 1;
  min-width: 200px;
  padding: 0 20px;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s var(--transition-smooth);
}

.step.visible {
  opacity: 1;
  transform: translateY(0);
}

.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg-darker);
  border: 2px solid var(--neon-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--neon-cyan);
  margin-bottom: 25px;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
  box-shadow: 0 0 0 0 rgba(0, 245, 255, 0.3);
}

.step:hover .step-number {
  background: var(--neon-cyan);
  color: var(--bg-dark);
  box-shadow: 0 0 30px rgba(0, 245, 255, 0.5);
}

.step h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.step p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- TECHNOLOGIES MARQUEE --- */
#tecnologias {
  padding: 80px 0;
  overflow: hidden; /* Vital para que no haga scroll horizontal la página */
}

.tech-marquee-wrapper {
  width: 100vw; /* Aseguramos que ocupe todo el ancho */
  margin-left: -50vw; /* Truco para romper el container y usar full width */
  left: 50%;
  position: relative;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.tech-marquee {
  display: flex;
  width: max-content;
  gap: 20px;
  animation: scroll 30s linear infinite;
}

.tech-marquee:hover {
  animation-play-state: paused;
}

.tech-group {
  display: flex;
  align-items: center;
  gap: 20px;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(
      -50%
    ); /* Se desplaza exactamante la mitad (un grupo) */
  }
}

.tech-badge {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 1px;
  padding: 12px 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  cursor: default;
}

.tech-badge:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 25px rgba(0, 245, 255, 0.3);
  transform: translateY(-3px);
}

/* --- TESTIMONIALS --- */
#testimonios {
  padding: 120px 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 0, 255, 0.02) 50%,
    transparent 100%
  );
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 40px;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s var(--transition-smooth);
}

.testimonial-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.testimonial-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.testimonial-card::before {
  content: '"';
  font-family: Georgia, serif;
  font-size: 5rem;
  color: var(--neon-cyan);
  opacity: 0.15;
  position: absolute;
  top: 10px;
  left: 25px;
  line-height: 1;
}

.testimonial-quote {
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.8;
  margin-bottom: 25px;
  font-style: italic;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--neon-cyan);
  margin-bottom: 5px;
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- CONTACT --- */
#contacto {
  padding: 120px 0;
  background: var(--bg-card);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 60px;
  align-items: flex-start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 25px;
  background: var(--bg-darker);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.contact-item:hover {
  border-color: var(--neon-cyan);
  background: rgba(0, 245, 255, 0.05);
  transform: translateX(10px);
}

.contact-icon {
  font-size: 1.5rem;
  background: rgba(0, 245, 255, 0.1);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px; /* Sqircle */
}

.contact-item h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.contact-item p,
.contact-item a {
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: var(--neon-cyan);
}

/* Glass Form Panel */
.glass-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 50px;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.contact-form h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 30px;
  background: linear-gradient(90deg, #fff, #aaa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Service Selector Pills */
.service-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.service-pill {
  position: relative;
  cursor: pointer;
}

.service-pill input {
  display: none;
}

.service-pill span {
  display: block;
  padding: 10px 20px;
  background: var(--bg-darker);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.service-pill input:checked + span {
  background: var(--neon-cyan);
  color: var(--bg-dark);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.4);
  font-weight: 600;
}

.service-pill:hover span {
  border-color: var(--text-secondary);
}

/* Floating Labels */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 30px;
  position: relative;
}

.form-label-top {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.floating-label {
  position: relative;
}

.floating-label input,
.floating-label textarea {
  width: 100%;
  padding: 15px 0;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--glass-border);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: var(--font-body);
  transition: all 0.3s ease;
  border-radius: 0; /* Para el borde */
}

.floating-label input:focus,
.floating-label textarea:focus {
  outline: none;
  border-bottom-color: var(--neon-cyan);
}

.floating-label label {
  position: absolute;
  top: 15px;
  left: 0;
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
  transition: all 0.3s ease;
}

.floating-label input:focus + label,
.floating-label input:not(:placeholder-shown) + label,
.floating-label textarea:focus + label,
.floating-label textarea:not(:placeholder-shown) + label {
  top: -10px;
  font-size: 0.8rem;
  color: var(--neon-cyan);
}

.floating-label textarea {
  resize: vertical;
  min-height: 100px;
}

.glow-effect {
  position: relative;
  overflow: hidden;
}

.glow-effect::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.2) 0%,
    transparent 60%
  );
  transform: scale(0);
  transition: transform 0.6s ease-out;
}

.glow-effect:hover::after {
  transform: scale(1);
}

/* Responsive Form */
@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-info {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .contact-item {
    min-width: 280px;
  }
}

@media (max-width: 600px) {
  .contact-info {
    flex-direction: column;
  }

  .contact-item {
    min-width: auto;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .glass-panel {
    padding: 30px 20px;
  }
}

/* End of Interactive Form Styles */

/* --- FOOTER --- */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--glass-border);
  text-align: center;
}

footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

footer .neon {
  color: var(--neon-cyan);
}

/* --- NOTIFICATION TOAST --- */
#notification-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 18px 25px;
  border-radius: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-left: 4px solid var(--neon-cyan);
  color: var(--text-primary);
  backdrop-filter: blur(20px);
  opacity: 0;
  transform: translateX(100%);
  animation: toastIn 0.5s var(--transition-smooth) forwards;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.toast--success {
  border-left-color: var(--neon-green);
}
.toast--error {
  border-left-color: #ff4757;
}

@keyframes toastIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

/* ============================================
   RESPONSIVE DESIGN - FULLY OPTIMIZED
   ============================================ */

/* Tablets */
@media (max-width: 1024px) {
  .hud-cards {
    display: none;
  }

  .methodology-steps::before {
    display: none;
  }

  .step {
    flex: 0 0 50%;
    margin-bottom: 40px;
    text-align: center;
  }

  .step-number {
    margin: 0 auto 25px;
  }

  .contact-wrapper {
    gap: 50px;
  }
}

/* Mobile Landscape */
@media (max-width: 900px) {
  .nav-desktop {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: clamp(3rem, 12vw, 6rem);
  }

  .scroll-indicator {
    display: none;
  }
}

/* Mobile Portrait */
@media (max-width: 600px) {
  .container {
    padding: 0 20px;
  }

  section {
    padding: 80px 0;
  }

  .section-header {
    margin-bottom: 50px;
  }

  .hero-subtitle {
    letter-spacing: 4px;
  }

  .hero-location {
    font-size: 0.8rem;
    padding: 8px 16px;
  }

  .btn-primary {
    padding: 14px 30px;
    font-size: 0.85rem;
    width: 100%;
    justify-content: center;
  }

  .ticker-tape {
    display: none;
  }

  .services-grid,
  .projects-showcase,
  .why-us-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .testimonial-card {
    padding: 30px;
  }

  .step {
    flex: 0 0 100%;
  }

  .project-stats {
    flex-direction: column;
    gap: 15px;
  }

  .project-stat {
    text-align: left;
    display: flex;
    gap: 15px;
    align-items: center;
  }

  .contact-form {
    padding: 30px 20px;
  }

  .contact-item {
    padding: 15px;
  }

  #notification-container {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }

  .toast {
    padding: 15px 20px;
    font-size: 0.9rem;
  }
}

/* Small phones */
@media (max-width: 380px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-subtitle {
    font-size: 0.9rem;
    letter-spacing: 2px;
  }

  .section-title {
    font-size: 1.5rem;
  }
  .section-tag {
    font-size: 0.65rem;
    padding: 6px 14px;
  }

  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1rem;
  }
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .rain-overlay {
    display: none;
  }
  .particle {
    display: none;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --glass-bg: rgba(0, 0, 0, 0.9);
    --glass-border: rgba(255, 255, 255, 0.3);
  }
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */

.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #25d366;
  color: white;
  padding: 14px 22px;
  border-radius: 50px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0);
  transition: all 0.3s var(--transition-smooth);
  animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.5), 0 0 0 0 rgba(37, 211, 102, 0);
  animation: none;
}

@keyframes whatsappPulse {
  0% {
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4),
      0 0 0 0 rgba(37, 211, 102, 0.4);
  }
  70% {
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4),
      0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4),
      0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.whatsapp-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.whatsapp-text {
  white-space: nowrap;
}

.whatsapp-pulse {
  display: none;
}

/* Mobile: Solo ícono */
@media (max-width: 600px) {
  .whatsapp-float {
    padding: 12px;
    border-radius: 50%;
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-text {
    display: none;
  }

  .whatsapp-icon {
    width: 28px;
    height: 28px;
  }
}
