/* ALTPROG — capa visual SaaS 2026 (estático, IIS-friendly) */
/* Fuentes web: enlazar en HTML (preload + onload) para no bloquear el render en móvil. */

:root {
  --ap-bg: #f1f5f9;
  --ap-surface: #ffffff;
  --ap-text: #0f172a;
  --ap-muted: #64748b;
  --ap-border: rgba(15, 23, 42, 0.09);
  --ap-accent: #4f46e5;
  --ap-accent-hover: #4338ca;
  --ap-accent-soft: rgba(79, 70, 229, 0.14);
  --ap-accent-glow: rgba(99, 102, 241, 0.35);
  --ap-mint: #10b981;
  --ap-mint-soft: rgba(16, 185, 129, 0.15);
  --ap-hero-from: #070b14;
  --ap-hero-to: #134e4a;
  --ap-radius: 22px;
  --ap-radius-sm: 16px;
  --ap-radius-xs: 12px;
  --ap-radius-lg: 28px;
  --ap-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 16px 48px rgba(15, 23, 42, 0.09);
  --ap-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --ap-font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --ap-font-brand: "Space Grotesk", "Plus Jakarta Sans", system-ui, sans-serif;
  /* Sombras barra superior (capas: brillo + difuminado + profundidad) */
  --ap-header-shadow: 0 1px 0 rgba(255, 255, 255, 0.72) inset,
    0 4px 6px -1px rgba(15, 23, 42, 0.05),
    0 12px 36px -14px rgba(15, 23, 42, 0.12);
  --ap-header-shadow-raised: 0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 6px 16px -4px rgba(15, 23, 42, 0.08),
    0 20px 44px -16px rgba(15, 23, 42, 0.14);
  --ap-header-shadow-hero: 0 10px 40px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.07) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --ap-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ap-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ap-header-h: 3.6rem;
  --ap-focus: 0 0 0 3px var(--ap-accent-soft), 0 0 0 1.5px var(--ap-accent);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--ap-header-h) + 0.5rem);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body.ap-body {
  margin: 0;
  font-family: var(--ap-font);
  color: var(--ap-text);
  background-color: var(--ap-bg);
  background-image: radial-gradient(ellipse 120% 80% at 50% -30%, rgba(99, 102, 241, 0.06), transparent 55%);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.ap-skip-link {
  position: absolute;
  left: -9999px;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--ap-accent);
  color: #fff;
}
.ap-skip-link:focus {
  left: 1rem;
  top: 1rem;
  outline: none;
  box-shadow: var(--ap-focus);
  border-radius: var(--ap-radius-sm);
}

/* Header */
.ap-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px) saturate(1.35);
  -webkit-backdrop-filter: blur(16px) saturate(1.35);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 0 0 var(--ap-radius-lg) var(--ap-radius-lg);
  box-shadow: var(--ap-header-shadow);
  transition: background 0.35s var(--ap-ease-out), box-shadow 0.35s var(--ap-ease-out), border-color 0.35s var(--ap-ease-out);
}

.ap-header.ap-header--raised {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--ap-border);
  box-shadow: var(--ap-header-shadow-raised);
}

.ap-navbar {
  padding: 0.45rem 0;
  align-items: center;
}

.ap-navbar .navbar-brand {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--ap-text) !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  max-width: min(78vw, 19rem);
  text-decoration: none;
  margin-right: 0.75rem;
}

.ap-brand-text {
  display: block;
  font-family: var(--ap-font-brand);
  font-weight: 600;
  font-size: clamp(0.75rem, 2.4vw, 0.95rem);
  letter-spacing: -0.04em;
  line-height: 1.25;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.55);
}

.ap-navbar .navbar-brand img {
  height: 2.125rem;
  width: auto;
  border-radius: var(--ap-radius-sm);
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.06), 0 4px 14px rgba(15, 23, 42, 0.1);
}

.ap-navbar .nav-link {
  color: var(--ap-muted) !important;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.5rem 0.85rem !important;
  border-radius: var(--ap-radius-sm);
  transition: color 0.2s, background 0.2s;
}

.ap-navbar .nav-link:hover {
  color: var(--ap-text) !important;
  background: rgba(15, 23, 42, 0.05);
}

.ap-navbar .nav-link:focus {
  outline: none;
}

.ap-navbar .nav-link:focus-visible {
  color: var(--ap-text) !important;
  background: rgba(15, 23, 42, 0.05);
  box-shadow: var(--ap-focus);
}

