/* RESET & VARS */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color, #050505);
}
::-webkit-scrollbar-thumb {
  background: #333333;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: #555555;
}

:root {
  --bg-color: #050505;
  --bg-surface: #0e0e0e;
  --bg-surface-hover: #151515;
  
  --text-primary: #ededed;
  --text-secondary: #a0a0a0;
  
  --accent: #E1E1E1; /* metallic neutral accent */
  --accent-glow: rgba(225, 225, 225, 0.1);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.2);
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  --max-width: 1140px;
  --shadow-glow: 0 0 32px rgba(255,255,255,0.04);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* offset for fixed header */
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ================= TYPOGRAPHY ================= */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

.text-gradient {
  background: linear-gradient(to right, #ffffff, #666666);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.muted { color: var(--text-secondary); }
.small { font-size: 0.875rem; }
.center { text-align: center; }

/* ================= UTILS & GRIDS ================= */
.container {
  width: min(var(--max-width), 100% - 40px);
  margin-inline: auto;
}

.section {
  padding: 100px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bg-soft {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.grid-fade {
  position: relative;
}

/* Base fade logic for sections */
.section-header {
  margin-bottom: 3rem;
  max-width: 600px;
}
.section-header.center {
  margin-left: auto;
  margin-right: auto;
}

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: #ffffff;
  color: #000000;
}

.btn-primary:hover {
  background: #e6e6e6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255,255,255,0.1);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.shadow-glow {
  box-shadow: 0 0 20px rgba(255,255,255,0.15);
}

/* ================= HEADER ================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 115;
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: transform 0.3s ease;
}

.header.hidden {
  transform: translateY(-100%);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.brand-logo {
  height: 32px;
  width: auto;
}

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

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  z-index: 110;
}

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

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5,5,5,0.98);
  z-index: 105;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

/* Mobile Toggle Animation */
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .menu-toggle { display: flex; }
}

/* ================= NEW HERO ================= */
.new-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #111 0%, #000 100%);
  overflow: hidden;
  text-align: center;
  padding: 180px 0 120px;
}
.particles {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
}
.particle {
  position: absolute;
  width: 4px; height: 4px; background: #fff; border-radius: 50%;
  animation: floatUp 8s infinite ease-in; opacity: 0;
}
.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 30%; animation-delay: 2s; width: 6px; height: 6px; }
.particle:nth-child(3) { left: 60%; animation-delay: 4s; }
.particle:nth-child(4) { left: 80%; animation-delay: 1s; width: 3px; height: 3px; }
.particle:nth-child(5) { left: 90%; animation-delay: 5s; }
@keyframes floatUp {
  0% { transform: translateY(100vh); opacity: 0; }
  20% { opacity: 0.5; }
  80% { opacity: 0.5; }
  100% { transform: translateY(-20vh); opacity: 0; }
}

.shape {
  position: absolute; border-radius: 50%; filter: blur(100px); z-index: 0;
  animation: float-shape 10s ease-in-out infinite alternate; pointer-events: none;
}
.shape-1 { width: 400px; height: 400px; background: rgba(229, 228, 226, 0.15); top: -10%; left: -10%; }
.shape-2 { width: 500px; height: 500px; background: rgba(50, 50, 50, 0.5); bottom: -20%; right: -10%; animation-delay: -5s; }
.shape-3 { width: 300px; height: 300px; background: rgba(255, 255, 255, 0.05); top: 30%; left: 50%; animation-duration: 15s; }
@keyframes float-shape {
  0% { transform: translate(0,0) scale(1); }
  100% { transform: translate(50px, 50px) scale(1.1); }
}

.floating-badge {
  display: inline-block; padding: 6px 14px; border-radius: 30px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  color: #ccc; font-size: 0.85rem; letter-spacing: 2px;
  margin-bottom: 2rem; animation: float-slow 4s ease-in-out infinite;
  z-index: 2; position: relative;
}
.pulse-dot {
  display: inline-block; width: 8px; height: 8px; background: #e5e4e2;
  border-radius: 50%; margin-right: 8px; box-shadow: 0 0 10px #e5e4e2;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes float-slow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.scroll-indicator {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: #aaa; text-decoration: none; font-weight: 600; z-index: 10;
  transition: opacity 0.3s;
}
.scroll-indicator:hover { opacity: 1; color: #fff; }
.mouse { width: 26px; height: 42px; border: 2px solid currentColor; border-radius: 20px; position: relative; }
.wheel { width: 4px; height: 8px; background: currentColor; border-radius: 4px; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); animation: scroll-wheel 1.5s infinite; }
@keyframes scroll-wheel { 0%, 100% { transform: translate(-50%, 0); opacity: 1; } 50% { transform: translate(-50%, 12px); opacity: 0; } }

