@import url('https://fonts.bunny.net/css?family=playfair-display:700,800|inter:400,500,600,700&display=swap');

:root {
  /* Fondos */
  --bg-base: #0f0f1a;
  --bg-section: #13131f;
  --bg-card: #1a1a2e;
  --bg-card-hover: #1f1f38;

  /* Bordes */
  --border-subtle: #2d2d4e;
  --border-medium: #3d3d6e;

  /* Texto */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Acentos */
  --accent-primary: #7c3aed;
  --accent-primary-h: #6d28d9;
  --accent-secondary: #06b6d4;
  --accent-success: #10b981;
  --accent-warning: #f59e0b;
  --accent-danger: #ef4444;

  /* Gradientes */
  --gradient-hero: linear-gradient(135deg, #1a0a2e 0%, #0a1628 60%, #0d2137 100%);
  --gradient-section: linear-gradient(180deg, #13131f 0%, #0f0f1a 100%);
  --gradient-card: linear-gradient(135deg, #1a1a2e 0%, #1f1f38 100%);
  --gradient-cta: linear-gradient(90deg, #7c3aed, #8b5cf6);

  /* Tipografía */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --text-hero: clamp(2.25rem, 5.5vw, 4.25rem);
  --text-h1: clamp(1.875rem, 4vw, 3rem);
  --text-h2: clamp(1.5rem, 3vw, 2.25rem);
  --text-h3: clamp(1.125rem, 2vw, 1.375rem);
  --text-body: clamp(0.9375rem, 1.5vw, 1rem);
  --text-small: 0.875rem;
  --text-xs: 0.8125rem;
  --lh-hero: 1.08;
  --lh-head: 1.2;
  --lh-body: 1.65;
  --ls-label: 0.06em;
  --ls-caps: 0.1em;

  /* Alias legacy (compatibilidad) */
  --bg: var(--bg-base);
  --bg-elevated: var(--bg-card);
  --card: var(--gradient-card);
  --border: var(--border-subtle);
  --text: var(--text-primary);
  --muted: var(--text-secondary);
  --accent: #8b5cf6;
  --accent-2: var(--accent-secondary);
  --agenda: #a78bfa;
  --audio: #34d399;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 24px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  line-height: var(--lh-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
  pointer-events: none;
  opacity: 0.9;
}

.bg-glow {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  pointer-events: none;
}

.bg-glow-a { top: -120px; left: -80px; background: #7c3aed; opacity: 0.4; }
.bg-glow-b { bottom: -160px; right: -60px; background: #0891b2; opacity: 0.35; }

.site-header {
  position: relative;
  backdrop-filter: blur(16px);
  background: rgba(15, 15, 26, 0.88);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

.brand-logo {
  height: 48px;
  width: auto;
  max-width: 200px;
  aspect-ratio: auto;
  display: block;
  object-fit: contain;
  background: transparent;
}

.brand-logo.img-failed,
.app-icon-img.img-failed {
  display: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.header-nav {
  display: flex;
  gap: 1.25rem;
}

.header-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.25s ease;
}

.header-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.header-nav a:hover { color: var(--text); }
.header-nav a:hover::after { transform: scaleX(1); }

.hero {
  position: relative;
  padding: 5.5rem 0 3rem;
  overflow: hidden;
}

.hero--stage {
  min-height: min(720px, calc(100vh - 80px));
  min-height: min(720px, calc(100dvh - 80px));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 0 5rem;
}

.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11, 15, 23, 0.85) 100%);
  pointer-events: none;
  z-index: 1;
  opacity: 1;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 15% 40%, rgba(139, 92, 246, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 25%, rgba(34, 211, 238, 0.18), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 90%, rgba(124, 58, 237, 0.14), transparent 45%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.eyebrow {
  color: var(--accent-secondary);
  text-transform: uppercase;
  letter-spacing: var(--ls-caps);
  font-size: var(--text-xs);
  font-weight: 600;
  margin: 0 0 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 800;
  line-height: var(--lh-hero);
  margin: 0 0 1.25rem;
}

.hero-line {
  display: block;
  overflow: hidden;
  color: var(--text-primary);
}

.hero-line--accent {
  color: #c4b5fd;
}

.hero-lead {
  color: var(--text-secondary);
  font-size: var(--text-body);
  max-width: 40rem;
  margin: 0 0 2rem;
}

.hero-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats div {
  padding: 1rem 1.25rem;
  border: 1px solid var(--border-medium);
  border-radius: 18px;
  background: var(--bg-card);
  min-width: 120px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.hero-stats strong {
  display: block;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.hero-stats span { color: var(--text-muted); font-size: var(--text-small); }

.section-head h2 {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: var(--lh-head);
  margin: 0 0 0.5rem;
}

.section-head {
  margin-bottom: 2rem;
}

.section-head p { color: var(--text-secondary); margin: 0; }

.apps { padding: 1rem 0 4rem; }

/* Apps showcase (Nico Cherubin–inspired horizontal gallery) */
.apps-showcase {
  padding: 2rem 0 4.5rem;
  overflow: hidden;
}

.apps-showcase__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
  align-items: stretch;
  list-style: none;
  padding: 0;
}

.apps-showcase__grid > li {
  display: flex;
  min-width: 0;
}

.apps-showcase__grid > li > .showcase-card {
  flex: 1;
  width: 100%;
}

.showcase-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.showcase-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 20px 60px rgba(139, 92, 246, 0.12), var(--shadow);
}

.showcase-card--agenda {
  border-color: rgba(167, 139, 250, 0.28);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(18, 24, 38, 0.95));
}

.showcase-card--audio {
  border-color: rgba(52, 211, 153, 0.22);
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.06), rgba(18, 24, 38, 0.95));
}

.showcase-card--finanzas {
  border-color: rgba(59, 130, 246, 0.28);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(18, 24, 38, 0.95));
}

.showcase-card__index {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.6);
  letter-spacing: 0.06em;
  z-index: 2;
  pointer-events: none;
}

.showcase-card__row {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 1rem;
  padding: 1.35rem 1.25rem 1.5rem;
  min-height: 100%;
}

.showcase-card__icon-col {
  flex: 0 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.showcase-card__icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
  border-radius: 18px;
  flex-shrink: 0;
}

.showcase-card__badge {
  background: rgba(167, 139, 250, 0.18);
  color: #ddd6fe;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}

.showcase-card__header .showcase-card__badge {
  display: inline-block;
  margin-top: 0.35rem;
}

.footer-link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  text-align: left;
}
.footer-link-btn:hover { color: var(--accent-2); }

.showcase-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.showcase-card__header {
  padding-right: 2rem;
}

.showcase-card__header h3 {
  margin: 0.2rem 0 0;
  font-size: 1.15rem;
  line-height: 1.25;
}

.showcase-card__tag {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.35;
}

.showcase-card__version {
  margin: 0.25rem 0 0;
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 600;
}

.showcase-card__desc,
.showcase-card__features {
  color: var(--muted);
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
}

.showcase-card__desc {
  flex: 1;
}

.showcase-card__features {
  padding-left: 1rem;
  font-size: 0.84rem;
  line-height: 1.45;
}

.showcase-card__features li {
  margin-bottom: 0.35rem;
}

.showcase-card__features li:last-child {
  margin-bottom: 0;
}

.showcase-card__actions {
  display: grid;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 0.75rem;
}

.showcase-card__actions .btn {
  width: 100%;
  text-align: center;
  justify-content: center;
}

.showcase-card__more {
  display: block;
  text-align: center;
  font-size: 0.88rem;
  padding-top: 0.15rem;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.app-grid-public {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 900px;
  margin: 0 auto;
}

.app-card {
  position: relative;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  isolation: isolate;
}

.app-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.45), rgba(34, 211, 238, 0.25));
  opacity: 0;
  z-index: -1;
  filter: blur(16px);
  transition: opacity 0.4s ease;
}

