
:root {
  --bg-dark: #020617;
  --panel: rgba(255,255,255,.7);
  --panel-dark: rgba(15,23,42,.52);
  --cyan: #22d3ee;
}

body {
  background:
    radial-gradient(circle at top left, rgba(59,130,246,.08), transparent 28%),
    radial-gradient(circle at top right, rgba(124,58,237,.08), transparent 24%),
    linear-gradient(180deg, #ffffff, #f7faff 42%, #eef4fb 100%);
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148,163,184,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,.08) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, black 38%, transparent 88%);
  opacity: .4;
}
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 120;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--purple));
  box-shadow: 0 0 20px rgba(34,211,238,.55);
}
.cursor-glow {
  position: fixed; width: 280px; height: 280px; border-radius: 999px; pointer-events: none; z-index: 1;
  background: radial-gradient(circle, rgba(59,130,246,.18), rgba(124,58,237,.12) 35%, transparent 70%);
  filter: blur(14px); transform: translate(-50%, -50%); opacity: 0; transition: opacity .25s ease;
}
body:hover .cursor-glow { opacity: 1; }
.section { position: relative; }
.section::after {
  content: ''; position: absolute; inset: auto 0 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148,163,184,.16), transparent);
}
.site-header.scrolled {
  background: rgba(255,255,255,.82);
  border-bottom: 1px solid rgba(203,213,225,.55);
  box-shadow: 0 14px 32px rgba(15,23,42,.10);
}
.brand-icon, .icon-badge, .timeline-icon {
  box-shadow: 0 10px 30px rgba(59,130,246,.28), inset 0 1px 1px rgba(255,255,255,.22);
}
.desktop-nav button, .mobile-menu button { position: relative; }
.desktop-nav button::after, .mobile-menu button::after {
  content: ''; position: absolute; left: 0; bottom: -10px; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple)); transform: scaleX(0); transform-origin: center;
  transition: transform .25s ease;
}
.desktop-nav button:hover::after, .mobile-menu button:hover::after, .desktop-nav button.active::after, .mobile-menu button.active::after { transform: scaleX(1); }
.desktop-nav button.active, .mobile-menu button.active { color: var(--blue-dark); }
.hero-section {
  background:
    radial-gradient(circle at 10% 20%, rgba(34,211,238,.20), transparent 25%),
    radial-gradient(circle at 90% 15%, rgba(124,58,237,.28), transparent 30%),
    linear-gradient(135deg, #0f172a 0%, #12307a 36%, #1d4ed8 64%, #5b21b6 100%);
}
.hero-grid-pattern, .hero-particles { position: absolute; inset: 0; }
.hero-grid-pattern {
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at center, black 42%, transparent 88%);
  opacity: .38;
}
.hero-particles span {
  position: absolute; width: 6px; height: 6px; border-radius: 999px;
  background: #ffffff; box-shadow: 0 0 18px rgba(255,255,255,.75);
  animation: float-particle linear infinite;
}

.ascii-wave-layer {
  position: absolute;
  inset: auto 0 0 0;
  height: min(42vh, 360px);
  pointer-events: none;
  z-index: 1;
  opacity: .42;
  mask-image: linear-gradient(to top, black 0%, rgba(0,0,0,.92) 38%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, black 0%, rgba(0,0,0,.92) 38%, transparent 100%);
  mix-blend-mode: screen;
}
.ascii-wave-layer canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-content, .hero-showcase, .hero-copy, .hero-metrics, .browser-card {
  position: relative;
  z-index: 2;
}
@media (max-width: 768px) {
  .ascii-wave-layer {
    height: 26vh;
    opacity: .28;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ascii-wave-layer { display: none; }
}

.hero-content {
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 44px;
  text-align: left;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 10px 16px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(14px);
  color: rgba(255,255,255,.95); font-size: .92rem; font-weight: 700; letter-spacing: .02em;
}
.hero-copy p { margin-left: 0; }
.hero-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.glass-panel {
  backdrop-filter: blur(16px);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 20px 80px rgba(2,6,23,.28);
}
.metric-card { padding: 18px; border-radius: 20px; }
.metric-card strong { display: block; font-size: 1.5rem; margin-bottom: 6px; }
.metric-card span { color: rgba(255,255,255,.82); font-size: .95rem; }
.hero-showcase { position: relative; }
.browser-card {
  position: relative; border-radius: 30px; padding: 18px; transform-style: preserve-3d;
  transition: transform .18s ease, box-shadow .25s ease;
}
.browser-top { display: flex; gap: 8px; margin-bottom: 16px; }
.browser-top span { width: 12px; height: 12px; border-radius: 999px; background: rgba(255,255,255,.8); }
.browser-content { display: grid; grid-template-columns: 84px 1fr; gap: 16px; }
.browser-sidebar, .browser-main { background: rgba(255,255,255,.08); border-radius: 24px; padding: 16px; }
.browser-sidebar { display: grid; gap: 12px; }
.browser-sidebar span, .browser-cards div, .browser-line, .browser-chart i {
  display: block; border-radius: 999px; background: linear-gradient(90deg, rgba(255,255,255,.14), rgba(255,255,255,.42), rgba(255,255,255,.14));
}
.browser-sidebar span { height: 12px; }
.browser-line { height: 14px; margin-bottom: 14px; }
.browser-line.lg { width: 88%; }
.browser-line.md { width: 64%; }
.browser-chart { display: flex; align-items: end; gap: 10px; min-height: 130px; margin: 22px 0; }
.browser-chart i { width: 22%; border-radius: 16px 16px 8px 8px; }
.browser-chart i:nth-child(1) { height: 54px; }
.browser-chart i:nth-child(2) { height: 90px; }
.browser-chart i:nth-child(3) { height: 70px; }
.browser-chart i:nth-child(4) { height: 118px; }
.browser-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.browser-cards div { height: 74px; border-radius: 18px; }
.floating-badge {
  position: absolute; padding: 10px 14px; border-radius: 999px; font-weight: 800; font-size: .86rem;
  background: #ffffff; color: var(--blue-dark); box-shadow: 0 12px 34px rgba(2,6,23,.28);
  animation: float-badge 4.6s ease-in-out infinite;
}
.badge-one { top: 18%; right: -24px; }
.badge-two { bottom: 12%; left: -28px; animation-delay: 1s; }
.btn {
  position: relative; overflow: hidden;
  box-shadow: 0 10px 30px rgba(15,23,42,.10);
}
.btn::before {
  content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.45) 48%, transparent 76%);
  transform: translateX(-130%); transition: transform .65s ease;
}
.btn:hover::before { transform: translateX(130%); }
.card, .project-card, .testimonial-card, .pricing-card, .timeline-item, .contact-form {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(241,245,249,.98));
  backdrop-filter: blur(10px);
}
.card::before, .pricing-card::before, .testimonial-card::before, .timeline-item::before, .contact-form::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(59,130,246,.12), transparent 40%);
  opacity: 0; transition: opacity .22s ease;
}
.card:hover::before, .pricing-card:hover::before, .testimonial-card:hover::before, .timeline-item:hover::before, .contact-form:hover::before { opacity: 1; }
.card, .pricing-card, .testimonial-card, .timeline-item, .service-card { transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease; }
.card:hover, .pricing-card:hover, .testimonial-card:hover, .timeline-item:hover, .service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 44px rgba(15,23,42,.12);
  border-color: rgba(59,130,246,.25);
}
.pricing-card.recommended { border-color: var(--blue-dark); box-shadow: 0 22px 48px rgba(29,78,216,.16); }
.project-card::after {
  content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(34,211,238,.18), transparent 38%, rgba(124,58,237,.22));
  opacity: 0; transition: opacity .25s ease;
}
.project-card:hover::after { opacity: 1; }
.contact-form {
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.98)),
    linear-gradient(135deg, rgba(59,130,246,.08), rgba(124,58,237,.06));
}
input, select, textarea { background: #ffffff; }
input:hover, select:hover, textarea:hover { border-color: #64748b; }
.cta-band::before {
  content: ''; position: absolute; inset: -20%;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.16), transparent 20%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,.12), transparent 22%);
}
.site-footer { position: relative; overflow: hidden; }
.site-footer::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 34px 34px; opacity: .35;
}
.toast { backdrop-filter: blur(14px); }
@keyframes float-badge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes float-particle {
  from { transform: translateY(0) scale(1); opacity: 0; }
  10%, 90% { opacity: .85; }
  to { transform: translateY(-120vh) scale(.4); opacity: 0; }
}

