/* FYO-Team — styles evolución boutique */
:root {
  --color-bg-primary: #1C2B35;
  --color-bg-secondary: #162028;
  --color-bg-card: #1E3040;
  --color-accent: #4FC3F7;
  --logo-mark: #5cb7de;
  --color-accent-hover: #81D4FA;
  --color-accent-glow: rgba(79, 195, 247, 0.15);
  --color-text-primary: #FFFFFF;
  --color-text-secondary: #B0BEC5;
  --color-text-muted: #607D8B;
  --color-border: rgba(79, 195, 247, 0.2);
  --font-title: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --nav-h: 76px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  /* Fotografías de ambiente (oficina / equipo), muy oscurecidas en capas CSS */
  --site-backdrop-img-a: url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?w=1920&q=75");
  --site-backdrop-img-b: url("https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=1920&q=75");
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background-color: var(--color-bg-primary);
  min-height: 100%;
  width: 100%;
  overflow-x: hidden;
}
body {
  font-family: var(--font-body);
  background-color: transparent;
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  width: 100%;
  overscroll-behavior-x: none;
  touch-action: pan-y;
  position: relative;
}

/* CAPA 1 — Grid animado global */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(79, 195, 247, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 195, 247, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
}
@keyframes gridMove {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 50px 50px, 50px 50px; }
}

/* Orden de capas fijas: foto + viñeta (z-3) → rejilla body (z-2) → partículas (z-1) → contenido */
.site-backdrop {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  overflow: hidden;
}
.site-backdrop__photo {
  position: absolute;
  inset: -8px;
  background-color: #0a1016;
  background-image: var(--site-backdrop-img-a);
  background-size: cover;
  background-position: center;
  filter: saturate(0.5) brightness(0.4);
}
.site-backdrop__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--site-backdrop-img-b);
  background-size: cover;
  background-position: 62% 38%;
  opacity: 0.22;
  mix-blend-mode: soft-light;
}
.site-backdrop__tint {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 92% 78% at 50% 52%, transparent 0%, rgba(6, 11, 18, 0.82) 68%, rgba(3, 6, 12, 0.94) 100%),
    radial-gradient(ellipse 125% 65% at 50% -18%, rgba(5, 12, 22, 0.62) 0%, transparent 52%),
    linear-gradient(165deg, rgba(22, 34, 46, 0.88) 0%, rgba(11, 20, 30, 0.93) 48%, rgba(8, 14, 22, 0.95) 100%);
}
.global-particles-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

::selection { background: #4FC3F7; color: #1C2B35; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #1C2B35; }
::-webkit-scrollbar-thumb { background: #4FC3F7; border-radius: 3px; }

/* ——— Breathing keyframes (global) ——— */
@keyframes breathe {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(-8px); opacity: 0.85; }
}
@keyframes glowBreathe {
  0%, 100% { box-shadow: 0 0 15px rgba(79, 195, 247, 0.2); }
  50% { box-shadow: 0 0 35px rgba(79, 195, 247, 0.5), 0 0 60px rgba(79, 195, 247, 0.15); }
}
@keyframes scaleBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
@keyframes borderPulse {
  0%, 100% { border-color: rgba(79, 195, 247, 0.5); }
  50% { border-color: rgba(79, 195, 247, 1); }
}
@keyframes floatDigit {
  0% { transform: translateY(0) rotate(0deg); opacity: 0.06; }
  50% { transform: translateY(-20px) rotate(5deg); opacity: 0.12; }
  100% { transform: translateY(0) rotate(0deg); opacity: 0.06; }
}
@keyframes breatheGlow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}
@keyframes logoFlipOnce {
  0% { transform: perspective(400px) rotateY(0); }
  100% { transform: perspective(400px) rotateY(360deg); }
}

.text-gradient {
  background: linear-gradient(135deg, #4FC3F7 0%, #81D4FA 50%, #B3E5FC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-card {
  background: rgba(30, 48, 64, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(79, 195, 247, 0.15);
  border-radius: 20px;
}

.section__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
  letter-spacing: 0.06em;
}

h2.section-title {
  font-family: var(--font-title);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section__head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section__head p { color: var(--color-text-secondary); max-width: 600px; margin: 0 auto; }
main { content-visibility: auto; contain-intrinsic-size: 1px 2400px; }

/* Page transition */
body.page-fade {
  opacity: 1;
  transition: opacity 0.28s ease;
}
body.page-fade.page-ready { opacity: 1; }
body.page-fade.page-leaving { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  body.page-fade { transition: none; }
}

/* Scroll reveal */
.fade-up, .reveal-left, .reveal-right, .reveal-scale {
  opacity: 0;
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.fade-up { transform: translateY(10px); }
.reveal-left { transform: translateX(-24px); }
.reveal-right { transform: translateX(24px); }
.reveal-scale { transform: scale(0.94); }
.fade-up.visible, .reveal-left.visible, .reveal-right.visible, .reveal-scale.visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.55s; }

.reading-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%; z-index: 10001;
  background: linear-gradient(90deg, #4FC3F7, #81D4FA);
  transition: width 0.08s linear;
}

#main-content { opacity: 1; }

/* Cursor */
#cursor-dot, #cursor-ring {
  position: fixed; pointer-events: none; z-index: 99999;
  border-radius: 50%; transform: translate(-50%, -50%);
  left: 0; top: 0; opacity: 0; transition: opacity 0.2s;
}
body.cursor-ready #cursor-dot, body.cursor-ready #cursor-ring { opacity: 1; }
#cursor-dot {
  width: 6px; height: 6px; background: var(--color-accent); z-index: 100000;
}
#cursor-ring {
  width: 20px; height: 20px; border: 2px solid var(--color-accent);
  transition: width 0.2s, height 0.2s, border-color 0.2s, background 0.2s;
}
#cursor-ring.is-hover {
  width: 40px; height: 40px; background: transparent;
  border-width: 2px;
}