.ap-navbar .nav-link.ap-btn-cta {
  background: linear-gradient(145deg, var(--ap-accent) 0%, #6366f1 100%);
  color: #fff !important;
  margin-left: 0.25rem;
  min-height: 2.75rem;
  align-items: center;
  display: inline-flex;
  gap: 0.45rem;
  transition: transform 0.2s var(--ap-ease-out), box-shadow 0.2s var(--ap-ease-out), background 0.2s;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.35);
}
.ap-navbar .nav-link.ap-btn-cta:hover {
  background: linear-gradient(145deg, var(--ap-accent-hover) 0%, #4f46e5 100%);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
}

.ap-navbar .nav-link.ap-btn-cta:focus-visible {
  box-shadow: var(--ap-focus), 0 4px 14px rgba(79, 70, 229, 0.4);
}

.ap-navbar .dropdown-menu {
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius);
  box-shadow: var(--ap-shadow);
  padding: 0.5rem;
  min-width: 15rem;
  margin-top: 0.35rem;
}

.ap-dropdown {
  padding: 0.45rem !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: 0 4px 6px rgba(15, 23, 42, 0.04), 0 20px 50px rgba(15, 23, 42, 0.12) !important;
  animation: ap-dropdown-in 0.28s var(--ap-ease-out);
}

@keyframes ap-dropdown-in {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ap-dropdown-item {
  display: flex !important;
  align-items: center;
  gap: 0.75rem;
  border-radius: var(--ap-radius-sm) !important;
  font-size: 0.9rem !important;
  padding: 0.55rem 0.65rem 0.55rem 0.55rem !important;
  color: var(--ap-text) !important;
  transition: background 0.2s, color 0.2s, transform 0.2s var(--ap-ease-out), box-shadow 0.2s;
}

.ap-dropdown-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
  border-radius: var(--ap-radius-xs);
  background: linear-gradient(145deg, var(--ap-accent-soft), rgba(99, 102, 241, 0.1));
  color: var(--ap-accent);
  font-size: 1.05rem;
  line-height: 1;
  transition: transform 0.2s var(--ap-ease-out), background 0.2s, color 0.2s, box-shadow 0.2s;
}

.ap-dropdown-item__label {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}

.ap-dropdown-item:hover {
  background: linear-gradient(90deg, var(--ap-accent-soft), rgba(99, 102, 241, 0.08)) !important;
  color: var(--ap-accent) !important;
  transform: translateX(3px);
  box-shadow: 0 2px 12px rgba(79, 70, 229, 0.12);
}