:root {
  --bg: #ffffff;
  --bg-alt: #f1f5f9;
  --text: #0f172a;
  --muted: #334155;
  --border: #dbe4f0;
  --blue: #1d4ed8;
  --blue-dark: #1e40af;
  --purple: #6d28d9;
  --green: #22c55e;
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.10);
  --radius: 24px;
  --container: min(1120px, calc(100% - 32px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
.container { width: var(--container); margin: 0 auto; }
.section { padding: 96px 0; }
.section-alt { background: linear-gradient(180deg, #f8fbff 0%, var(--bg-alt) 100%); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head h2 { margin: 0 0 16px; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.05; letter-spacing: -0.03em; }
.section-head p { margin: 0; font-size: 1.125rem; line-height: 1.75; color: var(--muted); }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}
.site-header.scrolled { background: rgba(255,255,255,.96); backdrop-filter: blur(14px); box-shadow: 0 10px 30px rgba(15,23,42,.12); border-bottom: 1px solid rgba(203,213,225,.55); }
.nav-wrap { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; background: transparent; border: 0; color: var(--text); padding: 0; cursor: pointer; }
.brand-icon {
  width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue-dark), var(--purple)); color: #fff; flex: 0 0 auto;
}
.brand-icon svg { width: 24px; height: 24px; }
.brand-text { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; }
.desktop-nav { display: flex; align-items: center; gap: 28px; }
.desktop-nav button, .mobile-menu button {
  border: 0; background: transparent; color: #1e293b; cursor: pointer; font-weight: 600; padding: 0;
  transition: color .2s ease;
}
.desktop-nav button:hover, .mobile-menu button:hover { color: var(--blue-dark); }
.menu-toggle { display: none; width: 48px; height: 48px; border: 0; background: transparent; padding: 0; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; margin: 5px auto; background: var(--text); transition: .2s ease; }
.mobile-menu {
  display: none; background: rgba(255,255,255,.98); padding: 16px 24px 28px; box-shadow: 0 20px 60px rgba(15,23,42,.08);
}
.mobile-menu.open { display: grid; gap: 20px; }

.hero-section {
  position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #7c3aed 100%);
}
.hero-bg {
  position: absolute; inset: 0; opacity: .2;
  background-image: url('https://images.unsplash.com/photo-1612068661769-e641a155d7bb?auto=format&fit=crop&w=1600&q=80');
  background-size: cover; background-position: center;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(30,41,59,.45), transparent); }
.hero-content { position: relative; z-index: 1; text-align: center; padding: 140px 0 96px; }
.hero-content h1 { margin: 0 0 24px; font-size: clamp(2.8rem, 7vw, 4.8rem); line-height: .98; letter-spacing: -0.04em; }
.hero-content p { max-width: 780px; margin: 0 auto 44px; font-size: clamp(1.1rem, 2vw, 1.45rem); color: rgba(255,255,255,.92); line-height: 1.7; }
.hero-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; border-radius: 16px; padding: 0 28px; border: 0; cursor: pointer;
  font-weight: 700; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 24px rgba(15,23,42,.12); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--blue-dark), var(--purple)); }
.btn-light { color: #0f172a; background: #fff; }
.btn-outline-light { color: #fff; background: transparent; border: 2px solid rgba(255,255,255,.9); }
.btn-outline-light:hover { background: rgba(255,255,255,.14); }

.card, .project-card, .testimonial-card, .pricing-card, .timeline-item, .contact-form {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.card, .testimonial-card { padding: 32px; }
.icon-badge, .timeline-icon {
  width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--blue-dark), var(--purple)); color: #fff;
}
.icon-badge svg, .timeline-icon svg, .quote-icon svg, .check-icon svg, .external-icon svg { width: 26px; height: 26px; }
.card h3, .pricing-card h3, .timeline-content h3 { margin: 20px 0 10px; font-size: 1.35rem; letter-spacing: -0.02em; }
.card p, .timeline-content p, .pricing-features li, .testimonial-card p, .project-overlay p { color: var(--muted); line-height: 1.7; }
.service-card { position: relative; overflow: hidden; }
.service-card::before {
  content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(59,130,246,.05), rgba(124,58,237,.08)); opacity: 0; transition: opacity .25s ease;
}
.service-card:hover::before { opacity: 1; }
.service-card > * { position: relative; }

.pricing-card { padding: 32px; display: flex; flex-direction: column; }
.pricing-card.recommended { border-color: var(--blue-dark); box-shadow: 0 22px 48px rgba(29,78,216,.16); }
.plan-badge {
  align-self: center; margin-top: -48px; margin-bottom: 20px; display: inline-flex; padding: 8px 14px;
  border-radius: 999px; background: linear-gradient(135deg, var(--blue-dark), var(--purple)); color: #fff; font-weight: 700; font-size: .9rem;
}
.price-row { display: flex; align-items: flex-end; gap: 6px; margin-bottom: 24px; }
.price-value { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.04em; }
.price-currency { color: var(--muted); font-weight: 600; }
.pricing-features { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; }
.pricing-features li { display: flex; gap: 12px; align-items: flex-start; }
.check-icon { color: var(--blue); flex: 0 0 auto; margin-top: 2px; }

