/* ==========================================================================
   PIXEL & CODE PY - Core Design System & Stylesheet
   Software House & Digital Agency - Itauguá, Paraguay
   ========================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* --- CSS Variables / Design System --- */
:root {
  --bg-dark: #0B1118;
  --bg-darker: #06090D;
  --bg-card: rgba(18, 27, 38, 0.75);
  --bg-card-hover: rgba(26, 38, 54, 0.9);
  --bg-card-solid: #121B26;
  
  --text-main: #F1F5F9;
  --text-muted: #94A3B8;
  --text-dim: #64748B;

  /* Pixel Branding (Cyan / Tech Blue) */
  --pixel-blue-dark: #1E5C8A;
  --pixel-blue-light: #4FB3E8;
  --pixel-gradient: linear-gradient(135deg, #1E5C8A 0%, #4FB3E8 100%);
  --pixel-glow: rgba(79, 179, 232, 0.35);

  /* Code Branding (Vibrant Amber / Orange) */
  --code-orange-light: #F5A623;
  --code-orange-dark: #FF7A00;
  --code-gradient: linear-gradient(135deg, #F5A623 0%, #FF7A00 100%);
  --code-glow: rgba(255, 122, 0, 0.4);

  /* Glassmorphism & UI Accents */
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.2);
  --glass-bg: rgba(15, 23, 32, 0.85);

  /* Layout & Spacing */
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-code: 'Space Grotesk', monospace;
  --nav-height: 80px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base Reset & Global Styles --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(30, 92, 138, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(255, 122, 0, 0.12) 0%, transparent 45%),
    linear-gradient(rgba(11, 17, 24, 0.95), rgba(11, 17, 24, 0.95)),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2038526a' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

body.menu-open {
  overflow: hidden;
}

img, svg, video, canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: 5px;
  border: 2px solid var(--bg-darker);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--pixel-blue-dark);
}

/* Helper Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  color: #FFFFFF;
  font-weight: 700;
  line-height: 1.2;
}

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

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

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  margin-bottom: 1rem;
}
.section-tag.pixel-tag {
  color: var(--pixel-blue-light);
  border-color: rgba(79, 179, 232, 0.3);
  background: rgba(30, 92, 138, 0.15);
}
.section-tag.code-tag {
  color: var(--code-orange-light);
  border-color: rgba(255, 122, 0, 0.3);
  background: rgba(255, 122, 0, 0.12);
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3.5rem auto;
}
.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* --- Buttons & CTAs --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  min-height: 48px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
  white-space: nowrap;
  touch-action: manipulation;
}

.btn-primary-orange {
  background: var(--code-gradient);
  color: #FFFFFF;
  box-shadow: 0 4px 20px var(--code-glow);
}
.btn-primary-orange:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255, 122, 0, 0.6);
}

.btn-secondary-pixel {
  background: rgba(30, 92, 138, 0.2);
  color: var(--pixel-blue-light);
  border: 1px solid rgba(79, 179, 232, 0.4);
  backdrop-filter: blur(10px);
}
.btn-secondary-pixel:hover {
  background: var(--pixel-gradient);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 6px 25px var(--pixel-glow);
  transform: translateY(-3px);
}

.btn-outline-glass {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--glass-border);
}
.btn-outline-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
}

/* --- Navbar / Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
  user-select: none;
}

.brand-logo img {
  height: 42px;
  width: 42px;
  border-radius: 10px;
  object-fit: contain;
  transition: transform var(--transition-fast), filter var(--transition-fast);
  filter: drop-shadow(0 2px 8px rgba(79, 179, 232, 0.35));
}

.brand-logo:hover img {
  transform: scale(1.08) rotate(-2deg);
  filter: drop-shadow(0 4px 14px rgba(255, 122, 0, 0.5));
}

.brand-text {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  line-height: 1;
}
.brand-text .py-tag {
  font-size: 0.72rem;
  padding: 0.15rem 0.4rem;
  background: rgba(79, 179, 232, 0.2);
  color: var(--pixel-blue-light);
  border-radius: 4px;
  margin-left: 5px;
  vertical-align: middle;
  font-weight: 700;
  border: 1px solid rgba(79, 179, 232, 0.3);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--code-gradient);
  transition: var(--transition-fast);
  border-radius: 2px;
}

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

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Currency Selector Switcher */
.currency-toggle {
  display: flex;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 3px;
}
.currency-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.7rem;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-fast);
}
.currency-btn.active {
  background: var(--pixel-gradient);
  color: #FFFFFF;
  box-shadow: 0 2px 8px var(--pixel-glow);
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--nav-height) + 4rem);
  padding-bottom: 5rem;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../assets/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.25;
  filter: blur(2px);
  z-index: 1;
}

