/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #080c14;
  --bg-2: #0d1220;
  --bg-card: #111827;
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(139,92,246,0.4);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --purple: #8b5cf6;
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --green: #10b981;
  --gradient: linear-gradient(135deg, #8b5cf6, #3b82f6, #06b6d4);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.5);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hidden { display: none; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 24px;
  transition: background 0.3s, backdrop-filter 0.3s, border-bottom 0.3s;
}

.navbar.scrolled {
  background: rgba(8,12,20,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  position: relative;
  display: inline-block;
  font-size: 1.85rem;
  font-weight: 800;
  background: linear-gradient(90deg, #8b5cf6 0%, #3b82f6 25%, #06b6d4 50%, #8b5cf6 75%, #3b82f6 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  letter-spacing: -0.5px;
  animation: logoShimmer 5s linear infinite;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-links a.active {
  color: var(--text);
}

.nav-links a.active:not(.btn-nav)::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
  margin-top: 3px;
  animation: underlineIn 0.25s ease;
}

@keyframes underlineIn {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.btn-nav {
  padding: 8px 20px;
  border-radius: 8px;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: var(--text-muted) !important;
  transition: background 0.2s, border-color 0.2s, color 0.2s !important;
}

.btn-nav:hover {
  background: rgba(139,92,246,0.15) !important;
  border-color: rgba(139,92,246,0.3) !important;
  color: var(--purple) !important;
}

.btn-nav.active {
  background: rgba(139,92,246,0.2) !important;
  border-color: var(--purple) !important;
  color: #fff !important;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 120px 24px 80px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.hero-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}

.blob-1 {
  width: 600px; height: 600px;
  background: var(--purple);
  top: -100px; left: -100px;
  animation: blobMove 12s ease-in-out infinite alternate;
}

.blob-2 {
  width: 500px; height: 500px;
  background: var(--blue);
  bottom: -100px; right: -50px;
  animation: blobMove 16s ease-in-out infinite alternate-reverse;
}

@keyframes blobMove {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, 30px) scale(1.08); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  flex: 1;
  max-width: 580px;
}

.badge {
  display: inline-block;
  background: rgba(139,92,246,0.12);
  border: 1px solid rgba(139,92,246,0.25);
  color: #a78bfa;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  background: var(--gradient);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  position: relative;
}

.btn-primary:hover { opacity: 0.88; transform: translateY(-2px); }

.btn-ghost {
  display: inline-block;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s;
}

.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }

/* ORBIT VISUAL */
.hero-visual {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-ring {
  position: relative;
  width: 320px;
  height: 320px;
}

.orbit-ring::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px dashed rgba(139,92,246,0.25);
  animation: spin 20s linear infinite;
}

.orbit-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 140px; height: 190px;
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: visible;
  box-shadow: none;
}

.cloud-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.cloud-svg {
  width: 160px;
  height: 82px;
  overflow: visible;
}

.binary-rain {
  position: relative;
  width: 130px;
  height: 120px;
  overflow: visible;
}

.bin-char {
  position: absolute;
  top: -16px;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  color: #c026d3;
  animation: binFall linear infinite, binColor 4s ease-in-out infinite;
  text-shadow: 0 0 7px currentColor;
}

@keyframes binFall {
  0%   { transform: translateY(0)     translateX(0);               opacity: 0; animation-timing-function: ease-in; }
  6%   { opacity: 1; }
  48%  { transform: translateY(110px) translateX(var(--spread,0));  opacity: 1; }
  80%  { transform: translateY(110px) translateX(var(--spread,0));  opacity: 1; }
  100% { transform: translateY(110px) translateX(var(--spread,0));  opacity: 0; }
}

@keyframes binColor {
  0%, 100% { color: #c026d3; }
  33%       { color: #8b5cf6; }
  66%       { color: #06b6d4; }
}

.orbit-icon {
  position: absolute;
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: var(--shadow);
  animation: counterSpin 20s linear infinite;
}

.icon-1 { top: 0; left: 50%; transform: translate(-50%, -50%); }
.icon-2 { top: 50%; right: 0; transform: translate(50%, -50%); }
.icon-3 { bottom: 0; left: 50%; transform: translate(-50%, 50%); }
.icon-4 { top: 50%; left: 0; transform: translate(-50%, -50%); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes counterSpin { to { transform: rotate(-360deg); } }

.icon-1 { animation: counterSpin1 20s linear infinite; }
.icon-2 { animation: counterSpin2 20s linear infinite; }
.icon-3 { animation: counterSpin3 20s linear infinite; }
.icon-4 { animation: counterSpin4 20s linear infinite; }

@keyframes counterSpin1 {
  from { top: 0; left: 50%; transform: translate(-50%,-50%) rotate(0deg); }
  to   { top: 0; left: 50%; transform: translate(-50%,-50%) rotate(-360deg); }
}
@keyframes counterSpin2 {
  from { top: 50%; right: 0; transform: translate(50%,-50%) rotate(0deg); }
  to   { top: 50%; right: 0; transform: translate(50%,-50%) rotate(-360deg); }
}
@keyframes counterSpin3 {
  from { bottom: 0; left: 50%; transform: translate(-50%,50%) rotate(0deg); }
  to   { bottom: 0; left: 50%; transform: translate(-50%,50%) rotate(-360deg); }
}
@keyframes counterSpin4 {
  from { top: 50%; left: 0; transform: translate(-50%,-50%) rotate(0deg); }
  to   { top: 50%; left: 0; transform: translate(-50%,-50%) rotate(-360deg); }
}

/* ===== STATS ===== */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  padding: 48px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== SECTION HEADER ===== */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.2);
  color: #a78bfa;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 100px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
  line-height: 1.2;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ===== SERVICIOS ===== */
.servicios {
  padding: 100px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 24px;
  perspective: 1400px;
}

.service-card {
  height: 100%;
}

.card-img-wrap {
  margin: -36px -36px 24px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  height: 175px;
  position: relative;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.service-card:hover .card-img-wrap img {
  transform: scale(1.06);
}

.card-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, #111827 100%);
  pointer-events: none;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  position: relative;
  transition: border-color 0.3s, box-shadow 0.3s;
  opacity: 0;
  transform: translateY(24px);
  transform-style: preserve-3d;
  will-change: transform;
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 20px 60px rgba(139,92,246,0.2);
}

.service-card.featured {
  border-color: rgba(139,92,246,0.3);
  background: linear-gradient(160deg, rgba(139,92,246,0.08), var(--bg-card));
}

.card-badge {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--gradient);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.5px;
}

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 20px;
  display: inline-block;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.7;
}

.card-list {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
}

.card-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--purple);
  font-weight: 700;
}

