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

:root {
  --color-bg:           #0b0d1a;
  --color-bg-card:      #12152b;
  --color-bg-nav:       rgba(11, 13, 26, 0.85);
  --color-primary:      #6c63ff;
  --color-primary-dark: #4f46e5;
  --color-accent:       #a78bfa;
  --color-purple-light: #c4b5fd;
  --color-blue:         #3b82f6;
  --color-blue-light:   #93c5fd;
  --color-text:         #e2e8f0;
  --color-text-muted:   #94a3b8;
  --color-border:       rgba(108, 99, 255, 0.2);

  --grad-hero:    linear-gradient(135deg, #6c63ff 0%, #3b82f6 50%, #a78bfa 100%);
  --grad-card:    linear-gradient(145deg, rgba(108,99,255,0.08) 0%, rgba(59,130,246,0.06) 100%);
  --grad-section: linear-gradient(180deg, #0b0d1a 0%, #0f1225 100%);
  --grad-cta:     linear-gradient(90deg, #6c63ff, #3b82f6);

  --section-py: 6rem;
  --container:  1200px;
  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --shadow-card: 0 4px 32px rgba(108, 99, 255, 0.12);
  --shadow-glow: 0 0 40px rgba(108, 99, 255, 0.35);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 140px; /* sobreescrito dinámicamente por JS según altura real del navbar */
}

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

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-primary); border-radius: 3px; }

/* =============================================
   UTILIDADES
============================================= */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: var(--section-py) 0; }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.25);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-title span {
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 600px;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 100px;
  padding: 0.85rem 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn:hover::before { opacity: 1; }

.btn-primary {
  background: var(--grad-cta);
  color: #fff;
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.45);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.6);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-accent);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.btn-whatsapp:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}

.btn-sm {
  padding: 0.6rem 1.4rem;
  font-size: 0.85rem;
}

/* Animaciones de entrada */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* =============================================
   NAVEGACIÓN
============================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.2rem 0;
  background: var(--color-bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  border-bottom-color: var(--color-border);
  padding: 0.9rem 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

/* Logo imagen — cápsula blanca para preservar colores de marca en fondo oscuro */
.logo-img {
  width: 300px;
  height: auto;
  display: block;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 10px;
  padding: 6px 14px;
  transition: opacity 0.2s;
}

.logo:hover .logo-img { opacity: 0.85; }

.logo-img--footer {
  width: 320px;
  height: auto;
  padding: 7px 16px;
}

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

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad-cta);
  border-radius: 2px;
  transition: width 0.3s;
}

.nav-links a:hover { color: var(--color-text); }
.nav-links a:hover::after { width: 100%; }

/* Los botones dentro del nav no heredan el color gris de los enlaces */
.nav-links .btn { color: #fff; }
.nav-links .btn::after { display: none; }
.nav-links .btn:hover { color: #fff; }

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

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

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   HERO (HOME)
============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: blobFloat 8s ease-in-out infinite alternate;
}

.blob-1 { width: 600px; height: 600px; background: var(--color-primary); top: -200px; left: -200px; }
.blob-2 { width: 500px; height: 500px; background: var(--color-blue); bottom: -150px; right: -100px; animation-delay: -4s; }
.blob-3 { width: 300px; height: 300px; background: var(--color-accent); top: 40%; left: 50%; animation-delay: -2s; }

@keyframes blobFloat {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, 20px) scale(1.05); }
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.3);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-title .highlight {
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  max-width: 520px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats { display: flex; gap: 2.5rem; }

.hero-stat { display: flex; flex-direction: column; }

.hero-stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.hero-stat-label { font-size: 0.78rem; color: var(--color-text-muted); margin-top: 0.25rem; }

.hero-visual { display: flex; justify-content: center; align-items: center; }

.hero-illustration { width: 100%; max-width: 520px; position: relative; }

.hero-img-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}

.hero-img-wrapper img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
}