.ap-dropdown-item:hover .ap-dropdown-item__icon {
  background: linear-gradient(145deg, var(--ap-accent), #6366f1);
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.ap-dropdown-item:focus-visible {
  outline: none;
  background: var(--ap-accent-soft) !important;
  color: var(--ap-accent) !important;
  box-shadow: inset 0 0 0 2px var(--ap-accent);
}

.ap-dropdown-divider {
  margin: 0.4rem 0;
  border-top: 1px dashed rgba(15, 23, 42, 0.12);
  opacity: 1;
}

.ap-navbar .dropdown-item:not(.ap-dropdown-item) {
  border-radius: var(--ap-radius-sm);
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  color: var(--ap-text);
  transition: background 0.15s, color 0.15s;
}

.ap-navbar .dropdown-item:not(.ap-dropdown-item):hover {
  background: var(--ap-accent-soft);
  color: var(--ap-accent);
}

.ap-navbar .dropdown-item:not(.ap-dropdown-item):focus-visible {
  outline: none;
  background: var(--ap-accent-soft);
  color: var(--ap-accent);
  box-shadow: inset 0 0 0 2px var(--ap-accent);
}

/* Enlaces nav con icono (Inicio / Servicios / CTA) */
.ap-nav-link {
  display: inline-flex !important;
  align-items: center;
  gap: 0.45rem;
}

.ap-nav-link__icon {
  display: inline-flex;
  opacity: 0.9;
  font-size: 1.05rem;
  line-height: 1;
}

.ap-btn-cta .ap-btn-cta__icon {
  font-size: 1rem;
  opacity: 0.95;
}

@media (prefers-reduced-motion: reduce) {
  .ap-dropdown {
    animation: none;
  }

  .ap-dropdown-item:hover {
    transform: none;
  }

  .ap-dropdown-item:hover .ap-dropdown-item__icon {
    transform: none;
  }
}

.ap-navbar .navbar-toggler {
  border: 1px solid var(--ap-border);
  padding: 0.4rem 0.65rem;
}
.ap-navbar .navbar-toggler-icon {
  width: 1.35rem;
  height: 1.35rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2815,23,42,0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Nav moderna (estilo landing tipo Jelou) */
.ap-navbar--modern {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
  min-height: 2.75rem;
}

.ap-navbar-nav {
  gap: 0.15rem;
}

@media (min-width: 768px) {
  .ap-navbar-nav {
    gap: 0.35rem;
  }
}

.ap-navbar-toggler {
  border-radius: var(--ap-radius-sm) !important;
  padding: 0.4rem 0.6rem !important;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.ap-navbar-toggler:hover {
  background: rgba(15, 23, 42, 0.04);
}

/* Home: barra alineada al hero Matrix (mismos tonos; sin blanco al entrar) */
.ap-header--hero:not(.ap-header--raised) {
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.97) 0%, rgba(6, 78, 59, 0.42) 100%),
    radial-gradient(ellipse 100% 120% at 50% 0%, rgba(34, 197, 94, 0.08), transparent 55%) !important;
  backdrop-filter: blur(14px) saturate(1.35);
  -webkit-backdrop-filter: blur(14px) saturate(1.35);
  border-bottom: 1px solid rgba(16, 185, 129, 0.18);
  box-shadow: var(--ap-header-shadow-hero);
}

.ap-header--hero:not(.ap-header--raised) .navbar {
  background: transparent !important;
}

.ap-header--hero:not(.ap-header--raised) .ap-nav-link__icon {
  color: rgba(255, 255, 255, 0.92);
}

.ap-header--hero:not(.ap-header--raised) .navbar-brand {
  color: #fff !important;
}

.ap-header--hero:not(.ap-header--raised) .ap-brand-text {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45), 0 0 28px rgba(0, 0, 0, 0.35);
}

.ap-header--hero:not(.ap-header--raised) .navbar-brand img {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.ap-header--hero:not(.ap-header--raised) .nav-link:not(.ap-btn-cta) {
  color: rgba(255, 255, 255, 0.88) !important;
}

.ap-header--hero:not(.ap-header--raised) .nav-link:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1);
}

.ap-header--hero:not(.ap-header--raised) .nav-link:focus-visible {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.45);
}

.ap-header--hero:not(.ap-header--raised) .dropdown-toggle::after {
  border-top-color: rgba(255, 255, 255, 0.85);
}

.ap-header--hero:not(.ap-header--raised) .nav-link.ap-btn-cta {
  background: linear-gradient(145deg, #34d399 0%, var(--ap-mint) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.45);
}

.ap-header--hero:not(.ap-header--raised) .nav-link.ap-btn-cta:hover {
  background: linear-gradient(145deg, #6ee7b7 0%, #34d399 100%);
  color: #0f172a !important;
}

.ap-header--hero:not(.ap-header--raised) .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.92%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.ap-header--hero:not(.ap-header--raised) .ap-navbar-toggler {
  border-color: rgba(255, 255, 255, 0.35) !important;
}

.ap-header--hero:not(.ap-header--raised) .ap-navbar-toggler:hover {
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 767px) {
  .ap-header--hero:not(.ap-header--raised) .navbar-collapse {
    margin-top: 0.75rem;
    padding: 1rem 1.1rem;
    border-radius: var(--ap-radius);
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  }

  .ap-header--hero:not(.ap-header--raised) .navbar-collapse .dropdown-menu,
  .ap-header--hero:not(.ap-header--raised) .navbar-collapse .ap-dropdown {
    background: rgba(248, 250, 252, 0.98) !important;
    border-color: var(--ap-border) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35) !important;
  }

  .ap-header--hero:not(.ap-header--raised) .navbar-collapse .nav-link:not(.ap-btn-cta) {
    color: rgba(255, 255, 255, 0.95) !important;
  }
}

/* Tras scroll en home: misma barra clara que el resto del sitio */
.ap-header--hero.ap-header--raised {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: var(--ap-border);
  box-shadow: var(--ap-header-shadow-raised);
}

.ap-header--hero.ap-header--raised .navbar-brand {
  color: var(--ap-text) !important;
}

.ap-header--hero.ap-header--raised .ap-brand-text {
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.55);
}