/* Nav */
.nav-wrap {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: calc(0.65rem + var(--safe-top)) 0 0.65rem;
  background: rgba(28, 43, 53, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.nav-wrap.scrolled {
  background: rgba(28, 43, 53, 0.96);
  border-bottom-color: var(--color-border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}

.logo-link {
  display: flex; align-items: center; gap: 0.75rem;
  text-decoration: none; color: inherit; flex-shrink: 0;
}
.logo-f-symbol {
  flex-shrink: 0;
  color: var(--logo-mark);
  filter: drop-shadow(0 0 8px rgba(92, 183, 222, 0.45));
  animation: scaleBreathe 4s ease-in-out infinite;
  transform-origin: center center;
  transform-style: preserve-3d;
}
.logo-f-symbol path { fill: currentColor; }
.logo-f-symbol.logo-flip-play {
  animation: logoFlipOnce 0.6s ease-out forwards;
}
.logo-f-symbol.logo-flip-done {
  animation: scaleBreathe 4s ease-in-out infinite;
}

.logo-text--nav { display: flex; flex-direction: column; line-height: 1.18; justify-content: center; gap: 0.06em; }
.logo-line1 {
  font-family: var(--font-title);
  font-size: clamp(0.78rem, 2.2vw, 0.95rem);
  display: block;
}
.logo-brand {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.logo-line1-rest {
  color: var(--logo-mark);
  font-weight: 600;
}
.logo-line2 {
  font-family: var(--font-title);
  font-size: clamp(0.78rem, 2.2vw, 0.95rem);
  color: var(--logo-mark);
  font-weight: 600;
  display: block;
  line-height: 1.15;
}

.nav-links { display: none; list-style: none; align-items: center; gap: 0.25rem; flex-wrap: wrap; }
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-links a.nav-link {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.45rem 0.65rem;
  position: relative;
  transition: color 0.2s;
}
.nav-links a.nav-link:hover, .nav-links a.nav-link.active { color: var(--color-accent); }
.nav-links a.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: #4FC3F7;
  transition: width 0.3s var(--ease-out);
  border-radius: 2px;
}
.nav-links a.nav-link:hover::after,
.nav-links a.nav-link.active::after { width: 100%; }

.btn-outline-cyan {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.55rem 1.1rem;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.35s, transform 0.2s;
}
.btn-outline-cyan::before {
  content: ""; position: absolute; inset: 0;
  background: var(--color-accent); transform: translateX(-101%);
  transition: transform 0.35s var(--ease-out); z-index: 0;
}
.btn-outline-cyan span { position: relative; z-index: 1; }
.btn-outline-cyan:hover { color: #1C2B35; }
.btn-outline-cyan:hover::before { transform: translateX(0); }

.nav-cta { display: none; }
@media (min-width: 1024px) { .nav-cta { display: block; } }

.hamburger {
  display: flex; flex-direction: column; gap: 6px; padding: 0.5rem;
  background: none; border: none; cursor: pointer; color: var(--color-accent);
}
@media (min-width: 1024px) { .hamburger { display: none; } }
.hamburger span { display: block; width: 24px; height: 2px; background: currentColor; transition: 0.3s; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--color-bg-primary); border-bottom: 1px solid var(--color-border);
  padding: 1rem 1.25rem 1.5rem; z-index: 999;
  box-shadow: 0 24px 48px rgba(0,0,0,0.4);
  animation: slideDown 0.35s var(--ease-out);
}
.mobile-menu.open { display: block; }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}
.mobile-menu ul { list-style: none; }
.mobile-menu a { display: block; padding: 0.85rem 0; color: var(--color-text-secondary); text-decoration: none; border-bottom: 1px solid var(--color-border); }
.mobile-menu a:hover, .mobile-menu a.active { color: var(--color-accent); }

.section { padding: 4.3rem 1.1rem; position: relative; }
@media (min-width: 768px) { .section { padding: 6.4rem 1.4rem; } }

/* Fondo interior — bruma cyan + profundidad; capa base semitransparente para ver foto global */
.bg-secondary {
  isolation: isolate;
  background-color: rgba(22, 32, 40, 0.9);
}
.bg-secondary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 95% 65% at 100% 0%, rgba(79, 195, 247, 0.065) 0%, transparent 58%),
    radial-gradient(ellipse 85% 55% at 0% 100%, rgba(79, 195, 247, 0.042) 0%, transparent 54%),
    radial-gradient(ellipse 70% 50% at 45% 50%, rgba(13, 31, 45, 0.32) 0%, transparent 68%);
}
.bg-secondary > * { position: relative; z-index: 1; }

section.bg-primary-only {
  isolation: isolate;
  background-color: rgba(28, 43, 53, 0.88);
}
section.bg-primary-only::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 110% 55% at 50% -18%, rgba(79, 195, 247, 0.055) 0%, transparent 56%),
    radial-gradient(ellipse 75% 48% at 92% 92%, rgba(79, 195, 247, 0.038) 0%, transparent 52%),
    radial-gradient(ellipse 60% 45% at 8% 75%, rgba(13, 31, 45, 0.22) 0%, transparent 65%);
}
section.bg-primary-only > * { position: relative; z-index: 1; }

/* Olas entre secciones */
.wave-divider {
  line-height: 0;
  color: var(--wave-fill, #162028);
  margin-top: -1px;
}
.wave-divider svg { display: block; width: 100%; height: clamp(36px, 5vw, 56px); }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 2rem) 1.25rem 2rem;
  overflow: hidden;
}
.hero__bg-layer {
  position: absolute; inset: 0; z-index: 0;
  will-change: transform;
}
.hero__bg-layer picture {
  display: block;
  width: 100%;
  height: 100%;
}
.hero__bg-layer img {
  width: 100%; height: 120%; object-fit: cover;
  object-position: center top;
  display: block;
}
.hero__bg-dim {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(28,43,53,0.92) 0%, rgba(13,31,45,0.88) 100%);
  z-index: 1;
}
.hero__breathe {
  position: absolute; top: -20%; right: -15%; width: 70%; height: 70%;
  background: radial-gradient(circle, rgba(79,195,247,0.18) 0%, transparent 65%);
  z-index: 2;
  pointer-events: none;
  animation: breatheGlow 8s ease-in-out infinite;
}
#hero-canvas {
  position: absolute; inset: 0; z-index: 3;
  width: 100%; height: 100%;
  pointer-events: auto;
}
.hero__code-decor {
  position: absolute; inset: 0; z-index: 4;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: clamp(0.75rem, 1.5vw, 0.95rem);
  color: #4FC3F7;
  opacity: 0.04;
  overflow: hidden;
}
.hero__code-decor span {
  position: absolute;
  white-space: nowrap;
  animation: floatDigit 12s ease-in-out infinite;
}
.hero__code-decor span:nth-child(1) { top: 18%; left: 8%; animation-delay: 0s; }
.hero__code-decor span:nth-child(2) { top: 42%; right: 10%; animation-delay: 2s; }
.hero__code-decor span:nth-child(3) { bottom: 28%; left: 12%; animation-delay: 4s; }
.hero__code-decor span:nth-child(4) { top: 55%; left: 35%; animation-delay: 1s; }

.hero__content { position: relative; z-index: 5; max-width: 900px; margin: 0 auto; text-align: center; }
.hero__badge {
  display: inline-block;
  border: 1px solid var(--color-accent);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--color-accent);
  background: var(--color-accent-glow);
  margin-bottom: 1.5rem;
  animation: breathe 5s ease-in-out infinite;
}
.hero__title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1.22;
  margin-bottom: 0.65rem;
  letter-spacing: -0.02em;
}
.hero__title .line {
  display: block;
  clip-path: inset(0 100% 0 0);
  animation: textReveal 1s var(--ease-out) forwards;
}
.hero__title .line + .line { margin-top: 0.08em; }
.hero__title .line--1 { animation-delay: 0.05s; }
.hero__title .line--2 {
  animation-delay: 0.2s;
  font-size: 1.06em;
  line-height: 1.14;
}
.hero__title .line--3 { animation-delay: 0.4s; }
@keyframes textReveal { to { clip-path: inset(0 0 0 0); } }

.hero__underline {
  height: 3px; width: 0; max-width: 320px; margin: 0 auto 1.5rem;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-hover));
  border-radius: 2px;
  animation: lineGrow 0.9s var(--ease-out) 0.5s forwards, borderPulse 2s ease-in-out 1.5s infinite;
  border: none;
}
@keyframes lineGrow { to { width: 100%; } }

.hero__sub { color: var(--color-text-secondary); max-width: 580px; margin: 0 auto 1rem; font-size: 1.05rem; min-height: 3.2em; }
.hero__sub .typewriter-key { color: var(--color-accent); font-weight: 600; }
@media (max-width: 768px) {
  .hero__sub .typewriter-key { white-space: normal; }
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-bottom: 2.5rem; }
.hero-email-form {
  max-width: 640px;
  margin: 0 auto 0.9rem;
}
.hero-email-form__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
  align-items: center;
}
.hero-email-form input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: rgba(255,255,255,0.06);
  color: #fff;
}
.hero-email-form textarea {
  width: 100%;
  margin-top: 0.5rem;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: rgba(255,255,255,0.06);
  color: #fff;
  resize: vertical;
  min-height: 70px;
  font-family: inherit;
}
.hero-email-form input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}
.hero-email-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 16px 32px;
  background: var(--color-accent);
  color: #1C2B35;
  font-weight: 700;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.25s, transform 0.25s;
  position: relative;
  animation: glowBreathe 3s ease-in-out infinite;
}
.btn-primary:hover { background: var(--color-accent-hover); transform: translateY(-2px); }