.project-card {
  position: relative; overflow: hidden; min-height: 360px; padding: 0; background: #0f172a; color: #fff;
}
.project-card img { width: 100%; height: 100%; object-fit: cover; min-height: 360px; transition: transform .45s ease; }
.project-card:hover img { transform: scale(1.08); }
.project-overlay {
  position: absolute; inset: 0; display: flex; align-items: end; padding: 28px;
  background: linear-gradient(to top, rgba(15,23,42,.96), rgba(15,23,42,.58), transparent);
}
.project-chip { display: inline-flex; padding: 7px 12px; border-radius: 999px; background: var(--blue-dark); color: #fff; font-size: .78rem; font-weight: 700; margin-bottom: 12px; letter-spacing: .01em; }
.project-overlay h3 { margin: 0 0 10px; font-size: 1.4rem; }
.project-link { display: inline-flex; align-items: center; gap: 10px; color: #93c5fd; font-weight: 700; margin-top: 12px; }
.external-icon { width: 18px; height: 18px; }

.timeline { max-width: 760px; margin: 0 auto; display: grid; gap: 24px; }
.timeline-item { padding: 28px; display: grid; grid-template-columns: 84px 1fr; gap: 22px; position: relative; }
.timeline-number { margin: 0 0 8px; font-size: 3.2rem; line-height: .9; color: rgba(29,78,216,.18); font-weight: 800; }

.testimonial-card .quote-icon { color: var(--blue); margin-bottom: 16px; }
.testimonial-card .testimonial-text { margin: 0 0 24px; font-size: 1.075rem; color: #334155; }
.person { display: flex; align-items: center; gap: 16px; }
.person img { width: 56px; height: 56px; object-fit: cover; border-radius: 16px; }
.person strong { display: block; }
.person span { color: var(--muted); font-size: .95rem; }

.contact-form { max-width: 860px; margin: 0 auto; padding: 32px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
label { display: block; }
label > span { display: block; margin-bottom: 10px; font-weight: 700; color: #0f172a; }
input, select, textarea {
  width: 100%; border: 1px solid #cbd5e1; border-radius: 16px; background: #fff; color: var(--text);
  box-shadow: inset 0 1px 2px rgba(15,23,42,.03);
  padding: 15px 16px; outline: 0; transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue-dark); box-shadow: 0 0 0 4px rgba(29,78,216,.14); }
textarea { resize: vertical; min-height: 140px; }
.btn-submit { width: 100%; margin-top: 24px; }
.form-help { text-align: center; color: var(--muted); margin: 16px 0 0; }
.submit-spinner {
  width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; display: none; animation: spin .8s linear infinite;
}
.contact-form.is-submitting .submit-spinner { display: inline-block; }
.contact-form.is-submitting .submit-text::after { content: 'Enviando...'; }
.contact-form.is-submitting .submit-text { font-size: 0; }

.cta-band { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--blue), #2563eb 50%, var(--purple)); color: #fff; }
.cta-content { text-align: center; }
.cta-content h2 { margin: 0 0 16px; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.05; letter-spacing: -0.03em; }
.cta-content p { max-width: 720px; margin: 0 auto 30px; font-size: 1.15rem; line-height: 1.7; color: rgba(255,255,255,.9); }

.site-footer { background: #0f172a; color: #e2e8f0; padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 30px; padding-bottom: 32px; }
.footer-brand { margin-bottom: 16px; color: #fff; }
.footer-copy, .footer-contact a { color: #cbd5e1; line-height: 1.7; }
.site-footer h3 { margin: 0 0 16px; color: #fff; font-size: 1rem; }
.footer-links { display: grid; gap: 12px; }
.social-links { display: flex; gap: 12px; flex-wrap: wrap; }
.social-links a,
.social-link {
  --social-color: rgba(255,255,255,.22);
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.82);
  color: #e2e8f0;
  border: 1px solid rgba(148,163,184,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 10px 24px rgba(2, 6, 23, .18);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease, color .25s ease;
}
.social-link svg {
  width: 20px;
  height: 20px;
}
.social-link:hover,
.social-link:focus-visible,
.social-links a:hover,
.social-links a:focus-visible {
  color: #fff;
  transform: translateY(-3px) scale(1.03);
  border-color: color-mix(in srgb, var(--social-color) 68%, white 32%);
  background: color-mix(in srgb, var(--social-color) 20%, rgba(15, 23, 42, 0.88) 80%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--social-color) 35%, transparent), 0 0 18px color-mix(in srgb, var(--social-color) 55%, transparent), 0 0 34px color-mix(in srgb, var(--social-color) 35%, transparent), 0 16px 30px rgba(2, 6, 23, .28);
}
.social-link--instagram { --social-color: #e1306c; }
.social-link--linkedin { --social-color: #0a66c2; }
.social-link--facebook { --social-color: #1877f2; }
.social-link--x { --social-color: #111111; }
html[data-theme="light"] .social-link:hover,
html[data-theme="light"] .social-link:focus-visible,
html[data-theme="light"] .social-links a:hover,
html[data-theme="light"] .social-links a:focus-visible {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--social-color) 28%, rgba(15,23,42,.18)), 0 0 16px color-mix(in srgb, var(--social-color) 45%, transparent), 0 14px 24px rgba(15, 23, 42, .12);
}
.footer-bottom {
  border-top: 1px solid rgba(148,163,184,.18); padding: 24px 0 32px; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: #94a3b8; font-size: .95rem;
}
.footer-legal { display: flex; gap: 24px; flex-wrap: wrap; }

.whatsapp-button {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  color: #fff;
  background: var(--green);
  cursor: pointer;
  box-shadow: 0 20px 40px rgba(34, 197, 94, 0.35);
  transform: scale(.85);
  opacity: 0;
  pointer-events: none;
  transition:
    transform .25s ease,
    opacity .25s ease,
    width .25s ease,
    gap .25s ease,
    padding .25s ease;
  overflow: hidden;
  padding: 0 16px;
  white-space: nowrap;
}
.whatsapp-button.show {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}
.whatsapp-button:hover {
  width: 220px;
  justify-content: flex-start;
  gap: 12px;
}
.whatsapp-button svg {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  display: block;
  flex-shrink: 0;
}
.whatsapp-button span {
  font-weight: 700;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transition: opacity .2s ease, max-width .25s ease;
}
.whatsapp-button:hover span {
  opacity: 1;
  max-width: 180px;
}

.toast-stack { position: fixed; inset: auto 16px 16px auto; z-index: 80; display: grid; gap: 12px; max-width: 360px; }
.toast {
  padding: 16px 18px; border-radius: 18px; background: #fff; color: var(--text); border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(15,23,42,.16); animation: toast-in .25s ease;
}
.toast.error { border-color: #fecaca; background: #fff7f7; }
.toast strong { display: block; margin-bottom: 6px; }
.toast p { margin: 0; color: #334155; line-height: 1.55; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-copy p { margin-left: auto; margin-right: auto; }
  .hero-metrics { grid-template-columns: 1fr; }
  .hero-showcase { max-width: 640px; margin: 0 auto; }
}

@media (max-width: 820px) {
  .cursor-glow { display: none; }
  .hero-content { gap: 28px; }
  .browser-content { grid-template-columns: 1fr; }
  .browser-sidebar { grid-auto-flow: column; grid-template-columns: repeat(4, 1fr); }
  .badge-one { right: 10px; top: 10px; }
  .badge-two { left: 10px; bottom: 10px; }
  .desktop-nav { display: none; }
  .menu-toggle { display: inline-block; }
  .section { padding: 76px 0; }
  .grid-2, .grid-3, .grid-4, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .whatsapp-button:hover { width: 56px; gap: 0; justify-content: center; }
  .whatsapp-button:hover span { opacity: 0; max-width: 0; }
}


/* Ajustes visuales para tarjetas de planes */
.pricing-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding-top: 34px;
}

.pricing-card h3 {
  line-height: 1.15;
  margin-bottom: 14px;
}

.price-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.price-value {
  line-height: 0.95;
  word-break: keep-all;
}

.price-currency {
  flex: 0 0 auto;
  margin-bottom: 8px;
}

.pricing-features {
  display: grid;
  gap: 14px;
  align-content: start;
  margin-bottom: 26px;
}

.pricing-features li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.pricing-features li span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.6;
}

.pricing-card .btn {
  margin-top: auto;
}

.pricing-card.recommended { border-color: var(--blue-dark); box-shadow: 0 22px 48px rgba(29,78,216,.16); }

@media (max-width: 640px) {
  .pricing-card {
    padding-top: 44px;
  }

  .plan-badge {
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100% - 32px);
    text-align: center;
    white-space: nowrap;
  }

  .price-row {
    gap: 6px;
  }

  .price-value {
    font-size: clamp(2.1rem, 8vw, 3rem);
  }

  .price-currency {
    margin-bottom: 5px;
  }

  .pricing-features li {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
  }
}
.brand {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.brand-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
}

/* Logo dinámico por modo visual */
.theme-logo {
  transition: opacity .2s ease, transform .2s ease;
}

.theme-logo--dark {
  display: none;
}

html[data-theme="dark"] .theme-logo--light {
  display: none;
}

html[data-theme="dark"] .theme-logo--dark {
  display: block;
}

html[data-theme="light"] .theme-logo--light {
  display: block;
}

html[data-theme="light"] .theme-logo--dark {
  display: none;
}

.brand .theme-logo {
  flex: 0 0 auto;
}

/* Ajustes de contraste y jerarquía */
.section-head p, .card p, .timeline-content p, .pricing-features li, .testimonial-card p, .project-overlay p, .form-help, .price-currency, .person span { color: var(--muted); }
.card h3, .pricing-card h3, .timeline-content h3, .project-overlay h3 { color: #0f172a; }
.testimonial-card .testimonial-text { color: #1e293b; }
.metric-card strong { color: #ffffff; }
.metric-card span { color: rgba(255,255,255,.88); }
.browser-sidebar, .browser-main { background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.08); }
.floating-badge { border: 1px solid rgba(203,213,225,.7); }


/* ==============================
   Mejora profunda de contraste + modo claro/oscuro
   ============================== */
:root {
  --page-bg: #f5f8fc;
  --page-bg-alt: #ecf3fb;
  --section-alt-start: rgba(255, 255, 255, 0.72);
  --section-alt-end: #edf3fb;
  --surface-1: rgba(255, 255, 255, 0.97);
  --surface-2: #ffffff;
  --surface-3: #f8fbff;
  --surface-soft: #f1f5f9;
  --input-bg: #ffffff;
  --text: #0f172a;
  --text-soft: #334155;
  --text-muted: #475569;
  --text-inverse: #f8fafc;
  --border: rgba(148, 163, 184, 0.24);
  --border-strong: rgba(100, 116, 139, 0.32);
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.15);
  --header-text: rgba(255, 255, 255, 0.98);
  --header-solid-text: #0f172a;
  --header-muted: rgba(255, 255, 255, 0.82);
  --header-solid-bg: rgba(255, 255, 255, 0.92);
  --header-solid-border: rgba(203, 213, 225, 0.72);
  --mobile-menu-bg: rgba(255, 255, 255, 0.98);
  --mobile-menu-text: #0f172a;
  --hero-accent: rgba(255, 255, 255, 0.14);
  --hero-start: #0b1220;
  --hero-mid: #173f9a;
  --hero-end: #5b21b6;
}

html[data-theme="dark"] {
  --page-bg: #07101d;
  --page-bg-alt: #0a1426;
  --section-alt-start: rgba(7, 16, 29, 0.96);
  --section-alt-end: #0b172a;
  --surface-1: rgba(13, 23, 40, 0.96);
  --surface-2: #101b31;
  --surface-3: #14213a;
  --surface-soft: #15233d;
  --input-bg: #0d172b;
  --text: #e7eef9;
  --text-soft: #cbd5e1;
  --text-muted: #9fb0c6;
  --text-inverse: #f8fafc;
  --border: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(148, 163, 184, 0.26);
  --shadow: 0 20px 52px rgba(2, 6, 23, 0.44);
  --shadow-lg: 0 28px 72px rgba(2, 6, 23, 0.56);
  --header-text: rgba(255, 255, 255, 0.98);
  --header-solid-text: #e7eef9;
  --header-muted: rgba(255, 255, 255, 0.84);
  --header-solid-bg: rgba(8, 16, 29, 0.86);
  --header-solid-border: rgba(51, 65, 85, 0.85);
  --mobile-menu-bg: rgba(8, 16, 29, 0.98);
  --mobile-menu-text: #e7eef9;
  --hero-accent: rgba(255, 255, 255, 0.10);
  --hero-start: #050b16;
  --hero-mid: #112f77;
  --hero-end: #4c1d95;
}

html { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }

body {
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.09), transparent 28%),
    radial-gradient(circle at top right, rgba(109, 40, 217, 0.09), transparent 24%),
    linear-gradient(180deg, var(--page-bg), var(--page-bg-alt) 42%, var(--page-bg) 100%);
}

html[data-theme="dark"] body::before {
  background-image:
    linear-gradient(rgba(71, 85, 105, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(71, 85, 105, 0.16) 1px, transparent 1px);
  opacity: 0.3;
}

.section-alt {
  background: linear-gradient(180deg, var(--section-alt-start) 0%, var(--section-alt-end) 100%);
}

.section-head p,
.card p,
.timeline-content p,
.pricing-features li,
.testimonial-card p,
.project-overlay p,
.form-help,
.price-currency,
.person span,
.footer-copy,
.footer-contact a,
.footer-bottom,
.toast p {
  color: var(--text-soft);
}

.card h3,
.pricing-card h3,
.timeline-content h3,
.project-overlay h3,
.testimonial-card strong,
label > span,
.footer-brand,
.site-footer h3,
.footer-legal a,
.footer-bottom p,
.footer-bottom a,
.brand,
.brand-text {
  color: var(--text);
}

.site-header {
  border-bottom: 1px solid transparent;
}

.site-header:not(.scrolled) .brand,
.site-header:not(.scrolled) .desktop-nav button,
.site-header:not(.scrolled) .menu-toggle,
.site-header:not(.scrolled) .theme-toggle {
  color: var(--header-text);
}

.site-header:not(.scrolled) .desktop-nav button:hover,
.site-header:not(.scrolled) .desktop-nav button.active {
  color: #ffffff;
}

.site-header:not(.scrolled) .menu-toggle span {
  background: currentColor;
}

.site-header.scrolled {
  background: var(--header-solid-bg);
  border-bottom: 1px solid var(--header-solid-border);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(16px);
}

.site-header.scrolled .brand,
.site-header.scrolled .desktop-nav button,
.site-header.scrolled .menu-toggle,
.site-header.scrolled .theme-toggle {
  color: var(--header-solid-text);
}

.site-header.scrolled .desktop-nav button:hover,
.site-header.scrolled .desktop-nav button.active,
.mobile-menu button:hover,
.mobile-menu button.active {
  color: var(--blue-dark);
}

.menu-toggle span { background: currentColor; }
.brand-logo {
  height: 52px;
  filter: drop-shadow(0 10px 22px rgba(2, 6, 23, 0.20));
}

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

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 8px 10px 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.10);
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.16);
  backdrop-filter: blur(14px);
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(2, 6, 23, 0.20);
}

.site-header.scrolled .theme-toggle {
  background: rgba(241, 245, 249, 0.92);
  border-color: rgba(148, 163, 184, 0.28);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.10);
}

html[data-theme="dark"] .site-header.scrolled .theme-toggle {
  background: rgba(15, 23, 42, 0.84);
  border-color: rgba(148, 163, 184, 0.18);
}

.theme-toggle-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1;
}

.theme-toggle-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  opacity: 0.72;
}

.theme-toggle-value {
  font-size: 0.92rem;
  font-weight: 800;
}

.theme-toggle-switch {
  position: relative;
  width: 54px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.site-header.scrolled .theme-toggle-switch {
  background: #dbe4f0;
  border-color: rgba(148, 163, 184, 0.24);
}

html[data-theme="dark"] .site-header.scrolled .theme-toggle-switch {
  background: rgba(30, 41, 59, 0.88);
  border-color: rgba(148, 163, 184, 0.18);
}

.theme-toggle-thumb {
  position: absolute;
  inset: 3px auto 3px 3px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffffff, #dbeafe);
  color: #0f172a;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
  display: grid;
  place-items: center;
  transition: transform .28s ease, background .28s ease, color .28s ease;
}

html[data-theme="dark"] .theme-toggle-thumb {
  transform: translateX(24px);
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #ffffff;
}

.theme-icon { position: absolute; width: 14px; height: 14px; transition: opacity .22s ease, transform .22s ease; }
.theme-icon.sun { opacity: 1; transform: scale(1); }
.theme-icon.moon { opacity: 0; transform: scale(0.7); }
html[data-theme="dark"] .theme-icon.sun { opacity: 0; transform: scale(0.7); }
html[data-theme="dark"] .theme-icon.moon { opacity: 1; transform: scale(1); }

.mobile-menu {
  background: var(--mobile-menu-bg);
  color: var(--mobile-menu-text);
  border-top: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.mobile-menu button {
  color: var(--mobile-menu-text);
}

.mobile-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-2), var(--surface-3));
  color: var(--text);
  font-weight: 700;
}