.glitch-effect {
  font-size: clamp(3.5rem, 6vw, 5.5rem); font-weight: 900; letter-spacing: -2px;
  line-height: 1.1; margin-bottom: 1.5rem; text-shadow: 0 0 20px rgba(255,255,255,0.2);
  z-index: 2; position: relative;
}
.slide-up {
  display: inline-block; animation: reveal-up 1s cubic-bezier(0.1, 0.8, 0.2, 1) both;
  z-index: 2; position: relative;
}
@keyframes reveal-up { 0% { opacity: 0; transform: translateY(40px); } 100% { opacity: 1; transform: translateY(0); } }

.pop-in {
  display: flex; justify-content: center; align-items: center;
  animation: pop-in 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
  z-index: 2; position: relative;
}
@keyframes pop-in { 0% { opacity: 0; transform: scale(0.8); } 100% { opacity: 1; transform: scale(1); } }

.hero-container {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

.chip-dot {
  width: 6px;
  height: 6px;
  background-color: #666;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(255,255,255,0.5);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 650px;
  margin-inline: auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 4rem;
}

@media (max-width: 500px) {
  .hero-actions {
    flex-direction: column;
  }
}

.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  max-width: 700px;
  margin: 0 auto;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-item strong {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}

.stat-item span {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 0.25rem;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background-color: var(--border);
}

@media (max-width: 600px) {
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
  .stat-divider {
    width: 60%;
    height: 1px;
  }
}


/* ================= SERVICE GRID ================= */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-color);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.service-icon {
  margin-bottom: 1.5rem;
  display: inline-flex;
  padding: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
}

@media (max-width: 992px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}

/* ================= COMPONENTES NUEVOS ================= */
.brand-logo-large {
  height: 60px;
  width: auto;
}

.nav-container {
  position: relative;
}

.center-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.small-btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  border: none;
}
.btn-whatsapp:hover {
  background: #20b858;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.shadow-glow-wsp {
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.3);
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-size: 40px 40px;
  background-image: linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 70%);
  z-index: 0;
  pointer-events: none;
}

.marquee-section {
  padding: 50px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.marquee-heading {
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.marquee-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  overflow: hidden;
  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);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 5rem;
  /* min-width lo maneja JS clonando items */
  padding: 8px 5rem;
  /* animation manejada por JS */
}

.marquee-item {
  color: #a0a0a0;
  /* NO width/height fijo — que el contenido lo defina */
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s;
}

.marquee-item img {
  display: block;
  max-height: 80px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.marquee-item:hover img {
  opacity: 1;
}

.marquee-item:hover { color: #fff; }

.marquee-item svg {
  height: 40px;
  width: auto;
  max-width: 160px;
}

@keyframes scroll-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 1024px) {
  .nav-action { display: none; }
  .tech-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .center-nav { display: none; }
  .menu-toggle { display: flex; }
  .brand-logo-large { height: 40px; }
  h1 { font-size: clamp(2rem, 8vw, 3.5rem); }
  h2 { font-size: clamp(1.6rem, 6vw, 2.4rem); }
  .hero-container { padding: 60px 1.25rem 80px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 1rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .service-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .contact-container { grid-template-columns: 1fr; gap: 3rem; }
  .contact-card-area { display: block; animation: none; }
  .contact-white-card { padding: 2rem; border-radius: 20px; }
  .section { padding: 60px 0; }
  .marquee-track { gap: 3rem; }
  .marquee-item img { max-height: 60px; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  h1 { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  .wsp-float-btn { width: 54px; height: 54px; bottom: 16px; right: 16px; }
  .marquee-item img { max-height: 50px; }
  .marquee-track { gap: 2.5rem; }
}


/* ================= PROYECTOS SLIDER ================= */
.projects-section {
  overflow: hidden;
}
.projects-header {
  margin-bottom: 3rem;
  max-width: 600px;
}
.projects-slider-wrapper {
  width: 100%;
  position: relative;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0 40px 40px;
}
.projects-slider-wrapper::-webkit-scrollbar {
  display: none;
}
.projects-track-auto {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  /* animation manejada por JS */
  padding-left: 20px;
}
.projects-track-auto:hover {
  animation-play-state: paused;
}
@keyframes auto-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 1.25rem)); }
}
.text-white { color: #ffffff; }
.project-link-white { font-weight: 700; color: #fff; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.8; transition: opacity 0.3s; }
.project-card:hover .project-link-white { opacity: 1; }
.project-card {
  width: 400px;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-decoration: none;
  scroll-snap-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.2);
}
.project-image {
  background: #f0f0f0;
  border-radius: var(--radius-sm);
  height: 240px;
  position: relative;
  overflow: visible;
}
.project-mockup.mobile {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 100px;
  height: 200px;
  background: #111;
  border-radius: 16px;
  border: 6px solid #222;
  box-shadow: -10px 10px 30px rgba(0,0,0,0.5);
  transition: transform 0.4s ease;
}
.project-card:hover .project-mockup.mobile {
  transform: translateY(-10px) translateX(-5px);
}
.project-info h3 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.project-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}
.project-link {
  font-weight: 600;
  color: #0066ff;
  font-size: 0.95rem;
}
@media (max-width: 600px) {
  .project-card { width: 300px; }
  .project-image { height: 180px; }
}

