/* ═══════════════════════════════════════════════════════════
   RYN SYSTEMS — Landing Page Styles
   Client-Friendly | Marketing-Focused | 2026
═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   VARIABLES & RESET
═══════════════════════════════════════════════════════════ */
:root {
  --bg:            #09090F;
  --surface:       #0F0F1A;
  --surface-2:     #14142A;
  --border:        #1E1E32;
  --brand:         #8B2FC9;
  --brand-magenta: #C026D3;
  --brand-light:   #A855F7;
  --brand-glow:    rgba(139, 47, 201, 0.3);
  --white:         #F8FAFC;
  --muted:         #64748B;
  --muted-light:   #94A3B8;
  --radius-sm:     6px;
  --radius:        12px;
  --radius-lg:     20px;
  --shadow:        0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg:     0 8px 40px rgba(0, 0, 0, 0.6);
  --shadow-brand:  0 4px 32px rgba(139, 47, 201, 0.35);
  --transition:    0.2s ease;
  --font:          'Inter', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

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

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-delay   { transition-delay: 0.1s; }
.fade-delay-1 { transition-delay: 0.18s; }
.fade-delay-2 { transition-delay: 0.28s; }
.fade-delay-3 { transition-delay: 0.38s; }
.fade-delay-4 { transition-delay: 0.48s; }

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

@keyframes glow-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.08); }
}

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

/* ═══════════════════════════════════════════════════════════
   UTILITIES
═══════════════════════════════════════════════════════════ */
.text-center { text-align: center; }

/* Pill badge — reemplaza el code-label técnico */
.section-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-light);
  background: rgba(139, 47, 201, 0.1);
  border: 1px solid rgba(139, 47, 201, 0.25);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--muted-light);
  line-height: 1.75;
  max-width: 580px;
}

.highlight {
  background: linear-gradient(90deg, var(--brand-light), var(--brand-magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-magenta));
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: var(--shadow-brand);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--muted-light);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  white-space: nowrap;
}
.btn-outline:hover {
  color: var(--white);
  border-color: var(--brand-light);
  background: rgba(139, 47, 201, 0.08);
}

.btn-small {
  font-size: 0.85rem;
  padding: 10px 20px;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 32px;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-whatsapp:hover {
  background: #20BA5A;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

.btn-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--muted-light);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 16px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.btn-email:hover {
  color: var(--white);
  border-color: var(--brand-light);
  background: rgba(139, 47, 201, 0.08);
}

/* ═══════════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  transition: background var(--transition), backdrop-filter var(--transition), border-bottom var(--transition);
}

.navbar.scrolled {
  background: rgba(9, 9, 15, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 8px 0;
}

.nav-logo-img {
  height: 68px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .nav-logo-img {
    height: 48px;
    max-width: 160px;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(139, 47, 201, 0.08);
}

.btn-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(168, 85, 247, 0.3);
  transition: background var(--transition), box-shadow var(--transition);
  flex-shrink: 0;
  margin-left: 12px;
}
.btn-nav-cta:hover {
  background: var(--brand-light);
  box-shadow: 0 0 20px rgba(139, 47, 201, 0.4);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.icon-wa {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 68px;
}

/* Dot grid background */
.hero-dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(139, 47, 201, 0.18) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* Glow blobs */
.hero-bg-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 47, 201, 0.22) 0%, transparent 70%);
  top: -150px;
  left: -200px;
  pointer-events: none;
  animation: glow-pulse 5s ease-in-out infinite;
  z-index: 0;
}

.hero-bg-glow-2 {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192, 38, 211, 0.15) 0%, transparent 70%);
  bottom: -100px;
  right: -100px;
  pointer-events: none;
  animation: glow-pulse 7s ease-in-out infinite reverse;
  z-index: 0;
}

.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px 24px 60px;
}

/* ── Hero Content (left) ── */
.hero-content { display: flex; flex-direction: column; align-items: flex-start; }

/* Friendly pill badge (reemplaza el terminal badge) */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--white);
  background: rgba(139, 47, 201, 0.12);
  border: 1px solid rgba(139, 47, 201, 0.3);
  padding: 8px 18px;
  border-radius: 20px;
  margin-bottom: 32px;
}

.hero-title {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 22px;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--muted-light);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── Hero Visual (right) — Device Mockups ── */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.devices-scene {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 360px;
}

/* ── Laptop / Browser Mockup ── */
.laptop-mockup {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 270px;
  border-radius: var(--radius);
  border: 1.5px solid rgba(139, 47, 201, 0.3);
  background: #0B0B18;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
  animation: float 5s ease-in-out infinite;
  z-index: 1;
}