.card-link {
  color: var(--purple);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.card-link:hover { color: #a78bfa; }

/* ===== ABOUT ===== */
.about {
  padding: 100px 0;
  background: rgba(255,255,255,0.015);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text .section-tag { margin-bottom: 16px; display: inline-block; }

.about-text h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 16px;
  line-height: 1.75;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.tag {
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.2);
  color: #c4b5fd;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-card-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.97rem;
  color: var(--text);
}

.check {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.3);
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ===== CONTACTO ===== */
.contacto {
  padding: 100px 0;
}

.contact-form {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 12px 16px;
  transition: border-color 0.2s;
  outline: none;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--purple);
}

.form-group select option { background: var(--bg-card); }

.btn-full { width: 100%; text-align: center; }

@keyframes envelopeFly {
  0%   { transform: translate(0,0)          rotate(0deg)   scale(1);    opacity: 1; }
  12%  { transform: translate(-6px,-16px)   rotate(-14deg) scale(1.08); opacity: 1; }
  100% { transform: translate(200px,-220px) rotate(24deg)  scale(0.2);  opacity: 0; }
}
.btn-flying {
  animation: envelopeFly 0.85s cubic-bezier(0.4, 0, 0.9, 0.3) forwards !important;
  transition: none !important;
  pointer-events: none;
  overflow: visible;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.form-success,
.form-error {
  display: none;
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.form-success {
  align-items: center;
  gap: 12px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: #06b6d4;
}

.form-success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.2);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.form-success p,
.form-error p { margin: 0; }

.form-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 24px 24px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}

.footer-left p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-top: 24px;
  border-top: 1px solid var(--border);
  max-width: 1100px;
  margin: 0 auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 110px;
  }
  .hero-cta { justify-content: center; }
  .hero-content p { margin: 0 auto 36px; }
  .orbit-ring { width: 240px; height: 240px; }
  .orbit-center { width: 100px; height: 120px; }
  .cloud-svg { width: 95px; height: 50px; }
  .binary-rain { width: 95px; height: 70px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: rgba(8,12,20,0.97); padding: 24px; gap: 20px; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .menu-toggle { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .hero-visual { display: none; }
}


/* ===== WHATSAPP FLOTANTE ===== */
.whatsapp-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  text-decoration: none;
  animation: waPulse 2.5s ease-in-out infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-btn svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.whatsapp-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 28px rgba(37,211,102,0.65);
  animation: none;
}

