:root {
  --ink: #0d2137;
  --ink-soft: #2a4158;
  --muted: #5d738a;
  --paper: #f2f7fc;
  --paper-deep: #e3edf7;
  --line: rgba(13, 33, 55, 0.1);
  --brand-1: #5eb3f0;
  --brand-2: #2f7fd4;
  --brand-3: #0b4f8a;
  --brand-deep: #083a66;
  --white: #ffffff;
  --shadow: 0 22px 50px rgba(11, 79, 138, 0.16);
  --radius: 18px;
  --font-display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --font-body: "Sora", "Segoe UI", sans-serif;
  --max: 1120px;
  --header-h: 68px;
  --nav-bp: 860px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 200;
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* ——— Header ——— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(242, 247, 252, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(242, 247, 252, 0.94);
}

.site-header__inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.03em;
  z-index: 2;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  background: #000;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.nav-desktop a:not(.btn):hover {
  color: var(--brand-3);
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
}

.nav-toggle__bars {
  display: grid;
  gap: 6px;
}

.nav-toggle__bars span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/*
  Menú móvil: CERRADO por defecto.
  Solo se muestra con .is-open y solo bajo 860px.
  Nunca depende del atributo [hidden] del UA.
*/
.nav-backdrop,
.nav-drawer {
  display: none !important;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
}

.nav-backdrop.is-open {
  display: block !important;
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(13, 33, 55, 0.38);
  animation: fade-in 0.2s ease;
}

.nav-drawer.is-open {
  display: flex !important;
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
  flex-direction: column;
  position: fixed;
  top: calc(var(--header-h) + 0.65rem);
  left: 1rem;
  right: 1rem;
  z-index: 90;
  padding: 0.75rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  animation: drawer-in 0.22s ease;
}

.nav-drawer__links {
  display: grid;
  gap: 0.2rem;
}

.nav-drawer__links a:not(.btn) {
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  font-weight: 600;
  color: var(--ink);
}

.nav-drawer__links a:not(.btn):hover {
  background: var(--paper-deep);
}

.nav-drawer__links .btn {
  margin-top: 0.35rem;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes drawer-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Desktop ≥860px: nav desktop; forzar menú móvil oculto siempre */
@media (min-width: 860px) {
  .nav-desktop {
    display: flex;
  }

  .nav-toggle,
  .nav-backdrop,
  .nav-drawer,
  .nav-backdrop.is-open,
  .nav-drawer.is-open {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
  }
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: calc(var(--header-h) + 2.5rem) 0 4rem;
  overflow: hidden;
}

.hero__atmosphere {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 78% 58% at 8% 12%, rgba(94, 179, 240, 0.48), transparent 58%),
    radial-gradient(ellipse 52% 42% at 94% 6%, rgba(47, 127, 212, 0.3), transparent 52%),
    radial-gradient(ellipse 48% 38% at 72% 94%, rgba(11, 79, 138, 0.16), transparent 55%),
    linear-gradient(165deg, #e6f1fb 0%, var(--paper) 46%, #dce8f4 100%);
  animation: atmosphere-drift 22s ease-in-out infinite alternate;
}

.hero__glow {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(11, 79, 138, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 79, 138, 0.045) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 72% 62% at 50% 38%, #000 18%, transparent 78%);
  pointer-events: none;
}

@keyframes atmosphere-drift {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.06) translate3d(-1.4%, 1.2%, 0); }
}

.hero__layout {
  position: relative;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  display: grid;
  gap: 2.75rem;
  align-items: center;
}

@media (min-width: 980px) {
  .hero__layout {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.25rem;
  }
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.85rem, 7.2vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.048em;
  line-height: 0.94;
  color: var(--brand-3);
  margin-bottom: 0.85rem;
  animation: rise-in 0.75s ease both;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.1vw, 1.95rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  max-width: 14ch;
  margin-bottom: 1rem;
  color: var(--ink);
  animation: rise-in 0.75s ease 0.08s both;
}

.hero__lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36ch;
  margin-bottom: 1.75rem;
  animation: rise-in 0.75s ease 0.16s both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
  animation: rise-in 0.75s ease 0.24s both;
}

.hero__by {
  color: var(--muted);
  font-size: 0.9rem;
  animation: rise-in 0.75s ease 0.3s both;
}