.mobile-theme-toggle strong {
  color: var(--blue-dark);
}

.hero-section {
  background:
    radial-gradient(circle at 10% 18%, rgba(34, 211, 238, 0.18), transparent 24%),
    radial-gradient(circle at 92% 12%, rgba(124, 58, 237, 0.24), transparent 32%),
    linear-gradient(135deg, var(--hero-start) 0%, var(--hero-mid) 40%, #1d4ed8 68%, var(--hero-end) 100%);
}

.eyebrow {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.card,
.testimonial-card,
.pricing-card,
.timeline-item,
.contact-form {
  background: linear-gradient(180deg, var(--surface-2), var(--surface-3));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.card:hover,
.pricing-card:hover,
.testimonial-card:hover,
.timeline-item:hover,
.service-card:hover,
.contact-form:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.22);
}

.project-card {
  box-shadow: var(--shadow-lg);
}

.pricing-card.recommended {
  border-color: rgba(37, 99, 235, 0.38);
  box-shadow: 0 22px 50px rgba(37, 99, 235, 0.16);
}

html[data-theme="dark"] .pricing-card.recommended {
  border-color: rgba(96, 165, 250, 0.38);
  box-shadow: 0 24px 52px rgba(30, 64, 175, 0.34);
}

.plan-badge,
.btn-primary,
.cta-band,
.icon-badge,
.timeline-icon {
  background: linear-gradient(135deg, var(--blue-dark), var(--purple));
}

.pricing-card .btn:not(.btn-primary) {
  background: rgba(37, 99, 235, 0.08);
  color: var(--blue-dark);
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.pricing-card .btn:not(.btn-primary):hover {
  background: rgba(37, 99, 235, 0.12);
}

html[data-theme="dark"] .pricing-card .btn:not(.btn-primary) {
  background: rgba(37, 99, 235, 0.18);
  color: #dbeafe;
  border-color: rgba(96, 165, 250, 0.22);
}

.project-chip {
  background: linear-gradient(135deg, var(--blue-dark), var(--purple));
}

.timeline-number {
  color: rgba(37, 99, 235, 0.16);
}

html[data-theme="dark"] .timeline-number {
  color: rgba(96, 165, 250, 0.16);
}

input,
select,
textarea {
  background: var(--input-bg);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(37, 99, 235, 0.35);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue-dark);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16);
}

.contact-form {
  background:
    linear-gradient(180deg, var(--surface-2), var(--surface-3)),
    linear-gradient(135deg, rgba(37, 99, 235, 0.07), rgba(109, 40, 217, 0.05));
}

.cta-band {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.site-footer {
  background: #0b1220;
  color: #dbe6f4;
}

html[data-theme="dark"] .site-footer {
  background: #040a14;
}

.site-footer .footer-copy,
.site-footer .footer-contact a,
.site-footer .footer-bottom,
.site-footer .footer-legal a {
  color: #c0cfdf;
}

.site-footer .brand,
.site-footer .footer-brand,
.site-footer h3 {
  color: #ffffff;
}

.social-links a,
.social-link {
  background: rgba(15, 23, 42, 0.82);
  color: #e2e8f0;
}

.toast {
  background: linear-gradient(180deg, var(--surface-2), var(--surface-3));
  color: var(--text);
  border: 1px solid var(--border);
}

.toast.error {
  border-color: rgba(248, 113, 113, 0.26);
  background: linear-gradient(180deg, rgba(255, 247, 247, 0.98), rgba(255, 241, 242, 0.98));
}

html[data-theme="dark"] .toast.error {
  border-color: rgba(248, 113, 113, 0.28);
  background: linear-gradient(180deg, rgba(69, 10, 10, 0.92), rgba(76, 5, 25, 0.92));
}

.whatsapp-button {
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
}

@media (max-width: 860px) {
  .theme-toggle-copy {
    display: none;
  }

  .theme-toggle {
    padding: 8px;
  }
}

@media (max-width: 768px) {
  .nav-actions {
    gap: 8px;
  }

  .theme-toggle {
    min-height: 44px;
  }

  .theme-toggle-switch {
    width: 50px;
  }

  html[data-theme="dark"] .theme-toggle-thumb {
    transform: translateX(20px);
  }
}

@media (max-width: 640px) {
  .theme-toggle {
    padding: 7px;
  }

  .brand-logo {
    height: 46px;
  }
}


/* Corrección visual del badge recomendado */
.pricing-card {
  overflow: visible;
}

.plan-badge {
  position: relative;
  z-index: 3;
  margin-top: -18px;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.18);
}

@media (max-width: 640px) {
  .pricing-card {
    padding-top: 52px;
  }

  .plan-badge {
    top: -12px;
    z-index: 3;
  }
}


/* Corrección de contraste en párrafos de la sección Nuestros proyectos */
.project-overlay,
.project-overlay h3,
.project-overlay p,
.project-link {
  color: #f8fafc;
}

.project-overlay p {
  color: rgba(248, 250, 252, 0.92);
  text-shadow: 0 2px 10px rgba(15, 23, 42, 0.35);
}

.project-overlay h3 {
  color: #ffffff;
  text-shadow: 0 3px 14px rgba(15, 23, 42, 0.4);
}

.project-link {
  color: #bfdbfe;
}

.project-link:hover {
  color: #ffffff;
}

html[data-theme="dark"] .project-overlay p {
  color: rgba(241, 245, 249, 0.94);
}



/* Efecto tipo 3D scroll trigger para testimonios */
.testimonials-3d {
  display: grid;
  gap: 22px;
  perspective: 1400px;
  perspective-origin: center;
}