.btn-secondary {
  display: inline-flex; align-items: center;
  padding: 14px 28px;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  background: transparent;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: 0.3s;
  position: relative;
  overflow: hidden;
}
.btn-secondary::before {
  content: ""; position: absolute; inset: 0;
  background: var(--color-accent); transform: translateX(-100%);
  transition: transform 0.35s var(--ease-out); z-index: 0;
}
.btn-secondary:hover { color: #1C2B35; }
.btn-secondary:hover::before { transform: translateX(0); }
.btn-secondary span { position: relative; z-index: 1; }

.hero .btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(12, 24, 34, 0.78);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(79, 195, 247, 0.25);
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
.hero .btn-secondary::before {
  background: linear-gradient(135deg, var(--color-accent), #81d4fa);
}
.hero .btn-secondary:hover {
  color: #1C2B35;
  border-color: var(--color-accent);
  text-shadow: none;
}

.hero__scroll {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.5rem; color: var(--color-text-muted);
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero__scroll-line { width: 1px; height: 40px; background: var(--color-text-muted); animation: scrollBounce 2s ease-in-out infinite; }
.hero__scroll span { transform: rotate(90deg); margin-top: 0.5rem; }
@keyframes scrollBounce {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50% { transform: scaleY(1.15); opacity: 1; }
}

.hero__stats {
  position: relative; z-index: 5;
  display: grid; gap: 1rem; padding: 1.5rem;
  margin: 0 -1.25rem -2rem;
  background: rgba(22, 32, 40, 0.75);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-border);
}
@media (max-width: 768px) {
  .hero__stats {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }
}
@media (min-width: 768px) {
  .hero__stats {
    grid-template-columns: repeat(3, 1fr);
    margin: 0 auto -2rem; max-width: 1280px;
    border-radius: 12px 12px 0 0;
    border: 1px solid var(--color-border);
    border-bottom: none;
  }
  .hero__stat { border-right: 1px solid var(--color-border); }
  .hero__stat:last-child { border-right: none; }
}
.hero__stat { text-align: center; padding: 0.5rem; }
.hero__stat-num { font-family: var(--font-title); font-size: 2rem; font-weight: 700; color: var(--color-accent); }
.hero__stat-label { font-size: 0.88rem; color: var(--color-text-secondary); }

/* Servicios */
.services-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }

.service-card {
  padding: 32px;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  background: rgba(30, 48, 64, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.35s var(--ease-bounce), box-shadow 0.35s, border-color 0.35s;
  transform-style: preserve-3d;
  perspective: 1000px;
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-accent);
  box-shadow: 0 20px 50px rgba(79, 195, 247, 0.12);
}
.service-card:hover .service-card__icon {
  animation: none;
}
.service-card__icon {
  width: 40px; height: 40px; color: var(--color-accent);
  margin-bottom: 1rem;
  transition: transform 0.15s ease-out;
  will-change: transform;
}
.service-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.service-card > p { color: var(--color-text-secondary); font-size: 0.95rem; margin-bottom: 1rem; }
.service-card ul { list-style: none; margin-bottom: 1rem; }
.service-card li {
  position: relative; padding-left: 1.25rem; margin-bottom: 0.45rem;
  font-size: 0.9rem; color: var(--color-text-secondary);
}
.service-card li::before { content: "✓"; position: absolute; left: 0; color: var(--color-accent); font-weight: 700; }
.service-card__more { color: var(--color-accent); text-decoration: none; font-weight: 600; font-size: 0.9rem; }

/* Proceso */
.process-layout { max-width: 1280px; margin: 0 auto; }
.process-svg-wrap { display: none; margin-bottom: 2rem; }
@media (min-width: 768px) { .process-svg-wrap { display: block; } }
.process-line-h {
  stroke: var(--color-accent); stroke-width: 3; fill: none;
  stroke-linecap: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 2s ease-out;
}
.process-line-h.drawn { stroke-dashoffset: 0; }
.process-steps { display: flex; flex-direction: column; gap: 1.25rem; position: relative; padding-left: 1.25rem; }
@media (min-width: 768px) {
  .process-steps { flex-direction: row; padding-left: 0; gap: 0.75rem; }
}
.process-step {
  flex: 1;
  padding: 1.25rem 1.35rem;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  background: rgba(30, 48, 64, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.35s var(--ease-bounce), box-shadow 0.35s, border-color 0.35s;
  transform-style: preserve-3d;
  perspective: 1000px;
}
.process-step:hover {
  transform: translateY(-8px);
  border-color: var(--color-accent);
  box-shadow: 0 20px 50px rgba(79, 195, 247, 0.12);
}
.process-step__num {
  font-family: var(--font-title); font-size: 2rem; font-weight: 700;
  color: rgba(79, 195, 247, 0.2); line-height: 1; margin-bottom: 0.25rem;
}
.process-step__icon-wrap {
  width: 44px;
  height: 44px;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.process-step__icon {
  width: 40px;
  height: 40px;
  color: var(--color-accent);
  overflow: visible;
  transition: transform 0.15s ease-out;
  will-change: transform;
}
.process-step:hover .process-step__icon { transition-duration: 0.12s; }
.process-step h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.process-step p { font-size: 0.85rem; color: var(--color-text-secondary); }

/* Iconos proceso — animación continua (ondas = diálogo / escucha) */
.pi-meet__bar {
  animation: piMeetBar 1.28s var(--ease-smooth) infinite;
}
.pi-meet__bar--d2 { animation-delay: 0.18s; }
.pi-meet__bar--d3 { animation-delay: 0.36s; }
.pi-meet__dot { transform-origin: 20px 36px; animation: piMeetDot 1.4s ease-in-out infinite; }
@keyframes piMeetBar {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1); }
}
@keyframes piMeetDot {
  0%, 100% { opacity: 0.28; transform: scale(0.92); }
  50% { opacity: 0.55; transform: scale(1.05); }
}

/* Plan: blueprint / hito estratégico */
.pi-plan__sheet { transform-origin: 20px 20px; animation: piPlanFloat 3.2s ease-in-out infinite; }
.pi-plan__line--1 { transform-origin: 14px 14px; animation: piPlanReveal 2.6s var(--ease-smooth) infinite; }
.pi-plan__line--2 { transform-origin: 14px 19px; animation: piPlanReveal 2.6s var(--ease-smooth) 0.18s infinite; }
.pi-plan__line--3 { transform-origin: 14px 24px; animation: piPlanReveal 2.6s var(--ease-smooth) 0.36s infinite; }
.pi-plan__node { transform-origin: 28px 11px; animation: piPlanNode 2.1s ease-in-out infinite; }
@keyframes piPlanFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1.5px); }
}
@keyframes piPlanReveal {
  0%, 100% { opacity: 0.35; stroke-dasharray: 2 14; }
  50% { opacity: 1; stroke-dasharray: 14 0; }
}
@keyframes piPlanNode {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.12); opacity: 0.85; }
}