.laptop-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  background: #080810;
  border-bottom: 1px solid rgba(139, 47, 201, 0.15);
  padding: 0 12px;
  flex-shrink: 0;
}

.laptop-dots {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-shrink: 0;
}
.laptop-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot-red    { background: #FF5F57; }
.dot-yellow { background: #FFBD2E; }
.dot-green  { background: #28CA41; }

.laptop-url {
  flex: 1;
  height: 18px;
  background: rgba(255,255,255,0.05);
  border-radius: 20px;
  font-size: 0.6rem;
  color: rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 200px;
  margin: 0 auto;
  letter-spacing: 0.02em;
}

.laptop-screen {
  display: flex;
  height: calc(270px - 32px);
  overflow: hidden;
}

.lscreen-sidebar {
  width: 52px;
  flex-shrink: 0;
  background: rgba(0,0,0,0.3);
  border-right: 1px solid rgba(139, 47, 201, 0.12);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lsb-logo {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--brand), var(--brand-magenta));
  margin-bottom: 8px;
  flex-shrink: 0;
}

.lsb-item {
  height: 28px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
}
.lsb-active {
  background: rgba(139, 47, 201, 0.25);
  border: 1px solid rgba(139, 47, 201, 0.3);
}

.lscreen-content {
  flex: 1;
  padding: 14px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.lscreen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.lheader-title {
  width: 38%;
  height: 12px;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
}
.lheader-badge {
  width: 18%;
  height: 18px;
  border-radius: 20px;
  background: linear-gradient(90deg, rgba(139,47,201,0.5), rgba(192,38,211,0.4));
}

.lscreen-stats {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.lstat-card {
  flex: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(139, 47, 201, 0.1);
  border-radius: var(--radius-sm);
  padding: 8px;
}
.lstat-card-hi {
  background: rgba(139, 47, 201, 0.08);
  border-color: rgba(139, 47, 201, 0.2);
}
.lstat-label {
  width: 65%;
  height: 7px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  margin-bottom: 7px;
}
.lstat-val {
  width: 50%;
  height: 14px;
  background: rgba(255,255,255,0.18);
  border-radius: 4px;
}
.lstat-val-hi { background: rgba(168, 85, 247, 0.45); }

.lscreen-chart {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 64px;
  flex-shrink: 0;
  padding: 0 2px;
}
.lchart-bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: rgba(139, 47, 201, 0.28);
}
.lchart-hi {
  background: linear-gradient(180deg, var(--brand-magenta), var(--brand));
}

.lscreen-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lrow {
  height: 12px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
}
.lrow-short { width: 68%; }

/* ── Phone Mockup ── */
.phone-mockup {
  position: absolute;
  right: 10px;
  bottom: 20px;
  width: 128px;
  height: 240px;
  z-index: 2;
  animation: float 4s ease-in-out infinite 1.2s;
}

.phone-frame {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  border: 2px solid rgba(139, 47, 201, 0.45);
  background: #09090F;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.05),
              0 0 24px rgba(139,47,201,0.25);
  position: relative;
  padding-top: 18px;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 16px;
  background: #09090F;
  border-radius: 0 0 12px 12px;
  z-index: 10;
}

.phone-screen {
  padding: 6px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  overflow: hidden;
}

.pscreen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2px;
}
.pheader-title {
  width: 55%;
  height: 9px;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
}
.pheader-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-magenta));
}

.pscreen-metric {
  text-align: center;
  padding: 4px 0 2px;
}
.pmetric-val {
  height: 18px;
  width: 60%;
  background: rgba(168, 85, 247, 0.4);
  border-radius: 4px;
  margin: 0 auto 5px;
}
.pmetric-label {
  height: 7px;
  width: 45%;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  margin: 0 auto;
}

.pscreen-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.plist-item {
  display: flex;
  align-items: center;
  gap: 7px;
}
.pitem-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.pitem-ok      { background: #22C55E; }
.pitem-pending { background: #F59E0B; }

.pitem-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pitem-line {
  height: 7px;
  background: rgba(255,255,255,0.12);
  border-radius: 4px;
  width: 100%;
}
.pitem-line-s { width: 55%; }
.pitem-line-m { width: 75%; }
.pitem-line-l { width: 85%; }

.pscreen-cta {
  margin-top: auto;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--brand), var(--brand-magenta));
  opacity: 0.85;
}

/* ── Floating context chips ── */
.device-chip {
  position: absolute;
  background: rgba(9, 9, 15, 0.9);
  border: 1px solid rgba(139, 47, 201, 0.35);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  z-index: 3;
}
.chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22C55E;
  animation: dot-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