.testimonial-marquee {
  position: relative;
  overflow: hidden;
  padding: 10px 4px;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.testimonial-track {
  display: inline-flex;
  gap: 24px;
  will-change: transform;
  transform-style: preserve-3d;
  padding: 12px 0;
}

.testimonial-fx-card {
  width: min(420px, calc(100vw - 56px));
  min-width: min(420px, calc(100vw - 56px));
  border-radius: 28px;
  padding: 30px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(241,245,249,0.98));
  border: 1px solid rgba(148,163,184,.24);
  box-shadow:
    0 24px 48px rgba(15,23,42,.12),
    inset 0 1px 0 rgba(255,255,255,.65);
  transform-style: preserve-3d;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.testimonial-fx-card > * {
  position: relative;
  z-index: 1;
}

.testimonial-fx-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(59,130,246,.16), transparent 36%),
    linear-gradient(135deg, rgba(255,255,255,.32), transparent 58%, rgba(99,102,241,.08));
  opacity: .9;
  pointer-events: none;
}

.testimonial-fx-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(59,130,246,.24);
  box-shadow:
    0 28px 58px rgba(15,23,42,.16),
    inset 0 1px 0 rgba(255,255,255,.72);
}

.testimonial-fx-card .quote-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue-dark), var(--purple));
  box-shadow: 0 16px 30px rgba(37,99,235,.18);
  margin-bottom: 18px;
}

.testimonial-fx-card .testimonial-text {
  margin: 0 0 24px;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.8;
}

.testimonial-fx-card .person {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(148,163,184,.18);
}

.testimonial-fx-card .person img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,.9);
  box-shadow: 0 8px 18px rgba(15,23,42,.12);
}

.testimonial-fx-card .person strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}

.testimonial-fx-card .person span {
  color: var(--text-soft);
}

html[data-theme="dark"] .testimonial-fx-card {
  background:
    linear-gradient(180deg, rgba(15,23,42,.96), rgba(17,24,39,.98));
  border-color: rgba(148,163,184,.14);
  box-shadow:
    0 24px 56px rgba(2,6,23,.42),
    inset 0 1px 0 rgba(255,255,255,.04);
}

html[data-theme="dark"] .testimonial-fx-card::before {
  background:
    radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(59,130,246,.18), transparent 34%),
    linear-gradient(135deg, rgba(96,165,250,.10), transparent 56%, rgba(167,139,250,.10));
}

html[data-theme="dark"] .testimonial-fx-card:hover {
  border-color: rgba(96,165,250,.26);
  box-shadow:
    0 28px 62px rgba(2,6,23,.52),
    inset 0 1px 0 rgba(255,255,255,.05);
}

html[data-theme="dark"] .testimonial-fx-card .testimonial-text,
html[data-theme="dark"] .testimonial-fx-card .person strong {
  color: #f8fafc;
}

html[data-theme="dark"] .testimonial-fx-card .person span {
  color: #cbd5e1;
}

html[data-theme="dark"] .testimonial-fx-card .person {
  border-top-color: rgba(148,163,184,.14);
}

@media (max-width: 768px) {
  .testimonials-3d {
    gap: 16px;
  }

  .testimonial-track {
    gap: 18px;
  }

  .testimonial-fx-card {
    width: min(340px, calc(100vw - 40px));
    min-width: min(340px, calc(100vw - 40px));
    padding: 24px;
    border-radius: 24px;
  }

  .testimonial-marquee {
    mask-image: none;
    -webkit-mask-image: none;
  }
}


/* Particle orbit effect adaptado a vanilla JS */
.particle-orbit-layer {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.72;
  mix-blend-mode: screen;
}

.particle-orbit-layer canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.site-header,
main,
.site-footer,
.whatsapp-button,
.toast-stack {
  position: relative;
}

.site-header,
main,
.site-footer,
.whatsapp-button,
.toast-stack {
  z-index: 3;
}

html[data-theme="dark"] .particle-orbit-layer {
  opacity: 0.86;
}

@media (max-width: 768px) {
  .particle-orbit-layer {
    opacity: 0.48;
  }
}

@media (prefers-reduced-motion: reduce) {
  .particle-orbit-layer {
    display: none;
  }
}


/* Corrección de interacción del formulario */
.particle-orbit-layer,
.particle-orbit-layer *,
.cursor-glow,
.hero-particles,
.hero-particles *,
.ascii-wave-layer,
.ascii-wave-layer *,
.hero-grid-pattern,
.hero-overlay,
.hero-bg {
  pointer-events: none !important;
}

body,
main,
section,
.container,
.contact-wrap,
.contact-form,
.form-grid,
.contact-form label,
.contact-form input,
.contact-form select,
.contact-form textarea,
.contact-form button,
.contact-form .btn-submit {
  position: relative;
}

#contacto,
.contact-wrap,
.contact-form {
  z-index: 12;
}

.contact-form {
  isolation: isolate;
}

.contact-form label,
.contact-form input,
.contact-form select,
.contact-form textarea,
.contact-form button {
  pointer-events: auto;
}

input,
select,
textarea {
  -webkit-appearance: none;
  appearance: none;
}

input:disabled,
select:disabled,
textarea:disabled,
button:disabled {
  cursor: not-allowed;
}


/* Partículas siempre por encima de toda la interfaz */
.particle-orbit-layer {
  position: fixed;
  inset: 0;
  z-index: 99999 !important;
  pointer-events: none !important;
}

.particle-orbit-layer canvas {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none !important;
}

.site-header,
main,
.site-footer,
.toast-stack,
.contact-form,
.mobile-menu,
.menu-toggle,
.theme-toggle {
  z-index: auto;
}

.cursor-glow {
  z-index: 99998 !important;
  pointer-events: none !important;
}


/* Ajustes finales: WhatsApp + armonía modo claro */
:root {
  --page-bg: #f6f9fc;
  --page-bg-alt: #edf3fb;
  --section-alt-start: rgba(255, 255, 255, 0.82);
  --section-alt-end: #eef4fb;
  --surface-1: rgba(255, 255, 255, 0.98);
  --surface-2: #ffffff;
  --surface-3: #f8fbff;
  --surface-soft: #eef4f9;
  --input-bg: #ffffff;
  --text: #0f172a;
  --text-soft: #3b4a62;
  --text-muted: #5b6b82;
  --border: rgba(148, 163, 184, 0.22);
  --border-strong: rgba(100, 116, 139, 0.28);
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.12);
  --header-solid-bg: rgba(255, 255, 255, 0.88);
  --header-solid-border: rgba(203, 213, 225, 0.62);
  --mobile-menu-bg: rgba(255, 255, 255, 0.98);
}

body {
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.07), transparent 28%),
    radial-gradient(circle at top right, rgba(109, 40, 217, 0.06), transparent 24%),
    linear-gradient(180deg, var(--page-bg), var(--page-bg-alt) 42%, var(--page-bg) 100%);
}

.section-alt {
  background: linear-gradient(180deg, var(--section-alt-start) 0%, var(--section-alt-end) 100%);
}

.card,
.testimonial-card,
.pricing-card,
.timeline-item,
.contact-form {
  background: linear-gradient(180deg, var(--surface-2), var(--surface-3));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.card:hover,
.pricing-card:hover,
.testimonial-card:hover,
.timeline-item:hover,
.service-card:hover,
.contact-form:hover {
  box-shadow: var(--shadow-lg);
}

.site-header.scrolled {
  background: var(--header-solid-bg);
  border-bottom: 1px solid var(--header-solid-border);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.10);
}

.theme-toggle {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.site-header.scrolled .theme-toggle {
  background: rgba(248, 250, 252, 0.96);
  border-color: rgba(148, 163, 184, 0.22);
}

.project-chip,
.plan-badge,
.btn-primary,
.icon-badge,
.timeline-icon {
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.16);
}

/* Restaurar botón de WhatsApp */
.whatsapp-button {
  position: fixed !important;
  right: 24px !important;
  bottom: 24px !important;
  left: auto !important;
  top: auto !important;
  z-index: 9999 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 14px 18px !important;
  border-radius: 999px !important;
  background: #22c55e !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 18px 40px rgba(34, 197, 94, 0.28), 0 10px 24px rgba(15, 23, 42, 0.16) !important;
  transform: translateY(18px);
  opacity: 0;
  transition: transform .28s ease, opacity .28s ease, box-shadow .24s ease, filter .24s ease !important;
}

.whatsapp-button.show {
  transform: translateY(0);
  opacity: 1;
}

.whatsapp-button:hover {
  box-shadow: 0 22px 46px rgba(34, 197, 94, 0.34), 0 14px 28px rgba(15, 23, 42, 0.18) !important;
  filter: saturate(1.02);
}

.whatsapp-button svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.whatsapp-button span {
  display: inline-block;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .whatsapp-button {
    right: 16px !important;
    bottom: 16px !important;
    padding: 13px 16px !important;
  }

  .whatsapp-button span {
    font-size: 0.94rem;
  }
}