/* Build: bloques + código */
.pi-build__block--1 { transform-origin: 13px 30px; animation: piBuildStack 2.4s ease-in-out infinite; }
.pi-build__block--2 { transform-origin: 20px 20px; animation: piBuildStack 2.4s ease-in-out 0.2s infinite; }
.pi-build__block--3 { transform-origin: 26px 11px; animation: piBuildStack 2.4s ease-in-out 0.4s infinite; }
.pi-build__bracket-l { transform-origin: 4px 20px; animation: piBracketNudge 2.2s ease-in-out infinite; }
.pi-build__bracket-r { transform-origin: 36px 20px; animation: piBracketNudge 2.2s ease-in-out infinite; }
@keyframes piBuildStack {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
@keyframes piBracketNudge {
  0%, 100% { transform: scaleY(1); opacity: 0.85; }
  50% { transform: scaleY(1.12); opacity: 1; }
}

/* Launch: cohete */
.pi-launch__ship { transform-origin: 20px 16px; animation: piRocketBob 2.15s ease-in-out infinite; }
.pi-launch__flame {
  transform-origin: 20px 28px;
  animation: piFlameFlicker 0.55s ease-in-out infinite alternate;
}
.pi-launch__spark { transform-origin: 32.5px 12.5px; animation: piSparkSpin 4.5s linear infinite; }
@keyframes piRocketBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes piFlameFlicker {
  0% { transform: scaleY(0.9) scaleX(0.95); opacity: 0.45; }
  100% { transform: scaleY(1.08) scaleX(1.05); opacity: 0.7; }
}
@keyframes piSparkSpin {
  to { transform: rotate(360deg); }
}

/* Crecimiento: línea de tendencia */
.pi-grow__line {
  stroke-dasharray: 52;
  stroke-dashoffset: 52;
  animation: piGrowTrace 3.2s var(--ease-smooth) infinite;
}
.pi-grow__dot { transform-origin: 33px 18px; animation: piGrowPulse 2s ease-in-out infinite; }
@keyframes piGrowTrace {
  0% { stroke-dashoffset: 52; opacity: 0.55; }
  42% { stroke-dashoffset: 0; opacity: 1; }
  58% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: -52; opacity: 0.55; }
}
@keyframes piGrowPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.88; }
}

.process-step:hover .pi-meet__bar,
.process-step:hover .pi-meet__bar--d2,
.process-step:hover .pi-meet__bar--d3 { animation-duration: 0.88s; }
.process-step:hover .pi-plan__sheet { animation-duration: 2.1s; }
.process-step:hover .pi-plan__line--1,
.process-step:hover .pi-plan__line--2,
.process-step:hover .pi-plan__line--3 { animation-duration: 1.75s; }
.process-step:hover .pi-build__block--1,
.process-step:hover .pi-build__block--2,
.process-step:hover .pi-build__block--3 { animation-duration: 1.6s; }
.process-step:hover .pi-launch__ship { animation-duration: 1.5s; }
.process-step:hover .pi-grow__line { animation-duration: 2.4s; }

@media (prefers-reduced-motion: reduce) {
  .process-step:hover { transform: none; box-shadow: none; }
  .pi-meet__bar,
  .pi-meet__bar--d2,
  .pi-meet__bar--d3,
  .pi-meet__dot,
  .pi-plan__sheet,
  .pi-plan__line--1,
  .pi-plan__line--2,
  .pi-plan__line--3,
  .pi-plan__node,
  .pi-build__block--1,
  .pi-build__block--2,
  .pi-build__block--3,
  .pi-build__bracket-l,
  .pi-build__bracket-r,
  .pi-launch__ship,
  .pi-launch__flame,
  .pi-launch__spark,
  .pi-grow__line,
  .pi-grow__dot {
    animation: none !important;
  }
  .pi-grow__line { stroke-dashoffset: 0; opacity: 1; }
}
.process-vline { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--color-border); }
@media (min-width: 768px) { .process-vline { display: none; } }
.process-vline-inner { width: 100%; height: 0; background: var(--color-accent); transition: height 2.5s ease-out; }
.process-vline-inner.drawn { height: 100%; }

/* Portafolio */
.portfolio-honest-tag {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
}
.portfolio-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .portfolio-grid { grid-template-columns: repeat(3, 1fr); } }

.portfolio-card {
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  transition: transform 0.35s var(--ease-bounce), box-shadow 0.35s, border-color 0.35s;
  transform-style: preserve-3d;
  will-change: transform;
}
.portfolio-card:hover {
  transform: translateY(-8px);
  border-color: rgba(79, 195, 247, 0.45);
  box-shadow: 0 20px 50px rgba(79, 195, 247, 0.12);
}
.portfolio-card__img-wrap {
  position: relative; height: 240px; overflow: hidden;
}
.portfolio-card__img-wrap > a {
  display: block;
  height: 100%;
}
.portfolio-card__img-wrap picture {
  display: block;
  height: 100%;
}
.portfolio-card__img-wrap img,
.portfolio-card__img-wrap picture img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s var(--ease-smooth), filter 0.5s var(--ease-smooth);
  filter: brightness(0.82);
}
.portfolio-card:hover .portfolio-card__img-wrap img,
.portfolio-card:hover .portfolio-card__img-wrap picture img {
  transform: scale(1.05);
  filter: brightness(1);
}
.portfolio-card__body { padding: 1.1rem; }
.portfolio-card__body strong { display: block; margin-bottom: 0.25rem; }
.portfolio-card__tag { font-size: 0.78rem; color: var(--color-accent); }

.portfolio-card--cta {
  border: 2px dashed rgba(79, 195, 247, 0.55);
  background: rgba(22, 32, 40, 0.85);
  display: flex; flex-direction: column; justify-content: center;
  min-height: 280px;
  text-align: center;
  padding: 1.5rem;
  transition: transform 0.35s var(--ease-bounce), border-color 0.3s, box-shadow 0.3s;
  transform-style: preserve-3d;
  will-change: transform;
}
.portfolio-card--cta:hover {
  transform: translateY(-8px);
  border-color: var(--color-accent);
  box-shadow: 0 20px 50px rgba(79, 195, 247, 0.14);
}
.portfolio-card--cta a {
  color: var(--color-accent);
  font-weight: 700;
  text-decoration: none;
  margin-top: 0.75rem;
  display: inline-block;
}

/* Credenciales — tres tarjetas independientes (sin caja externa) */
.credentials-banner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .credentials-banner {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    align-items: stretch;
  }
}
.credentials-item {
  text-align: center;
  padding: 1.5rem 1.15rem;
  border-radius: 18px;
  border: 1px solid rgba(79, 195, 247, 0.2);
  background: rgba(30, 48, 64, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: transform 0.35s var(--ease-bounce), box-shadow 0.35s, border-color 0.35s, background 0.35s;
  transform-style: preserve-3d;
  will-change: transform;
}
.credentials-item:hover {
  transform: translateY(-8px);
  border-color: rgba(79, 195, 247, 0.45);
  background: rgba(30, 48, 64, 0.58);
  box-shadow: 0 20px 50px rgba(79, 195, 247, 0.12);
}
.credentials-icon-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  margin-bottom: 0.6rem;
}
.credentials-icon {
  width: 42px;
  height: 42px;
  color: var(--color-accent);
  overflow: visible;
  transition: transform 0.15s ease-out;
  will-change: transform;
}
.credentials-item:hover .credentials-icon { transition-duration: 0.12s; }
.cred-f__ring--o {
  transform-origin: 20px 20px;
  stroke-dasharray: 4 6;
  animation: credFocusRing 2.8s var(--ease-smooth) infinite;
}
.cred-f__ring--m { animation: credFocusPulse 2.4s ease-in-out infinite; }
.cred-f__ring--i { animation: credFocusCore 2s ease-in-out infinite; }
.cred-f__arrow {
  transform-origin: 22px 15px;
  animation: credFocusArrow 2.6s var(--ease-smooth) infinite;
}
@keyframes credFocusRing {
  0%, 100% { transform: rotate(0deg); opacity: 0.55; }
  50% { transform: rotate(18deg); opacity: 1; }
}
@keyframes credFocusPulse {
  0%, 100% { transform: scale(1); opacity: 0.65; }
  50% { transform: scale(1.04); opacity: 1; }
}
@keyframes credFocusCore {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.92); }
}
@keyframes credFocusArrow {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-0.8px, 0.8px) rotate(-6deg); }
}
.cred-s__bolt {
  transform-origin: 20px 20px;
  animation: credBolt 1.35s var(--ease-smooth) infinite;
}
@keyframes credBolt {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 transparent); }
  40% { transform: scale(1.06); filter: drop-shadow(0 0 6px rgba(79, 195, 247, 0.35)); }
  70% { transform: scale(0.98); }
}
.cred-seo__chart {
  stroke-dasharray: 42;
  stroke-dashoffset: 42;
  animation: credChartDraw 3.2s var(--ease-smooth) infinite;
}
@keyframes credChartDraw {
  0% { stroke-dashoffset: 42; opacity: 0.5; }
  40% { stroke-dashoffset: 0; opacity: 1; }
  75% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: -42; opacity: 0.5; }
}
.credentials-item:hover .cred-f__ring--o,
.credentials-item:hover .cred-f__ring--m { animation-duration: 1.6s; }
.credentials-item:hover .cred-s__bolt { animation-duration: 0.95s; }
.credentials-item:hover .cred-seo__chart { animation-duration: 2.2s; }