.ap-header--hero.ap-header--raised .navbar-brand img {
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.ap-header--hero.ap-header--raised .nav-link:not(.ap-btn-cta) {
  color: var(--ap-muted) !important;
}

.ap-header--hero.ap-header--raised .nav-link:hover {
  color: var(--ap-text) !important;
  background: rgba(15, 23, 42, 0.05);
}

.ap-header--hero.ap-header--raised .dropdown-toggle::after {
  border-top-color: var(--ap-muted);
}

.ap-header--hero.ap-header--raised .nav-link.ap-btn-cta {
  background: linear-gradient(145deg, var(--ap-accent) 0%, #6366f1 100%);
  color: #fff !important;
  border: none;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.35);
}

.ap-header--hero.ap-header--raised .nav-link.ap-btn-cta:hover {
  color: #fff !important;
  background: linear-gradient(145deg, var(--ap-accent-hover) 0%, #4f46e5 100%);
}

.ap-header--hero.ap-header--raised .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2815,23,42,0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.ap-header--hero.ap-header--raised .ap-navbar-toggler {
  border-color: var(--ap-border) !important;
}

@media (max-width: 767px) {
  .ap-header--hero.ap-header--raised .navbar-collapse {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0.35rem 0 1rem;
    margin-top: 0.5rem;
  }

  .ap-header--hero.ap-header--raised .navbar-collapse .nav-link:not(.ap-btn-cta) {
    color: var(--ap-muted) !important;
  }
}

/* Hero */
.ap-hero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(4rem, 10vw, 7rem);
  background: linear-gradient(145deg, var(--ap-hero-from) 0%, var(--ap-hero-to) 55%, #312e81 100%);
  color: #fff;
  overflow: hidden;
}

.ap-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 80% 20%, rgba(99, 102, 241, 0.35), transparent 50%),
    radial-gradient(ellipse 60% 40% at 10% 80%, rgba(56, 189, 248, 0.2), transparent 45%);
  pointer-events: none;
  z-index: 0;
}

.ap-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='1' cy='1' r='0.8' fill='rgba(255,255,255,0.06)'/%3E%3C/svg%3E");
  background-size: 32px 32px;
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}

/* Home: fondo tipo Matrix (canvas) sobre gradiente oscuro */
.ap-hero--matrix {
  background:
    radial-gradient(ellipse 90% 70% at 50% 120%, rgba(34, 197, 94, 0.14), transparent 55%),
    linear-gradient(155deg, #020617 0%, #064e3b 38%, #0f172a 72%, #111827 100%);
}

.ap-hero--matrix::before {
  opacity: 0.45;
  background:
    radial-gradient(ellipse 70% 50% at 75% 15%, rgba(16, 185, 129, 0.2), transparent 50%),
    radial-gradient(ellipse 50% 40% at 15% 85%, rgba(34, 197, 94, 0.1), transparent 45%);
}

.ap-hero--matrix::after {
  opacity: 0.35;
}

.ap-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.ap-hero__matrix {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.72;
}

.ap-reduced-motion .ap-hero__bg {
  display: none;
}

.ap-hero .container {
  position: relative;
  z-index: 2;
}

.ap-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .ap-hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3rem;
  }
}

.ap-hero__visual {
  position: relative;
  border-radius: var(--ap-radius-lg);
  overflow: hidden;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.15),
    0 24px 56px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.5s var(--ap-ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .ap-hero__visual:hover {
    transform: translateY(-4px) scale(1.01);
  }
}

/* Bloque visual hero: letras «IA» (español), sin imagen con texto en inglés */
.ap-hero__visual-canvas {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 11rem;
  background:
    radial-gradient(ellipse 90% 80% at 50% 100%, rgba(59, 130, 246, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 50% at 80% 20%, rgba(99, 102, 241, 0.2), transparent 50%),
    linear-gradient(165deg, #0c1222 0%, #0f172a 45%, #1e1b4b 100%);
  overflow: hidden;
}

.ap-hero__visual-canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath fill='none' stroke='rgba(147,197,253,0.12)' stroke-width='0.5' d='M0 24h48M24 0v48'/%3E%3C/svg%3E");
  background-size: 48px 48px;
  opacity: 0.85;
  pointer-events: none;
}

.ap-hero__visual-canvas::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.07) 1px, transparent 0);
  background-size: 20px 20px;
  pointer-events: none;
}