.float-card {
  position: absolute;
  background: rgba(18, 21, 43, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: floatCard 4s ease-in-out infinite alternate;
}

@keyframes floatCard {
  0%   { transform: translateY(0px); }
  100% { transform: translateY(-10px); }
}

.float-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.float-card-text strong { display: block; font-size: 0.85rem; font-weight: 700; color: var(--color-text); }
.float-card-text span  { font-size: 0.72rem; color: var(--color-text-muted); }

.float-card-1 { top: 20px; left: -30px; animation-delay: -1s; }
.float-card-2 { bottom: 30px; right: -20px; animation-delay: -2.5s; }

/* =============================================
   SERVICIOS (cards home)
============================================= */
.services {
  background: var(--grad-section);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

.services-header { text-align: center; margin-bottom: 4rem; }
.services-header .section-desc { margin: 0 auto; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.service-card {
  background: var(--grad-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: default;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
  border-color: rgba(108, 99, 255, 0.45);
}

.service-card-image { width: 100%; height: 185px; object-fit: cover; display: block; transition: transform 0.4s ease; }
.service-card:hover .service-card-image { transform: scale(1.04); }
.service-card-image-wrap { overflow: hidden; }
.service-card-body { padding: 1.5rem; }

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.service-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--color-text); margin-bottom: 0.6rem; }
.service-card p  { font-size: 0.9rem; color: var(--color-text-muted); line-height: 1.65; }

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  margin-top: 1.1rem;
  transition: gap 0.2s;
}

.service-card-link:hover { gap: 0.75rem; }

/* =============================================
   QUIÉNES SOMOS (home)
============================================= */
.about { position: relative; overflow: hidden; }

.about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-visual { position: relative; }

.about-img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
  box-shadow: var(--shadow-glow);
}

.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.about-badge-value {
  font-size: 2rem;
  font-weight: 900;
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.about-badge-text { font-size: 0.78rem; color: var(--color-text-muted); margin-top: 0.3rem; }

.about-content .section-desc { margin-bottom: 1.5rem; }
.about-content p { font-size: 1rem; color: var(--color-text-muted); line-height: 1.75; margin-bottom: 1rem; }

.about-features {
  list-style: none;
  margin: 1.75rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.about-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.about-features li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(108, 99, 255, 0.15);
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* =============================================
   BANDA TECNOLOGÍAS
============================================= */
.tech-band {
  padding: 3rem 0;
  background: rgba(108, 99, 255, 0.04);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

.tech-band-label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 1.75rem;
}

.tech-track {
  display: flex;
  gap: 3.5rem;
  align-items: center;
  animation: techScroll 20s linear infinite;
  width: max-content;
}

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

.tech-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.tech-item:hover { opacity: 1; }

.tech-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad-cta); }

/* =============================================
   CONTACTO (home)
============================================= */
.contact { background: var(--grad-section); position: relative; }

.contact::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

.contact .container {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
  align-items: start;
}

.contact-info .section-title { margin-bottom: 1rem; }
.contact-info .section-desc  { margin-bottom: 2.5rem; }

.contact-details { display: flex; flex-direction: column; gap: 1.2rem; }

.contact-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--grad-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color 0.3s;
}

.contact-detail:hover { border-color: rgba(108, 99, 255, 0.4); }

.contact-detail--whatsapp { text-decoration: none; color: inherit; }
.contact-detail--whatsapp .contact-detail-icon { background: rgba(37, 211, 102, 0.15); color: #25d366; }
.contact-detail--whatsapp:hover { border-color: rgba(37, 211, 102, 0.4); }

.contact-detail-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(108, 99, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-detail-info strong { display: block; font-size: 0.85rem; font-weight: 600; color: var(--color-text); }
.contact-detail-info span  { font-size: 0.83rem; color: var(--color-text-muted); }

/* Formulario */
.contact-form {
  background: var(--grad-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

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

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

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

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

.form-input:focus,
.form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}

select.form-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.75rem;
  cursor: pointer;
}

select.form-input option { background: #1a1d35; color: var(--color-text); }
select.form-input option:disabled { color: var(--color-text-muted); }

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

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

.form-submit { width: 100%; justify-content: center; font-size: 1rem; padding: 1rem 2rem; }

.form-input.error { border-color: #f87171; }

.form-success,
.form-error {
  display: none;
  text-align: center;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-success {
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #6ee7b7;
}

.form-error {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #fca5a5;
}

/* =============================================
   FOOTER
============================================= */
footer {
  background: #070814;
  border-top: 1px solid var(--color-border);
  padding: 3.5rem 0 1.5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--color-border);
}

.footer-brand .logo-text { font-size: 1.4rem; margin-bottom: 0.25rem; }

.footer-tagline {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-top: 0.75rem;
  line-height: 1.65;
  max-width: 240px;
}

.footer-social { display: flex; gap: 0.75rem; margin-top: 1.5rem; }

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.footer-social a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  transform: translateY(-3px);
}

.footer-col h4 { font-size: 0.9rem; font-weight: 700; color: var(--color-text); margin-bottom: 1.2rem; }

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }

.footer-links a { font-size: 0.88rem; color: var(--color-text-muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--color-accent); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright { font-size: 0.82rem; color: var(--color-text-muted); }

.footer-legal { display: flex; gap: 1.5rem; list-style: none; }

.footer-legal a { font-size: 0.82rem; color: var(--color-text-muted); text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: var(--color-accent); }

/* =============================================
   BACK TO TOP
============================================= */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--grad-cta);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.5);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 900;
  text-decoration: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(108, 99, 255, 0.7); }