.hero-bg-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
  z-index: 1;
  pointer-events: none;
}
.hero-glow-1 {
  top: 10%;
  left: -100px;
  background: var(--pixel-blue-light);
}
.hero-glow-2 {
  bottom: 10%;
  right: -100px;
  background: var(--code-orange-dark);
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  background: rgba(30, 92, 138, 0.2);
  border: 1px solid rgba(79, 179, 232, 0.3);
  border-radius: 50px;
  color: var(--pixel-blue-light);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10B981;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
  font-size: clamp(2.1rem, 5.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.2rem;
  max-width: 580px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.hero-features-strip {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.feature-item i {
  color: var(--code-orange-light);
}

/* Interactive Code Window / Terminal Card */
.code-window {
  background: rgba(10, 16, 24, 0.9);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(79, 179, 232, 0.15);
  overflow: hidden;
  backdrop-filter: blur(20px);
  position: relative;
  transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
  transition: var(--transition-smooth);
}
.code-window:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg) translateY(-5px);
  border-color: rgba(79, 179, 232, 0.4);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(79, 179, 232, 0.25);
}

.code-header {
  background: rgba(18, 27, 38, 0.95);
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--glass-border);
}

.code-dots {
  display: flex;
  gap: 0.4rem;
}
.code-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.code-dot.red { background: #FF5F56; }
.code-dot.yellow { background: #FFBD2E; }
.code-dot.green { background: #27C93F; }

.code-title {
  font-family: var(--font-code);
  font-size: 0.82rem;
  color: var(--text-dim);
}

.code-body {
  padding: 1.5rem;
  font-family: var(--font-code);
  font-size: 0.9rem;
  color: #E2E8F0;
  line-height: 1.7;
}

.code-line {
  display: flex;
}
.code-num {
  width: 2rem;
  color: var(--text-dim);
  user-select: none;
}
.code-text {
  flex: 1;
}
.kw { color: #F472B6; font-weight: 600; }
.fn { color: #60A5FA; }
.str { color: #34D399; }
.var { color: #FBBF24; }
.cm { color: #64748B; font-style: italic; }

/* Floating Tech Cards in Hero */
.hero-floating-card {
  position: absolute;
  bottom: -20px;
  left: -30px;
  background: rgba(18, 27, 38, 0.95);
  border: 1px solid rgba(255, 122, 0, 0.4);
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: float-anim 4s ease-in-out infinite;
}
@keyframes float-anim {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.floating-icon {
  width: 36px;
  height: 36px;
  background: var(--code-gradient);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  font-size: 1.1rem;
}
.floating-info h4 {
  font-size: 0.9rem;
}
.floating-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --- Section Styling --- */
.section {
  padding: 6rem 0;
  position: relative;
}

/* --- About Us Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-size: 2.4rem;
  margin-bottom: 1.2rem;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 1rem;
}
.location-badge i {
  color: var(--code-orange-light);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  padding: 1.8rem;
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition-smooth);
}
.stat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(79, 179, 232, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  font-family: var(--font-code);
  margin-bottom: 0.3rem;
}

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

/* --- Pricing / Service Cards Grid (PIXEL & CODE Areas) --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 950px;
  margin: 0 auto;
  gap: 2rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(79, 179, 232, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 25px var(--pixel-glow);
}

.service-card.code-card:hover {
  border-color: rgba(255, 122, 0, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 25px var(--code-glow);
}

.service-card.featured {
  background: linear-gradient(180deg, rgba(30, 92, 138, 0.25) 0%, rgba(18, 27, 38, 0.85) 100%);
  border: 1px solid rgba(79, 179, 232, 0.5);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(79, 179, 232, 0.2);
}

.featured-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--code-gradient);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px var(--code-glow);
}

.card-icon {
  width: 55px;
  height: 55px;
  border-radius: var(--radius-sm);
  background: rgba(30, 92, 138, 0.2);
  color: var(--pixel-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(79, 179, 232, 0.3);
}

.service-card.code-card .card-icon {
  background: rgba(255, 122, 0, 0.15);
  color: var(--code-orange-light);
  border-color: rgba(255, 122, 0, 0.3);
}

.card-title {
  font-size: 1.45rem;
  margin-bottom: 0.75rem;
}

.card-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  min-height: 50px;
}

.card-includes-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  margin-bottom: 0.8rem;
}

.card-bullets {
  list-style: none;
  margin-bottom: 2rem;
}

.card-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: #CBD5E1;
  font-size: 0.92rem;
  margin-bottom: 0.65rem;
}

.card-bullets li i {
  color: #10B981;
  margin-top: 3px;
  font-size: 0.9rem;
}

.card-footer {
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
}

.card-price-box {
  margin-bottom: 1.25rem;
}

.price-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.price-value {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-code);
  color: #FFFFFF;
}
.price-value.pixel-price {
  color: var(--pixel-blue-light);
}
.price-value.code-price {
  color: var(--code-orange-light);
}

.price-usd {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

.card-action-btn {
  width: 100%;
}

/* --- Why Choose Us Section --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  padding: 2rem;
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
}
.why-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 122, 0, 0.3);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.why-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.15) 0%, rgba(30, 92, 138, 0.15) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--code-orange-light);
  margin-bottom: 1.2rem;
  border: 1px solid var(--glass-border);
}

.why-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.why-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* --- Work Process Section --- */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
  margin-top: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 10%;
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, var(--pixel-blue-light) 0%, var(--code-orange-dark) 100%);
  z-index: 1;
  opacity: 0.3;
}

.timeline-step {
  position: relative;
  z-index: 2;
  text-align: center;
}

.timeline-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg-card-solid);
  border: 2px solid var(--pixel-blue-light);
  color: #FFFFFF;
  font-weight: 800;
  font-family: var(--font-code);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  box-shadow: 0 0 20px rgba(79, 179, 232, 0.3);
  transition: var(--transition-smooth);
}
.timeline-step:nth-child(even) .timeline-number {
  border-color: var(--code-orange-light);
  box-shadow: 0 0 20px rgba(255, 122, 0, 0.3);
}

.timeline-step:hover .timeline-number {
  transform: scale(1.15);
  background: var(--pixel-gradient);
}
.timeline-step:nth-child(even):hover .timeline-number {
  background: var(--code-gradient);
}

.timeline-title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.timeline-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* --- Contact & WhatsApp Builder Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  margin-bottom: 1.8rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(30, 92, 138, 0.2);
  color: var(--pixel-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  border: 1px solid rgba(79, 179, 232, 0.3);
}

.contact-details h4 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.contact-details p, .contact-details a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}
.contact-details a:hover {
  color: var(--pixel-blue-light);
}

.big-whatsapp-banner {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.15) 0%, rgba(18, 27, 38, 0.9) 100%);
  border: 1px solid rgba(37, 211, 102, 0.3);
  padding: 2rem;
  border-radius: var(--radius-md);
  text-align: center;
  margin-top: 2rem;
}
.big-whatsapp-banner i {
  font-size: 2.5rem;
  color: #25D366;
  margin-bottom: 0.8rem;
}
.big-whatsapp-banner h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.big-whatsapp-banner p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}
.btn-whatsapp {
  background: #25D366;
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}
.btn-whatsapp:hover {
  background: #20BA5A;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
  transform: translateY(-3px);
}

/* Contact Form */
.contact-form-box {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: rgba(11, 17, 24, 0.8);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--pixel-blue-light);
  box-shadow: 0 0 0 3px rgba(79, 179, 232, 0.2);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* --- Footer --- */
.footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--glass-border);
  padding: 4rem 0 2rem 0;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-about p {
  margin-top: 1rem;
  font-size: 0.92rem;
  max-width: 320px;
}