.chip-1 {
  top: -20px;
  left: 24px;
  animation: float 3.6s ease-in-out infinite;
}
.chip-2 {
  top: 60px;
  right: -16px;
  animation: float 4.4s ease-in-out infinite 0.8s;
}
.chip-2 .chip-dot {
  background: #FBBF24;
}
.chip-3 {
  bottom: 10px;
  left: 24px;
  animation: float 3.9s ease-in-out infinite 1.6s;
}
.chip-3 .chip-dot {
  background: #EF4444;
}

/* ═══════════════════════════════════════════════════════════
   NOSOTROS
═══════════════════════════════════════════════════════════ */
.section-nosotros {
  padding: 100px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.nosotros-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.nosotros-header { max-width: 680px; }

.nosotros-body {
  font-size: 1.05rem;
  color: var(--muted-light);
  line-height: 1.8;
  max-width: 640px;
  margin-bottom: 8px;
}

.nosotros-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.differentiator-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 2px solid var(--brand);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.differentiator-card:hover {
  border-color: var(--brand-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-brand);
}

.diff-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: rgba(139, 47, 201, 0.1);
  border: 1px solid rgba(139, 47, 201, 0.25);
  border-radius: var(--radius-sm);
  margin: 0 auto 18px;
  font-size: 1.5rem;
  line-height: 1;
}

.differentiator-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  text-align: center;
}

.differentiator-card p {
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   SERVICIOS
═══════════════════════════════════════════════════════════ */
.section-servicios {
  padding: 100px 0;
}

.servicios-header {
  margin-bottom: 48px;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.servicio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.servicio-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-magenta));
  opacity: 0;
  transition: opacity var(--transition);
}

.servicio-card:hover {
  border-color: rgba(139, 47, 201, 0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-brand);
}

.servicio-card:hover::before { opacity: 1; }

.serv-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: rgba(139, 47, 201, 0.1);
  border: 1px solid rgba(139, 47, 201, 0.25);
  border-radius: var(--radius-sm);
  margin: 0 auto 18px;
  font-size: 1.5rem;
  line-height: 1;
}

.servicio-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  text-align: center;
}

.servicio-card p {
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   PROCESO
═══════════════════════════════════════════════════════════ */
.section-proceso {
  padding: 100px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.proceso-header {
  text-align: center;
  margin-bottom: 64px;
}

.proceso-header .section-subtitle {
  margin: 0 auto;
}

.proceso-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
}

/* Connector line */
.proceso-steps::before {
  content: '';
  position: absolute;
  top: 22px;
  left: calc(10% + 18px);
  right: calc(10% + 18px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand), var(--brand-magenta), var(--brand), transparent);
  opacity: 0.35;
  z-index: 0;
}

.proceso-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
  position: relative;
  z-index: 1;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.proceso-card:hover {
  border-color: rgba(139, 47, 201, 0.5);
  box-shadow: var(--shadow-brand);
  transform: translateY(-3px);
}

.proceso-num {
  font-family: var(--font);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--brand-light);
  background: rgba(139, 47, 201, 0.1);
  border: 1px solid rgba(139, 47, 201, 0.3);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  line-height: 1;
}

.proceso-icon {
  font-size: 1.4rem;
  margin: 0 auto 10px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.proceso-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.proceso-card p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════════
   PORTFOLIO
═══════════════════════════════════════════════════════════ */
.section-portfolio {
  padding: 100px 0;
}

.portfolio-header {
  margin-bottom: 48px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1150px;
}

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

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
}

.portfolio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  min-height: 295px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.portfolio-card:hover {
  border-color: rgba(139, 47, 201, 0.45);
  box-shadow: var(--shadow-brand);
  transform: translateY(-3px);
}

.portfolio-card-header {
  margin-bottom: 16px;
}

.portfolio-card-tags {
  display: flex;
  gap: 8px;
}

.ptag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}