.ap-hero__visual-mark {
  position: relative;
  z-index: 1;
  font-family: var(--ap-font-brand);
  font-weight: 700;
  font-size: clamp(3.25rem, 11vw, 6.25rem);
  letter-spacing: -0.07em;
  line-height: 1;
  color: transparent;
  background: linear-gradient(168deg, #f0f9ff 0%, #7dd3fc 22%, #38bdf8 45%, #2563eb 72%, #1e3a8a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 4px 20px rgba(37, 99, 235, 0.55)) drop-shadow(0 0 40px rgba(59, 130, 246, 0.35));
}

.ap-hero h1 {
  max-width: none;
}

@media (min-width: 992px) {
  .ap-hero__copy h1 {
    max-width: 14ch;
  }
  .ap-hero__copy .ap-hero__lead {
    max-width: 48ch;
  }
}

.ap-hero__eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c7d2fe;
  margin-bottom: 1rem;
}

.ap-badge {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.ap-hero__copy h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 1.25rem;
  max-width: 18ch;
}

.ap-hero__lead {
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  color: #cbd5e1;
  max-width: 52ch;
  margin: 0 0 2rem;
  line-height: 1.65;
}

.ap-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.ap-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.85rem 1.5rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--ap-radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}
.ap-btn:focus {
  outline: none;
}

.ap-btn:focus-visible {
  box-shadow: var(--ap-focus);
}

.ap-btn--primary {
  background: #fff;
  color: var(--ap-hero-from) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.ap-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  color: var(--ap-hero-from) !important;
}

.ap-btn--primary:active {
  transform: translateY(0);
}

.ap-btn--ghost {
  background: transparent;
  color: #e2e8f0 !important;
  border-color: rgba(255, 255, 255, 0.35);
}
.ap-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff !important;
}

/* Sections */
.ap-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.ap-section--alt {
  background: var(--ap-surface);
  border-top: 1px solid var(--ap-border);
  border-bottom: 1px solid var(--ap-border);
}

.ap-section__title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  color: var(--ap-text);
}

.ap-section__subtitle {
  font-size: 1.0625rem;
  color: var(--ap-muted);
  max-width: 60ch;
  margin: 0 0 2.5rem;
  line-height: 1.65;
}

.ap-section__head {
  max-width: 42rem;
  margin-bottom: 0.25rem;
}

/* Cards grid */
.ap-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
}

.ap-card {
  background: var(--ap-surface);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius);
  padding: 1.5rem 1.5rem 1.35rem;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.2s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.ap-card:hover {
  box-shadow: var(--ap-shadow);
  border-color: rgba(79, 70, 229, 0.28);
  transform: translateY(-3px);
}

@media (prefers-reduced-motion: reduce) {
  .ap-card:hover {
    transform: none;
  }
}

.ap-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--ap-radius-sm);
  background: var(--ap-accent-soft);
  color: var(--ap-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.ap-card--media {
  padding: 0;
  overflow: hidden;
}

.ap-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e2e8f0;
}

.ap-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.ap-card--media:hover .ap-card__media img {
  transform: scale(1.04);
}

.ap-card__body {
  padding: 1.35rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ap-card__body p {
  flex-grow: 1;
}

.ap-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.ap-card p {
  font-size: 0.9375rem;
  color: var(--ap-muted);
  margin: 0 0 1rem;
  flex-grow: 1;
}

.ap-card a {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ap-accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  transition: color 0.2s, gap 0.2s var(--ap-ease-out);
}

.ap-card a:hover {
  color: var(--ap-accent-hover);
  gap: 0.35rem;
}

.ap-card a:focus-visible {
  outline: none;
  border-radius: var(--ap-radius-xs);
  box-shadow: var(--ap-focus);
}

/* Steps */
.ap-steps {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  counter-reset: step;
}

.ap-step {
  position: relative;
  padding: 1.5rem;
  background: var(--ap-bg);
  border-radius: var(--ap-radius);
  border: 1px solid var(--ap-border);
}

.ap-step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--ap-radius-xs);
  background: var(--ap-accent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.ap-step h3 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

.ap-step p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ap-muted);
}

.ap-step--visual {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius);
  background: var(--ap-surface);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.3s var(--ap-ease-out), transform 0.3s var(--ap-ease-out), border-color 0.3s;
}

.ap-step--visual:hover {
  box-shadow: var(--ap-shadow);
  transform: translateY(-3px);
  border-color: rgba(79, 70, 229, 0.2);
}

@media (prefers-reduced-motion: reduce) {
  .ap-step--visual:hover {
    transform: none;
  }
}