.app-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 28px 90px rgba(139, 92, 246, 0.12), var(--shadow);
}

.app-card:hover::before { opacity: 0.55; }

.app-card.featured {
  border-color: rgba(167, 139, 250, 0.45);
  background: linear-gradient(180deg, rgba(139,92,246,0.12), rgba(18,24,38,0.9));
}

.featured-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(167,139,250,0.18);
  color: #ddd6fe;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
}

.app-icon,
.app-icon-img {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  flex-shrink: 0;
}

.app-icon {
  display: grid;
  place-items: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  font-weight: 700;
}

.app-icon-img {
  display: block;
  object-fit: contain;
  background: transparent;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.app-icon-img--wide {
  width: auto;
  max-width: 140px;
  height: 56px;
}

.app-icon.agenda { background: rgba(167,139,250,0.18); color: #ddd6fe; }
.app-icon.audio { background: rgba(52,211,153,0.18); color: #6ee7b7; font-size: 1.6rem; }

.app-meta h3 {
  margin: 0.25rem 0 0;
  font-size: 1.35rem;
}

.app-tag {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.app-version {
  margin: 0.15rem 0 0;
  color: var(--accent-2);
  font-size: 0.85rem;
  font-weight: 600;
}

.app-desc,
.app-features {
  color: var(--muted);
  margin: 0;
}

.app-features {
  padding-left: 1.1rem;
  font-size: 0.92rem;
}

.app-features li { margin-bottom: 0.35rem; }

.download-actions {
  display: grid;
  gap: 0.75rem;
  margin-top: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--gradient-cta);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(90deg, var(--accent-primary-h), #7c3aed);
}

.btn-secondary {
  background: var(--bg-card);
  border-color: var(--border-medium);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: #5b5b8a;
}

.btn.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.steps {
  padding: 1rem 0 5rem;
}

.about {
  padding: 0 0 3rem;
}

.about-intro {
  max-width: 680px;
  margin-bottom: 2.5rem;
}

.about-intro h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 0.75rem;
}

.about-intro p {
  color: var(--muted);
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
}

.value-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.value-card {
  position: relative;
  padding: 1.5rem;
  border-radius: 20px;
  border: 1px solid var(--border-medium);
  background: var(--bg-card);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  isolation: isolate;
}

.value-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.35), rgba(34, 211, 238, 0.2));
  opacity: 0;
  z-index: -1;
  filter: blur(14px);
  transition: opacity 0.4s ease;
}