.credentials-item h4 { font-size: 1rem; margin-bottom: 0.35rem; }
.credentials-item p { font-size: 0.88rem; color: var(--color-text-secondary); }

/* Testimonios */
.testimonials-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .testimonial-cta-card { grid-column: 1 / -1; } }

.testimonial-card, .testimonial-cta-card {
  padding: 2rem;
  border-radius: 20px;
}
.testimonial-card {
  background: rgba(30, 48, 64, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(79, 195, 247, 0.15);
  position: relative;
  transition: transform 0.35s var(--ease-bounce), box-shadow 0.35s, border-color 0.35s;
  transform-style: preserve-3d;
  will-change: transform;
}
.testimonial-card:hover {
  transform: translateY(-8px);
  border-color: rgba(79, 195, 247, 0.45);
  box-shadow: 0 20px 50px rgba(79, 195, 247, 0.12);
}
.testimonial-card::before {
  content: "“"; position: absolute; top: 0.5rem; left: 1rem;
  font-size: 4rem; line-height: 1; color: var(--color-accent); opacity: 0.15;
  font-family: Georgia, serif;
}
.testimonial-card .quote { font-size: 1rem; font-style: italic; margin-bottom: 1rem; position: relative; z-index: 1; }
.testimonial-card .stars {
  display: inline-flex;
  align-items: center;
  font-size: 0.84rem;
  color: var(--color-accent);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.9rem;
  letter-spacing: 0;
}
.testimonial-card hr { border: none; border-top: 1px solid var(--color-border); margin: 1rem 0; }
.testimonial-card__footer { display: flex; align-items: center; gap: 1rem; }
.testimonial-card__footer img {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--color-border);
  transition: transform 0.15s ease-out, border-color 0.25s;
  will-change: transform;
}
.testimonial-card:hover .testimonial-card__footer img {
  border-color: rgba(79, 195, 247, 0.45);
}
.testimonial-card__meta strong { display: block; }
.testimonial-card__meta span { color: var(--color-accent); font-size: 0.82rem; }

.testimonial-cta-card {
  background: linear-gradient(145deg, rgba(79, 195, 247, 0.12), rgba(30, 48, 64, 0.9));
  border: 2px solid var(--color-accent);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; min-height: 220px;
  transition: transform 0.35s var(--ease-bounce), box-shadow 0.35s, border-color 0.35s;
  transform-style: preserve-3d;
  will-change: transform;
}
.testimonial-cta-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 56px rgba(79, 195, 247, 0.2);
  border-color: #81d4fa;
}
.testimonial-cta-card p { color: var(--color-text-secondary); margin-bottom: 1rem; font-size: 0.95rem; }
.testimonial-cta-card a { font-weight: 700; color: var(--color-accent); text-decoration: none; font-size: 1.05rem; }
.testimonial-cta-card a:hover { text-decoration: underline; }

/* Nosotros */
.about-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; gap: 2.5rem; align-items: center;
}
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-visual picture { display: block; width: 100%; }
.about-visual img,
.about-visual picture img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
  border: 1px solid rgba(79, 195, 247, 0.35);
  display: block;
}
.about-checks { list-style: none; margin: 1.25rem 0; }
.about-checks li {
  padding-left: 1.4rem; position: relative; margin-bottom: 0.5rem;
  color: var(--color-accent); font-weight: 500; font-size: 0.95rem;
}
.about-checks li::before { content: "✓"; position: absolute; left: 0; }

/* Blog */
.blog-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
.blog-card {
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  transition: transform 0.35s var(--ease-bounce), border-color 0.3s;
}
.blog-card:hover { transform: translateY(-6px); border-color: var(--color-accent); }
.blog-card__img { height: 200px; overflow: hidden; }
.blog-card__img picture { display: block; height: 100%; }
.blog-card__img img,
.blog-card__img picture img { width: 100%; height: 100%; object-fit: cover; }
.blog-card__body { padding: 1.25rem; }
.blog-card__meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.65rem; flex-wrap: wrap; gap: 0.5rem; }
.blog-card__cat {
  font-size: 0.72rem; color: var(--color-accent);
  background: var(--color-accent-glow);
  padding: 0.25rem 0.6rem; border-radius: 6px;
}
.blog-card__date { font-size: 0.8rem; color: var(--color-text-muted); }
.blog-card h3 { font-size: 1.05rem; margin-bottom: 0.65rem; transition: color 0.2s; }
.blog-card:hover h3 { color: var(--color-accent); }
.blog-card p { font-size: 0.9rem; color: var(--color-text-secondary); }
.blog-follow {
  text-align: center; margin-top: 2.5rem;
  color: var(--color-text-secondary);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.75rem;
}
.blog-follow a { color: var(--color-accent); }

.blog-card--clickable {
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  display: block;
  text-decoration: none;
}
.blog-card--clickable:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.blog-card--clickable .blog-card__hint {
  font-size: 0.78rem;
  color: var(--color-accent);
  margin-top: 0.5rem;
  font-weight: 600;
}

/* Modal artículo SEO */
.article-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.article-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.article-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 31, 45, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}
.article-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  max-height: min(88vh, 720px);
  background: var(--color-bg-card);
  border: 1px solid rgba(79, 195, 247, 0.35);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  transform: scale(0.92);
  opacity: 0;
  transition: transform 0.4s var(--ease-bounce), opacity 0.35s ease;
}
.article-modal.is-open .article-modal__dialog {
  transform: scale(1);
  opacity: 1;
}
.article-modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: rgba(28, 43, 53, 0.9);
  color: var(--color-accent);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.article-modal__close:hover {
  background: var(--color-accent);
  color: #1c2b35;
}
.article-modal__scroll {
  overflow-y: auto;
  padding: 2.25rem 1.75rem 2rem;
  -webkit-overflow-scrolling: touch;
}
.article-modal__scroll h2 {
  font-family: var(--font-title);
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 0.35rem;
  padding-right: 2.5rem;
}
.article-modal__meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}
.article-modal__list {
  list-style: none;
  counter-reset: seo-reason;
}
.article-modal__list > li {
  counter-increment: seo-reason;
  position: relative;
  padding-left: 0;
  margin-bottom: 1.25rem;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.55;
}
.article-modal__list > li::before {
  content: counter(seo-reason) ".";
  font-weight: 700;
  color: var(--color-accent);
  display: block;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}
.article-modal__list strong {
  color: var(--color-text-primary);
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1rem;
}
.article-modal__prose p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.article-modal__prose p:last-child {
  margin-bottom: 0;
}

body.modal-open {
  overflow: hidden;
}