.ap-step--visual .ap-step__img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.ap-step--visual .ap-step__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ap-step--visual .ap-step__content {
  padding: 1.35rem 1.5rem 1.5rem;
}

.ap-step--visual::before {
  display: none;
}

.ap-step--visual .ap-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--ap-radius-xs);
  background: linear-gradient(145deg, var(--ap-accent) 0%, #6366f1 100%);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

/* CTA band */
.ap-cta {
  padding: clamp(2.5rem, 5vw, 3.5rem);
  background: linear-gradient(135deg, #312e81 0%, #4f46e5 55%, #6366f1 100%);
  border-radius: var(--ap-radius);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(79, 70, 229, 0.25);
}

.ap-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 90% 10%, rgba(255, 255, 255, 0.12), transparent 50%);
  pointer-events: none;
}

.ap-cta h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.ap-cta p {
  margin: 0 0 1.25rem;
  opacity: 0.94;
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.ap-cta .ap-btn--primary {
  background: #fff;
  color: var(--ap-accent) !important;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.ap-cta .ap-btn--primary:focus-visible {
  box-shadow: var(--ap-focus), 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Footer */
.ap-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 3rem 0 1.5rem;
  font-size: 0.9rem;
  border-radius: var(--ap-radius-lg) var(--ap-radius-lg) 0 0;
}

.ap-footer h4 {
  color: #e2e8f0;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 1rem;
}

.ap-footer a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
}
.ap-footer a:hover {
  color: #fff;
}

.ap-footer .col-md-4 a {
  text-decoration: underline;
  text-decoration-color: rgba(148, 163, 184, 0.45);
  text-underline-offset: 3px;
}

.ap-footer .col-md-4 a:hover {
  text-decoration-color: #fff;
}

.ap-footer__bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 0.8125rem;
}

/* Inner pages — banner: mostrar foto completa (p. ej. verticales 4:5); sin recorte tipo cover */
.ap-page-banner {
  width: 100%;
  background: #0f172a;
  text-align: center;
  border-radius: 0 0 var(--ap-radius-lg) var(--ap-radius-lg);
  overflow: hidden;
}

.ap-page-banner__img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: min(78vh, 640px);
  margin: 0 auto;
}

.ap-page-hero {
  padding: 2.5rem 0 2rem;
  background: linear-gradient(180deg, var(--ap-surface) 0%, var(--ap-bg) 100%);
  border-bottom: 1px solid var(--ap-border);
}

.ap-page-hero h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}

.ap-page-hero p {
  margin: 0;
  color: var(--ap-muted);
  max-width: 58ch;
  font-size: 1.05rem;
}

.ap-page-hero--tight {
  padding-top: 1.75rem;
}

/* Contact layout */
.ap-contact-layout .ap-card {
  height: 100%;
}

.ap-contact-visual {
  border-radius: var(--ap-radius);
  overflow: hidden;
  border: 1px solid var(--ap-border);
  box-shadow: var(--ap-shadow);
  height: 100%;
  min-height: 280px;
}

.ap-contact-visual img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}

.ap-footer__credit {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 1rem;
}

.ap-footer__credit a {
  color: #94a3b8;
}

.ap-prose {
  max-width: 720px;
}

.ap-prose h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.ap-prose p,
.ap-prose li {
  color: var(--ap-muted);
  font-size: 1rem;
}

.ap-prose ul {
  padding-left: 1.25rem;
}

.ap-prose li + li {
  margin-top: 0.5rem;
}

.ap-prose a {
  color: var(--ap-accent);
  font-weight: 500;
  text-underline-offset: 2px;
}

.ap-prose a:focus-visible {
  outline: none;
  border-radius: var(--ap-radius-xs);
  box-shadow: var(--ap-focus);
}

@media (max-width: 767px) {
  .ap-navbar .navbar-collapse {
    padding: 0.35rem 0 1rem;
    margin-top: 0.5rem;
  }

  .ap-navbar .nav-link.ap-btn-cta {
    margin-left: 0;
    margin-top: 0.5rem;
    text-align: center;
    justify-content: center;
    width: 100%;
  }
}