.value-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.28);
  box-shadow: 0 20px 60px rgba(34, 211, 238, 0.08);
}

.value-card:hover::before { opacity: 0.5; }

.value-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(34, 211, 238, 0.12));
  color: #c4b5fd;
}

.value-icon svg {
  width: 22px;
  height: 22px;
}

.value-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.value-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.value-card a {
  color: #a5b4fc;
  text-decoration: none;
}

.value-card a:hover {
  color: var(--text);
  text-decoration: underline;
}

.legal-page { background: var(--bg); }

.legal-hero {
  padding: 1.25rem 0 0;
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover { color: var(--accent-2); }

.breadcrumb span[aria-current="page"] { color: var(--text); }

.legal-content {
  padding: 2rem 0 4rem;
  max-width: 48rem;
  position: relative;
  z-index: 2;
}

.legal-content h1 {
  font-family: var(--font-display);
  font-size: var(--text-h1);
  font-weight: 700;
  line-height: var(--lh-head);
  margin: 0 0 0.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.legal-content h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.legal-meta {
  color: var(--muted);
  margin: 0 0 2rem;
  font-size: 0.95rem;
}

.legal-content section {
  margin-bottom: 2rem;
}

.legal-content h2 {
  font-size: var(--text-h3);
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.legal-content h3 {
  font-size: 1.05rem;
  margin: 1rem 0 0.5rem;
}

.legal-content p,
.legal-content li {
  color: var(--text-secondary);
  max-width: 68ch;
}

.legal-content a {
  color: #93c5fd;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.legal-content a:hover { color: #e0f2fe; }

/* Enlaces en contenido: distinguibles sin depender solo del color (WCAG) */
.about a,
.section-head a,
.step-card a,
.value-card a,
.showcase-card__more {
  color: #93c5fd;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.about a:hover,
.section-head a:hover,
.step-card a:hover,
.value-card a:hover,
.showcase-card__more:hover {
  color: #e0f2fe;
}

.legal-hub section + section { margin-top: 2.25rem; }

.compliance-list--spaced { margin-top: 1.25rem; }

.compliance-list--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
}

.legal-hub-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.legal-hub-links li {
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.legal-hub-links a {
  display: block;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 0.35rem;
}

.legal-hub-links a:hover { color: var(--accent-2); }

.legal-hub-links span {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.legal-hub-trust {
  margin-top: 2.5rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid var(--border);
}

.legal-hub-trust .compliance-list li { font-size: 0.88rem; color: var(--muted); }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.92rem;
}

.legal-table th,
.legal-table td {
  border: 1px solid var(--border);
  padding: 0.65rem 0.75rem;
  text-align: left;
}

.legal-table th { background: rgba(255,255,255,0.04); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-card {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255,255,255,0.02);
}

.contact-card h2 { margin: 0 0 0.35rem; font-size: 1.1rem; }
.contact-card p { margin: 0 0 0.75rem; color: var(--muted); font-size: 0.92rem; }
.contact-card a { font-weight: 600; }

.cookie-banner {
  position: fixed;
  left: max(1rem, env(safe-area-inset-left, 0px));
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  z-index: 10000;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  padding-bottom: max(1rem, calc(0.75rem + env(safe-area-inset-bottom, 0px)));
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(11, 15, 23, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  pointer-events: auto;
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.cookie-banner a {
  color: #93c5fd;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.cookie-banner.hidden { display: none !important; }

.cookie-banner .cookie-accept-btn {
  flex-shrink: 0;
  min-height: 44px;
  min-width: 44px;
  padding: 0.75rem 1.25rem;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.cookie-banner .cookie-accept-btn:active:not(:disabled) {
  transform: scale(0.98);
  opacity: 0.92;
}

.cookie-banner .cookie-accept-btn:disabled {
  opacity: 0.65;
}

body.cookie-banner-visible {
  padding-bottom: max(7rem, calc(6rem + env(safe-area-inset-bottom, 0px)));
}

.footer-muted { color: var(--muted); font-size: 0.88rem; margin: 0.25rem 0 0; }

.legal-footer { margin-top: 2rem; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.steps-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 720px;
}

.step-card {
  padding: 1.5rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.step-num {
  display: inline-block;
  color: var(--accent-2);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.step-card h3 { margin: 0 0 0.5rem; }
.step-card p { margin: 0; color: var(--muted); }

.legal-trust {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}

.legal-trust-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: start;
}

.legal-trust h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  margin: 0 0 0.75rem;
}

.legal-trust p {
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
}

.compliance-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.compliance-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #cbd5e1;
  font-size: 0.92rem;
}

.compliance-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
}

.site-footer {
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 2;
}

.footer-trust-strip {
  padding: 0.85rem 0;
  background: rgba(139, 92, 246, 0.06);
  border-bottom: 1px solid var(--border);
}

.footer-trust-strip .compliance-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  justify-content: center;
}

.footer-trust-strip .compliance-list li { font-size: 0.82rem; color: var(--muted); }

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 0.9fr 0.7fr;
  gap: 2rem;
  padding: 2.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-title {
  margin: 0 0 0.5rem;
  color: var(--text);
  font-size: 1rem;
}

.footer-desc {
  margin: 0 0 0.75rem;
  line-height: 1.65;
  max-width: 320px;
}

.footer-col-title {
  margin: 0 0 0.85rem;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-contact-list,
.footer-legal-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.footer-contact-list a,
.footer-legal-links a,
.footer-brand a {
  color: #93c5fd;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  transition: color 0.2s ease;
}

.footer-contact-list a:hover,
.footer-legal-links a:hover,
.footer-brand a:hover { color: var(--text); }

.footer-contact-list li { line-height: 1.5; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0 2rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.65;
  max-width: 920px;
}

.footer-bottom a {
  color: #93c5fd;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.footer-bottom a:hover { text-decoration: underline; }

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover { color: var(--text); }

[data-animate] {
  opacity: 1;
  transform: none;
}

.step-card {
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.step-card:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 92, 246, 0.25);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (max-width: 1100px) {
  .apps-showcase__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .header-inner {
    min-height: 68px;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 0;
  }

  .brand-logo {
    height: 34px;
    max-width: 160px;
  }

  .header-nav {
    display: flex;
    flex: 1 1 100%;
    order: 3;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
  }

  .header-nav::-webkit-scrollbar { display: none; }

  .header-nav a {
    flex-shrink: 0;
    font-size: var(--text-small);
    padding: 0.5rem 0.65rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
  }

  .hero--stage {
    min-height: auto;
    padding-bottom: 4.5rem;
  }

  .apps-showcase__grid { grid-template-columns: 1fr; }

  .app-grid, .steps-grid, .steps-grid-2, .contact-grid { grid-template-columns: 1fr; }
  .value-pillars { grid-template-columns: 1fr 1fr; }
  .legal-trust-inner { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    left: max(0.75rem, env(safe-area-inset-left, 0px));
    right: max(0.75rem, env(safe-area-inset-right, 0px));
    bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
  }

  .cookie-banner .cookie-accept-btn { width: 100%; }
}

@media (max-width: 560px) {
  .value-pillars { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
}

/* AdSense: oculto hasta fill real (ads-loader añade .is-ad-filled) */
.ad-slot:not(.is-ad-filled) {
  display: none;
}

/* Badges de estado (auditoría diseño) */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.badge--success {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
}

.badge--warning {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
}

.note-warning {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
  color: #fde68a;
  font-size: var(--text-small);
  line-height: var(--lh-body);
}

.note-success {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.08);
  color: #a7f3d0;
  font-size: var(--text-small);
}