/* CTA */
.cta-banner {
  padding: 5rem 1.25rem;
  background: linear-gradient(135deg, #0288D1, #4FC3F7);
  position: relative; overflow: hidden;
}
.cta-banner__breathe {
  position: absolute; bottom: -25%; left: -20%; width: 60%; height: 80%;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
  animation: breatheGlow 8s ease-in-out infinite;
  pointer-events: none;
}
.cta-banner__inner { max-width: 720px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.cta-banner h2 { font-family: var(--font-title); font-size: clamp(1.75rem, 4vw, 2.5rem); color: #1C2B35; margin-bottom: 1rem; }
.cta-banner p { color: rgba(28, 43, 53, 0.85); margin-bottom: 1.75rem; }
.cta-banner__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.btn-dark {
  padding: 14px 28px; background: #1C2B35; color: var(--color-accent);
  border: none; border-radius: 8px; font-weight: 700; cursor: pointer;
  text-decoration: none; transition: transform 0.2s;
}
.btn-dark:hover { transform: translateY(-2px); }
.btn-outline-dark {
  padding: 12px 26px; border: 2px solid #1C2B35; color: #1C2B35;
  background: transparent; border-radius: 8px; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: 0.25s;
}
.btn-outline-dark:hover { background: #1C2B35; color: var(--color-accent); }

/* Contacto (igual estructura) */
.contact-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; gap: 2.5rem;
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.1fr; } }
.contact-grid--single { grid-template-columns: 1fr !important; }
.info-cards { display: flex; flex-direction: column; gap: 1rem; }
.info-card {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.1rem; background: var(--color-bg-card);
  border: 1px solid var(--color-border); border-radius: 12px;
}
.info-card svg { flex-shrink: 0; color: var(--color-accent); }
.info-card small { color: var(--color-text-muted); display: block; font-size: 0.75rem; margin-bottom: 0.15rem; }
.social-row { display: flex; gap: 0.75rem; margin-top: 1.5rem; flex-wrap: wrap; }
.social-row a {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-secondary);
  transition: background 0.25s, transform 0.25s, color 0.25s;
}
.social-row a:hover {
  background: var(--color-accent); color: #1C2B35; transform: scale(1.1);
}

.form-card {
  background: var(--color-bg-card);
  padding: 2rem; border-radius: 20px;
  border: 1px solid var(--color-border);
}
@media (min-width: 768px) { .form-card { padding: 2.5rem; } }
.form-group { margin-bottom: 1.15rem; }
.form-group label { display: block; font-size: 0.85rem; color: var(--color-text-secondary); margin-bottom: 0.35rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 14px 16px; border-radius: 8px;
  border: 1px solid var(--color-border);
  background: rgba(255,255,255,0.05);
  color: #FFF; font-family: inherit; font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #243948;
  color: #fff;
  color-scheme: dark;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%234FC3F7' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 2.75rem;
}
.form-group select option,
.form-group select optgroup {
  background-color: #1e3040;
  color: #fff;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--color-text-muted); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.checkbox-custom { display: flex; align-items: flex-start; gap: 0.65rem; margin: 1.25rem 0; cursor: pointer; font-size: 0.88rem; color: var(--color-text-secondary); }
.checkbox-custom input { width: 18px; height: 18px; accent-color: var(--color-accent); margin-top: 3px; cursor: pointer; }
.form-submit {
  width: 100%; padding: 16px; background: var(--color-accent);
  color: #1C2B35; border: none; border-radius: 8px;
  font-weight: 700; font-size: 1rem; cursor: pointer;
  transition: background 0.25s, transform 0.2s;
}
.form-submit:hover:not(:disabled) { background: var(--color-accent-hover); transform: translateY(-2px); }
.form-submit:disabled { opacity: 0.75; cursor: not-allowed; }
.form-status { margin-top: 1rem; font-size: 0.92rem; min-height: 1.5rem; }
.form-status.success { color: #81C784; }
.form-status.error { color: #E57373; }
.field-error {
  display: block;
  margin-top: 0.35rem;
  color: #ff6b6b;
  font-size: 0.82rem;
  min-height: 1.05rem;
}
.field-invalid {
  border-color: #ff6b6b !important;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.18) !important;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1200;
  background: #1C2B35;
  color: #4FC3F7;
  padding: 0.7rem 1rem;
  border-radius: 8px;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

.hero-live {
  margin: 1rem auto 0;
  max-width: 780px;
  border: 1px solid var(--color-border);
  background: rgba(79, 195, 247, 0.08);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  color: #fff;
  font-size: 0.92rem;
}

/* ——— Promoción precios + contador ——— */
.pricing-promo {
  position: relative;
  display: block;
  max-width: 920px;
  margin: 0 auto 1.75rem;
  padding: 0;
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  border: 1px solid rgba(79, 195, 247, 0.45);
  background: linear-gradient(135deg, rgba(28, 43, 53, 0.98) 0%, rgba(20, 35, 48, 0.99) 50%, rgba(28, 50, 65, 0.98) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 12px 40px rgba(0, 0, 0, 0.35),
    0 0 60px rgba(79, 195, 247, 0.12);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.25s ease;
}
.pricing-promo:hover,
.pricing-promo:focus-visible {
  transform: translateY(-3px) scale(1.01);
  border-color: rgba(129, 212, 250, 0.75);
  box-shadow:
    0 0 0 1px rgba(129, 212, 250, 0.2) inset,
    0 18px 48px rgba(0, 0, 0, 0.4),
    0 0 80px rgba(79, 195, 247, 0.22);
  outline: none;
}
.pricing-promo__shine {
  position: absolute;
  inset: -50% -40%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 255, 255, 0.07) 48%,
    rgba(129, 212, 250, 0.15) 50%,
    rgba(255, 255, 255, 0.07) 52%,
    transparent 60%
  );
  animation: pricing-shine 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pricing-shine {
  0%, 100% { transform: translateX(-30%) rotate(12deg); opacity: 0.6; }
  50% { transform: translateX(30%) rotate(12deg); opacity: 1; }
}
.pricing-promo__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
  padding: 1.15rem 1.35rem 1.25rem;
}
.pricing-promo__pill {
  flex-shrink: 0;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: #1C2B35;
  background: linear-gradient(180deg, #81d4fa 0%, var(--color-accent) 100%);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(79, 195, 247, 0.45);
  animation: pricing-pill-pulse 2.8s ease-in-out infinite;
}
@keyframes pricing-pill-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 14px rgba(79, 195, 247, 0.45); }
  50% { transform: scale(1.04); box-shadow: 0 6px 22px rgba(79, 195, 247, 0.6); }
}
.pricing-promo__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  min-width: 0;
}
.pricing-promo__line {
  display: block;
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.15;
  background: linear-gradient(90deg, #e3f2fd 0%, var(--color-accent) 50%, #b3e5fc 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: pricing-text-gradient 4s ease infinite;
}
.pricing-promo__line--1 {
  font-size: clamp(1.05rem, 2.8vw, 1.35rem);
  animation: pricing-text-gradient 4s ease infinite, pricing-line-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.pricing-promo__line--2 {
  font-size: clamp(0.92rem, 2.2vw, 1.08rem);
  font-weight: 600;
  opacity: 0.95;
  animation: pricing-text-gradient 4s ease infinite 0.15s, pricing-line-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}
@keyframes pricing-text-gradient {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}
@keyframes pricing-line-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.pricing-countdown {
  display: flex;
  align-items: stretch;
  gap: 0.35rem;
  flex-shrink: 0;
}
.pricing-countdown__seg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 3.1rem;
  padding: 0.45rem 0.5rem 0.4rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(79, 195, 247, 0.28);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) inset;
}
.pricing-countdown__num {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--color-accent);
  line-height: 1;
  transition: transform 0.25s ease, color 0.2s ease;
}
.pricing-countdown__seg.is-tick .pricing-countdown__num {
  transform: scale(1.06);
  color: #b3e5fc;
}
.pricing-countdown__lbl {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-top: 0.35rem;
}
.pricing-countdown__sep {
  align-self: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(79, 195, 247, 0.5);
  padding-bottom: 0.5rem;
  animation: pricing-sep-blink 1s ease-in-out infinite;
}
@keyframes pricing-sep-blink {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}
.pricing-promo__expired {
  width: 100%;
  text-align: center;
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}
.pricing-promo--expired .pricing-promo__shine {
  animation: none;
  opacity: 0.25;
}
.pricing-promo--expired .pricing-promo__pill {
  animation: none;
  opacity: 0.85;
}
.pricing-promo--expired .pricing-countdown {
  display: none;
}
.pricing-promo--expired .pricing-promo__copy {
  opacity: 0.75;
}
@media (prefers-reduced-motion: reduce) {
  .pricing-promo__shine,
  .pricing-promo__pill,
  .pricing-promo__line--1,
  .pricing-promo__line--2,
  .pricing-countdown__sep {
    animation: none !important;
  }
  .pricing-promo:hover,
  .pricing-promo:focus-visible {
    transform: none;
  }
}

.pricing-card__price-block {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.pricing-card__discount-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #1C2B35;
  background: linear-gradient(180deg, #a5d6a7 0%, #66bb6a 100%);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}
.pricing-card__price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  margin: 0;
}
.pricing-card__price-old {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: line-through;
  text-decoration-color: rgba(239, 83, 80, 0.75);
  text-decoration-thickness: 2px;
}
.pricing-card__price-old small {
  font-size: 0.75rem;
  text-decoration: line-through;
}
.pricing-card__price-new {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1.1;
}
.pricing-card__price-new small {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}
.pricing-card__price-new-inner {
  display: inline-block;
  animation: pricing-price-reveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}
@keyframes pricing-price-reveal {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.92);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pricing-card__price-new-inner {
    animation: none;
  }
}

.pricing-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 960px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}
.pricing-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.pricing-card ul { margin-left: 1rem; color: var(--color-text-secondary); }
.pricing-note { color: var(--color-text-muted); font-size: 0.82rem; margin-top: auto; }
.pricing-card--featured {
  border-color: var(--color-accent);
  box-shadow: 0 16px 34px rgba(79, 195, 247, 0.18);
}
.pricing-badge {
  align-self: flex-start;
  background: var(--color-accent);
  color: #1C2B35;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.compare-wrap {
  max-width: 980px;
  margin: 0 auto;
  overflow-x: auto;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}