/* Corrección profunda: header claro + WhatsApp */
html[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(203, 213, 225, 0.42);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .site-header:not(.scrolled),
html[data-theme="light"] .site-header.scrolled {
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(203, 213, 225, 0.56);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .site-header:not(.scrolled) .brand,
html[data-theme="light"] .site-header:not(.scrolled) .desktop-nav button,
html[data-theme="light"] .site-header:not(.scrolled) .menu-toggle,
html[data-theme="light"] .site-header:not(.scrolled) .theme-toggle,
html[data-theme="light"] .site-header.scrolled .brand,
html[data-theme="light"] .site-header.scrolled .desktop-nav button,
html[data-theme="light"] .site-header.scrolled .menu-toggle,
html[data-theme="light"] .site-header.scrolled .theme-toggle {
  color: #0f172a !important;
}

html[data-theme="light"] .site-header:not(.scrolled) .desktop-nav button:hover,
html[data-theme="light"] .site-header:not(.scrolled) .desktop-nav button.active,
html[data-theme="light"] .site-header.scrolled .desktop-nav button:hover,
html[data-theme="light"] .site-header.scrolled .desktop-nav button.active {
  color: var(--blue-dark) !important;
}

html[data-theme="light"] .site-header .menu-toggle span {
  background: #0f172a !important;
}

html[data-theme="light"] .site-header .theme-toggle {
  background: rgba(248, 250, 252, 0.96) !important;
  border: 1px solid rgba(148, 163, 184, 0.24) !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10) !important;
}

html[data-theme="light"] .site-header .theme-toggle-switch {
  background: #dbe4f0 !important;
  border-color: rgba(148, 163, 184, 0.20) !important;
}

html[data-theme="light"] .site-header .theme-toggle-thumb {
  background: linear-gradient(135deg, #ffffff, #dbeafe) !important;
  color: #0f172a !important;
}

/* WhatsApp limpio y estable */
.whatsapp-button {
  position: fixed !important;
  right: 22px !important;
  bottom: 22px !important;
  left: auto !important;
  top: auto !important;
  z-index: 10000 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: 58px !important;
  padding: 0 18px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #22c55e, #16a34a) !important;
  color: #ffffff !important;
  white-space: nowrap !important;
  line-height: 1 !important;
  text-decoration: none !important;
  box-shadow: 0 18px 40px rgba(22, 163, 74, 0.28), 0 10px 24px rgba(15, 23, 42, 0.16) !important;
  transform: translate3d(0, 18px, 0) !important;
  opacity: 0 !important;
  overflow: visible !important;
  filter: none !important;
  transition: transform .28s ease, opacity .28s ease, box-shadow .25s ease !important;
}

.whatsapp-button.show {
  transform: translate3d(0, 0, 0) !important;
  opacity: 1 !important;
}

.whatsapp-button:hover {
  transform: translate3d(0, -2px, 0) !important;
  box-shadow: 0 24px 48px rgba(22, 163, 74, 0.34), 0 14px 28px rgba(15, 23, 42, 0.18) !important;
}

.whatsapp-button svg {
  width: 22px !important;
  height: 22px !important;
  display: block !important;
  flex: 0 0 auto !important;
}

.whatsapp-button span {
  display: inline-block !important;
  font-size: 0.97rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  margin: 0 !important;
  padding: 0 !important;
}

@media (max-width: 768px) {
  .whatsapp-button {
    right: 16px !important;
    bottom: 16px !important;
    min-height: 54px !important;
    padding: 0 16px !important;
  }

  .whatsapp-button span {
    font-size: 0.92rem !important;
  }
}

@media (max-width: 520px) {
  .whatsapp-button {
    min-height: 52px !important;
    padding: 0 14px !important;
    gap: 8px !important;
  }

  .whatsapp-button svg {
    width: 20px !important;
    height: 20px !important;
  }

  .whatsapp-button span {
    font-size: 0.88rem !important;
  }
}


/* Ajuste final del badge recomendado en plan Premium */
.pricing-card.recommended {
  position: relative;
  padding-top: 58px;
}

.pricing-card.recommended .plan-badge {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  z-index: 5;
  white-space: nowrap;
}

.pricing-card.recommended h3 {
  margin-top: 0;
}

@media (max-width: 640px) {
  .pricing-card.recommended {
    padding-top: 62px;
  }

  .pricing-card.recommended .plan-badge {
    top: 14px;
    max-width: calc(100% - 24px);
  }
}


/* === Floating contact stack + assistant fix === */
.floating-contact-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 140;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.floating-contact-stack .whatsapp-button {
  position: static !important;
  width: 62px !important;
  height: 62px !important;
  min-width: 62px !important;
  min-height: 62px !important;
  border-radius: 999px !important;
  padding: 0 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  white-space: nowrap;
}

.floating-contact-stack .whatsapp-button span {
  display: none !important;
}

.floating-contact-stack .whatsapp-button svg {
  width: 28px !important;
  height: 28px !important;
  flex: 0 0 28px;
}

.floating-contact-stack .whatsapp-button:hover {
  width: 62px !important;
  transform: translateY(-4px) scale(1.04);
}

.site-assistant {
  position: relative;
}

.site-assistant__toggle {
  min-width: 62px;
  height: 62px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.28);
  transition: transform .24s ease, box-shadow .24s ease, filter .24s ease;
}

.site-assistant__toggle:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 24px 50px rgba(37, 99, 235, 0.34);
}

.site-assistant__toggle-icon {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}

.site-assistant__toggle-icon svg {
  width: 100%;
  height: 100%;
}

.site-assistant__toggle-copy {
  font-weight: 700;
  font-size: .92rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-assistant__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 14px);
  width: min(360px, calc(100vw - 28px));
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(20px);
}

.site-assistant__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  color: #fff;
  background: linear-gradient(135deg, #0f172a, #2563eb 65%, #7c3aed);
}

.site-assistant__header strong {
  display: block;
  font-size: 1rem;
}

.site-assistant__header p {
  margin: 4px 0 0;
  font-size: .82rem;
  opacity: .88;
}

.site-assistant__close {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.site-assistant__messages {
  max-height: 280px;
  overflow: auto;
  padding: 16px;
  display: grid;
  gap: 10px;
  background: linear-gradient(180deg, rgba(248, 250, 252, .96), rgba(255, 255, 255, .98));
}

.site-assistant__message {
  max-width: 88%;
  padding: 11px 13px;
  border-radius: 16px;
  line-height: 1.5;
  font-size: .92rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.site-assistant__message.is-bot {
  justify-self: start;
  color: #0f172a;
  background: #e2e8f0;
}

.site-assistant__message.is-user {
  justify-self: end;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.site-assistant__quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 14px;
  background: rgba(255,255,255,.96);
}

.site-assistant__chip {
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
}

.site-assistant__form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 0 16px 16px;
  background: rgba(255,255,255,.96);
}

.site-assistant__form input {
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text-primary, #0f172a);
  background: rgba(248, 250, 252, 0.95);
}

.site-assistant__form button {
  border: 0;
  border-radius: 14px;
  padding: 0 16px;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  cursor: pointer;
}

html[data-theme="dark"] .site-assistant__panel {
  background: rgba(15, 23, 42, 0.94);
  border-color: rgba(148, 163, 184, 0.16);
}
html[data-theme="dark"] .site-assistant__messages,
html[data-theme="dark"] .site-assistant__quick-actions,
html[data-theme="dark"] .site-assistant__form {
  background: rgba(15, 23, 42, 0.94);
}
html[data-theme="dark"] .site-assistant__message.is-bot {
  color: #e2e8f0;
  background: rgba(51, 65, 85, 0.88);
}
html[data-theme="dark"] .site-assistant__chip {
  color: #bfdbfe;
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(96, 165, 250, 0.22);
}
html[data-theme="dark"] .site-assistant__form input {
  color: #e2e8f0;
  background: rgba(30, 41, 59, 0.92);
  border-color: rgba(148, 163, 184, 0.22);
}

@media (max-width: 767px) {
  .floating-contact-stack {
    right: 14px;
    bottom: 14px;
    gap: 10px;
  }

  .site-assistant__toggle {
    width: 58px;
    min-width: 58px;
    height: 58px;
    padding: 0;
    border-radius: 999px;
  }

  .site-assistant__toggle-copy {
    display: none;
  }

  .floating-contact-stack .whatsapp-button {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    min-height: 58px !important;
  }

  .floating-contact-stack .whatsapp-button:hover {
    width: 58px !important;
  }
}

/* === FIX DEFINITIVO: header pegajoso real === */
:root {
  --header-height-final: 88px;
}

.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: auto !important;
  width: 100% !important;
  z-index: 1000 !important;
  background: transparent !important;
  border-bottom: 1px solid transparent !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  transform: translateY(0) !important;
}

.site-header .nav-wrap {
  min-height: var(--header-height-final) !important;
}

.site-header:not(.scrolled) {
  background: linear-gradient(180deg, rgba(7, 11, 28, 0.34), rgba(7, 11, 28, 0.08)) !important;
  backdrop-filter: blur(6px) !important;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.88) !important;
  border-bottom: 1px solid rgba(203, 213, 225, 0.55) !important;
  backdrop-filter: blur(16px) !important;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.10) !important;
}

html[data-theme="dark"] .site-header.scrolled {
  background: rgba(8, 15, 28, 0.84) !important;
  border-bottom: 1px solid rgba(51, 65, 85, 0.72) !important;
}

html[data-theme="light"] .site-header:not(.scrolled) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)) !important;
  border-bottom: 1px solid transparent !important;
  box-shadow: none !important;
}