/* Form (contacto) */
.ap-form label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--ap-text);
  margin-bottom: 0.35rem;
}
.ap-form .form-control {
  border-radius: var(--ap-radius-sm);
  border-color: var(--ap-border);
  font-size: 0.9375rem;
  min-height: 2.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ap-form .form-control:focus {
  border-color: var(--ap-accent);
  box-shadow: 0 0 0 3px var(--ap-accent-soft);
}

.ap-form textarea.form-control {
  min-height: 6rem;
}

.ap-form .form-control::placeholder {
  color: #94a3b8;
}

/* Catálogo (home) */
.ap-catalog-block {
  padding: 1.35rem 1.5rem;
  border-radius: var(--ap-radius);
  background: var(--ap-bg);
  border: 1px solid var(--ap-border);
  height: 100%;
  transition: box-shadow 0.3s var(--ap-ease-out), transform 0.3s var(--ap-ease-out), border-color 0.3s;
}

.ap-catalog-block:hover {
  box-shadow: var(--ap-shadow-sm);
  transform: translateY(-2px);
  border-color: rgba(79, 70, 229, 0.15);
}

.ap-catalog-block h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--ap-text);
}

.ap-catalog-block ul li {
  padding: 0.35rem 0;
  border-bottom: 1px dashed rgba(15, 23, 42, 0.08);
  color: var(--ap-muted);
}

.ap-catalog-block ul li:last-child {
  border-bottom: none;
}

.ap-catalog-block a {
  font-weight: 600;
}

.ap-catalog-block a:focus-visible {
  outline: none;
  border-radius: var(--ap-radius-xs);
  box-shadow: var(--ap-focus);
}

/* Revelado al entrar en vista (solo con JS: clase ap-js en <html>) */
.ap-reveal {
  opacity: 1;
  transform: none;
}

html.ap-js .ap-reveal {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity 0.55s var(--ap-ease-out), transform 0.65s var(--ap-ease-out);
  will-change: opacity, transform;
}

html.ap-js .ap-reveal.ap-reveal--visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

html.ap-reduced-motion .ap-reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html.ap-js .ap-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Navbar toggler accesible */
.ap-navbar .navbar-toggler:focus {
  outline: none;
}

.ap-navbar .navbar-toggler:focus-visible {
  box-shadow: var(--ap-focus);
}

/* —— Estilo inspirado en landing SaaS conversacional (p. ej. Jelou) —— */
.ap-hero--premium {
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(3.5rem, 8vw, 5.5rem);
}

.ap-hero--premium .ap-hero__copy h1 {
  font-size: clamp(2.35rem, 5.5vw, 3.75rem);
  max-width: 16ch;
  line-height: 1.08;
}

@media (min-width: 992px) {
  .ap-hero--premium .ap-hero__copy h1 {
    max-width: 12ch;
  }
}

.ap-pill-row {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ap-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #ecfdf5;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 999px;
}

a.ap-pill {
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

a.ap-pill:hover {
  background: rgba(16, 185, 129, 0.34);
  border-color: rgba(52, 211, 153, 0.55);
  transform: translateY(-1px);
}

a.ap-pill:focus {
  outline: none;
}

a.ap-pill:focus-visible {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.45), 0 0 0 4px rgba(16, 185, 129, 0.35);
}

.ap-hero__mock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  max-width: 28rem;
  margin-bottom: 1.75rem;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  border-radius: var(--ap-radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.ap-hero__input {
  flex: 1;
  min-width: 0;
  min-height: 2.5rem;
  padding: 0.35rem 0;
  font-family: inherit;
  font-size: 0.9rem;
  color: #f1f5f9;
  background: transparent;
  border: none;
  outline: none;
}

.ap-hero__input::placeholder {
  color: #94a3b8;
}

.ap-hero__input:focus {
  outline: none;
}

.ap-hero__mock:focus-within {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.ap-hero__mock-btn {
  flex-shrink: 0;
  padding: 0.5rem 1.1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: inherit;
  color: #0f172a;
  background: linear-gradient(145deg, #34d399 0%, var(--ap-mint) 100%);
  border: none;
  border-radius: var(--ap-radius-sm);
  cursor: pointer;
  transition: transform 0.15s, filter 0.15s;
}

.ap-hero__mock-btn:hover {
  filter: brightness(1.05);
}

.ap-hero__mock-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.ap-btn--hero-secondary {
  background: transparent !important;
  color: #fff !important;
  border: 2px solid rgba(255, 255, 255, 0.45) !important;
  box-shadow: none !important;
}

.ap-btn--hero-secondary:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.65) !important;
  transform: translateY(-2px);
}

.ap-stat-strip {
  background: var(--ap-surface);
  border-top: 1px solid var(--ap-border);
  border-bottom: 1px solid var(--ap-border);
  padding: clamp(1.75rem, 4vw, 2.5rem) 0;
}

.ap-stat-strip__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.ap-stat-strip strong {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ap-text);
  line-height: 1.2;
}