.compare-table th,
.compare-table td {
  border: 1px solid var(--color-border);
  padding: 0.8rem;
  text-align: center;
}
.compare-table td:first-child,
.compare-table th:first-child { text-align: left; }
.compare-table .is-fyo {
  background: rgba(79, 195, 247, 0.16);
  color: var(--color-accent);
  font-weight: 700;
}

.team-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
.team-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 1rem;
  text-align: center;
}
.team-card img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.6rem;
}
.team-role {
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

/* Footer */
.footer { background: rgba(13, 31, 45, 0.94); padding: 5rem 1.25rem 2.5rem; }
.footer__grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: repeat(4, 1fr); } }
.footer h4 { color: var(--color-accent); font-size: 0.95rem; margin-bottom: 1rem; font-family: var(--font-title); }
.footer p.desc { color: var(--color-text-secondary); font-size: 0.9rem; margin: 1rem 0; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 0.5rem; }
.footer a {
  color: var(--color-text-secondary); text-decoration: none; font-size: 0.9rem; transition: color 0.2s;
}
.footer a:hover { color: var(--color-accent); }
.footer__sep { max-width: 1280px; margin: 2.5rem auto 1.5rem; height: 1px; background: var(--color-border); }
.footer__bottom {
  max-width: 1280px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 0.75rem;
  align-items: center; text-align: center;
  font-size: 0.85rem; color: var(--color-text-muted);
}
@media (min-width: 900px) {
  .footer__bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

.footer .logo-text--footer { display: flex; flex-direction: column; gap: 0.12rem; }
.footer .logo-text--footer-line1 { font-family: var(--font-title); font-size: 1.02rem; line-height: 1.15; }
.footer .logo-text--footer .logo-line2 { font-size: 0.88rem; }

.float-wa-wrap {
  position: fixed;
  bottom: calc(30px + var(--safe-bottom));
  right: calc(24px + var(--safe-right));
  z-index: 999;
  display: flex; align-items: center; gap: 12px;
}
.float-wa-tooltip {
  opacity: 0; background: #1E3040; color: #FFF;
  padding: 0.45rem 0.75rem; border-radius: 8px; font-size: 0.8rem;
  white-space: nowrap; border: 1px solid var(--color-border);
  transition: opacity 0.25s; pointer-events: none;
}
.float-wa-wrap:hover .float-wa-tooltip { opacity: 1; }
.float-wa {
  min-width: 48px; min-height: 48px;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s, box-shadow 0.25s;
  animation: breathe 3s ease-in-out infinite;
  text-decoration: none;
}
.float-wa:hover { transform: scale(1.1); }
.float-wa svg { width: 28px; height: 28px; fill: #FFF; }

.back-top {
  position: fixed;
  bottom: calc(100px + var(--safe-bottom));
  right: calc(24px + var(--safe-right));
  z-index: 998;
  width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  color: var(--color-accent);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.35s, transform 0.35s, visibility 0.35s, background 0.25s, color 0.25s;
}
.back-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--color-accent); color: #1C2B35; }

.ripple-dot {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.45);
  transform: scale(0);
  animation: rippleAnim 0.6s ease-out forwards;
  pointer-events: none;
}
@keyframes rippleAnim { to { transform: scale(4); opacity: 0; } }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  body::before { animation: none; }
  .site-backdrop__photo { filter: saturate(0.45) brightness(0.38); }
}

/* Touch: hide custom cursor hint */
@media (hover: none), (max-width: 1023px) {
  body.cursor-ready { cursor: auto; }
  #cursor-dot, #cursor-ring { display: none !important; }
}

/* Política de privacidad (página independiente) */
.legal-doc-body {
  background-color: transparent;
}

.legal-doc-body .legal-doc-nav .nav-inner {
  justify-content: space-between;
  gap: 1rem;
}
.legal-doc-cta { flex-shrink: 0; white-space: nowrap; }
.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 2.5rem) 1.25rem 4rem;
}
.legal-page__updated {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
}
.legal-page__title {
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: #fff;
  margin-bottom: 1rem;
}
.legal-lead {
  font-size: 1.02rem;
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.65;
}
.legal-page h2 {
  font-family: var(--font-title);
  font-size: 1.08rem;
  color: var(--color-accent);
  margin: 2rem 0 0.75rem;
}
.legal-page p {
  color: var(--color-text-secondary);
  margin-bottom: 0.85rem;
  line-height: 1.65;
}
.legal-page ul {
  margin: 0.5rem 0 1rem 1.25rem;
  color: var(--color-text-secondary);
}
.legal-page li { margin-bottom: 0.45rem; line-height: 1.55; }
.legal-page a { color: var(--color-accent); }
.legal-sign {
  margin-top: 2rem;
  font-weight: 600;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.legal-back { margin-top: 2rem; }
.legal-back a { font-weight: 600; }
.legal-doc-footer { padding: 1.5rem 1.25rem 2.5rem; }
.legal-doc-footer .footer__bottom {
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
}

.footer__muted { color: var(--color-text-muted); font-size: 0.9em; }
.inline-privacy-link { color: var(--color-accent); text-decoration: underline; text-underline-offset: 2px; }
.inline-privacy-link:hover { color: var(--color-accent-hover); }

/* ——— FAQ (visible + alineado con FAQPage JSON-LD) ——— */
.faq-section .section__head { margin-bottom: 2rem; }
.faq-section .faq-intro {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  max-width: 34rem;
  margin: 0 auto;
  text-align: center;
  line-height: 1.55;
}
.faq-section .faq-intro a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.faq-list {
  max-width: 40rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.faq-item-wrap { width: 100%; min-width: 0; }
.faq-item {
  border: 1px solid rgba(79, 195, 247, 0.12);
  border-radius: 16px;
  background: rgba(30, 48, 64, 0.38);
  padding: 0.15rem 1rem 0.15rem 1.1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s var(--ease-bounce);
}
@media (hover: hover) and (pointer: fine) {
  .faq-item:hover {
    border-color: rgba(79, 195, 247, 0.38);
    box-shadow: 0 14px 40px rgba(79, 195, 247, 0.1);
    transform: translateY(-3px);
  }
}
.faq-item[open] {
  border-color: rgba(79, 195, 247, 0.42);
  background: rgba(30, 48, 64, 0.5);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-text-primary);
  list-style: none;
  padding: 0.7rem 2.25rem 0.7rem 0;
  position: relative;
  min-height: 48px;
  display: flex;
  align-items: center;
  line-height: 1.35;
  -webkit-tap-highlight-color: transparent;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-accent);
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 500;
  transition: transform 0.35s var(--ease-bounce), color 0.2s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease-out);
}
.faq-item[open] .faq-item__panel { grid-template-rows: 1fr; }
.faq-item__inner {
  overflow: hidden;
  min-height: 0;
}
.faq-item__inner p {
  margin: 0;
  padding: 0 0 0.85rem;
  font-size: 0.91rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
}
@media (prefers-reduced-motion: reduce) {
  .faq-item,
  .faq-item summary::after {
    transition: none;
  }
  .faq-item__panel { transition: none; }
}