/* =============================================
   PÁGINAS INTERIORES — BREADCRUMB
============================================= */
.breadcrumb {
  padding: 5.5rem 0 0;
  background: var(--color-bg);
}

.breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.83rem;
  color: var(--color-text-muted);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

.breadcrumb-inner a { color: var(--color-text-muted); text-decoration: none; transition: color 0.2s; }
.breadcrumb-inner a:hover { color: var(--color-accent); }
.breadcrumb-inner .sep { color: var(--color-border); }
.breadcrumb-inner .current { color: var(--color-accent); font-weight: 500; }

/* =============================================
   PÁGINAS INTERIORES — PAGE HERO
============================================= */
.page-hero {
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
  background: var(--color-bg);
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.page-hero-bg .blob {
  opacity: 0.12;
}

.page-hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.page-hero-content {}

.page-hero-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.page-hero-title span {
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero-desc {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.page-hero-image {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow);
  display: block;
}

/* =============================================
   PÁGINAS DE SERVICIO — SECCIONES DETALLE
============================================= */

/* Intro estadísticas */
.service-stats {
  display: flex;
  gap: 3rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin: 2rem 0;
  flex-wrap: wrap;
}

.service-stat-item { display: flex; flex-direction: column; }
.service-stat-value {
  font-size: 2rem;
  font-weight: 900;
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.service-stat-label { font-size: 0.8rem; color: var(--color-text-muted); margin-top: 0.3rem; }

/* Sección descripción + imagen alternada */
.service-block {
  padding: var(--section-py) 0;
  position: relative;
}

.service-block + .service-block {
  border-top: 1px solid var(--color-border);
}

.service-block-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.service-block-inner.reverse { direction: rtl; }
.service-block-inner.reverse > * { direction: ltr; }

.service-block-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow);
  display: block;
}

.service-block-content h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.service-block-content h2 span {
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.service-block-content p {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* Features grid */
.features-section { background: var(--grad-section); position: relative; }

.features-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

.features-header { text-align: center; margin-bottom: 3.5rem; }
.features-header .section-desc { margin: 0 auto; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--grad-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: rgba(108, 99, 255, 0.4);
}

.feature-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.1rem;
}

.feature-card h3 { font-size: 1rem; font-weight: 700; color: var(--color-text); margin-bottom: 0.5rem; }
.feature-card p  { font-size: 0.875rem; color: var(--color-text-muted); line-height: 1.65; }

/* Proceso / Pasos */
.process-section { padding: var(--section-py) 0; }
.process-header { text-align: center; margin-bottom: 3.5rem; }
.process-header .section-desc { margin: 0 auto; }

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(50% / 4);
  right: calc(50% / 4);
  height: 1px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-blue));
  opacity: 0.3;
}

.process-step {
  text-align: center;
  position: relative;
  padding: 0 1rem;
}

.process-step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--grad-cta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.2rem;
  color: #fff;
  margin: 0 auto 1.25rem;
  box-shadow: 0 0 20px rgba(108, 99, 255, 0.4);
  position: relative;
  z-index: 1;
}