.text-blue { color: #e5e4e2; }
.text-blue-accent { color: #e5e4e2; font-weight: 800; font-size: 0.85rem; letter-spacing: 0.1em; }
.capsule {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(229, 228, 226, 0.1);
  border: 1px solid rgba(229, 228, 226, 0.2);
  border-radius: 999px;
  margin-bottom: 1rem;
}
.capsule-modern {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border: 1px solid rgba(229, 228, 226, 0.3);
  border-radius: 30px; background: linear-gradient(90deg, rgba(229, 228, 226, 0.05), transparent);
  color: #e5e4e2; font-size: 0.75rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 1.5rem;
  box-shadow: inset 0 0 10px rgba(229, 228, 226, 0.05);
}
.glow-dot {
  width: 6px; height: 6px; background: #e5e4e2; border-radius: 50%; box-shadow: 0 0 8px #e5e4e2;
}
.text-gradient-gray {
  background: linear-gradient(135deg, #ffffff, #888888);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.muted-large {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

/* ================= TECH SHOWCASE (SEO) ================= */
.tech-showcase {
  background: radial-gradient(1000px circle at left center, rgba(30,30,30,0.5), transparent);
}

.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.feature-list {
  list-style: none;
  margin-top: 2rem;
  display: grid;
  gap: 1.25rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.feature-list li svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-list li strong {
  color: var(--text-primary);
  font-weight: 600;
}

.code-window {
  background: #0d0d0d;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.code-header {
  background: #151515;
  padding: 12px 16px;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}

.code-header span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #333;
}
.code-header span:nth-child(1) { background: #ff5f56; }
.code-header span:nth-child(2) { background: #ffbd2e; }
.code-header span:nth-child(3) { background: #27c93f; }

.code-body {
  padding: 1.5rem;
  overflow-x: auto;
}

.code-body pre {
  margin: 0;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  color: #a0a0a0;
  line-height: 1.5;
}

.code-body code {
  white-space: pre;
}

@media (max-width: 900px) {
  .tech-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}


/* ================= PRECIOS ================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: center;
}

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: left;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}

.pricing-card.featured {
  background: linear-gradient(to bottom, #111111, #0a0a0a);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  transform: scale(1.02);
  z-index: 2;
}

.pricing-card.featured:hover {
  transform: scale(1.02) translateY(-4px);
  border-color: rgba(255, 255, 255, 0.25);
}

.featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: #000;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-header h3 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.pricing-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.pricing-price {
  margin-bottom: 2rem;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.pricing-price .currency {
  font-weight: 700;
  color: var(--text-secondary);
}

.pricing-price .amount {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.05em;
}

.pricing-features {
  list-style: none;
  margin-bottom: 2.5rem;
}

.pricing-features li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  font-size: 0.95rem;
  color: var(--text-secondary);
  display: flex;
  gap: 10px;
}

.pricing-features li::before {
  content: "✦";
  color: var(--text-primary);
  font-size: 0.8rem;
  margin-top: 2px;
}

@media (max-width: 980px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 450px;
    margin: 0 auto;
  }
  .pricing-card.featured {
    transform: none;
  }
  .pricing-card.featured:hover {
    transform: translateY(-4px);
  }
}

/* ================= CONTACTO Y CTA ================= */
.cta-section {
  padding-bottom: 120px;
  position: relative;
}
.contact-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 6rem;
  align-items: center;
}
.contact-text-area h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  margin-bottom: 1rem;
}
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-list-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  background: transparent;
  padding: 1rem;
  border-radius: var(--radius-md);
  transition: background 0.3s ease;
}
.contact-list-item:hover {
  background: rgba(255,255,255,0.03);
}
.text-white { color: #ffffff; }
.text-gray { color: #e5e4e2; }
.c-image { 
  width: 48px; height: 48px; 
  display: flex; align-items: center; justify-content: center; 
  overflow: hidden; 
  background: #ffffff;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.c-image img { width: 100%; height: 100%; object-fit: contain; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.hover-scale { transition: transform 0.3s ease; }
.hover-scale:hover { transform: scale(1.05) translateX(10px); }
.hover-jump { transition: transform 0.3s ease, box-shadow 0.3s ease; display: inline-flex; align-items: center; justify-content: center; gap: 8px;}
.hover-jump:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(37,211,102,0.4); }
.card-float { animation: float-card 6s ease-in-out infinite; }
@keyframes float-card { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

.c-content {
  display: flex;
  flex-direction: column;
}
.c-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}
.c-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-heading);
}

.contact-white-card {
  background: #ffffff;
  border-radius: 32px;
  padding: 3.5rem;
  color: #000000;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-white-card h3 {
  font-size: 1.75rem;
  color: #000;
  margin: 0;
}
.contact-white-card p {
  color: #555;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.btn-massive {
  padding: 1.25rem 2rem;
  font-size: 1.15rem;
  width: 100%;
  border-radius: var(--radius-sm);
  text-align: center;
  justify-content: center;
}

.card-footer-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
}
.avatars {
  display: flex;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #fff;
  background-size: cover;
  background-color: #ccc;
  margin-left: -10px;
}
.avatar:first-child { margin-left: 0; }
.clients-tag {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

@media (max-width: 900px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .contact-white-card {
    padding: 2.5rem;
  }
}

/* ================= FOOTER ================= */
.footer {
  background: #000;
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .brand-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 1rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-col strong {
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 1rem;
}

.credits {
  font-style: italic;
  opacity: 0.6;
}

/* ================= TECH SHOWCASE ================= */
.tech-showcase {
  border-top: 1px solid var(--border);
}

.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.tech-text h2 {
  margin-bottom: 0.75rem;
}

.tech-text > p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* Feature list items */
.feature-list {
  list-style: none;
  padding: 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.3s ease;
}

.feature-item:last-child {
  border-bottom: none;
}

.feature-item:hover {
  transform: translateX(6px);
}

.tick-box {
  width: 36px;
  height: 36px;
  min-width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 0 12px rgba(255,255,255,0.03), inset 0 1px 0 rgba(255,255,255,0.05);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover .tick-box {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(225,225,225,0.08);
}

.tick-box svg {
  width: 18px;
  height: 18px;
}

.feature-content strong {
  display: block;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 2px;
}

.feature-content span {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Mac Browser Window */
.mac-browser {
  background: #111111;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(255,255,255,0.02);
  position: relative;
}

.mac-browser::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.03), transparent 60%);
  pointer-events: none;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: #1a1a1a;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.browser-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.browser-dot.red { background: #ff5f57; }
.browser-dot.yellow { background: #febc2e; }
.browser-dot.green { background: #28c840; }

.browser-url {
  flex: 1;
  margin-left: 12px;
  background: #0e0e0e;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 0.8rem;
  color: #666;
  font-family: 'Inter', monospace;
  border: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  gap: 6px;
}

.browser-url .lock-icon {
  color: #28c840;
  font-size: 0.7rem;
}

.browser-content {
  padding: 24px;
  position: relative;
  z-index: 1;
}

.browser-content pre {
  margin: 0;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.85rem;
  line-height: 1.8;
  overflow-x: auto;
}

.browser-content code {
  color: #c9d1d9;
}

/* Syntax highlighting colors */
.syn-keyword { color: #ff7b72; }
.syn-fn { color: #d2a8ff; }
.syn-string { color: #a5d6ff; }
.syn-const { color: #79c0ff; }
.syn-comment { color: #484f58; font-style: italic; }
.syn-number { color: #ffa657; }
.syn-variable { color: #ffa657; }
.syn-bracket { color: #8b949e; }
.syn-operator { color: #ff7b72; }

/* Stats bar in browser */
.browser-stats {
  display: flex;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.stat-item {
  flex: 1;
  padding: 16px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.06);
}

.stat-item:last-child {
  border-right: none;
}

.stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.72rem;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
  display: block;
}

/* Responsive for tech grid */
@media (max-width: 768px) {
  .tech-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .browser-content pre {
    font-size: 0.75rem;
  }
  
  .browser-stats {
    flex-wrap: wrap;
  }
  
  .stat-item {
    flex: 1 1 50%;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
}

/* ================= WSP FLOAT MEJORADO ================= */
.wsp-float-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 64px;
  height: 64px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(37,211,102,0.4);
  z-index: 99;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.wsp-float-btn:hover {
  transform: scale(1.1) translateY(-4px);
}
.wsp-float-btn svg {
  margin-left: 1px;
}

/* ================= ANIMATIONS & REVEAL ================= */
.reveal {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(40px) scale(0.95);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

.reveal.active {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