/* ——— Mobile-first: áreas seguras, táctil, rendimiento ——— */
@media (max-width: 600px) {
  .btn-primary, .btn-secondary, .btn-dark, .btn-outline-dark, .form-submit {
    min-height: 48px;
    padding-top: max(0.85rem, 12px);
    padding-bottom: max(0.85rem, 12px);
  }
  .service-card, .portfolio-card, .form-card, .testimonial-card, .credentials-item {
    border-radius: 22px;
  }
  .nav-inner {
    padding-left: max(1.25rem, calc(1.25rem + var(--safe-left)));
    padding-right: max(1.25rem, calc(1.25rem + var(--safe-right)));
  }
  .mobile-menu {
    padding-left: max(1.25rem, var(--safe-left));
    padding-right: max(1.25rem, var(--safe-right));
    padding-bottom: calc(1.5rem + var(--safe-bottom));
  }
  .faq-section .faq-list {
    padding-left: max(0, var(--safe-left));
    padding-right: max(0, var(--safe-right));
    gap: 0.45rem;
  }
  .faq-item {
    border-radius: 14px;
    padding-left: 0.95rem;
    padding-right: 0.85rem;
  }
  .faq-item summary {
    font-size: 0.93rem;
    padding-right: 2rem;
    min-height: 48px;
  }
  .faq-item__inner p { font-size: 0.88rem; line-height: 1.62; }
}

@media (max-width: 768px) {
  html, body {
    overflow-x: clip !important;
  }
  main, .section, .nav-wrap, .mobile-menu, .wave-divider, footer, .hero {
    max-width: 100vw;
    overflow-x: clip;
  }
}

/* Android/coarse-pointer performance tuning (mantiene diseño y animación) */
@media (hover: none) and (pointer: coarse) {
  .nav-wrap,
  .hero__stats,
  .service-card,
  .process-step,
  .portfolio-card,
  .credentials-item,
  .testimonial-card,
  .form-card,
  .blog-card,
  .cta-banner__inner {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .service-card,
  .process-step,
  .portfolio-card,
  .credentials-item,
  .testimonial-card,
  .blog-card {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
  }
}

@media (hover: none) and (pointer: coarse) {
  .service-card, .portfolio-card, .blog-card, .btn-primary, .btn-outline-cyan, .nav-wrap {
    transition-duration: 0.14s;
  }
}

/* Mobile compact mode: más contenido visible sin perder limpieza */
@media (max-width: 768px) {
  .section { padding: 2.25rem 0.9rem; }
  .section__head { margin-bottom: 1.4rem; }
  h2.section-title { margin-bottom: 0.45rem; }
  .section__head p { font-size: 0.93rem; }

  .hero {
    min-height: auto;
    padding: calc(var(--nav-h) + 1rem) 1rem 1.1rem;
  }
  .hero__badge { margin-bottom: 0.65rem; }
  .hero__title { margin-bottom: 0.6rem; }
  .hero__sub { margin-bottom: 0.65rem; min-height: 0; font-size: 0.98rem; }
  .hero-email-form { margin-bottom: 0.55rem; }
  .hero-email-form__row { grid-template-columns: 1fr; gap: 0.45rem; }
  .hero-email-form input { padding: 11px 12px; font-size: 0.92rem; }
  .hero-email-form .btn-primary { width: 100%; padding: 12px 14px; font-size: 0.9rem; }
  .hero__actions { gap: 0.5rem; margin-bottom: 0.7rem; }
  .hero__scroll { display: none; }
  .hero__stats { margin-top: 0.45rem; padding: 0.9rem 0.45rem; gap: 0.25rem; }
  .hero__stat-num { font-size: 1.5rem; }
  .hero__stat-label { font-size: 0.8rem; line-height: 1.25; }
  .hero-live { margin-top: 0.65rem; padding: 0.55rem 0.7rem; font-size: 0.83rem; }

  .services-grid,
  .portfolio-grid,
  .testimonials-grid,
  .blog-grid,
  .team-grid {
    gap: 0.55rem;
  }

  /* Precios en scroll horizontal (como comparativa) */
  .pricing-grid {
    display: flex;
    gap: 0.7rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .pricing-grid .pricing-card {
    min-width: 82%;
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .service-card { padding: 0.88rem; }
  .service-card h3 { font-size: 1.05rem; margin-bottom: 0.45rem; }
  .service-card > p { font-size: 0.88rem; margin-bottom: 0.6rem; }
  .service-card li { font-size: 0.84rem; margin-bottom: 0.25rem; }

  .process-steps { gap: 0.55rem; padding-left: 0.55rem; }
  .process-step { padding: 0.78rem 0.85rem; }
  .process-step h3 { font-size: 0.94rem; }
  .process-step p { font-size: 0.82rem; line-height: 1.45; }

  .portfolio-card__body,
  .blog-card__body,
  .pricing-card,
  .testimonial-card,
  .team-card,
  .form-card {
    padding: 0.78rem;
  }
  .blog-card__img { height: 142px; }
  .testimonial-card .quote { font-size: 0.9rem; margin-bottom: 0.65rem; }
  .about-visual img,
  .about-visual picture img { object-position: center top; }

  .pricing-card__price-new { font-size: 1.6rem; }
  .pricing-card ul { margin-left: 0.85rem; }
  .pricing-card li { font-size: 0.84rem; margin-bottom: 0.2rem; }
  .pricing-note { font-size: 0.75rem; }

  .compare-table { min-width: 620px; }
  .compare-table th, .compare-table td { padding: 0.55rem; font-size: 0.82rem; }

  .cta-banner { padding: 3rem 1rem; }
  .cta-banner p { margin-bottom: 1rem; }
  .cta-banner__actions { gap: 0.55rem; }

  .contact-grid { gap: 0.8rem; }
  .info-card { padding: 0.8rem; }
  .form-group { margin-bottom: 0.75rem; }
  .form-group input, .form-group select, .form-group textarea { padding: 12px 13px; }
  .form-group textarea { min-height: 92px; }

  .footer { padding: 3rem 1rem 2rem; }
  .footer__grid { gap: 1.2rem; }
  .footer__sep { margin: 1.5rem auto 1rem; }
}

/* Android: micro-optimización visual sin tocar desktop */
.is-android .faq-item {
  box-shadow: none;
  backdrop-filter: none;
}
.is-android .about-visual img,
.is-android .about-visual picture img {
  filter: saturate(0.95);
}