.hero__by strong {
  color: var(--ink-soft);
  font-weight: 600;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__visual {
  animation: float-in 0.95s ease 0.18s both;
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-stage {
  position: relative;
  padding: 0.35rem;
}

.product-frame {
  background: linear-gradient(155deg, #0e2a45 0%, var(--brand-3) 48%, #1a6bb3 100%);
  border-radius: 22px;
  padding: 0.9rem;
  box-shadow: var(--shadow);
  transform: perspective(1200px) rotateY(-7deg) rotateX(3deg);
  transform-origin: center left;
  animation: stage-float 11s ease-in-out infinite alternate;
}

@keyframes stage-float {
  from {
    transform: perspective(1200px) rotateY(-7deg) rotateX(3deg) translateY(0);
  }
  to {
    transform: perspective(1200px) rotateY(-3deg) rotateX(1deg) translateY(-10px);
  }
}

.product-frame__chrome {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.product-frame__chrome > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
}

.product-frame__url {
  margin-left: 0.5rem;
  flex: 1;
  height: 22px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.68rem;
  display: flex;
  align-items: center;
  padding: 0 0.65rem;
  letter-spacing: 0.02em;
}

.product-frame__body {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 0.7rem;
  min-height: 255px;
}

.product-rail {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.product-main {
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.product-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.product-top__title {
  height: 36px;
  width: 42%;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.16);
}

.product-top__actions {
  height: 36px;
  width: 28%;
  border-radius: 9px;
  background: rgba(94, 179, 240, 0.45);
}

.product-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.product-metric {
  height: 68px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.11);
}

.product-metric--a {
  background: linear-gradient(160deg, rgba(94, 179, 240, 0.35), rgba(255, 255, 255, 0.1));
}

.product-metric--b {
  background: linear-gradient(160deg, rgba(47, 127, 212, 0.4), rgba(255, 255, 255, 0.1));
}

.product-metric--c {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
}

.product-panel {
  display: grid;
  gap: 0.42rem;
  padding: 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
}

.product-line {
  height: 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
}

.product-line--mid { width: 82%; }
.product-line--short { width: 64%; }

.hero-mark {
  position: absolute;
  right: -0.35rem;
  bottom: -0.65rem;
  width: 84px;
  height: 84px;
  border-radius: 18px;
  background: #000;
  box-shadow: 0 14px 32px rgba(13, 33, 55, 0.28);
}

@media (max-width: 979px) {
  .product-frame {
    transform: none;
    animation: stage-bob 8s ease-in-out infinite alternate;
  }

  @keyframes stage-bob {
    from { transform: translateY(0); }
    to { transform: translateY(-10px); }
  }

  .hero-mark {
    width: 70px;
    height: 70px;
    right: 0.2rem;
    bottom: -0.3rem;
  }
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.3rem;
  border-radius: 12px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.96rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--brand-3);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--brand-deep);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line);
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--white);
  border-color: rgba(11, 79, 138, 0.28);
}

.btn-lg {
  padding: 1rem 1.45rem;
  font-size: 1.02rem;
}

.text-link {
  display: inline-block;
  margin-top: 1.1rem;
  color: var(--brand-3);
  font-weight: 600;
  border-bottom: 1px solid transparent;
}

.text-link:hover {
  border-bottom-color: var(--brand-3);
}

/* ——— Sections ——— */
.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.4vw, 2.45rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  max-width: 16ch;
  margin-bottom: 0.8rem;
  color: var(--ink);
}

.section__lead {
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 2.35rem;
  font-size: 1.05rem;
}

.section--modules {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.module-list {
  list-style: none;
  display: grid;
  gap: 1.35rem 2rem;
}

@media (min-width: 720px) {
  .module-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .module-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.module-list li {
  padding-top: 1.05rem;
  border-top: 1px solid var(--line);
}

.module-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
  color: var(--brand-3);
}

.module-list span {
  color: var(--muted);
  font-size: 0.96rem;
}

.section--modes {
  background:
    radial-gradient(ellipse 60% 50% at 0% 0%, rgba(94, 179, 240, 0.16), transparent 55%),
    linear-gradient(180deg, #f5f9fd, #e7f0f8);
}

.modes {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 800px) {
  .modes {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
}

.mode__tag {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-2);
  margin-bottom: 0.45rem;
}

.mode h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.55rem;
  color: var(--brand-3);
}

.mode > p:not(.mode__tag) {
  color: var(--muted);
  margin-bottom: 1.05rem;
}

.mode ul {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.mode ul li {
  padding-left: 1rem;
  position: relative;
}

.mode ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-2);
}

/* Plans — cards solo aquí */
.section--plans {
  background: var(--white);
}

.plans {
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .plans {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

.plan {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.45rem 1.35rem 1.55rem;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.plan:hover {
  border-color: rgba(11, 79, 138, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(11, 79, 138, 0.08);
}

.plan--featured {
  background: linear-gradient(180deg, #eff6fc, #e2eef8);
  border-color: rgba(11, 79, 138, 0.4);
  box-shadow: 0 16px 36px rgba(11, 79, 138, 0.1);
}

.plan__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-3);
  background: rgba(94, 179, 240, 0.22);
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
}

.plan h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.plan__price {
  font-weight: 700;
  color: var(--brand-3);
  margin-bottom: 0.5rem;
}

.plan__desc {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.05rem;
  min-height: 2.8em;
}

.plan ul {
  list-style: none;
  display: grid;
  gap: 0.48rem;
  margin-bottom: 1.4rem;
  flex: 1;
  font-size: 0.94rem;
  color: var(--ink-soft);
}

.plan ul li {
  padding-left: 1rem;
  position: relative;
}

.plan ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-1);
}

.plan__cta {
  width: 100%;
}

.plans__note {
  margin-top: 1.3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.section--contact {
  background:
    radial-gradient(ellipse 70% 70% at 8% 20%, rgba(94, 179, 240, 0.24), transparent 55%),
    radial-gradient(ellipse 50% 55% at 100% 85%, rgba(11, 79, 138, 0.14), transparent 50%),
    linear-gradient(180deg, #e9f1f9, #dae7f2);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ——— Footer ——— */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 3rem 0 2rem;
}

.footer__grid {
  display: grid;
  gap: 1.75rem;
  margin-bottom: 2rem;
}

@media (min-width: 720px) {
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer__brand {
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.footer__label {
  color: var(--white);
  font-weight: 600;
  margin-bottom: 0.55rem;
}

.site-footer a {
  display: block;
  margin-bottom: 0.35rem;
  color: rgba(255, 255, 255, 0.68);
}

.site-footer a:hover {
  color: var(--white);
}

.footer__copy {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.48);
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