.whatsapp-tooltip {
  position: absolute;
  right: 68px;
  background: #25D366;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: #25D366;
}

.whatsapp-btn:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.45); }
  50%       { box-shadow: 0 4px 32px rgba(37,211,102,0.75), 0 0 0 8px rgba(37,211,102,0.1); }
}

/* ===== BORDER BEAM — carta "Más popular" ===== */
@property --beam-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.service-card.is-popular {
  border-color: transparent;
  scale: 1.05;
  z-index: 1;
}

.service-card.is-popular::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--beam-angle),
    transparent 0%,
    transparent 65%,
    #8b5cf6   74%,
    #3b82f6   82%,
    #06b6d4   87%,
    transparent 93%
  );
  /* Muestra solo el anillo del borde, el interior queda transparente */
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: beamSpin 3s linear infinite;
  pointer-events: none;
  z-index: 10;
}

@keyframes beamSpin {
  to { --beam-angle: 360deg; }
}

/* ===== HERO ENTRANCE ===== */
.hero-content > * {
  opacity: 0;
  animation: heroFadeUp 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-content .badge    { animation-delay: 0.1s; }
.hero-content h1        { animation-delay: 0.24s; }
.hero-content p         { animation-delay: 0.38s; }
.hero-content .hero-cta { animation-delay: 0.52s; }

.hero-visual {
  opacity: 0;
  animation: heroFadeScale 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeScale {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}


/* ===== FLOATING TECH LOGOS ===== */
#tech-logos {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.tech-logo {
  position: absolute;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform, opacity;
}

@keyframes rainFall {
  0%   { transform: translateY(0)      translateX(0)            rotate(0deg);      opacity: 0; }
  6%   { opacity: var(--logo-opacity); }
  94%  { opacity: var(--logo-opacity); }
  100% { transform: translateY(110vh)  translateX(var(--drift))  rotate(var(--rot)); opacity: 0; }
}

/* ===== SCROLL REVEAL ===== */
.section-header,
.about-text {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.section-header.visible,
.about-text.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== STATS REVEAL ===== */
.stat-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.stat-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== ABOUT ROWS STAGGER ===== */
.about-card-row {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.about-card-row.visible {
  opacity: 1;
  transform: translateX(0);
}


/* ===== CARD ICON BOUNCE ON HOVER ===== */
.service-card:hover .card-icon {
  display: inline-block;
  animation: iconBounce 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}
@keyframes iconBounce {
  0%   { transform: translateY(0) scale(1); }
  30%  { transform: translateY(-10px) scale(1.15); }
  60%  { transform: translateY(-4px) scale(1.06); }
  100% { transform: translateY(0) scale(1); }
}

/* ===== GRADIENT TEXT SHIMMER ===== */
.hero-content h1 .gradient-text {
  background: linear-gradient(
    90deg,
    #8b5cf6 0%,
    #3b82f6 25%,
    #06b6d4 50%,
    #8b5cf6 75%,
    #3b82f6 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}
@keyframes shimmer {
  from { background-position: 0% center; }
  to   { background-position: 200% center; }
}

/* ===== LOGO ANIMATIONS ===== */
@keyframes logoShimmer {
  from { background-position: 0% center; }
  to   { background-position: 200% center; }
}

/* Base: shimmer siempre activo */
.logo {
  animation: logoShimmer 5s linear infinite;
}

/* Neon encendiéndose (one-shot en carga) */
.logo.neon-on {
  animation: logoShimmer 5s linear infinite, neonOn 2.4s ease 0.1s both;
}

/* Pulso idle suave */
.logo.neon-pulse {
  opacity: 1;
  animation: logoShimmer 5s linear infinite, neonPulse 3s ease-in-out infinite;
}

/* Hover: brillo máximo */
.logo.neon-bright {
  opacity: 1;
  animation: logoShimmer 5s linear infinite;
  filter: drop-shadow(0 0 16px rgba(139,92,246,1))
          drop-shadow(0 0 36px rgba(59,130,246,0.85))
          drop-shadow(0 0 65px rgba(6,182,212,0.4));
  transition: filter 0.15s ease;
}


@keyframes neonOn {
  0%   { opacity: 0;    filter: none; }
  /* primer chispazo */
  6%   { opacity: 0.9;  filter: drop-shadow(0 0 8px #8b5cf6) drop-shadow(0 0 18px #3b82f6); }
  8%   { opacity: 0.05; filter: none; }
  /* segundo intento */
  14%  { opacity: 1;    filter: drop-shadow(0 0 10px #8b5cf6); }
  16%  { opacity: 0.35; filter: none; }
  20%  { opacity: 1;    filter: drop-shadow(0 0 12px #8b5cf6) drop-shadow(0 0 28px #3b82f6); }
  /* estable brevemente */
  32%  { opacity: 1;    filter: drop-shadow(0 0 9px rgba(139,92,246,0.8)) drop-shadow(0 0 22px rgba(59,130,246,0.45)); }
  /* tercer parpadeo */
  34%  { opacity: 0.5;  filter: none; }
  37%  { opacity: 1;    filter: drop-shadow(0 0 14px #8b5cf6) drop-shadow(0 0 32px #3b82f6) drop-shadow(0 0 50px rgba(6,182,212,0.3)); }
  /* se asienta */
  65%  { opacity: 1;    filter: drop-shadow(0 0 10px rgba(139,92,246,0.8)) drop-shadow(0 0 24px rgba(59,130,246,0.5)); }
  /* micro-flicker final */
  72%  { opacity: 0.88; filter: drop-shadow(0 0 5px #8b5cf6); }
  75%  { opacity: 1;    filter: drop-shadow(0 0 8px rgba(139,92,246,0.85)) drop-shadow(0 0 20px rgba(59,130,246,0.4)); }
  100% { opacity: 1;    filter: drop-shadow(0 0 5px rgba(139,92,246,0.65)) drop-shadow(0 0 14px rgba(59,130,246,0.3)); }
}

@keyframes neonPulse {
  0%,100% { filter: drop-shadow(0 0 4px rgba(139,92,246,0.55)) drop-shadow(0 0 12px rgba(59,130,246,0.25)); }
  50%     { filter: drop-shadow(0 0 9px rgba(139,92,246,0.9))  drop-shadow(0 0 24px rgba(59,130,246,0.5)) drop-shadow(0 0 42px rgba(6,182,212,0.18)); }
}