.ptag-prod {
  background: rgba(168, 85, 247, 0.1);
  color: var(--brand-light);
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.portfolio-proj-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.portfolio-proj-desc {
  font-size: 0.9rem;
  color: var(--muted-light);
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.portfolio-link {
  margin-top: auto;
  align-self: flex-start;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--brand-light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition), gap var(--transition);
}
.portfolio-link:hover { color: var(--brand-magenta); gap: 10px; }

.portfolio-link-private { color: var(--brand-light); font-weight: 700; }
.portfolio-link-private:hover { color: var(--brand-magenta); }
.portfolio-link-private .lock-icon {
  margin-left: 4px;
  display: inline-block;
  vertical-align: text-bottom;
  width: 12px;
  height: 14px;
}

/* CTA placeholder card */
.portfolio-card-cta {
  border: 1px dashed rgba(139, 47, 201, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  min-height: 240px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.portfolio-card-cta:hover {
  border-style: solid;
  border-color: rgba(139, 47, 201, 0.45);
}

.portfolio-cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 12px;
}

.portfolio-card-cta h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
}
.portfolio-card-cta p {
  font-size: 0.87rem;
  color: var(--muted);
  max-width: 240px;
}

.portfolio-trust {
  margin-top: 24px;
  font-size: 0.87rem;
  color: var(--muted);
  text-align: center;
  max-width: 860px;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════
   STATS BAR
═══════════════════════════════════════════════════════════ */
.stats-bar {
  background: linear-gradient(135deg, rgba(139, 47, 201, 0.08) 0%, rgba(139, 47, 201, 0.04) 100%);
  border-top: 1px solid rgba(139, 47, 201, 0.2);
  border-bottom: 1px solid rgba(139, 47, 201, 0.2);
  padding: 56px 0;
}

.stats-inner {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(139, 47, 201, 0.1);
  border: 1.5px solid rgba(139, 47, 201, 0.25);
  border-radius: 12px;
  margin-bottom: 14px;
}

.stat-number {
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
  color: var(--white);
  letter-spacing: 0.02em;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted-light);
  font-weight: 500;
  line-height: 1.5;
}

.stat-divider {
  width: 1px;
  height: auto;
  background: rgba(139, 47, 201, 0.2);
  flex-shrink: 0;
  margin: 0 -1px;
}

/* ═══════════════════════════════════════════════════════════
   CTA FINAL
═══════════════════════════════════════════════════════════ */
.section-cta {
  padding: 120px 0;
  position: relative;
  background: var(--surface);
  overflow: hidden;
  border-top: 1px solid var(--border);
}

.cta-bg-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 110%, rgba(139, 47, 201, 0.3) 0%, transparent 65%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.cta-subtitle {
  font-size: 1.05rem;
  color: var(--muted-light);
  margin-bottom: 40px;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.footer {
  background: #060609;
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 280px;
}

.footer-nav h4,
.footer-social h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-nav a {
  font-size: 0.87rem;
  color: var(--muted);
  padding: 5px 0;
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--white); }

.footer-social {
  display: flex;
  flex-direction: column;
}

.footer-social-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-social-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.87rem;
  color: var(--muted);
  transition: color var(--transition);
}
.footer-social-links a:hover { color: var(--brand-light); }

.footer-social-links svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 8px;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (≤1024px)
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 80px 24px 60px;
    text-align: center;
  }

  .hero-content { align-items: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }

  .hero-visual { width: 100%; max-width: 500px; margin: 0 auto; }
  .devices-scene { transform: scale(0.88); transform-origin: top center; height: 320px; }

  .nosotros-grid { grid-template-columns: 1fr; gap: 16px; }

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

  .proceso-steps { grid-template-columns: repeat(3, 1fr); }
  .proceso-steps::before { display: none; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤768px)
═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .section-nosotros,
  .section-servicios,
  .section-proceso,
  .section-portfolio { padding: 72px 0; }
  .section-cta { padding: 80px 0; }

  /* Navbar mobile */
  .nav-links {
    display: none;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: rgba(9, 9, 15, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 20px 24px 32px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; font-size: 1rem; }

  .btn-nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  /* Hero */
  .hero-container { gap: 36px; padding: 60px 24px 48px; }
  .hero-title { font-size: 2.2rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn-primary,
  .hero-actions .btn-outline { justify-content: center; width: 100%; }

  /* Device mockup: scale down and center on mobile */
  .hero-visual { max-width: 420px; }
  .devices-scene { transform: scale(0.78); transform-origin: top center; height: 285px; }

  /* Nosotros */
  .nosotros-grid { grid-template-columns: 1fr; }

  /* Servicios */
  .servicios-grid { grid-template-columns: 1fr; }

  /* Proceso */
  .proceso-steps { grid-template-columns: repeat(2, 1fr); }

  /* Portfolio */
  .portfolio-grid { grid-template-columns: 1fr; max-width: 100%; }

  /* Stats */
  .stats-bar { padding: 40px 0; }
  .stats-inner { flex-direction: column; }
  .stat-item { padding: 20px 16px; width: 100%; }
  .stat-divider { display: none; }
  .stat-number { font-size: 1.1rem; }

  /* CTA */
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn-whatsapp,
  .cta-actions .btn-email { justify-content: center; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (≤480px)
═══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .proceso-steps { grid-template-columns: 1fr; }
  .stat-item { padding: 12px 16px; }
  .portfolio-card-cta { min-height: 200px; }
  .devices-scene { transform: scale(0.78); transform-origin: top center; height: 285px; }
}