.footer-title {
  color: #FFFFFF;
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}

.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 0.6rem;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}
.footer-links a:hover {
  color: var(--pixel-blue-light);
  padding-left: 4px;
}

.social-links {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.2rem;
}
.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition-fast);
  border: 1px solid var(--glass-border);
}
.social-icon:hover {
  background: var(--code-gradient);
  color: #FFFFFF;
  transform: translateY(-3px);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

/* --- Sticky / Floating WhatsApp Button --- */
.floating-whatsapp {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
  z-index: 999;
  text-decoration: none;
  transition: var(--transition-smooth);
  animation: pulse-wa 2.5s infinite;
}

.floating-whatsapp:hover {
  transform: scale(1.1) rotate(8deg);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.8);
}

@keyframes pulse-wa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* WhatsApp Tooltip */
.floating-whatsapp-tooltip {
  position: fixed;
  bottom: 2.4rem;
  right: 6.5rem;
  background: var(--bg-card-solid);
  border: 1px solid rgba(37, 211, 102, 0.4);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #FFFFFF;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  z-index: 998;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
  animation: fade-in-out 5s ease-in-out infinite;
}

/* --- Scroll Animations (IntersectionObserver) --- */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* Delay Helpers */
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* --- Responsive Media Queries --- */

/* Laptops & Tablets Landscape (<= 1024px) */
@media (max-width: 1024px) {
  .container {
    max-width: 960px;
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
    max-width: 680px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-features-strip {
    justify-content: center;
  }

  .code-window {
    max-width: 620px;
    margin: 0 auto;
    transform: none !important;
  }

  .code-window:hover {
    transform: translateY(-5px) !important;
  }

  .hero-floating-card {
    position: relative;
    bottom: auto;
    left: auto;
    margin: 1.25rem auto 0 auto;
    width: fit-content;
    animation: none;
  }

  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .timeline {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 2.5rem;
  }

  .timeline::before {
    display: none;
  }
}

/* Tablets Portrait & Medium Mobile (<= 992px) */
@media (max-width: 992px) {
  :root {
    --nav-height: 72px;
  }

  .header-right .btn-sm {
    display: none; /* Se visualiza dentro del menú móvil desplegable */
  }

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    transition: var(--transition-fast);
  }
  .mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
  }

  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background: rgba(6, 9, 13, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 2rem 1.5rem 3rem 1.5rem;
    gap: 1rem;
    transition: left var(--transition-smooth);
    border-top: 1px solid var(--glass-border);
    box-shadow: -10px 20px 40px rgba(0, 0, 0, 0.9);
    overflow-y: auto;
    z-index: 999;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.9rem 1.25rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-link:hover, .nav-link.active {
    background: rgba(30, 92, 138, 0.3);
    border-color: rgba(79, 179, 232, 0.4);
    color: var(--text-main);
  }

  .nav-link::after {
    display: none;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* Smart Mobile & Tablets Medias (<= 768px) */
@media (max-width: 768px) {
  :root {
    --nav-height: 68px;
  }

  .hero {
    padding-top: calc(var(--nav-height) + 1.5rem);
    padding-bottom: 3rem;
    min-height: auto;
  }

  .hero-badge {
    font-size: 0.82rem;
    padding: 0.35rem 0.85rem;
  }

  .hero-title {
    font-size: clamp(1.8rem, 6.5vw, 2.6rem);
  }

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

  .hero-features-strip {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    padding-top: 1.25rem;
  }

  .section {
    padding: 3.25rem 0;
  }

  .section-header {
    margin-bottom: 2.25rem;
  }

  .section-header h2 {
    font-size: clamp(1.5rem, 5.5vw, 2.1rem);
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.85rem;
    text-align: center;
  }

  .floating-whatsapp {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 52px;
    height: 52px;
    font-size: 1.65rem;
  }

  .floating-whatsapp-tooltip {
    display: none;
  }
}

/* Celulares Móviles (<= 576px) */
@media (max-width: 576px) {
  .container {
    padding: 0 1.1rem;
  }

  .brand-logo img {
    height: 35px;
    width: 35px;
  }

  .brand-text {
    font-size: 1.2rem;
  }

  .brand-text .py-tag {
    font-size: 0.65rem;
    padding: 0.1rem 0.3rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .service-card, .contact-info-card, .contact-form-box, .stat-card, .why-card {
    padding: 1.4rem 1.1rem;
    border-radius: var(--radius-md);
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .form-control {
    font-size: 16px !important; /* Previene auto-zoom molesto en iOS Safari */
    padding: 0.85rem 1rem;
  }

  .featured-badge {
    position: static;
    display: inline-block;
    margin-bottom: 0.85rem;
    align-self: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .code-body {
    padding: 0.85rem 0.65rem;
    font-size: 0.78rem;
    overflow-x: auto;
  }

  .code-num {
    width: 1.2rem;
    font-size: 0.72rem;
  }

  .big-whatsapp-banner {
    padding: 1.25rem 1rem;
  }
}

/* Celulares Extra Pequeños (<= 360px) */
@media (max-width: 360px) {
  .brand-logo img {
    height: 30px;
    width: 30px;
  }

  .brand-text {
    font-size: 1.05rem;
  }

  .currency-btn {
    padding: 0.3rem 0.5rem;
    font-size: 0.72rem;
  }

  .service-card {
    padding: 1.2rem 0.85rem;
  }
}