.ap-stat-strip span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: var(--ap-muted);
  line-height: 1.4;
}

.ap-section-kicker {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ap-accent);
  margin-bottom: 0.5rem;
}

.ap-split-dark {
  position: relative;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  background: linear-gradient(165deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  color: #e2e8f0;
  overflow: hidden;
}

.ap-split-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 90% 30%, rgba(16, 185, 129, 0.12), transparent 55%);
  pointer-events: none;
}

.ap-split-dark .container {
  position: relative;
  z-index: 1;
}

.ap-split-dark .ap-section-kicker {
  color: #6ee7b7;
  margin-bottom: 0.65rem;
}

.ap-split-dark h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 1rem;
}

.ap-split-dark p,
.ap-split-dark li {
  color: #94a3b8;
  font-size: 1.02rem;
  line-height: 1.65;
}

.ap-split-dark ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.ap-split-dark__visual {
  border-radius: var(--ap-radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.ap-split-dark__visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.ap-trust {
  padding: clamp(3.5rem, 7vw, 5rem) 0;
  background: linear-gradient(180deg, #f8fafc 0%, var(--ap-bg) 100%);
}

.ap-trust__kicker {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ap-muted);
  margin: 0 0 0.5rem;
}

.ap-trust h2 {
  text-align: center;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 auto 2.5rem;
  max-width: 36ch;
  color: var(--ap-text);
}

.ap-trust-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.ap-trust-card {
  padding: 1.5rem 1.35rem;
  background: var(--ap-surface);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius);
  box-shadow: var(--ap-shadow-sm);
  transition: box-shadow 0.3s var(--ap-ease-out), transform 0.3s var(--ap-ease-out);
}

.ap-trust-card:hover {
  box-shadow: var(--ap-shadow);
  transform: translateY(-2px);
}

.ap-trust-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--ap-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ap-trust-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ap-muted);
  line-height: 1.6;
}

.ap-trust-card__icon {
  font-size: 1.35rem;
  line-height: 1;
}

.ap-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  max-width: 42rem;
  margin: 0 auto;
}

.ap-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ap-text);
  background: var(--ap-surface);
  border: 1px solid var(--ap-border);
  border-radius: 999px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ap-tag:hover {
  border-color: rgba(79, 70, 229, 0.35);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.ap-cta--jelou {
  text-align: center;
  padding: clamp(3rem, 6vw, 4.5rem) 1.5rem;
  background: linear-gradient(145deg, #064e3b 0%, var(--ap-mint) 45%, #059669 100%);
  border-radius: var(--ap-radius);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(5, 150, 105, 0.25);
}

.ap-cta--jelou::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 20% 0%, rgba(255, 255, 255, 0.15), transparent 50%);
  pointer-events: none;
}

.ap-cta--jelou h2 {
  position: relative;
  z-index: 1;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}

.ap-cta--jelou p {
  position: relative;
  z-index: 1;
  margin: 0 0 1.5rem;
  opacity: 0.95;
  max-width: 36ch;
  margin-left: auto;
  margin-right: auto;
}

.ap-cta--jelou .ap-btn--primary {
  position: relative;
  z-index: 1;
  background: #fff !important;
  color: #065f46 !important;
  font-weight: 700;
}

.ap-cta--jelou .ap-btn--primary:hover {
  color: #064e3b !important;
}

/* Bootstrap: radios coherentes con el sistema (páginas con formularios / grillas) */
body.ap-body .form-control:not([type="checkbox"]):not([type="radio"]) {
  border-radius: var(--ap-radius-sm);
}

body.ap-body .btn:not(.btn-link) {
  border-radius: var(--ap-radius-sm);
}

body.ap-body .btn-sm {
  border-radius: var(--ap-radius-xs);
}

/* Móvil: backdrop-filter (blur) es muy costoso en Safari iOS y muchos Android; puede dejar la página “cargando” en pintura aunque WiFi sea bueno. */
@media (max-width: 768px) {
  .ap-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .ap-header:not(.ap-header--hero),
  .ap-header.ap-header--raised {
    background: rgba(255, 255, 255, 0.96);
  }

  .ap-header--hero:not(.ap-header--raised) {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .ap-dropdown {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .ap-hero__mock {
    backdrop-filter: none;
  }
}