html[data-theme="light"] .site-header:not(.scrolled) .brand,
html[data-theme="light"] .site-header:not(.scrolled) .desktop-nav button,
html[data-theme="light"] .site-header:not(.scrolled) .menu-toggle,
html[data-theme="light"] .site-header:not(.scrolled) .theme-toggle {
  color: #ffffff !important;
}

html[data-theme="light"] .site-header:not(.scrolled) .desktop-nav button:hover,
html[data-theme="light"] .site-header:not(.scrolled) .desktop-nav button.active {
  color: #ffffff !important;
}

html[data-theme="light"] .site-header:not(.scrolled) .menu-toggle span {
  background: #ffffff !important;
}

main,
.site-footer {
  position: relative;
  z-index: 2;
}

section[id] {
  scroll-margin-top: calc(var(--header-height-final) + 18px);
}

@media (max-width: 767px) {
  :root {
    --header-height-final: 76px;
  }

  .site-header .nav-wrap {
    min-height: var(--header-height-final) !important;
  }
}


/* === Ajuste fino: contraste fuerte en modo claro para header y footer === */
html[data-theme="light"] .site-header:not(.scrolled),
html[data-theme="light"] .site-header.scrolled {
  background: rgba(255, 255, 255, 0.92) !important;
  border-bottom: 1px solid rgba(203, 213, 225, 0.72) !important;
  backdrop-filter: blur(14px) !important;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .site-header:not(.scrolled) .brand,
html[data-theme="light"] .site-header:not(.scrolled) .desktop-nav button,
html[data-theme="light"] .site-header:not(.scrolled) .menu-toggle,
html[data-theme="light"] .site-header:not(.scrolled) .theme-toggle,
html[data-theme="light"] .site-header.scrolled .brand,
html[data-theme="light"] .site-header.scrolled .desktop-nav button,
html[data-theme="light"] .site-header.scrolled .menu-toggle,
html[data-theme="light"] .site-header.scrolled .theme-toggle {
  color: #0f172a !important;
}

html[data-theme="light"] .site-header:not(.scrolled) .desktop-nav button,
html[data-theme="light"] .site-header.scrolled .desktop-nav button {
  opacity: 0.94;
}

html[data-theme="light"] .site-header:not(.scrolled) .desktop-nav button:hover,
html[data-theme="light"] .site-header:not(.scrolled) .desktop-nav button.active,
html[data-theme="light"] .site-header.scrolled .desktop-nav button:hover,
html[data-theme="light"] .site-header.scrolled .desktop-nav button.active {
  color: #335cff !important;
  opacity: 1;
}

html[data-theme="light"] .site-header:not(.scrolled) .menu-toggle span,
html[data-theme="light"] .site-header.scrolled .menu-toggle span {
  background: #0f172a !important;
}

html[data-theme="light"] .site-header .theme-toggle-title,
html[data-theme="light"] .site-header .theme-toggle-value,
html[data-theme="light"] .site-header .theme-toggle-copy {
  color: #0f172a !important;
}

html[data-theme="light"] .site-footer {
  background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%) !important;
  border-top: 1px solid rgba(203, 213, 225, 0.8);
}

html[data-theme="light"] .site-footer::before {
  opacity: 0.35;
}

html[data-theme="light"] .site-footer .brand,
html[data-theme="light"] .site-footer .footer-brand,
html[data-theme="light"] .site-footer h3,
html[data-theme="light"] .site-footer .footer-legal a,
html[data-theme="light"] .site-footer .footer-bottom a,
html[data-theme="light"] .site-footer .footer-bottom p {
  color: #0f172a !important;
}

html[data-theme="light"] .site-footer .footer-copy,
html[data-theme="light"] .site-footer .footer-contact a,
html[data-theme="light"] .site-footer .footer-bottom {
  color: #334155 !important;
}

html[data-theme="light"] .site-footer .footer-contact a:hover,
html[data-theme="light"] .site-footer .footer-legal a:hover,
html[data-theme="light"] .site-footer .footer-bottom a:hover {
  color: #335cff !important;
}

html[data-theme="light"] .social-links a,
html[data-theme="light"] .social-link {
  background: rgba(255, 255, 255, 0.92) !important;
  color: #0f172a !important;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

/* === Responsive polish final === */
html, body {
  overflow-x: clip;
}

img, svg, canvas {
  max-width: 100%;
}

@media (max-width: 991px) {
  .container {
    width: min(100% - 32px, 1180px);
  }

  .hero-content {
    padding-top: 122px !important;
    padding-bottom: 78px !important;
    gap: 32px !important;
  }

  .hero-copy,
  .hero-showcase {
    width: 100%;
    min-width: 0;
  }

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

  .browser-card {
    max-width: 100%;
  }

  .browser-content,
  .hero-metrics,
  .footer-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .form-grid {
    min-width: 0;
  }
}

@media (max-width: 767px) {
  :root {
    --header-height-final: 74px;
  }

  body {
    overflow-x: hidden;
  }

  .container {
    width: min(100% - 24px, 1180px);
  }

  .section {
    padding: 64px 0 !important;
  }

  .site-header .nav-wrap {
    min-height: var(--header-height-final) !important;
    gap: 12px !important;
    padding: 10px 0 !important;
  }

  .brand-logo {
    width: auto !important;
    height: 42px !important;
    max-width: 150px !important;
    object-fit: contain;
  }

  .nav-actions {
    gap: 10px !important;
    flex-shrink: 0;
  }

  .theme-toggle {
    min-width: unset !important;
    width: 56px !important;
    height: 56px !important;
    padding: 0 !important;
    justify-content: center !important;
    border-radius: 18px !important;
  }

  .theme-toggle-copy {
    display: none !important;
  }

  .theme-toggle-switch {
    margin: 0 !important;
  }

  .menu-toggle {
    width: 50px;
    height: 50px;
    display: inline-grid !important;
    place-items: center;
    padding: 0;
  }

  .mobile-menu {
    gap: 10px !important;
    padding: 14px 12px 16px !important;
    border-radius: 0 0 18px 18px !important;
  }

  .mobile-menu button,
  .mobile-theme-toggle {
    min-height: 48px;
    padding: 12px 14px !important;
    border-radius: 14px !important;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding-top: 116px !important;
    padding-bottom: 56px !important;
    text-align: center !important;
  }

  .hero-copy .eyebrow {
    margin-inline: auto;
    max-width: 100%;
    text-align: center;
  }

  .hero-content h1 {
    font-size: clamp(2.15rem, 11vw, 3.35rem) !important;
    line-height: 1.02 !important;
    text-wrap: balance;
  }

  .hero-content p {
    font-size: 1rem !important;
    line-height: 1.7 !important;
    margin-bottom: 28px !important;
  }

  .hero-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }

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

  .hero-metrics {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    margin-top: 20px !important;
  }

  .metric-card {
    padding: 16px !important;
  }

  .hero-showcase {
    max-width: 100% !important;
  }

  .browser-card {
    padding: 14px !important;
    border-radius: 24px !important;
  }

  .browser-content {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .browser-sidebar,
  .browser-main {
    padding: 14px !important;
    border-radius: 18px !important;
  }

  .browser-chart {
    min-height: 104px !important;
    gap: 8px !important;
  }

  .browser-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .browser-cards div:last-child {
    grid-column: 1 / -1;
  }

  .floating-badge {
    font-size: .74rem !important;
    padding: 8px 10px !important;
  }

  .section-head {
    margin-bottom: 32px !important;
  }

  .section-head h2,
  .cta-content h2 {
    font-size: clamp(1.7rem, 8vw, 2.4rem) !important;
    line-height: 1.12 !important;
    text-wrap: balance;
  }

  .section-head p,
  .cta-content p {
    font-size: .98rem !important;
  }

  .card,
  .service-card,
  .pricing-card,
  .timeline-item,
  .contact-form,
  .testimonial-fx-card {
    border-radius: 22px !important;
  }

  .pricing-card,
  .service-card,
  .card,
  .timeline-item {
    padding: 22px !important;
  }

  .pricing-features li {
    grid-template-columns: 20px minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  .project-card {
    min-height: 300px !important;
  }

  .project-card img {
    min-height: 300px !important;
  }

  .project-overlay {
    padding: 20px !important;
  }

  .timeline-number {
    font-size: 2.4rem !important;
  }

  .contact-form {
    padding: 22px !important;
  }

  .form-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  input,
  select,
  textarea {
    font-size: 16px !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .footer-bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .footer-legal {
    gap: 12px !important;
  }

  .social-links {
    gap: 10px !important;
  }

  .social-link,
  .social-links a {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
  }

  .toast-stack {
    left: 12px !important;
    right: 12px !important;
    max-width: none !important;
  }

  .site-assistant__panel {
    position: fixed !important;
    right: 12px !important;
    left: 12px !important;
    bottom: 86px !important;
    width: auto !important;
    max-width: none !important;
  }

  .site-assistant__messages {
    max-height: min(42vh, 280px) !important;
  }

  .site-assistant__form {
    grid-template-columns: 1fr !important;
  }

  .site-assistant__form button {
    min-height: 46px;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 20px, 1180px);
  }

  .site-header .nav-wrap {
    gap: 10px !important;
  }

  .brand-logo {
    height: 38px !important;
    max-width: 132px !important;
  }

  .theme-toggle {
    width: 50px !important;
    height: 50px !important;
    border-radius: 16px !important;
  }

  .menu-toggle {
    width: 46px;
    height: 46px;
  }

  .hero-content {
    padding-top: 108px !important;
  }

  .eyebrow {
    font-size: .78rem !important;
    padding: 9px 12px !important;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 12vw, 2.8rem) !important;
  }

  .browser-card {
    padding: 12px !important;
  }

  .browser-cards {
    gap: 10px !important;
  }

  .browser-cards div {
    height: 60px !important;
  }

  .pricing-card,
  .service-card,
  .card,
  .timeline-item,
  .contact-form,
  .testimonial-fx-card {
    padding: 18px !important;
  }

  .project-card,
  .project-card img {
    min-height: 260px !important;
  }

  .cta-content .btn,
  .btn-submit {
    width: 100%;
    justify-content: center;
  }

  .whatsapp-button span {
    display: none !important;
  }

  .floating-contact-stack {
    right: 12px !important;
    bottom: 12px !important;
  }

  .floating-contact-stack .whatsapp-button,
  .site-assistant__toggle {
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    min-height: 54px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-badge,
  .browser-card,
  .card,
  .service-card,
  .pricing-card,
  .timeline-item,
  .testimonial-fx-card,
  .whatsapp-button {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}

/* Corrección: permite hacer click en "Ver proyecto" */
.project-card::after {
  pointer-events: none !important;
  z-index: 1;
}

.project-card img {
  position: relative;
  z-index: 0;
}

.project-overlay {
  z-index: 2;
}

.project-link {
  position: relative;
  z-index: 3;
  pointer-events: auto;
  cursor: pointer;
  text-decoration: none;
}
/* ===== Secciones Nosotros y Equipo Algorithm ===== */
.dark-eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  color: var(--blue-dark);
  background: rgba(29, 78, 216, .10);
  border: 1px solid rgba(29, 78, 216, .16);
  padding: 8px 14px;
  border-radius: 999px;
}

.about-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 34px;
  align-items: center;
}

.about-copy h2 {
  margin: 0 0 22px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

#aboutStory p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.85;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn-outline {
  background: rgba(255, 255, 255, .74);
  color: var(--blue-dark);
  border: 1px solid rgba(29, 78, 216, .22);
}

.about-panel,
.team-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(219, 228, 240, .95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-panel {
  padding: 34px;
}

.about-panel::before,
.team-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(29, 78, 216, .16), transparent 34%),
              linear-gradient(135deg, rgba(59, 130, 246, .05), rgba(124, 58, 237, .07));
  opacity: .9;
  pointer-events: none;
}