.process-step h3 { font-size: 0.95rem; font-weight: 700; color: var(--color-text); margin-bottom: 0.5rem; }
.process-step p  { font-size: 0.85rem; color: var(--color-text-muted); line-height: 1.6; }

/* Tecnologías (tags) */
.tech-tags-section { padding: 3rem 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }

.tech-tags-title { font-size: 0.85rem; font-weight: 600; color: var(--color-text-muted); margin-bottom: 1.25rem; text-transform: uppercase; letter-spacing: 0.1em; }

.tech-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.tech-tag {
  padding: 0.4rem 1rem;
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.25);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-accent);
  transition: all 0.2s;
}

.tech-tag:hover { background: rgba(108, 99, 255, 0.2); border-color: var(--color-primary); }

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, rgba(108,99,255,0.15) 0%, rgba(59,130,246,0.1) 100%);
  border: 1px solid rgba(108, 99, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(108,99,255,0.1) 0%, transparent 70%);
}

.cta-banner-content { position: relative; z-index: 1; }

.cta-banner h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 1rem; }
.cta-banner h2 span { background: var(--grad-hero); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.cta-banner p { font-size: 1rem; color: var(--color-text-muted); max-width: 500px; margin: 0 auto 2rem; line-height: 1.7; }
.cta-banner-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.cta-section { padding: var(--section-py) 0; }

/* =============================================
   PÁGINAS LEGALES
============================================= */
.legal-page { padding-top: 5rem; }

.legal-hero {
  padding: 4rem 0 3rem;
  background: linear-gradient(180deg, rgba(108,99,255,0.06) 0%, transparent 100%);
  border-bottom: 1px solid var(--color-border);
}

.legal-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.legal-hero h1 span {
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.legal-hero-meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.legal-content {
  padding: 4rem 0 6rem;
  max-width: 820px;
}

.legal-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 2.5rem 0 1rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-border);
}

.legal-content h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }

.legal-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 1.5rem 0 0.6rem;
}

.legal-content p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal-content ul,
.legal-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content li {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 0.4rem;
}

.legal-content a { color: var(--color-accent); text-decoration: underline; transition: color 0.2s; }
.legal-content a:hover { color: var(--color-purple-light); }

.legal-content strong { color: var(--color-text); font-weight: 600; }

.legal-highlight {
  background: rgba(108, 99, 255, 0.07);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.1rem 1.5rem;
  margin: 1.5rem 0;
}

.legal-highlight p { margin-bottom: 0; }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.88rem;
}

.legal-table th,
.legal-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border: 1px solid var(--color-border);
}

.legal-table th {
  background: rgba(108, 99, 255, 0.1);
  color: var(--color-text);
  font-weight: 600;
}

.legal-table td { color: var(--color-text-muted); }

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .about .container { gap: 3rem; }
  .contact .container { gap: 3rem; }
  .page-hero .container { gap: 2.5rem; }
  .service-block-inner { gap: 3rem; }
}

@media (max-width: 768px) {
  :root { --section-py: 4rem; }

  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    height: 100vh;
    width: min(300px, 80vw);
    background: #0c0e1d;
    border-left: 1px solid var(--color-border);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
    gap: 1.5rem;
    transition: right 0.35s ease;
    z-index: 999;
  }

  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1.1rem; }
  .nav-toggle { display: flex; z-index: 1001; }

  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle, .hero-cta { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-img-wrapper img { height: 260px; }
  .float-card-1 { left: 0; }
  .float-card-2 { right: 0; }

  .about .container { grid-template-columns: 1fr; }
  .about-visual { order: -1; }
  .about-img { height: 280px; }
  .about-badge { bottom: -10px; right: 10px; }

  .contact .container { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .page-hero .container { grid-template-columns: 1fr; }
  .page-hero-image { height: 240px; order: -1; }

  .service-block-inner { grid-template-columns: 1fr; gap: 2rem; }
  .service-block-inner.reverse { direction: ltr; }

  .process-steps::before { display: none; }

  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .cta-banner { padding: 2.5rem 1.5rem; }
}

@media (max-width: 480px) {
  .hero-stats { gap: 1.5rem; }
  .footer-top { grid-template-columns: 1fr; }
  .contact-form { padding: 1.5rem; }
  .float-card { display: none; }
  .service-stats { gap: 1.5rem; }
}