.about-panel > *,
.team-card > * {
  position: relative;
  z-index: 1;
}

.about-panel__logo {
  display: grid;
  place-items: center;
  min-height: 210px;
  margin-bottom: 24px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(30, 64, 175, .12), rgba(109, 40, 217, .12));
  border: 1px solid rgba(29, 78, 216, .16);
}

.about-panel__logo img {
  width: min(250px, 80%);
  filter: drop-shadow(0 18px 26px rgba(15, 23, 42, .18));
}

.about-highlights {
  display: grid;
  gap: 14px;
}

.about-highlight {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .76);
  border: 1px solid rgba(219, 228, 240, .9);
}

.about-highlight strong {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-dark), var(--purple));
  box-shadow: 0 12px 28px rgba(29, 78, 216, .24);
}

.about-highlight span {
  color: var(--text);
  font-weight: 700;
  line-height: 1.45;
}

.team-card {
  transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
}

.team-card:hover {
  transform: translateY(-6px);
  border-color: rgba(29, 78, 216, .32);
  box-shadow: 0 26px 64px rgba(15, 23, 42, .14);
}

.team-photo-wrap {
  padding: 18px 18px 0;
}

.team-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(219, 228, 240, .95);
  background: #eef5ff;
}

.team-card__body {
  padding: 24px;
}

.team-role {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: rgba(29, 78, 216, .10);
  font-size: .82rem;
  font-weight: 800;
}

.team-card h3 {
  margin: 16px 0 10px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.team-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

html[data-theme="dark"] .dark-eyebrow,
html[data-theme="dark"] .team-role {
  color: #bfdbfe;
  background: rgba(59, 130, 246, .16);
  border-color: rgba(147, 197, 253, .16);
}

html[data-theme="dark"] .about-panel,
html[data-theme="dark"] .team-card,
html[data-theme="dark"] .btn-outline {
  background: rgba(15, 23, 42, .68);
  border-color: rgba(148, 163, 184, .22);
}

html[data-theme="dark"] .about-highlight {
  background: rgba(15, 23, 42, .58);
  border-color: rgba(148, 163, 184, .18);
}

html[data-theme="dark"] .about-highlight span,
html[data-theme="dark"] .team-card h3,
html[data-theme="dark"] .about-copy h2 {
  color: #f8fafc;
}

html[data-theme="dark"] #aboutStory p,
html[data-theme="dark"] .team-card p {
  color: #cbd5e1;
}

@media (max-width: 860px) {
  .about-wrap {
    grid-template-columns: 1fr;
  }

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


/* === Banner de marcas aliadas === */
.partners-section {
  position: relative;
  overflow: hidden;
}

.partners-banner {
  position: relative;
  overflow: hidden;
  padding: 22px 0;
  border: 1px solid var(--border);
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255,255,255,.84), rgba(238,244,255,.68));
  box-shadow: 0 24px 70px rgba(15, 23, 42, .08);
}

.partners-track {
  display: flex;
  align-items: stretch;
  gap: 18px;
  width: max-content;
  animation: partnersMarquee 34s linear infinite;
  will-change: transform;
}

.partners-banner:hover .partners-track { animation-play-state: paused; }

.partner-card {
  min-width: 210px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, .26);
  background: rgba(255,255,255,.78);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .07);
  color: var(--text);
}

.partner-logo {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  font-weight: 800;
  letter-spacing: .03em;
}

.partner-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.partner-card strong {
  font-size: .98rem;
  white-space: nowrap;
}

.partners-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 76px;
  pointer-events: none;
}

.partners-fade--left {
  left: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.46) 0%, rgba(255,255,255,.18) 45%, rgba(255,255,255,0) 100%);
}

.partners-fade--right {
  right: 0;
  background: linear-gradient(270deg, rgba(255,255,255,.46) 0%, rgba(255,255,255,.18) 45%, rgba(255,255,255,0) 100%);
}

@keyframes partnersMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% / 3)); }
}

html[data-theme="dark"] .partners-banner {
  background: linear-gradient(135deg, rgba(15, 23, 42, .88), rgba(36, 28, 72, .64));
  border-color: rgba(148, 163, 184, .18);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
}

html[data-theme="dark"] .partner-card {
  background: rgba(15, 23, 42, .72);
  border-color: rgba(148, 163, 184, .2);
}

html[data-theme="dark"] .partners-fade--left {
  background: linear-gradient(90deg, rgba(7, 16, 29, .52) 0%, rgba(7, 16, 29, .20) 45%, rgba(7, 16, 29, 0) 100%);
}

html[data-theme="dark"] .partners-fade--right {
  background: linear-gradient(270deg, rgba(7, 16, 29, .52) 0%, rgba(7, 16, 29, .20) 45%, rgba(7, 16, 29, 0) 100%);
}

/* === Banner de cookies === */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 9999;
  width: min(1080px, calc(100% - 32px));
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, .32);
  background: rgba(255,255,255,.92);
  box-shadow: 0 28px 90px rgba(15, 23, 42, .2);
  backdrop-filter: blur(18px);
  transform: translate(-50%, 24px);
  opacity: 0;
  transition: opacity .28s ease, transform .28s ease;
}

.cookie-banner.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.cookie-banner__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(37,99,235,.14), rgba(109,40,217,.16));
  font-size: 1.6rem;
}

.cookie-banner__content strong {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
  font-size: 1rem;
}

.cookie-banner__content p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.55;
}

.cookie-banner__links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.cookie-banner__links a {
  color: var(--blue);
  font-weight: 700;
  font-size: .86rem;
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.cookie-btn {
  min-width: 118px;
  padding: 12px 16px;
  justify-content: center;
}

.cookie-btn--ghost {
  color: var(--text);
  background: rgba(15, 23, 42, .06);
}

html[data-theme="dark"] .cookie-banner {
  background: rgba(15, 23, 42, .92);
  border-color: rgba(148, 163, 184, .24);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .45);
}

html[data-theme="dark"] .cookie-banner__content strong {
  color: #ffffff;
}

html[data-theme="dark"] .cookie-banner__content p {
  color: #f1f5f9;
}

html[data-theme="dark"] .cookie-banner__links a {
  color: #93c5fd;
}

html[data-theme="dark"] .cookie-btn--ghost {
  color: #e2e8f0;
  background: rgba(255,255,255,.08);
}

@media (max-width: 760px) {
  .partners-banner { border-radius: 24px; }
  .partners-fade { width: 54px; }
  .partner-card { min-width: 184px; padding: 14px; }
  .partner-logo { width: 46px; height: 46px; flex-basis: 46px; }

  .cookie-banner {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
    border-radius: 24px;
    bottom: 14px;
  }

  .cookie-banner__icon { display: none; }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .partners-track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
}
