/* =========================================================
   ANS SOLUCIONES — Sistema visual
   Landing corporativa · HTML5 + CSS moderno + JavaScript
   Dirección: clara, técnica, alto contraste y sin artificios.
   ========================================================== */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------------------------------------------------------
   1. Tokens de diseño
   --------------------------------------------------------- */
:root {
  /* Color */
  --white: #FFFFFF;
  --bg: #FFFFFF;
  --bg-soft: #F5FAF8;
  --ink: #10172C;
  --ink-soft: #334155;
  --muted: #475569;
  --muted-light: #64748B;
  --subtle: #64748B;
  --line: #E2E8F0;
  --line-strong: #CBD5E1;
  --teal-950: #03302F;
  --teal-900: #006A69;
  --teal-800: #005654;
  --teal-600: #0F766E;
  --teal-100: #D3F0EB;
  --teal-50: #F0FAF8;
  --emerald: #059669;
  --emerald-light: #10B981;
  --emerald-50: #ECFDF5;
  --emerald-line: #D1FAE5;
  --amber: #D97706;
  --amber-50: #FFFBEB;
  --red: #B91C1C;
  --footer: #042F2E;

  /* Tipografía */
  --font-sans: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "SFMono-Regular", "Cascadia Code", Consolas, "Liberation Mono", monospace;

  /* Espacio y forma */
  --container: 1180px;
  --gutter: 24px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  /* Sombras */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 8px 24px -14px rgba(15, 23, 42, 0.18);
  --shadow-md: 0 20px 48px -24px rgba(15, 23, 42, 0.22);
  --shadow-lg: 0 32px 80px -32px rgba(15, 23, 42, 0.3);

  /* Movimiento */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 220ms var(--ease);
}

/* ---------------------------------------------------------
   2. Reset y base
   --------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

svg {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

::selection {
  background: var(--teal-900);
  color: var(--white);
}

:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.45);
  outline-offset: 3px;
  border-radius: 4px;
}

[hidden] {
  display: none !important;
}

section[id] {
  scroll-margin-top: 92px;
}

.container {
  width: min(var(--container), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.icon {
  flex: 0 0 auto;
}

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

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--teal-900);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform var(--transition);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------------------------------------------------------
   3. Tipografía y utilidades
   --------------------------------------------------------- */
h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 3.4vw, 2.85rem);
  letter-spacing: -0.04em;
}

h3 {
  font-size: 1.35rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--teal-900);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: currentColor;
  opacity: 0.75;
}

.section {
  padding: 108px 0;
}

.section-heading {
  margin-bottom: 46px;
}

.section-heading--split {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  align-items: end;
  gap: 72px;
}

.section-heading-main h2 {
  max-width: 720px;
  margin-top: 14px;
}

.section-lead {
  max-width: 440px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.78;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal-900);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.4;
}

.text-link .icon {
  transition: transform var(--transition);
}

.text-link:hover .icon {
  transform: translateX(4px);
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald-light);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.14);
  flex: 0 0 auto;
}

/* ---------------------------------------------------------
   4. Botones
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 23px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-align: center;
  white-space: nowrap;
  transition:
    color var(--transition),
    background-color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.btn .icon {
  transition: transform var(--transition);
}

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

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

.btn-primary {
  background: var(--teal-900);
  color: var(--white);
  box-shadow: 0 10px 20px -12px rgba(0, 106, 105, 0.42);
}

.btn-primary:hover {
  background: var(--teal-800);
  box-shadow: 0 14px 26px -12px rgba(0, 106, 105, 0.48);
}

.btn-primary:hover .icon {
  transform: translateX(2px);
}

.btn-secondary {
  background: var(--white);
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--teal-600);
  color: var(--teal-900);
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--white);
  border-color: var(--teal-900);
  color: var(--teal-900);
}

.btn-sm {
  min-height: 44px;
  padding: 0 17px;
  border-radius: 9px;
  font-size: 13px;
}

/* ---------------------------------------------------------
   5. Header y navegación
   --------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background-color var(--transition);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  border-color: var(--line);
  box-shadow: 0 10px 30px -26px rgba(15, 23, 42, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  border-radius: var(--radius-sm);
}

.brand-mark {
  display: block;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.brand-name strong {
  font-weight: 800;
}

.brand-tagline {
  color: var(--muted-light);
  font-size: 9px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

.nav-link {
  position: relative;
  padding: 6px 0;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  transition: color var(--transition);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 1px;
  width: 100%;
  height: 2px;
  background: var(--teal-900);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--ink);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.header-cta {
  min-height: 42px;
  padding-inline: 16px;
  font-size: 12.5px;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  color: var(--ink);
  transition: border-color var(--transition), background-color var(--transition);
}

.menu-toggle:hover {
  border-color: var(--line-strong);
  background: var(--bg-soft);
}

.menu-toggle span {
  display: block;
  width: 17px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle.is-open span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.menu-toggle.is-open span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 78px;
  left: 0;
  z-index: 99;
  width: 100%;
  min-height: calc(100dvh - 78px);
  max-height: calc(100dvh - 78px);
  overflow-y: auto;
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 30px 50px -32px rgba(15, 23, 42, 0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition:
    opacity var(--transition),
    transform var(--transition),
    visibility var(--transition);
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 12px var(--gutter) 0;
}

.mobile-nav a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.mobile-nav a span {
  color: var(--subtle);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.mobile-menu-footer {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px var(--gutter) 28px;
}

.mobile-menu-footer .btn {
  width: 100%;
}

.mobile-contact {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}

.mobile-contact a:hover {
  color: var(--teal-900);
}

/* ---------------------------------------------------------
   6. Hero
   --------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 150px;
  background: var(--white);
}

.hero-grid {
  position: absolute;
  inset: 0;
  height: 690px;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 84%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 84%);
}

.hero::after {
  content: "";
  position: absolute;
  top: -180px;
  right: -160px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: rgba(218, 246, 241, 0.72);
  pointer-events: none;
}

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

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
  align-items: center;
  gap: 58px;
}

.hero-copy {
  max-width: 620px;
  padding: 20px 0 28px;
}

.hero-copy .eyebrow {
  gap: 8px;
  padding: 7px 12px 7px 10px;
  border: 1px solid var(--teal-100);
  border-radius: 999px;
  background: var(--teal-50);
  color: var(--teal-900);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: none;
}

.hero-copy .eyebrow::before {
  display: none;
}

.hero-copy .eyebrow .eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.hero-title {
  margin-top: 24px;
  font-size: clamp(2.8rem, 4.8vw, 4.15rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.052em;
  text-wrap: balance;
}

.accent-text {
  color: var(--teal-900);
  background-image: linear-gradient(to top, rgba(13, 148, 136, 0.2) 0 0.22em, transparent 0.22em);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-bottom: 0.03em;
}

.hero-lead {
  max-width: 550px;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(15.5px, 1.35vw, 17px);
  line-height: 1.78;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 33px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-points .icon {
  color: var(--emerald);
}

/* Maqueta del hero */
.hero-visual {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 575px;
}

.visual-canvas {
  position: relative;
  padding: 28px 0 28px 18px;
}

.visual-accent {
  position: absolute;
  top: 0;
  right: -17px;
  width: 87%;
  height: 76%;
  border: 1px solid var(--teal-100);
  border-radius: 26px;
  background: var(--teal-50);
}

.visual-grid-pattern {
  position: absolute;
  top: 42px;
  right: -15px;
  width: 180px;
  height: 118px;
  border-radius: 8px;
  background-image:
    linear-gradient(to right, rgba(0, 106, 105, 0.11) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 106, 105, 0.11) 1px, transparent 1px);
  background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(135deg, #000, transparent 82%);
  mask-image: linear-gradient(135deg, #000, transparent 82%);
}

.browser-window {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.window-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 36px;
  padding: 0 11px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.window-dots,
.preview-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.window-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-strong);
}

.window-dots span:first-child {
  background: #FCA5A5;
}

.window-dots span:nth-child(2) {
  background: #FCD34D;
}

.window-dots span:nth-child(3) {
  background: #6EE7B7;
}

.window-address {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: min(230px, 54%);
  height: 21px;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--white);
  color: var(--subtle);
  font-size: 7.5px;
  letter-spacing: 0.01em;
}

.window-more {
  color: var(--subtle);
  font-size: 10px;
  letter-spacing: 1px;
  line-height: 1;
}

.dashboard {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  min-height: 370px;
  background: var(--bg-soft);
}

.dashboard-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 14px 0 12px;
  background: var(--teal-950);
}

.rail-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  border-radius: 6px;
  background: var(--white);
  color: var(--teal-900);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.rail-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rail-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  border-radius: 6px;
  color: #9DBDB9;
}

.rail-item.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  box-shadow: inset 2px 0 0 var(--emerald-light);
}

.rail-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: #CBD5E1;
  font-size: 7px;
  font-weight: 600;
}

.dashboard-body {
  min-width: 0;
  padding: 17px 17px 15px;
}

.dashboard-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.dash-kicker {
  display: block;
  color: var(--subtle);
  font-size: 7.5px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dash-title {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 21px;
  padding: 0 7px;
  border: 1px solid var(--emerald-line);
  border-radius: 999px;
  background: var(--emerald-50);
  color: #047857;
  font-size: 7.5px;
  font-weight: 600;
  white-space: nowrap;
}

.status-pill span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--emerald-light);
}

.dash-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 14px;
}

.dash-card {
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
}

.dash-label {
  display: block;
  overflow: hidden;
  color: var(--subtle);
  font-size: 7px;
  font-weight: 500;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-value {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.dash-value span {
  color: var(--subtle);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.dash-progress {
  display: block;
  width: 100%;
  height: 3px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--line);
}

.dash-progress span {
  display: block;
  width: 86%;
  height: 100%;
  border-radius: inherit;
  background: var(--teal-600);
}

.dash-meta {
  display: block;
  margin-top: 7px;
  color: var(--subtle);
  font-size: 6.8px;
  line-height: 1.3;
  white-space: nowrap;
}

.dash-meta.positive {
  color: var(--emerald);
}

.dash-panels {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
  gap: 8px;
  margin-top: 9px;
}

.dash-chart,
.dash-modules {
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.dash-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 7.5px;
  font-weight: 600;
  line-height: 1.3;
}

.dash-filter {
  color: var(--subtle);
  font-size: 6.5px;
  font-weight: 500;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  height: 87px;
  margin-top: 12px;
  padding-bottom: 1px;
  border-bottom: 1px solid var(--line);
}

.bar-group {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  height: 100%;
}

.bar {
  display: block;
  width: 100%;
  max-width: 17px;
  min-height: 4px;
  border-radius: 2px 2px 0 0;
  background: var(--teal-100);
}

.bar-group:nth-child(1) .bar {
  height: 42%;
}

.bar-group:nth-child(2) .bar {
  height: 65%;
}

.bar-group:nth-child(3) .bar {
  height: 53%;
}

.bar-group:nth-child(4) .bar {
  height: 82%;
}

.bar-group:nth-child(5) .bar {
  height: 68%;
}

.bar-group:nth-child(6) .bar {
  height: 92%;
  background: var(--emerald);
}

.bar-group:nth-child(7) .bar {
  height: 74%;
}

.bar-group span:last-child {
  color: var(--subtle);
  font-size: 6px;
  line-height: 1;
}

.dash-modules .dash-panel-head {
  margin-bottom: 10px;
}

.module-row + .module-row {
  margin-top: 10px;
}

.module-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  color: var(--muted);
  font-size: 7px;
  line-height: 1.3;
}

.module-info b {
  color: var(--ink-soft);
  font-weight: 600;
}

.module-progress {
  display: block;
  width: 100%;
  height: 3px;
  margin-top: 5px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--line);
}

.module-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal-900);
}

.module-row:nth-child(2) .module-progress span {
  width: 92%;
}

.module-row:nth-child(3) .module-progress span {
  width: 78%;
  background: var(--emerald);
}

.module-row:nth-child(4) .module-progress span {
  width: 100%;
}

.dash-footnote {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: 6.4px;
  line-height: 1.4;
}

.avatar-stack {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.avatar-stack span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  margin-left: -4px;
  border: 1.5px solid var(--white);
  border-radius: 50%;
  background: var(--teal-100);
  color: var(--teal-900);
  font-size: 4.4px;
  font-weight: 700;
  line-height: 1;
}

.avatar-stack span:first-child {
  margin-left: 0;
  background: var(--teal-900);
  color: var(--white);
}

.avatar-stack span:last-child {
  background: var(--emerald-50);
  color: var(--emerald);
}

.dash-updated {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  color: var(--emerald);
  white-space: nowrap;
}

.dash-updated i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}

.deploy-card {
  position: absolute;
  bottom: 5px;
  left: -2px;
  z-index: 3;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  width: 222px;
  padding: 10px 11px 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.deploy-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--emerald-50);
  color: var(--emerald);
}

.deploy-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.deploy-copy strong {
  color: var(--ink);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.3;
}

.deploy-copy span {
  color: var(--subtle);
  font-size: 7px;
  line-height: 1.3;
}

.deploy-bar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--emerald-50);
}

.deploy-bar span {
  display: block;
  width: 76%;
  height: 100%;
  background: var(--emerald);
}

.visual-tag {
  position: absolute;
  top: 12px;
  right: 10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
}

.visual-caption {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 14px;
  padding-right: 3px;
  color: var(--subtle);
  font-size: 10.5px;
  line-height: 1.4;
}

/* Franja de audiencias */
.audience-strip {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 58px;
  padding: 20px 0 23px;
  border-top: 1px solid var(--line);
}

.audience-label {
  flex: 0 0 auto;
  color: var(--subtle);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.audience-strip ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 30px;
}

.audience-strip li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
}

.audience-strip li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line-strong);
}

/* ---------------------------------------------------------
   7. Servicios
   --------------------------------------------------------- */
.services {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 405px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--teal-900);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover {
  border-color: #CBD5E1;
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--teal-100);
  border-radius: 11px;
  background: var(--teal-50);
  color: var(--teal-900);
  transition:
    background-color var(--transition),
    color var(--transition),
    border-color var(--transition);
}

.service-card:hover .service-icon {
  border-color: var(--teal-900);
  background: var(--teal-900);
  color: var(--white);
}

.service-index {
  color: var(--subtle);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.service-tag {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--muted-light);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.service-card h3 {
  font-size: 21px;
  letter-spacing: -0.035em;
}

.service-card > p {
  margin-top: 11px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.72;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.5;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

.feature-list .icon {
  margin-top: 2px;
  color: var(--emerald);
}

.service-card .text-link {
  margin-top: auto;
  padding-top: 24px;
  font-size: 12.5px;
}

.services-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
}

.services-note-copy {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.note-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  color: var(--teal-900);
}

.services-note p {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.services-note strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------------------------------------------------------
   8. Ecosistema de productos
   --------------------------------------------------------- */
.ecosystem {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.ecosystem-shell {
  display: grid;
  grid-template-columns: 302px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}

.ecosystem-tabs {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.eco-tab {
  display: grid;
  grid-template-columns: 39px minmax(0, 1fr) 18px;
  align-items: start;
  gap: 12px;
  width: 100%;
  padding: 16px 14px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  transition:
    background-color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.eco-tab:hover {
  background: rgba(255, 255, 255, 0.7);
}

.eco-tab.is-active {
  border-color: var(--line);
  background: var(--white);
  box-shadow: 0 12px 32px -24px rgba(15, 23, 42, 0.5);
}

.eco-tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 39px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg-soft);
  color: var(--muted);
  transition:
    background-color var(--transition),
    border-color var(--transition),
    color var(--transition);
}

.eco-tab.is-active .eco-tab-icon {
  border-color: var(--teal-100);
  background: var(--teal-50);
  color: var(--teal-900);
}

.eco-tab-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.eco-tab-label {
  color: var(--subtle);
  font-size: 8.5px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eco-tab strong {
  margin-top: 3px;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.eco-tab small {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted-light);
  font-size: 10.5px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eco-tab-arrow {
  margin-top: 10px;
  color: var(--subtle);
  transition:
    color var(--transition),
    transform var(--transition);
}

.eco-tab.is-active .eco-tab-arrow {
  color: var(--teal-900);
  transform: translateX(2px);
}

.eco-tabs-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
  padding: 11px 14px;
  color: var(--muted-light);
  font-size: 10.5px;
  line-height: 1.55;
}

.eco-tabs-note .status-dot {
  margin-top: 5px;
}

.ecosystem-panels {
  min-width: 0;
}

.eco-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  align-items: center;
  gap: 30px;
  min-height: 550px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.eco-panel.is-active {
  animation: panel-in 360ms var(--ease) both;
}

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

.eco-panel-copy h3 {
  margin-top: 13px;
  font-size: clamp(1.5rem, 2.2vw, 1.85rem);
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.eco-panel-copy > p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 0 8px;
  border: 1px solid var(--emerald-line);
  border-radius: 5px;
  background: var(--emerald-50);
  color: #047857;
  font-size: 8.5px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 19px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.5;
}

.product-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.product-features .icon {
  margin-top: 2px;
  color: var(--emerald);
}

.eco-panel-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.product-meta {
  color: var(--subtle);
  font-size: 9px;
  font-weight: 500;
  line-height: 1.4;
}

.eco-panel-visual {
  min-width: 0;
}

.product-preview {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--bg-soft);
  box-shadow: 0 22px 48px -32px rgba(15, 23, 42, 0.5);
}

.preview-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 10px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.preview-dots {
  gap: 3px;
}

.preview-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line-strong);
}

.preview-dots span:first-child {
  background: #FCA5A5;
}

.preview-dots span:nth-child(2) {
  background: #FCD34D;
}

.preview-dots span:nth-child(3) {
  background: #6EE7B7;
}

.preview-tab {
  padding: 3px 7px;
  border-radius: 4px;
  color: var(--subtle);
  font-size: 7px;
  font-weight: 500;
  line-height: 1.2;
}

.preview-tab.is-active {
  background: var(--bg-soft);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

.preview-live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  color: #047857;
  font-size: 7px;
  font-weight: 600;
  line-height: 1;
}

.preview-live > span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

/* Vista previa: Widgets */
.widget-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.23fr) minmax(0, 0.77fr);
  min-height: 350px;
}

.code-pane {
  min-width: 0;
  overflow: hidden;
  background: var(--teal-950);
}

.code-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 28px;
  padding: 0 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  color: #94A3B8;
  font-size: 7px;
  font-weight: 500;
}

.code-pane-head span:last-child {
  color: #94A3B8;
}

.code-block {
  margin: 0;
  padding: 10px;
  overflow: hidden;
  color: #CBD5E1;
  font-family: var(--font-mono);
  font-size: 7.4px;
  line-height: 1.65;
  white-space: pre;
  tab-size: 2;
}

.code-block code {
  font-family: inherit;
}

.c-key {
  color: #93C5FD;
}

.c-type {
  color: #A7F3D0;
}

.c-str {
  color: #FCD34D;
}

.c-num {
  color: #FDBA74;
}

.c-meta {
  color: #94A3B8;
  font-style: italic;
}

.render-pane {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  padding: 11px 10px 14px;
  border-left: 1px solid var(--line);
  background: var(--white);
}

.render-label {
  align-self: flex-start;
  color: var(--subtle);
  font-size: 7px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mini-phone {
  width: 100%;
  max-width: 142px;
  margin-top: 9px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: var(--white);
  box-shadow: 0 8px 20px -14px rgba(15, 23, 42, 0.4);
}

.mini-phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 17px;
  padding: 0 7px;
  background: var(--teal-900);
  color: rgba(255, 255, 255, 0.85);
  font-size: 5px;
  line-height: 1;
}

.mini-phone-top span:last-child {
  letter-spacing: 1px;
}

.mini-app-bar {
  padding: 7px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mini-content {
  padding: 9px 8px 11px;
}

.mini-eyebrow {
  display: block;
  color: #047857;
  font-size: 5.5px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mini-content h4 {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.mini-content p {
  margin-top: 4px;
  color: var(--muted-light);
  font-size: 5.8px;
  line-height: 1.4;
}

.mini-progress {
  width: 100%;
  height: 3px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--line);
}

.mini-progress span {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: var(--emerald);
}

.mini-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 19px;
  margin-top: 8px;
  border-radius: 4px;
  background: var(--teal-900);
  color: var(--white);
  font-size: 5.8px;
  font-weight: 600;
}

.mini-widget-options {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 9px;
}

.mini-widget-options span {
  padding: 3px 5px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--subtle);
  font-size: 5px;
  line-height: 1.2;
}

.mini-widget-options span.is-active {
  border-color: var(--teal-100);
  background: var(--teal-50);
  color: var(--teal-900);
}

.preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 31px;
  padding: 0 10px;
  border-top: 1px solid var(--line);
  background: var(--white);
  color: var(--subtle);
  font-size: 6.5px;
  line-height: 1.4;
}

.preview-footer > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted-light);
}

.check-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--emerald-50);
  color: var(--emerald);
  font-size: 6px;
  font-weight: 800;
  line-height: 1;
}

/* Vista previa: Apps */
.builder-preview .preview-project {
  margin-left: auto;
  color: var(--subtle);
  font-size: 6.5px;
}

.builder-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 29px;
  padding: 0 10px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.builder-title {
  color: var(--ink-soft);
  font-size: 7.5px;
  font-weight: 600;
}

.builder-zoom {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--subtle);
  font-size: 6px;
  line-height: 1.2;
}

.builder-body {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 94px;
  min-height: 345px;
}

.builder-library,
.builder-inspector {
  display: flex;
  flex-direction: column;
  padding: 10px 8px;
  background: var(--bg-soft);
}

.builder-library {
  border-right: 1px solid var(--line);
}

.builder-inspector {
  border-left: 1px solid var(--line);
}

.builder-label {
  display: block;
  margin-bottom: 7px;
  color: var(--subtle);
  font-size: 6.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.builder-block {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 25px;
  padding: 5px 6px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--muted);
  font-size: 6.4px;
  font-weight: 500;
  line-height: 1.3;
}

.builder-block + .builder-block {
  margin-top: 3px;
}

.builder-block.is-active {
  border-color: var(--teal-100);
  background: var(--white);
  color: var(--teal-900);
  box-shadow: var(--shadow-xs);
}

.builder-block .icon {
  color: var(--subtle);
}

.builder-block.is-active .icon {
  color: var(--teal-600);
}

.builder-canvas {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 15px 10px;
  background-color: #EAF5F3;
  background-image: radial-gradient(rgba(4, 47, 46, 0.1) 0.7px, transparent 0.7px);
  background-size: 11px 11px;
}

.builder-phone {
  width: 100%;
  max-width: 165px;
  padding: 8px 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 14px 24px -18px rgba(15, 23, 42, 0.5);
}

.builder-phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 5px;
  font-weight: 600;
  line-height: 1;
}

.builder-phone-head {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
}

.builder-phone-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--teal-950);
  color: var(--white);
  font-size: 6px;
  font-weight: 700;
}

.builder-phone-head div:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.builder-phone-head span {
  color: var(--subtle);
  font-size: 4.7px;
  line-height: 1.2;
}

.builder-phone-head strong {
  color: var(--ink);
  font-size: 6.5px;
  font-weight: 600;
  line-height: 1.2;
}

.builder-bell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted-light);
  font-size: 7px;
  line-height: 1;
}

.builder-phone-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 11px;
  color: var(--ink);
  font-size: 7px;
  font-weight: 700;
}

.builder-phone-title span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 13px;
  border-radius: 3px;
  background: var(--teal-50);
  color: var(--teal-900);
  font-size: 5.5px;
  font-weight: 700;
}

.builder-order {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
}

.builder-order.is-selected {
  border-color: var(--teal-600);
  background: var(--teal-50);
  box-shadow: 0 0 0 1px rgba(15, 118, 110, 0.1);
}

.order-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--emerald);
  color: var(--white);
  font-size: 5px;
  font-weight: 700;
  line-height: 1;
}

.order-check.is-pending {
  border: 1px solid var(--line-strong);
  background: transparent;
}

.builder-order > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
}

.builder-order strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 5.5px;
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.builder-order small {
  color: var(--muted);
  font-size: 4.5px;
  line-height: 1.3;
}

.order-price {
  color: var(--ink-soft);
  font-size: 5px;
  font-weight: 600;
}

.builder-phone-button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 17px;
  margin-top: 8px;
  border-radius: 3px;
  background: var(--teal-900);
  color: var(--white);
  font-size: 5.3px;
  font-weight: 600;
}

.inspector-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 7px;
  color: var(--subtle);
  font-size: 5.3px;
  line-height: 1.4;
}

.inspector-field b {
  color: var(--muted);
  font-size: 6px;
  font-weight: 500;
}

.inspector-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 3px;
  color: var(--muted);
  font-size: 5.7px;
}

.inspector-toggle i {
  position: relative;
  display: block;
  width: 18px;
  height: 10px;
  border-radius: 99px;
  background: var(--teal-900);
}

.inspector-toggle i::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--white);
}

/* Vista previa: Biblioteca */
.library-preview {
  background: var(--white);
}

.library-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 14px 11px;
  border-bottom: 1px solid var(--line);
}

.library-kicker {
  display: block;
  color: #047857;
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.library-head strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.library-count {
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--subtle);
  font-size: 6px;
  line-height: 1.2;
}

.library-feature {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 13px;
  margin: 13px 14px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
}

.book-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 142px;
  padding: 10px;
  overflow: hidden;
  border-radius: 4px;
  color: var(--white);
  box-shadow: 0 12px 20px -14px rgba(15, 23, 42, 0.5);
}

.book-cover::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: 18px;
  width: 80px;
  height: 80px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.book-cover--teal {
  background: var(--teal-900);
}

.book-cover--teal::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--emerald-light);
}

.book-brand {
  position: relative;
  z-index: 1;
  font-size: 4.7px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.book-cover strong {
  position: relative;
  z-index: 1;
  margin-top: 25px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.book-rule {
  position: relative;
  z-index: 1;
  display: block;
  width: 21px;
  height: 1.5px;
  margin-top: 8px;
  background: var(--emerald-light);
}

.book-cover small {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 4.7px;
  line-height: 1.4;
}

.library-feature-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 2px;
}

.library-badge {
  padding: 2px 5px;
  border-radius: 3px;
  background: var(--emerald-50);
  color: #047857;
  font-size: 5.3px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
}

.library-feature-copy h4 {
  margin-top: 6px;
  color: var(--ink);
  font-size: 10.5px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.library-feature-copy p {
  margin-top: 4px;
  color: var(--muted-light);
  font-size: 6.3px;
  line-height: 1.5;
}

.library-reading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 10px;
  color: var(--subtle);
  font-size: 5.5px;
}

.library-reading b {
  color: #047857;
  font-weight: 700;
}

.library-progress {
  width: 100%;
  height: 3px;
  margin-top: 4px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--line);
}

.library-progress span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: var(--emerald);
}

.library-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 22px;
  margin-top: 9px;
  border-radius: 3px;
  background: var(--teal-900);
  color: var(--white);
  font-size: 6px;
  font-weight: 600;
}

.library-shelf {
  margin: 0 14px 14px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.shelf-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 7.2px;
  font-weight: 600;
}

.shelf-title span {
  color: var(--teal-600);
  font-size: 5.7px;
  font-weight: 600;
}

.shelf-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 8px;
}

.shelf-book {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.shelf-cover {
  display: block;
  width: 18px;
  height: 25px;
  flex: 0 0 auto;
  border-radius: 2px;
}

.shelf-cover--emerald {
  background: var(--emerald);
}

.shelf-cover--amber {
  background: var(--amber);
}

.shelf-cover--teal {
  background: var(--teal-600);
}

.shelf-book > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
}

.shelf-book strong {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 5.5px;
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shelf-book small {
  overflow: hidden;
  color: var(--subtle);
  font-size: 4.6px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------------------------------------------------------
   9. Quiénes somos
   --------------------------------------------------------- */
.about {
  background: var(--white);
}

.about-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 80px;
  align-items: start;
  margin-bottom: 54px;
}

.about-heading-title h2 {
  margin-top: 14px;
  max-width: 540px;
}

.about-heading-copy {
  padding-top: 27px;
}

.about-heading-copy p {
  max-width: 510px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.8;
}

.about-heading-copy p + p {
  margin-top: 13px;
}

.about-heading-copy p:first-child {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.75;
}

.about-signature {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 23px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted-light);
  font-size: 11.5px;
  line-height: 1.5;
}

.signature-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--teal-900);
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 20px;
  align-items: stretch;
}

.philosophy {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.philosophy-head h3 {
  max-width: 390px;
  margin-top: 10px;
  font-size: 23px;
  line-height: 1.2;
}

.philosophy-list {
  margin-top: 21px;
}

.philosophy-list li {
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr) 20px;
  align-items: start;
  gap: 14px;
  padding: 19px 0;
  border-top: 1px solid var(--line);
}

.philosophy-list li:last-child {
  padding-bottom: 2px;
}

.philosophy-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 43px;
  height: 43px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--teal-900);
}

.philosophy-copy h4 {
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.philosophy-copy p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.philosophy-index {
  padding-top: 2px;
  color: var(--subtle);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  text-align: right;
}

.standards {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--teal-950);
  color: var(--white);
}

.standards::after {
  content: "";
  position: absolute;
  top: -74px;
  right: -74px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  pointer-events: none;
}

.standards-head {
  position: relative;
  z-index: 1;
}

.standards-label {
  display: inline-block;
  color: #A7F3D0;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.standards-head h3 {
  max-width: 300px;
  margin-top: 10px;
  color: var(--white);
  font-size: 23px;
  line-height: 1.2;
}

.standards-head p {
  max-width: 330px;
  margin-top: 9px;
  color: #A9C6C2;
  font-size: 12px;
  line-height: 1.6;
}

.standards-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 21px;
}

.standard {
  padding: 15px 15px 15px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.standard:nth-child(even) {
  padding-left: 15px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.standard strong {
  display: block;
  color: var(--white);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.standard > span {
  display: block;
  margin-top: 4px;
  color: #D7E9E6;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.35;
}

.standard p {
  margin-top: 5px;
  color: #A9C6C2;
  font-size: 10px;
  line-height: 1.6;
}

.standards-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #C3DCD9;
  font-size: 10px;
  line-height: 1.5;
}

.standards-foot .icon {
  color: #A7F3D0;
}

.process-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(0, 1.32fr);
  gap: 60px;
  margin-top: 58px;
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.process-intro h3 {
  max-width: 280px;
  margin-top: 10px;
  font-size: 23px;
  line-height: 1.22;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 23px;
}

.process-list li {
  padding-top: 14px;
  border-top: 2px solid var(--line);
}

.process-list li:first-child {
  border-color: var(--teal-900);
}

.process-number {
  display: block;
  color: var(--teal-900);
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.07em;
}

.process-list strong {
  display: block;
  margin-top: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.process-list p {
  margin-top: 5px;
  color: var(--muted-light);
  font-size: 11.5px;
  line-height: 1.65;
}

/* ---------------------------------------------------------
   10. Contacto
   --------------------------------------------------------- */
.contact {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: start;
  gap: 72px;
}

.contact-copy {
  padding-top: 17px;
}

.contact-copy h2 {
  max-width: 470px;
  margin-top: 13px;
  font-size: clamp(2rem, 3.3vw, 2.75rem);
  line-height: 1.13;
}

.contact-lead {
  max-width: 460px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.78;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 28px;
}

.contact-methods li > a,
.contact-method-static {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.contact-methods li > a:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
  transform: translateX(2px);
}

.contact-methods li > a:hover .method-arrow {
  color: var(--teal-900);
  transform: translate(1px, -1px);
}

.contact-method-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 37px;
  height: 37px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--teal-50);
  color: var(--teal-900);
}

.contact-methods li > a > span:nth-child(2),
.contact-method-static > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.contact-methods small {
  color: var(--subtle);
  font-size: 8.5px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-methods strong {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.method-arrow {
  margin-left: auto;
  color: var(--muted-light);
  transition:
    color var(--transition),
    transform var(--transition);
}

.contact-promise {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 17px;
  padding: 12px 13px;
  border: 1px solid var(--emerald-line);
  border-radius: 9px;
  background: var(--emerald-50);
}

.contact-promise .status-dot {
  margin-top: 5px;
}

.contact-promise p {
  color: #047857;
  font-size: 10.5px;
  line-height: 1.6;
}

.contact-promise strong {
  font-weight: 700;
}

.contact-form-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: 0 24px 60px -44px rgba(15, 23, 42, 0.4);
}

.form-heading .form-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal-900);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.form-heading .form-step::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--emerald);
}

.form-heading h3 {
  margin-top: 9px;
  font-size: 24px;
  line-height: 1.2;
}

.form-heading p {
  margin-top: 6px;
  color: var(--muted-light);
  font-size: 11.5px;
  line-height: 1.5;
}

.form-heading p span {
  color: var(--red);
}

.contact-form {
  margin-top: 22px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.form-field {
  margin-bottom: 14px;
}

.form-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.4;
}

.form-field label > span {
  color: var(--red);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.form-field input,
.form-field select {
  height: 45px;
  padding: 0 12px;
}

.form-field textarea {
  min-height: 112px;
  padding: 10px 12px;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--subtle);
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: #B6C2D2;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--teal-600);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.form-field input[aria-invalid="true"],
.form-field select[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.06);
}

.select-wrap {
  position: relative;
}

.form-field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  cursor: pointer;
}

.form-field select:invalid {
  color: var(--subtle);
}

.select-icon {
  position: absolute;
  top: 50%;
  right: 12px;
  color: var(--muted-light);
  pointer-events: none;
  transform: translateY(-50%);
}

.field-error {
  display: block;
  margin-top: 4px;
  color: var(--red);
  font-size: 10.5px;
  line-height: 1.4;
}

.field-error:empty {
  display: none;
}

.label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.char-count {
  margin-bottom: 6px;
  color: var(--subtle);
  font-size: 9.5px;
  line-height: 1.4;
}

.form-field--checkbox {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: start;
  gap: 2px 8px;
  margin-top: 1px;
  margin-bottom: 17px;
}

.form-field--checkbox input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--teal-900);
  cursor: pointer;
}

.form-field--checkbox label {
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 400;
  line-height: 1.6;
  cursor: pointer;
}

.checkbox-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.form-field--checkbox .field-error {
  grid-column: 2;
  margin-top: 0;
}

.inline-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--teal-900);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--line-strong);
}

.inline-link:hover {
  text-decoration-color: var(--teal-900);
}

.btn-submit {
  position: relative;
  width: 100%;
  min-height: 49px;
  border-radius: 9px;
  font-size: 13px;
}

.btn-submit .button-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.btn-submit.is-loading .button-label,
.btn-submit.is-loading .button-icon {
  display: none;
}

.btn-submit.is-loading .button-spinner {
  display: block;
}

.btn-submit:disabled {
  cursor: wait;
  opacity: 0.86;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.form-privacy-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 9px;
  color: var(--subtle);
  font-size: 9px;
  line-height: 1.5;
  text-align: center;
}

.form-status {
  margin-top: 14px;
  padding: 12px 13px;
  border: 1px solid var(--emerald-line);
  border-radius: 8px;
  background: var(--emerald-50);
  color: #047857;
  font-size: 11.5px;
  line-height: 1.6;
}

.form-status.is-error {
  border-color: #FECACA;
  background: #FEF2F2;
  color: var(--red);
}

.form-status strong {
  display: block;
  margin-bottom: 2px;
  font-weight: 700;
}

/* ---------------------------------------------------------
   11. Footer
   --------------------------------------------------------- */
.site-footer {
  position: relative;
  padding-top: 58px;
  background: var(--teal-950);
  color: #C3DCD9;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--teal-900);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.7fr) minmax(0, 0.9fr) minmax(0, 1.05fr);
  gap: 45px;
  padding-bottom: 42px;
}

.brand--footer {
  gap: 10px;
}

.brand--footer .brand-mark {
  width: 36px;
  height: 36px;
}

.brand--footer .brand-name {
  color: var(--white);
}

.brand--footer .brand-tagline {
  color: #A3C3BF;
}

.footer-description {
  max-width: 310px;
  margin-top: 16px;
  color: #A3C3BF;
  font-size: 12.5px;
  line-height: 1.75;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  padding: 6px 9px;
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 5px;
  background: rgba(16, 185, 129, 0.08);
  color: #A7F3D0;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
}

.footer-column h4 {
  margin-bottom: 15px;
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-column a {
  display: block;
  width: fit-content;
  margin-bottom: 9px;
  color: #A3C3BF;
  font-size: 12px;
  line-height: 1.5;
  transition: color var(--transition);
}

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

.footer-contact p {
  margin-top: 13px;
  color: #A3C3BF;
  font-size: 11.5px;
  line-height: 1.7;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9DBDB9;
  font-size: 10.5px;
  line-height: 1.5;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-legal a,
.footer-link-button {
  color: #A3C3BF;
  font-size: 10.5px;
  line-height: 1.5;
  transition: color var(--transition);
}

.footer-legal a:hover,
.footer-link-button:hover {
  color: var(--white);
}

.footer-link-button {
  padding: 0;
  border: 0;
  background: transparent;
}

/* ---------------------------------------------------------
   12. Modal de privacidad
   --------------------------------------------------------- */
.privacy-dialog {
  width: min(660px, calc(100% - 32px));
  max-height: 86dvh;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 30px 90px -24px rgba(15, 23, 42, 0.45);
}

.privacy-dialog[open] {
  animation: dialog-in 220ms var(--ease) both;
}

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

.privacy-dialog::backdrop {
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.privacy-dialog-inner {
  display: flex;
  max-height: 86dvh;
  flex-direction: column;
}

.privacy-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px 20px;
  border-bottom: 1px solid var(--line);
}

.privacy-dialog-head h2 {
  margin-top: 7px;
  font-size: 25px;
}

.dialog-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--muted);
  transition:
    color var(--transition),
    border-color var(--transition),
    background-color var(--transition);
}

.dialog-close:hover {
  border-color: var(--line-strong);
  background: var(--white);
  color: var(--ink);
}

.privacy-dialog-body {
  overflow-y: auto;
  padding: 20px 26px 26px;
}

.privacy-updated {
  color: var(--subtle);
  font-size: 10.5px;
  line-height: 1.5;
}

.privacy-dialog-body h3 {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.privacy-dialog-body p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.72;
}

.privacy-dialog-body a {
  color: var(--teal-900);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------------------------------------------------------
   13. Animación de entrada
   --------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 650ms var(--ease),
    transform 650ms var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.services-grid .reveal:nth-child(2),
.about-grid .reveal:nth-child(2) {
  transition-delay: 80ms;
}

.services-grid .reveal:nth-child(3) {
  transition-delay: 160ms;
}

/* ---------------------------------------------------------
   14. Responsive
   --------------------------------------------------------- */
@media (max-width: 1180px) {
  .desktop-nav {
    gap: 20px;
  }

  .nav-link {
    font-size: 12.5px;
  }

  .header-inner {
    gap: 20px;
  }

  .hero-layout {
    gap: 36px;
  }

  .hero-title {
    font-size: clamp(2.7rem, 4.8vw, 3.75rem);
  }

  .ecosystem-shell {
    grid-template-columns: 278px minmax(0, 1fr);
  }

  .eco-panel {
    gap: 22px;
    padding: 24px;
  }

  .eco-panel-copy h3 {
    font-size: 24px;
  }

  .eco-panel-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .builder-body {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .builder-inspector {
    display: none;
  }
}

@media (max-width: 1040px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero {
    padding-top: 128px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-copy {
    max-width: 760px;
    padding-bottom: 0;
  }

  .hero-title {
    max-width: 720px;
    font-size: clamp(3rem, 6vw, 4rem);
  }

  .hero-lead {
    max-width: 620px;
  }

  .hero-visual {
    justify-self: start;
    max-width: 680px;
  }

  .visual-canvas {
    padding-left: 0;
    padding-right: 20px;
  }

  .visual-accent {
    right: 0;
  }

  .audience-strip {
    margin-top: 45px;
  }

  .section-heading--split {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section-heading-main h2 {
    max-width: 760px;
  }

  .section-lead {
    max-width: 610px;
  }

  .ecosystem-shell {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ecosystem-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .eco-tab {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 13px;
  }

  .eco-tab-icon {
    width: 34px;
    height: 34px;
  }

  .eco-tab-arrow {
    display: none;
  }

  .eco-tab small {
    display: none;
  }

  .eco-tabs-note {
    display: none;
  }

  .eco-panel {
    grid-template-columns: minmax(0, 0.83fr) minmax(0, 1.17fr);
    min-height: 530px;
  }

  .about-heading {
    gap: 48px;
  }

  .process-strip {
    gap: 34px;
  }
}

@media (max-width: 900px) {
  .section {
    padding: 88px 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
    padding: 25px;
  }

  .service-card .text-link {
    padding-top: 22px;
  }

  .services-note {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .eco-panel {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 26px;
  }

  .eco-panel-copy {
    max-width: 640px;
  }

  .eco-panel-actions {
    flex-direction: row;
    align-items: center;
  }

  .eco-panel-visual {
    width: 100%;
    max-width: 650px;
  }

  .about-heading {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .about-heading-copy {
    padding-top: 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .philosophy,
  .standards {
    padding: 26px;
  }

  .process-strip {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 44px;
    padding-top: 32px;
  }

  .process-intro h3 {
    max-width: 360px;
  }

  .process-list {
    gap: 18px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .contact-copy {
    padding-top: 0;
  }

  .contact-copy h2,
  .contact-lead {
    max-width: 620px;
  }

  .footer-top {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr) minmax(0, 1fr);
    gap: 34px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-description {
    max-width: 440px;
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 16px;
  }

  .header-inner {
    height: 72px;
  }

  .mobile-menu {
    top: 72px;
    min-height: calc(100dvh - 72px);
    max-height: calc(100dvh - 72px);
  }

  .brand-mark {
    width: 35px;
    height: 35px;
  }

  .brand-name {
    font-size: 15px;
  }

  .brand-tagline {
    font-size: 8px;
  }

  .hero {
    padding-top: 112px;
  }

  .hero-grid {
    height: 620px;
  }

  .hero-layout {
    gap: 38px;
  }

  .hero-copy {
    padding-top: 10px;
  }

  .hero-title {
    margin-top: 20px;
    font-size: clamp(2.55rem, 8.5vw, 3.4rem);
  }

  .hero-lead {
    margin-top: 19px;
    font-size: 15px;
    line-height: 1.75;
  }

  .hero-actions {
    margin-top: 26px;
  }

  .hero-points {
    gap: 13px 18px;
    margin-top: 22px;
    font-size: 11.5px;
  }

  .visual-canvas {
    padding-right: 10px;
    padding-bottom: 20px;
  }

  .visual-accent {
    right: 0;
    height: 72%;
  }

  .visual-tag {
    top: 8px;
    right: 6px;
    font-size: 8px;
  }

  .dashboard {
    grid-template-columns: 44px minmax(0, 1fr);
    min-height: 330px;
  }

  .dashboard-rail {
    gap: 16px;
  }

  .dashboard-body {
    padding: 14px 12px;
  }

  .dash-panels {
    grid-template-columns: 1fr;
  }

  .dash-modules {
    display: none;
  }

  .bar-chart {
    height: 74px;
  }

  .deploy-card {
    bottom: -5px;
    left: -4px;
    width: 192px;
    padding: 8px 9px 10px;
  }

  .deploy-icon {
    width: 27px;
    height: 27px;
  }

  .deploy-copy strong {
    font-size: 8px;
  }

  .deploy-copy span {
    font-size: 6.5px;
  }

  .visual-caption {
    justify-content: flex-start;
    margin-top: 14px;
    padding-left: 2px;
    font-size: 9.5px;
  }

  .audience-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-top: 37px;
    padding: 18px 0 20px;
  }

  .audience-strip ul {
    gap: 8px 18px;
  }

  .audience-strip li {
    font-size: 11.5px;
  }

  .section {
    padding: 72px 0;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .section-heading--split {
    gap: 14px;
  }

  .section-lead {
    font-size: 14px;
    line-height: 1.75;
  }

  .service-card {
    padding: 22px;
  }

  .service-card-head {
    margin-bottom: 18px;
  }

  .service-card h3 {
    font-size: 19px;
  }

  .services-note {
    padding: 16px;
  }

  .ecosystem-tabs {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .eco-tab {
    grid-template-columns: 35px minmax(0, 1fr) 18px;
    padding: 12px;
  }

  .eco-tab-arrow {
    display: block;
    margin-top: 8px;
  }

  .eco-tab small {
    display: block;
  }

  .eco-tab-copy {
    justify-content: center;
  }

  .eco-panel {
    padding: 20px;
    border-radius: 14px;
  }

  .eco-panel-copy h3 {
    font-size: 24px;
  }

  .eco-panel-copy > p {
    font-size: 12.5px;
  }

  .eco-panel-actions {
    flex-direction: row;
    align-items: center;
  }

  .widget-workbench {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
    min-height: 300px;
  }

  .code-block {
    font-size: 6.3px;
    line-height: 1.6;
    padding: 8px;
  }

  .mini-phone {
    max-width: 125px;
  }

  .builder-body {
    grid-template-columns: 75px minmax(0, 1fr);
    min-height: 300px;
  }

  .builder-phone {
    max-width: 150px;
  }

  .library-feature {
    grid-template-columns: 91px minmax(0, 1fr);
  }

  .book-cover {
    min-height: 127px;
  }

  .book-cover strong {
    font-size: 10.5px;
  }

  .shelf-items {
    gap: 5px;
  }

  .about-heading {
    margin-bottom: 32px;
  }

  .about-heading-copy p:first-child {
    font-size: 14.5px;
  }

  .about-heading-copy p {
    font-size: 13.5px;
  }

  .philosophy-list li {
    grid-template-columns: 39px minmax(0, 1fr);
    gap: 12px;
  }

  .philosophy-icon {
    width: 39px;
    height: 39px;
  }

  .philosophy-index {
    display: none;
  }

  .standards-grid {
    grid-template-columns: 1fr;
  }

  .standard {
    padding-right: 0;
  }

  .standard:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }

  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
  }

  .contact-form-card {
    padding: 24px;
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

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

  .footer-legal {
    flex-wrap: wrap;
    gap: 8px 18px;
  }
}

@media (max-width: 580px) {
  .header-cta {
    display: none;
  }

  .hero-title {
    font-size: clamp(2.35rem, 10.8vw, 3rem);
    letter-spacing: -0.045em;
  }

  .hero-copy .eyebrow {
    font-size: 10.5px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .hero-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
  }

  .visual-tag {
    display: none;
  }

  .visual-canvas {
    padding-right: 0;
    padding-bottom: 16px;
  }

  .visual-accent {
    right: 0;
    width: 92%;
    height: 67%;
    border-radius: 18px;
  }

  .visual-grid-pattern {
    display: none;
  }

  .browser-window {
    border-radius: 11px;
  }

  .window-chrome {
    height: 31px;
  }

  .window-address {
    width: 62%;
    font-size: 6.5px;
  }

  .dashboard {
    grid-template-columns: 1fr;
    min-height: 305px;
  }

  .dashboard-rail {
    display: none;
  }

  .dashboard-body {
    padding: 13px 12px 15px;
  }

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

  .dash-card:nth-child(3) {
    display: none;
  }

  .dash-value {
    font-size: 16px;
  }

  .dash-panels {
    margin-top: 7px;
  }

  .dash-chart {
    padding: 10px;
  }

  .deploy-card {
    display: none;
  }

  .visual-caption {
    margin-top: 12px;
  }

  .audience-strip ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 7px 14px;
  }

  .audience-strip li {
    align-items: flex-start;
    font-size: 11px;
  }

  .audience-strip li::before {
    margin-top: 6px;
  }

  .section {
    padding: 62px 0;
  }

  h2 {
    font-size: clamp(1.9rem, 8vw, 2.35rem);
  }

  .service-card {
    padding: 20px;
  }

  .services-note-copy {
    align-items: flex-start;
  }

  .services-note .btn {
    width: 100%;
  }

  .eco-tab {
    grid-template-columns: 32px minmax(0, 1fr) 16px;
  }

  .eco-tab-icon {
    width: 32px;
    height: 32px;
  }

  .eco-tab strong {
    font-size: 12.5px;
  }

  .eco-tab-label {
    font-size: 7.5px;
  }

  .eco-tab small {
    font-size: 9.5px;
  }

  .eco-panel {
    padding: 17px;
    gap: 20px;
  }

  .eco-panel-copy h3 {
    font-size: 22px;
  }

  .eco-panel-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .eco-panel-actions .btn {
    width: 100%;
  }

  .widget-workbench {
    grid-template-columns: 1fr;
  }

  .code-pane {
    display: none;
  }

  .render-pane {
    min-height: 285px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .mini-phone {
    max-width: 160px;
    margin-top: 12px;
  }

  .mini-content {
    padding: 12px 10px 14px;
  }

  .mini-content h4 {
    font-size: 14px;
  }

  .mini-content p {
    font-size: 6.5px;
  }

  .mini-button {
    height: 22px;
    font-size: 6.5px;
  }

  .preview-footer {
    font-size: 6px;
  }

  .builder-body {
    grid-template-columns: 1fr;
    min-height: 300px;
  }

  .builder-library {
    display: none;
  }

  .builder-canvas {
    padding: 14px;
  }

  .builder-phone {
    max-width: 175px;
  }

  .library-feature {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .book-cover {
    min-height: 116px;
    max-height: 145px;
  }

  .book-cover strong {
    margin-top: 16px;
    font-size: 13px;
  }

  .library-feature-copy {
    padding-top: 0;
  }

  .library-feature-copy p {
    font-size: 7px;
  }

  .shelf-items {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .shelf-cover {
    width: 16px;
    height: 22px;
  }

  .shelf-book strong {
    font-size: 6px;
  }

  .shelf-book small {
    font-size: 5px;
  }

  .philosophy,
  .standards {
    padding: 21px;
  }

  .philosophy-head h3,
  .standards-head h3 {
    font-size: 21px;
  }

  .philosophy-copy p {
    font-size: 12px;
  }

  .process-list {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .contact-copy h2 {
    font-size: clamp(1.9rem, 8.6vw, 2.4rem);
  }

  .contact-methods strong {
    font-size: 11.5px;
  }

  .method-arrow {
    display: none;
  }

  .contact-form-card {
    padding: 20px;
    border-radius: 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-heading h3 {
    font-size: 22px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 27px;
    padding-bottom: 30px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-column a {
    margin-bottom: 7px;
  }

  .footer-bottom {
    padding: 15px 0 18px;
    font-size: 10px;
  }

  .privacy-dialog-head {
    padding: 20px 18px 16px;
  }

  .privacy-dialog-head h2 {
    font-size: 22px;
  }

  .privacy-dialog-body {
    padding: 16px 18px 22px;
  }
}

@media (max-width: 380px) {
  .logo-copy,
  .brand-tagline {
    display: none;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-actions .btn {
    padding-inline: 14px;
    font-size: 13px;
  }

  .status-pill {
    display: none;
  }

  .window-address {
    width: 72%;
  }

  .contact-form-card {
    padding: 17px;
  }
}

/* =========================================================
   16. Shell multipágina
   Panel lateral fijo con logo y navegación + área de contenido.
   ========================================================== */
:root {
  --sidebar-width: 286px;
  --page-gutter: 48px;
}

body {
  background: var(--bg-soft);
}

.app-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100dvh;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  width: var(--sidebar-width);
  height: 100dvh;
  padding: 27px 22px 22px;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: var(--white);
}

.sidebar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.sidebar-brand {
  display: block;
  width: 100%;
  max-width: 225px;
  border-radius: 6px;
}

.sidebar-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.sidebar-close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--muted);
  transition:
    border-color var(--transition),
    color var(--transition),
    background-color var(--transition);
}

.sidebar-close:hover {
  border-color: var(--line-strong);
  background: var(--bg-soft);
  color: var(--ink);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 30px;
}

.sidebar-label {
  display: block;
  margin: 0 11px 9px;
  color: var(--subtle);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 45px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  transition:
    color var(--transition),
    background-color var(--transition),
    border-color var(--transition);
}

.sidebar-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--muted-light);
  transition:
    color var(--transition),
    background-color var(--transition),
    border-color var(--transition);
}

.sidebar-link > .icon:last-child {
  margin-left: auto;
  opacity: 0;
  color: var(--teal-900);
  transition: opacity var(--transition);
}

.sidebar-link:hover {
  background: var(--bg-soft);
  color: var(--ink);
}

.sidebar-link:hover .sidebar-link-icon {
  color: var(--teal-900);
}

.sidebar-link.is-active {
  border-color: var(--teal-100);
  background: var(--teal-50);
  color: var(--teal-900);
  font-weight: 700;
}

.sidebar-link.is-active .sidebar-link-icon {
  border-color: var(--teal-100);
  background: var(--white);
  color: var(--teal-900);
}

.sidebar-link.is-active > .icon:last-child {
  opacity: 1;
}

.sidebar-cta {
  position: relative;
  margin-top: auto;
  padding: 18px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--teal-950);
  color: var(--white);
}

.sidebar-cta::after {
  content: "";
  position: absolute;
  right: -54px;
  bottom: -70px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(211, 240, 235, 0.15);
  border-radius: 50%;
  pointer-events: none;
}

.sidebar-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #A7F3D0;
  font-size: 8.5px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sidebar-kicker .status-dot {
  width: 6px;
  height: 6px;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16);
}

.sidebar-cta p {
  position: relative;
  z-index: 1;
  margin-top: 11px;
  color: var(--white);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.sidebar-cta-link {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
  padding: 9px 10px;
  border-radius: 7px;
  background: var(--white);
  color: var(--teal-950);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  transition:
    background-color var(--transition),
    color var(--transition);
}

.sidebar-cta-link:hover {
  background: var(--teal-50);
  color: var(--teal-900);
}

.sidebar-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--muted-light);
  font-size: 9.5px;
  line-height: 1.45;
}

.sidebar-meta a,
.sidebar-meta span {
  display: flex;
  align-items: center;
  gap: 7px;
  transition: color var(--transition);
}

.sidebar-meta .icon {
  color: var(--teal-600);
}

.sidebar-meta a:hover {
  color: var(--teal-900);
}

.sidebar-backdrop {
  display: none;
}

/* Área derecha */
.page-panel {
  display: flex;
  min-width: 0;
  min-height: 100dvh;
  flex-direction: column;
  background: var(--bg-soft);
}

.page-topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
  padding: 0 var(--page-gutter);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.topbar-brand {
  display: none;
  flex: 0 0 auto;
  border-radius: 4px;
}

.topbar-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--muted-light);
  font-size: 11.5px;
  line-height: 1.4;
}

.breadcrumb a {
  color: var(--muted);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--teal-900);
}

.breadcrumb-current {
  overflow: hidden;
  color: var(--ink);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 0 0 auto;
}

.topbar-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted-light);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}

.topbar-status .status-dot {
  width: 6px;
  height: 6px;
}

.topbar-cta {
  min-height: 40px;
  padding-inline: 15px;
  font-size: 12.5px;
}

.page-main {
  flex: 1;
  min-width: 0;
}

.page-panel .container {
  width: min(1120px, calc(100% - (var(--page-gutter) * 2)));
}

.page-main .section {
  padding: 76px 0;
}

.section--soft {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

/* ---------------------------------------------------------
   17. Encabezados de página y bloques multipágina
   --------------------------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 52px 0 44px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.page-hero::after {
  content: "";
  position: absolute;
  top: -255px;
  right: -150px;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  background: rgba(211, 240, 235, 0.48);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr);
  align-items: start;
  gap: 62px;
  margin-top: 14px;
}

.page-hero h1 {
  max-width: 720px;
  font-size: clamp(2.2rem, 3.25vw, 3.1rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.052em;
  text-wrap: balance;
}

.page-hero-aside {
  max-width: 420px;
  padding-top: 5px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.78;
}

.page-hero-aside p + p {
  margin-top: 11px;
}

.page-hero-aside .about-signature {
  margin-top: 18px;
  padding-top: 15px;
}

.page-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.page-hero-tags li {
  padding: 5px 9px;
  border: 1px solid var(--teal-100);
  border-radius: 999px;
  background: var(--teal-50);
  color: var(--teal-900);
  font-size: 9px;
  font-weight: 600;
  line-height: 1.3;
}

/* Inicio */
.home-hero {
  padding-top: 54px;
  padding-bottom: 0;
}

.home-hero .hero-layout {
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 38px;
}

.home-hero .hero-copy {
  max-width: 620px;
  padding: 0;
}

.home-hero .hero-title {
  max-width: 620px;
  font-size: clamp(2.55rem, 3.9vw, 3.65rem);
}

.home-hero .hero-lead {
  max-width: 550px;
  font-size: 15px;
  line-height: 1.75;
}

.home-hero .hero-actions {
  margin-top: 26px;
}

.home-hero .hero-points {
  margin-top: 23px;
}

.home-hero .hero-visual {
  max-width: 520px;
}

.home-hero .audience-strip {
  margin-top: 42px;
}

.home-capabilities {
  background: var(--white);
}

.section-heading-link {
  margin-top: 14px;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.capability-card {
  position: relative;
  display: flex;
  min-height: 278px;
  flex-direction: column;
  padding: 25px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.capability-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--teal-900);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.capability-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.capability-card:hover::before {
  transform: scaleX(1);
}

.capability-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.capability-index {
  color: var(--subtle);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.capability-card h3 {
  margin-top: 22px;
  font-size: 18px;
  line-height: 1.25;
}

.capability-card p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.72;
}

.capability-card .text-link {
  margin-top: auto;
  padding-top: 20px;
  font-size: 12px;
}

.home-ecosystem {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.ecosystem-spotlight {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 52px;
  padding: 38px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--teal-950);
  color: var(--white);
}

.ecosystem-spotlight::after {
  content: "";
  position: absolute;
  top: -170px;
  right: -95px;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(211, 240, 235, 0.13);
  border-radius: 50%;
  pointer-events: none;
}

.eyebrow--light {
  color: #A7F3D0;
}

.eyebrow--light::before {
  background: #A7F3D0;
}

.spotlight-copy {
  position: relative;
  z-index: 1;
}

.spotlight-copy h2 {
  max-width: 460px;
  margin-top: 12px;
  color: var(--white);
  font-size: clamp(1.8rem, 2.7vw, 2.35rem);
  line-height: 1.15;
}

.spotlight-copy p {
  max-width: 420px;
  margin-top: 13px;
  color: #B5CFCB;
  font-size: 13px;
  line-height: 1.78;
}

.spotlight-copy .btn {
  margin-top: 22px;
}

.spotlight-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spotlight-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid rgba(211, 240, 235, 0.15);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  transition:
    border-color var(--transition),
    background-color var(--transition);
}

.spotlight-item:hover {
  border-color: rgba(167, 243, 208, 0.4);
  background: rgba(255, 255, 255, 0.09);
}

.spotlight-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 37px;
  height: 37px;
  flex: 0 0 auto;
  border: 1px solid rgba(211, 240, 235, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: #A7F3D0;
}

.spotlight-item > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.spotlight-item strong {
  color: var(--white);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.spotlight-item small {
  color: #A9C6C2;
  font-size: 10px;
  line-height: 1.4;
}

.spotlight-item > .icon {
  margin-left: auto;
  color: #A7F3D0;
  transition: transform var(--transition);
}

.spotlight-item:hover > .icon {
  transform: translateX(3px);
}

.btn-light {
  border-color: var(--white);
  background: var(--white);
  color: var(--teal-950);
}

.btn-light:hover {
  border-color: var(--teal-50);
  background: var(--teal-50);
  color: var(--teal-900);
}

/* CTA y cierre */
.section.cta-section {
  padding-top: 24px;
  padding-bottom: 70px;
}

.cta-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: 32px 34px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--teal-950);
  color: var(--white);
}

.cta-panel::after {
  content: "";
  position: absolute;
  right: -78px;
  bottom: -150px;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(211, 240, 235, 0.14);
  border-radius: 50%;
  pointer-events: none;
}

.cta-copy {
  position: relative;
  z-index: 1;
}

.cta-copy h2 {
  max-width: 560px;
  margin-top: 10px;
  color: var(--white);
  font-size: clamp(1.65rem, 2.5vw, 2.1rem);
  line-height: 1.16;
}

.cta-copy p {
  max-width: 460px;
  margin-top: 8px;
  color: #A9C6C2;
  font-size: 12.5px;
  line-height: 1.7;
}

.cta-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  flex: 0 0 auto;
}

.cta-email {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #C3DCD9;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.4;
  transition: color var(--transition);
}

.cta-email:hover {
  color: var(--white);
}

/* Servicios */
.process-section .process-strip {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.about-page-section .process-strip {
  margin-top: 54px;
}

/* Ecosistema */
.ecosystem-page-section {
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

/* Contacto */
.contact-page-section {
  padding-top: 54px;
  padding-bottom: 76px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.contact-page-section .contact-copy {
  padding-top: 0;
}

.contact-page-section .contact-copy h1 {
  max-width: 470px;
  margin-top: 13px;
  font-size: clamp(2rem, 3.3vw, 2.75rem);
  line-height: 1.13;
  letter-spacing: -0.04em;
}

/* Footer compacto */
.page-footer {
  border-top: 1px solid var(--line);
  background: var(--white);
}

.page-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: min(1120px, calc(100% - (var(--page-gutter) * 2)));
  margin-inline: auto;
  padding: 19px 0;
  color: var(--muted-light);
  font-size: 10.5px;
  line-height: 1.5;
}

.page-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.page-footer-links a,
.page-footer-links button {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted-light);
  font-size: 10.5px;
  line-height: 1.5;
  transition: color var(--transition);
}

.page-footer-links a:hover,
.page-footer-links button:hover {
  color: var(--teal-900);
}

/* ---------------------------------------------------------
   17b. Página de producto: Flutter Estudio Widgets
   --------------------------------------------------------- */
.product-hero {
  position: relative;
  overflow: hidden;
  padding: 42px 0 54px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.product-hero::after {
  content: "";
  position: absolute;
  top: -260px;
  right: -150px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: rgba(211, 240, 235, 0.46);
  pointer-events: none;
}

.product-hero .container {
  position: relative;
  z-index: 1;
}

.product-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: 48px;
}

.back-link {
  display: flex;
  align-items: center;
  width: fit-content;
  gap: 6px;
  margin-bottom: 22px;
  color: var(--muted-light);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.4;
  transition: color var(--transition);
}

.back-link:hover {
  color: var(--teal-900);
}

.product-hero h1 {
  max-width: 560px;
  margin-top: 13px;
  font-size: clamp(2.35rem, 3.35vw, 3.2rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.052em;
  text-wrap: balance;
}

.product-hero-lead {
  max-width: 540px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.product-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.product-hero-actions .btn {
  font-size: 12.5px;
}

.product-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 21px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
}

.product-facts li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.product-facts .status-dot {
  width: 6px;
  height: 6px;
}

.product-facts .icon {
  color: var(--emerald);
}

.product-shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 28px 70px -30px rgba(3, 48, 47, 0.4);
}

.product-shot-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 11px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.product-shot-url {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(280px, 54%);
  height: 20px;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--white);
  color: var(--muted-light);
  font-size: 7.5px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-shot-live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #047857;
  font-size: 7.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.product-shot-live > span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.product-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-top: 1px solid var(--line);
}

.product-shot figcaption {
  padding: 8px 11px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--muted-light);
  font-size: 9px;
  line-height: 1.4;
}

.product-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.product-feature-card {
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.product-feature-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.product-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--teal-100);
  border-radius: 9px;
  background: var(--teal-50);
  color: var(--teal-900);
}

.product-feature-card h3 {
  margin-top: 17px;
  font-size: 15.5px;
  line-height: 1.3;
}

.product-feature-card p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.72;
}

.product-objective-section {
  background: var(--bg-soft);
}

.objective-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 54px;
  padding: 34px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--teal-950);
  color: var(--white);
}

.objective-panel::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -130px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(211, 240, 235, 0.14);
  border-radius: 50%;
  pointer-events: none;
}

.objective-copy {
  position: relative;
  z-index: 1;
}

.objective-copy h2 {
  max-width: 460px;
  margin-top: 12px;
  color: var(--white);
  font-size: clamp(1.9rem, 2.8vw, 2.5rem);
  line-height: 1.14;
}

.objective-copy p {
  max-width: 430px;
  margin-top: 13px;
  color: #B5CFCB;
  font-size: 12.5px;
  line-height: 1.8;
}

.objective-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.objective-list li {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.objective-list li > span {
  padding-top: 1px;
  color: #A7F3D0;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.06em;
}

.objective-list strong {
  display: block;
  color: var(--white);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
}

.objective-list p {
  margin-top: 3px;
  color: #A9C6C2;
  font-size: 11px;
  line-height: 1.65;
}

.product-how-section {
  background: var(--white);
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 32px;
}

.how-steps li {
  padding-top: 14px;
  border-top: 2px solid var(--line);
}

.how-steps li:first-child {
  border-color: var(--teal-900);
}

.how-number {
  display: block;
  color: var(--teal-900);
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.07em;
}

.how-steps h3 {
  margin-top: 9px;
  font-size: 13.5px;
  line-height: 1.35;
}

.how-steps p {
  margin-top: 6px;
  color: var(--muted-light);
  font-size: 11.5px;
  line-height: 1.7;
}

/* ---------------------------------------------------------
   18. Ajustes responsive del layout multipágina
   --------------------------------------------------------- */
@media (max-width: 1360px) {
  .home-hero .hero-layout {
    gap: 28px;
  }

  .home-hero .hero-title {
    font-size: clamp(2.4rem, 3.5vw, 3.1rem);
  }

  .home-hero .hero-lead {
    font-size: 14px;
  }

  .home-hero .hero-visual {
    max-width: 425px;
  }

  .home-hero .hero-actions {
    gap: 9px;
    margin-top: 23px;
  }

  .home-hero .hero-actions .btn {
    padding-inline: 18px;
    font-size: 13px;
  }

  .ecosystem-shell {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ecosystem-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .eco-tab {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 13px;
  }

  .eco-tab-icon {
    width: 34px;
    height: 34px;
  }

  .eco-tab-arrow,
  .eco-tab small,
  .eco-tabs-note {
    display: none;
  }
}

@media (max-width: 1200px) {
  .home-hero .hero-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .home-hero .hero-copy {
    max-width: 780px;
  }

  .home-hero .hero-title {
    max-width: 780px;
    font-size: clamp(2.6rem, 5vw, 3.45rem);
  }

  .home-hero .hero-lead {
    max-width: 620px;
    font-size: 15px;
  }

  .home-hero .hero-visual {
    justify-self: start;
    max-width: 680px;
  }

  .page-hero-grid {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 18px;
  }

  .page-hero-aside {
    max-width: 640px;
  }

  .section-heading--split {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 16px;
  }

  .services-grid,
  .capability-grid {
    grid-template-columns: 1fr;
  }

  .about-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .process-strip {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 22px;
  }

  .ecosystem-spotlight {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cta-panel {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  .topbar-status {
    display: none;
  }

  .services-note {
    flex-wrap: wrap;
  }

  .topbar-cta {
    min-height: 38px;
  }

  .product-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .product-hero-copy {
    max-width: 740px;
  }

  .product-hero h1 {
    max-width: 740px;
    font-size: clamp(2.5rem, 5vw, 3.3rem);
  }

  .product-shot {
    width: 100%;
    max-width: 840px;
  }

  .product-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .objective-panel {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 30px;
  }

  .how-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .library-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .library-hero-copy {
    max-width: 760px;
  }

  .library-hero-visual {
    min-height: 310px;
    justify-content: flex-start;
  }

  .library-cover-stack {
    max-width: 600px;
    height: 300px;
  }

  .library-stack-cover {
    width: 150px;
    height: 225px;
  }

  .library-stack-cover--back {
    transform: translate(-50%, -50%) translateX(-92px) rotate(-9deg);
  }

  .library-stack-cover--middle {
    transform: translate(-50%, -50%) translateX(14px) translateY(-7px) rotate(5deg);
  }

  .library-stack-cover--front {
    transform: translate(-50%, -50%) translateX(-41px) translateY(17px) rotate(-2deg);
  }

  .library-hero-badge {
    right: auto;
    left: 295px;
  }
}

@media (max-width: 1100px) {
  .app-layout {
    display: block;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 200;
    width: min(320px, 88vw);
    height: 100dvh;
    padding: 24px 20px 22px;
    border-right: 0;
    box-shadow: 24px 0 60px -30px rgba(3, 48, 47, 0.42);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-102%);
    transition:
      transform 280ms var(--ease),
      opacity 220ms var(--ease),
      visibility 220ms var(--ease);
  }

  .sidebar.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }

  .sidebar-close {
    display: flex;
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 190;
    display: block;
    background: rgba(3, 48, 47, 0.5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 220ms var(--ease),
      visibility 220ms var(--ease);
  }

  .sidebar-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .menu-toggle {
    display: flex;
  }

  .topbar-brand {
    display: block;
    width: 154px;
  }

  .topbar-left {
    gap: 14px;
  }

  .breadcrumb {
    display: none;
  }

  .page-topbar {
    min-height: 66px;
    padding: 0 28px;
  }

  .page-panel .container {
    width: min(100% - 56px, 1120px);
  }

  .page-footer-inner {
    width: min(100% - 56px, 1120px);
  }
}

@media (max-width: 900px) {
  .page-panel {
    --page-gutter: 24px;
  }

  .page-topbar {
    padding: 0 var(--page-gutter);
  }

  .page-main .section {
    padding: 64px 0;
  }

  .page-hero {
    padding: 44px 0 36px;
  }

  .page-hero h1 {
    font-size: clamp(2rem, 5vw, 2.7rem);
  }

  .home-hero {
    padding-top: 44px;
  }

  .contact-page-section {
    padding-top: 42px;
    padding-bottom: 64px;
  }

  .section.cta-section {
    padding-top: 16px;
    padding-bottom: 58px;
  }

  .cta-panel {
    padding: 28px;
  }

  .ecosystem-spotlight {
    padding: 30px;
  }

  .product-hero {
    padding: 34px 0 44px;
  }

  .product-hero h1 {
    font-size: clamp(2.2rem, 6vw, 3rem);
  }

  .library-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .library-catalog-status {
    align-items: flex-start;
    text-align: left;
  }

  .featured-shelf {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .library-grid {
    grid-template-columns: 1fr;
  }

  .library-book-card {
    grid-template-columns: 128px minmax(0, 1fr);
  }

  .reader-dialog {
    width: 100%;
    max-width: none;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
  }

  .reader-shell {
    height: 100dvh;
  }

  .reader-header {
    flex-wrap: wrap;
    padding: 14px 16px;
  }

  .reader-header-actions {
    margin-left: auto;
  }

  .reader-body {
    grid-template-columns: 1fr;
  }

  .reader-aside {
    display: none;
  }

  .reader-main {
    padding: 24px 22px 20px;
  }

  .reader-text {
    max-width: 720px;
    font-size: 13px;
  }
}

@media (max-width: 760px) {
  .page-topbar {
    min-height: 62px;
  }

  .topbar-brand {
    width: 145px;
  }

  .page-panel .container,
  .page-footer-inner {
    width: calc(100% - (var(--page-gutter) * 2));
  }

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

  .topbar-cta {
    display: none;
  }

  .page-main .section {
    padding: 56px 0;
  }

  .page-hero {
    padding: 36px 0 30px;
  }

  .page-hero-grid {
    gap: 14px;
  }

  .page-hero h1 {
    font-size: clamp(1.95rem, 7.8vw, 2.45rem);
    line-height: 1.08;
  }

  .page-hero-aside {
    font-size: 12.5px;
  }

  .home-hero .hero-title {
    font-size: clamp(2.35rem, 9vw, 3.1rem);
  }

  .home-hero .hero-layout {
    gap: 30px;
  }

  .home-hero .hero-visual {
    max-width: 100%;
  }

  .home-hero .audience-strip {
    margin-top: 30px;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .services-grid,
  .capability-grid {
    gap: 12px;
  }

  .service-card {
    min-height: 0;
  }

  .capability-card {
    min-height: 0;
    padding: 22px;
  }

  .capability-card h3 {
    margin-top: 18px;
  }

  .ecosystem-tabs {
    grid-template-columns: 1fr;
  }

  .eco-tab {
    grid-template-columns: 35px minmax(0, 1fr) 18px;
    padding: 12px;
  }

  .eco-tab small {
    display: block;
  }

  .eco-tab-arrow {
    display: block;
    margin-top: 8px;
  }

  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ecosystem-spotlight,
  .cta-panel {
    padding: 24px;
    border-radius: 15px;
  }

  .spotlight-copy h2 {
    font-size: clamp(1.6rem, 6.4vw, 1.95rem);
  }

  .cta-copy h2 {
    font-size: clamp(1.5rem, 5.8vw, 1.8rem);
  }

  .contact-page-section .contact-copy h1 {
    font-size: clamp(1.9rem, 8.5vw, 2.4rem);
  }

  .contact-form-card {
    padding: 22px;
  }

  .product-hero {
    padding: 28px 0 38px;
  }

  .product-hero h1 {
    font-size: clamp(2rem, 7.4vw, 2.65rem);
  }

  .product-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .product-hero-actions .btn {
    width: 100%;
  }

  .product-facts {
    gap: 8px 14px;
    font-size: 9.5px;
  }

  .product-shot-url {
    width: 58%;
    font-size: 6.5px;
  }

  .product-feature-grid {
    grid-template-columns: 1fr;
  }

  .objective-panel {
    padding: 24px;
  }

  .how-steps {
    gap: 16px;
  }

  .how-steps h3 {
    font-size: 12.5px;
  }

  .page-footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    padding: 16px 0;
  }

  .library-hero {
    padding: 30px 0 38px;
  }

  .library-hero h1 {
    font-size: clamp(2.05rem, 7.6vw, 2.7rem);
  }

  .library-hero-lead {
    font-size: 12.5px;
  }

  .library-hero-visual {
    min-height: 260px;
  }

  .library-cover-stack {
    height: 250px;
  }

  .library-stack-cover {
    width: 124px;
    height: 186px;
  }

  .library-stack-cover--back {
    transform: translate(-50%, -50%) translateX(-76px) rotate(-9deg);
  }

  .library-stack-cover--middle {
    transform: translate(-50%, -50%) translateX(10px) translateY(-5px) rotate(5deg);
  }

  .library-stack-cover--front {
    transform: translate(-50%, -50%) translateX(-34px) translateY(14px) rotate(-2deg);
  }

  .library-hero-badge {
    left: 225px;
    bottom: 1px;
  }

  .library-section-head {
    margin-bottom: 22px;
  }

  .library-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .library-book-card {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 13px;
    padding: 14px;
  }

  .library-book-copy h3 {
    font-size: 14.5px;
  }

  .library-book-description {
    -webkit-line-clamp: 4;
  }

  .library-downloads {
    margin-left: 0;
  }

  .reader-header h2 {
    font-size: 16px;
  }

  .reader-text {
    font-size: 13.5px;
    line-height: 1.8;
  }

  .reader-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .reader-position {
    order: -1;
  }

  .reader-nav-button {
    width: 100%;
  }

  .page-footer-links {
    gap: 8px 14px;
  }

  .sidebar {
    width: min(318px, 88vw);
  }
}

@media (max-width: 580px) {
  .page-panel {
    --page-gutter: 16px;
  }

  .page-topbar {
    min-height: 60px;
    padding: 0 var(--page-gutter);
  }

  .topbar-brand {
    width: 136px;
  }

  .topbar-left {
    gap: 11px;
  }

  .page-hero {
    padding: 30px 0 26px;
  }

  .page-hero .eyebrow {
    font-size: 10px;
  }

  .page-main .section {
    padding: 48px 0;
  }

  .home-hero {
    padding-top: 34px;
  }

  .home-hero .hero-title {
    font-size: clamp(2.1rem, 10.2vw, 2.7rem);
  }

  .home-hero .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .home-hero .hero-actions .btn {
    width: 100%;
  }

  .page-hero-aside {
    font-size: 12px;
    line-height: 1.72;
  }

  .page-hero-tags {
    gap: 5px;
  }

  .page-hero-tags li {
    font-size: 8px;
  }

  .capability-card {
    padding: 20px;
  }

  .ecosystem-spotlight,
  .cta-panel {
    padding: 20px;
  }

  .spotlight-item {
    align-items: flex-start;
    padding: 11px;
  }

  .spotlight-icon {
    width: 32px;
    height: 32px;
  }

  .spotlight-item strong {
    font-size: 11.5px;
  }

  .spotlight-item small {
    font-size: 9px;
  }

  .cta-actions,
  .cta-actions .btn {
    width: 100%;
  }

  .process-list {
    grid-template-columns: 1fr;
  }

  .contact-page-section {
    padding-top: 34px;
    padding-bottom: 52px;
  }

  .contact-form-card {
    padding: 18px;
  }

  .product-hero {
    padding-top: 24px;
  }

  .product-hero h1 {
    font-size: clamp(1.95rem, 9vw, 2.45rem);
  }

  .product-hero-lead {
    font-size: 12.5px;
  }

  .product-facts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .product-feature-card {
    padding: 20px;
  }

  .objective-panel {
    padding: 20px;
  }

  .how-steps {
    grid-template-columns: 1fr;
    gap: 13px;
    margin-top: 24px;
  }

  .library-hero h1 {
    font-size: clamp(1.95rem, 9vw, 2.45rem);
  }

  .library-search {
    padding-left: 10px;
  }

  .library-search-button {
    padding-inline: 12px;
    font-size: 10.5px;
  }

  .library-search input {
    font-size: 11.5px;
  }

  .library-hero-meta {
    gap: 7px 13px;
    font-size: 9.5px;
  }

  .library-hero-visual {
    min-height: 225px;
  }

  .library-cover-stack {
    height: 220px;
  }

  .library-stack-cover {
    width: 104px;
    height: 156px;
  }

  .library-stack-cover--back {
    transform: translate(-50%, -50%) translateX(-63px) rotate(-9deg);
  }

  .library-stack-cover--middle {
    transform: translate(-50%, -50%) translateX(8px) translateY(-4px) rotate(5deg);
  }

  .library-stack-cover--front {
    transform: translate(-50%, -50%) translateX(-28px) translateY(11px) rotate(-2deg);
  }

  .library-hero-badge {
    left: auto;
    right: 0;
    bottom: 0;
  }

  .featured-shelf {
    gap: 13px;
  }

  .featured-book-title {
    font-size: 11.5px;
  }

  .library-book-card {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .library-book-copy h3 {
    font-size: 14px;
  }

  .library-book-description {
    margin-top: 7px;
    font-size: 10.5px;
  }

  .library-book-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .library-read-button {
    width: 100%;
  }

  .library-downloads {
    margin-left: 0;
  }

  .library-download {
    flex: 1;
    justify-content: center;
  }

  .reader-header-actions {
    width: 100%;
    justify-content: flex-end;
    margin-top: 4px;
  }

  .reader-header {
    padding: 13px 14px;
  }

  .reader-main {
    padding: 20px 16px 16px;
  }

  .reader-chapter-head h3 {
    font-size: 1.35rem;
  }

  .sidebar {
    width: min(300px, 90vw);
    padding: 22px 18px 20px;
  }

  .sidebar-brand {
    max-width: 200px;
  }

  .sidebar-nav {
    margin-top: 24px;
  }

  .page-footer-links {
    gap: 7px 12px;
  }

  .page-footer-links a,
  .page-footer-links button {
    font-size: 10px;
  }
}

/* ---------------------------------------------------------
   19. Biblioteca Virtual
   --------------------------------------------------------- */
.library-hero {
  position: relative;
  overflow: hidden;
  padding: 42px 0 52px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.library-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.032) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.032) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(135deg, rgba(0, 0, 0, 0.65), transparent 68%);
  mask-image: linear-gradient(135deg, rgba(0, 0, 0, 0.65), transparent 68%);
  pointer-events: none;
}

.library-hero::after {
  content: "";
  position: absolute;
  top: -250px;
  right: -135px;
  width: 535px;
  height: 535px;
  border-radius: 50%;
  background: rgba(211, 240, 235, 0.5);
  pointer-events: none;
}

.library-hero .container {
  position: relative;
  z-index: 1;
}

.library-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
  align-items: center;
  gap: 50px;
}

.library-hero-copy {
  max-width: 630px;
}

.library-hero h1 {
  max-width: 630px;
  margin-top: 13px;
  font-size: clamp(2.4rem, 3.6vw, 3.35rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.library-hero-lead {
  max-width: 560px;
  margin-top: 15px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.library-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 540px;
  margin-top: 24px;
  padding: 5px 5px 5px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow-xs);
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.library-search:focus-within {
  border-color: var(--teal-600);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.11);
}

.library-search-icon {
  flex: 0 0 auto;
  color: var(--muted-light);
}

.library-search input {
  min-width: 0;
  flex: 1;
  height: 38px;
  padding: 0 4px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 12.5px;
}

.library-search input::placeholder {
  color: var(--muted-light);
}

.library-search input::-webkit-search-cancel-button {
  cursor: pointer;
}

.library-search-button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 7px;
  background: var(--teal-900);
  color: var(--white);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background-color var(--transition);
}

.library-search-button:hover {
  background: var(--teal-800);
}

.library-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  margin-top: 17px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
}

.library-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.library-hero-meta span::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line-strong);
}

.library-hero-meta span:first-child::before {
  background: var(--emerald);
}

.library-hero-meta strong {
  color: var(--teal-900);
  font-weight: 700;
}

.library-hero-visual {
  position: relative;
  display: flex;
  min-height: 365px;
  align-items: center;
  justify-content: center;
}

.library-cover-stack {
  position: relative;
  width: 100%;
  max-width: 460px;
  height: 355px;
}

.library-stack-cover {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 178px;
  height: 267px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 5px;
  object-fit: cover;
  box-shadow: 0 28px 50px -28px rgba(3, 48, 47, 0.7);
}

.library-stack-cover--back {
  transform: translate(-50%, -50%) translateX(-108px) rotate(-9deg);
}

.library-stack-cover--middle {
  transform: translate(-50%, -50%) translateX(16px) translateY(-8px) rotate(5deg);
}

.library-stack-cover--front {
  transform: translate(-50%, -50%) translateX(-48px) translateY(20px) rotate(-2deg);
}

.library-hero-badge {
  position: absolute;
  right: 4px;
  bottom: 9px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
}

.library-hero-badge .status-dot {
  width: 6px;
  height: 6px;
}

/* Encabezados y destacados */
.library-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.library-section-head h2 {
  margin-top: 8px;
  font-size: clamp(1.8rem, 2.8vw, 2.35rem);
}

.library-section-head .text-link {
  flex: 0 0 auto;
  margin-bottom: 4px;
  font-size: 11px;
}

.library-featured {
  background: var(--white);
}

.featured-shelf {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.featured-book {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 13px;
  color: var(--ink);
}

.featured-book-cover {
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 5px;
  background: var(--bg-soft);
  box-shadow: 0 18px 30px -24px rgba(3, 48, 47, 0.55);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.featured-book-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-book:hover .featured-book-cover {
  transform: translateY(-4px);
  box-shadow: 0 24px 38px -24px rgba(3, 48, 47, 0.6);
}

.featured-book-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.featured-book-type {
  color: var(--teal-900);
  font-size: 7.5px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.featured-book-title {
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.015em;
}

.featured-book-author {
  color: var(--muted-light);
  font-size: 9px;
  line-height: 1.4;
}

/* Catálogo */
.library-catalog {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.library-catalog-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  color: var(--muted-light);
  font-size: 9.5px;
  line-height: 1.5;
  text-align: right;
}

.library-catalog-status #library-count {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
}

.library-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.library-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-chip {
  min-height: 31px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  font-family: inherit;
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  transition:
    color var(--transition),
    border-color var(--transition),
    background-color var(--transition);
}

.filter-chip:hover {
  border-color: var(--teal-600);
  color: var(--teal-900);
}

.filter-chip.is-active {
  border-color: var(--teal-900);
  background: var(--teal-900);
  color: var(--white);
}

.library-reset {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--teal-900);
  font-family: inherit;
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.library-book-card {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  align-items: stretch;
  gap: 17px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--white);
  scroll-margin-top: 96px;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.library-book-card:target {
  border-color: var(--teal-600);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.09);
}

.library-book-cover {
  position: relative;
  align-self: start;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-soft);
  box-shadow: 0 14px 25px -19px rgba(3, 48, 47, 0.5);
}

.library-book-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.library-book-type {
  position: absolute;
  top: 7px;
  left: 7px;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(3, 48, 47, 0.86);
  color: var(--white);
  font-size: 6.5px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.library-book-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.library-book-category {
  color: var(--teal-900);
  font-size: 8px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.library-book-copy h3 {
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.library-book-author {
  margin-top: 3px;
  color: var(--muted-light);
  font-size: 9.5px;
  line-height: 1.4;
}

.library-book-description {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 9px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.library-book-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.library-book-meta span {
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-soft);
  color: var(--muted-light);
  font-size: 7.5px;
  font-weight: 600;
  line-height: 1.3;
}

.library-book-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 13px;
}

.library-read-button {
  min-height: 34px;
  padding-inline: 11px;
  font-size: 10px;
}

.library-downloads {
  display: flex;
  gap: 5px;
  margin-left: auto;
}

.library-download {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 30px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 600;
  line-height: 1;
  transition:
    color var(--transition),
    border-color var(--transition),
    background-color var(--transition);
}

.library-download .icon {
  color: var(--teal-600);
}

.library-download:hover {
  border-color: var(--teal-100);
  background: var(--teal-50);
  color: var(--teal-900);
}

.library-empty {
  padding: 50px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 15px;
  background: var(--white);
  text-align: center;
}

.library-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--teal-100);
  border-radius: 50%;
  background: var(--teal-50);
  color: var(--teal-900);
}

.library-empty h3 {
  margin-top: 14px;
  font-size: 18px;
}

.library-empty p {
  max-width: 390px;
  margin: 7px auto 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.library-empty .btn {
  margin-top: 18px;
}

/* ---------------------------------------------------------
   20. Lector en línea
   --------------------------------------------------------- */
.reader-dialog {
  width: min(1100px, calc(100% - 32px));
  max-width: none;
  height: min(88dvh, 800px);
  max-height: 92dvh;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 30px 90px -24px rgba(3, 48, 47, 0.5);
}

.reader-dialog[open] {
  animation: dialog-in 220ms var(--ease) both;
}

.reader-dialog::backdrop {
  background: rgba(3, 48, 47, 0.58);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.reader-shell {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
}

.reader-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 21px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.reader-header-copy {
  min-width: 0;
}

.reader-kicker {
  display: block;
  color: var(--teal-900);
  font-size: 7.5px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.reader-header h2 {
  margin-top: 5px;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.reader-header-copy > p {
  margin-top: 3px;
  color: var(--muted-light);
  font-size: 9.5px;
  line-height: 1.4;
}

.reader-header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
}

.reader-format {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  transition:
    color var(--transition),
    border-color var(--transition),
    background-color var(--transition);
}

.reader-format .icon {
  color: var(--teal-600);
}

.reader-format:hover {
  border-color: var(--teal-100);
  background: var(--teal-50);
  color: var(--teal-900);
}

.reader-header .dialog-close {
  width: 34px;
  height: 34px;
}

.reader-progress {
  height: 3px;
  flex: 0 0 auto;
  background: var(--line);
}

.reader-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--teal-900);
  transition: width 240ms var(--ease);
}

.reader-body {
  display: grid;
  grid-template-columns: 254px minmax(0, 1fr);
  min-height: 0;
  flex: 1;
  overflow: hidden;
}

.reader-aside {
  padding: 20px;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: var(--bg-soft);
}

.reader-aside-cover {
  display: block;
  width: 100%;
  max-width: 132px;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 15px 28px -20px rgba(3, 48, 47, 0.55);
}

.reader-aside-category {
  margin-top: 13px;
  color: var(--teal-900);
  font-size: 8px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reader-toc {
  margin-top: 21px;
}

.reader-toc h3 {
  margin-bottom: 8px;
  color: var(--muted-light);
  font-size: 8px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.reader-toc ol {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.reader-toc button {
  display: flex;
  width: 100%;
  align-items: flex-start;
  gap: 8px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 10.5px;
  line-height: 1.45;
  text-align: left;
  transition:
    color var(--transition),
    border-color var(--transition),
    background-color var(--transition);
}

.reader-toc button span {
  padding-top: 1px;
  color: var(--subtle);
  font-size: 8px;
  line-height: 1.5;
}

.reader-toc button:hover {
  background: var(--white);
  color: var(--teal-900);
}

.reader-toc button.is-active {
  border-color: var(--teal-100);
  background: var(--white);
  color: var(--teal-900);
  font-weight: 600;
}

.reader-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow-y: auto;
  padding: 34px 40px 26px;
  background: var(--white);
}

.reader-chapter-head {
  max-width: 690px;
}

.reader-chapter-number {
  color: var(--teal-900);
  font-size: 8px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.reader-chapter-head h3 {
  margin-top: 7px;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
  outline: none;
}

.reader-text {
  max-width: 690px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.85;
  outline: none;
}

.reader-text p + p {
  margin-top: 14px;
}

.reader-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.reader-nav-button {
  min-height: 34px;
  padding-inline: 10px;
  font-size: 9.5px;
}

.reader-nav-button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
  transform: none;
}

.reader-position {
  color: var(--muted-light);
  font-size: 9px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}

/* Ajustes responsive de Biblioteca (después de su base para
   garantizar la cascada correcta). */
@media (max-width: 1200px) {
  .library-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .library-hero-copy {
    max-width: 760px;
  }

  .library-hero-visual {
    min-height: 310px;
    justify-content: flex-start;
  }

  .library-cover-stack {
    max-width: 600px;
    height: 300px;
  }

  .library-stack-cover {
    width: 150px;
    height: 225px;
  }

  .library-stack-cover--back {
    transform: translate(-50%, -50%) translateX(-92px) rotate(-9deg);
  }

  .library-stack-cover--middle {
    transform: translate(-50%, -50%) translateX(14px) translateY(-7px) rotate(5deg);
  }

  .library-stack-cover--front {
    transform: translate(-50%, -50%) translateX(-41px) translateY(17px) rotate(-2deg);
  }

  .library-hero-badge {
    right: auto;
    bottom: 5px;
    left: 290px;
  }
}

@media (max-width: 900px) {
  .library-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .library-catalog-status {
    align-items: flex-start;
    text-align: left;
  }

  .featured-shelf {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .library-grid {
    grid-template-columns: 1fr;
  }

  .library-book-card {
    grid-template-columns: 128px minmax(0, 1fr);
  }

  .reader-dialog {
    width: 100%;
    max-width: none;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
  }

  .reader-shell {
    height: 100dvh;
  }

  .reader-header {
    flex-wrap: wrap;
    padding: 14px 16px;
  }

  .reader-header-actions {
    margin-left: auto;
  }

  .reader-body {
    grid-template-columns: 1fr;
  }

  .reader-aside {
    display: none;
  }

  .reader-main {
    padding: 24px 22px 20px;
  }

  .reader-text {
    max-width: 720px;
    font-size: 13px;
  }
}

@media (max-width: 760px) {
  .library-hero {
    padding: 30px 0 38px;
  }

  .library-hero h1 {
    font-size: clamp(2.05rem, 7.6vw, 2.7rem);
  }

  .library-hero-lead {
    font-size: 12.5px;
  }

  .library-hero-visual {
    min-height: 260px;
  }

  .library-cover-stack {
    height: 250px;
  }

  .library-stack-cover {
    width: 124px;
    height: 186px;
  }

  .library-stack-cover--back {
    transform: translate(-50%, -50%) translateX(-76px) rotate(-9deg);
  }

  .library-stack-cover--middle {
    transform: translate(-50%, -50%) translateX(10px) translateY(-5px) rotate(5deg);
  }

  .library-stack-cover--front {
    transform: translate(-50%, -50%) translateX(-34px) translateY(14px) rotate(-2deg);
  }

  .library-hero-badge {
    bottom: 0;
    left: 225px;
  }

  .library-section-head {
    margin-bottom: 22px;
  }

  .library-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .library-book-card {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 13px;
    padding: 14px;
  }

  .library-book-copy h3 {
    font-size: 14.5px;
  }

  .library-book-description {
    -webkit-line-clamp: 4;
  }

  .library-downloads {
    margin-left: 0;
  }

  .reader-header h2 {
    font-size: 16px;
  }

  .reader-text {
    font-size: 13.5px;
    line-height: 1.8;
  }

  .reader-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .reader-position {
    order: -1;
  }

  .reader-nav-button {
    width: 100%;
  }
}

@media (max-width: 580px) {
  .library-hero h1 {
    font-size: clamp(1.95rem, 9vw, 2.45rem);
  }

  .library-search {
    padding-left: 10px;
  }

  .library-search-button {
    padding-inline: 12px;
    font-size: 10.5px;
  }

  .library-search input {
    font-size: 11.5px;
  }

  .library-hero-meta {
    gap: 7px 13px;
    font-size: 9.5px;
  }

  .library-hero-visual {
    min-height: 225px;
  }

  .library-cover-stack {
    height: 220px;
  }

  .library-stack-cover {
    width: 104px;
    height: 156px;
  }

  .library-stack-cover--back {
    transform: translate(-50%, -50%) translateX(-63px) rotate(-9deg);
  }

  .library-stack-cover--middle {
    transform: translate(-50%, -50%) translateX(8px) translateY(-4px) rotate(5deg);
  }

  .library-stack-cover--front {
    transform: translate(-50%, -50%) translateX(-28px) translateY(11px) rotate(-2deg);
  }

  .library-hero-badge {
    right: 0;
    bottom: 0;
    left: auto;
  }

  .featured-shelf {
    gap: 13px;
  }

  .featured-book-title {
    font-size: 11.5px;
  }

  .library-book-card {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .library-book-copy h3 {
    font-size: 14px;
  }

  .library-book-description {
    margin-top: 7px;
    font-size: 10.5px;
  }

  .library-book-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .library-read-button {
    width: 100%;
  }

  .library-downloads {
    margin-left: 0;
  }

  .library-download {
    flex: 1;
    justify-content: center;
  }

  .reader-header-actions {
    width: 100%;
    justify-content: flex-end;
    margin-top: 4px;
  }

  .reader-header {
    padding: 13px 14px;
  }

  .reader-main {
    padding: 20px 16px 16px;
  }

  .reader-chapter-head h3 {
    font-size: 1.35rem;
  }
}

/* ---------------------------------------------------------
   21. Flutter Estudio: página de las dos plataformas
   --------------------------------------------------------- */
.flutter-hub-hero {
  position: relative;
  overflow: hidden;
  padding: 42px 0 56px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.flutter-hub-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.032) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.032) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(135deg, rgba(0, 0, 0, 0.65), transparent 68%);
  mask-image: linear-gradient(135deg, rgba(0, 0, 0, 0.65), transparent 68%);
  pointer-events: none;
}

.flutter-hub-hero::after {
  content: "";
  position: absolute;
  top: -250px;
  right: -135px;
  width: 535px;
  height: 535px;
  border-radius: 50%;
  background: rgba(211, 240, 235, 0.5);
  pointer-events: none;
}

.flutter-hub-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: 56px;
}

.flutter-hub-copy {
  max-width: 620px;
}

.flutter-hub-copy h1 {
  margin-top: 10px;
  font-size: clamp(3.2rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.flutter-hub-tagline {
  max-width: 520px;
  margin-top: 12px;
  color: var(--teal-900);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.flutter-hub-lead {
  max-width: 540px;
  margin-top: 15px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.flutter-hub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 23px;
}

.flutter-hub-actions .btn {
  font-size: 12.5px;
}

.flutter-hub-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
}

.flutter-hub-meta li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.flutter-hub-meta li + li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line-strong);
}

.flutter-hub-meta .status-dot {
  width: 6px;
  height: 6px;
}

/* Tarjetas visuales del hero */
.flutter-hub-visual {
  position: relative;
  min-height: 385px;
}

.hub-platform-card {
  position: absolute;
  display: flex;
  width: 228px;
  min-height: 315px;
  flex-direction: column;
  padding: 19px;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 26px 54px -28px rgba(3, 48, 47, 0.55);
}

.hub-platform-card::after {
  content: "";
  position: absolute;
  right: -52px;
  bottom: -62px;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  pointer-events: none;
}

.hub-platform-card--widgets {
  top: 18px;
  left: 2%;
  z-index: 1;
  background: var(--teal-950);
  color: var(--white);
  transform: rotate(-4deg);
}

.hub-platform-card--apps {
  top: 64px;
  right: 2%;
  z-index: 2;
  background: #F3EBDD;
  color: #073D36;
  transform: rotate(4deg);
}

.hub-platform-card--apps::after {
  border-color: rgba(7, 61, 54, 0.14);
}

.hub-platform-index {
  color: currentColor;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.12em;
  opacity: 0.55;
}

.hub-platform-kicker {
  margin-top: 30px;
  color: #A7F3D0;
  font-size: 8.5px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hub-platform-card--apps .hub-platform-kicker {
  color: #986519;
}

.hub-platform-card strong {
  margin-top: 3px;
  color: inherit;
  font-size: 31px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.055em;
}

.hub-platform-copy {
  margin-top: 8px;
  color: #A9C6C2;
  font-size: 9.5px;
  line-height: 1.5;
}

.hub-platform-card--apps .hub-platform-copy {
  color: #60736E;
}

.hub-widget-art {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
  padding-top: 22px;
}

.hub-widget-art span {
  display: block;
  height: 23px;
  border: 1px solid rgba(153, 246, 228, 0.28);
  border-radius: 5px;
  background: rgba(153, 246, 228, 0.08);
}

.hub-widget-art span:nth-child(1) {
  width: 78%;
}

.hub-widget-art span:nth-child(2) {
  width: 100%;
}

.hub-widget-art span:nth-child(3) {
  width: 60%;
}

.hub-widget-art i {
  position: absolute;
  top: 8px;
  right: 0;
  width: 32px;
  height: 32px;
  border: 1px solid var(--teal-100);
  border-radius: 50%;
  background: var(--teal-900);
}

.hub-phone-art {
  display: flex;
  width: 105px;
  height: 145px;
  flex-direction: column;
  gap: 5px;
  margin: auto auto 0;
  margin-top: 22px;
  padding: 8px;
  overflow: hidden;
  border: 1px solid rgba(3, 48, 47, 0.32);
  border-radius: 12px;
  background: #FCFAF5;
}

.hub-phone-top {
  width: 100%;
  height: 14px;
  border-radius: 4px;
  background: var(--teal-900);
}

.hub-phone-line {
  width: 62%;
  height: 4px;
  border-radius: 4px;
  background: #C4D8D3;
}

.hub-phone-card {
  height: 24px;
  border: 1px solid #E4DCCF;
  border-radius: 4px;
  background: var(--white);
}

.hub-phone-nav {
  height: 12px;
  margin-top: auto;
  border-radius: 4px;
  background: #E7F3EF;
}

/* Plataformas */
.platform-section {
  background: var(--white);
}

.platform-section--apps {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

#plataforma-widgets,
#plataforma-apps {
  scroll-margin-top: 88px;
}

.platform-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: 52px;
}

.platform-layout--reverse {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
}

.platform-copy {
  max-width: 540px;
}

.platform-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 8px;
}

.platform-heading h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  letter-spacing: -0.04em;
}

.platform-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid var(--emerald-line);
  border-radius: 999px;
  background: var(--emerald-50);
  color: #047857;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.platform-status .status-dot {
  width: 5px;
  height: 5px;
}

.platform-status--soon {
  border-color: #FDE68A;
  background: var(--amber-50);
  color: #92400E;
}

.platform-status--soon .status-dot {
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.12);
}

.platform-lead {
  max-width: 500px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}

.platform-feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 16px;
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 11.5px;
  line-height: 1.55;
}

.platform-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

.platform-feature-list .icon {
  margin-top: 2px;
  color: var(--emerald);
}

.platform-objective {
  margin-top: 19px;
  padding: 12px 14px;
  border-left: 3px solid var(--teal-900);
  border-radius: 0 8px 8px 0;
  background: var(--bg-soft);
}

.platform-section--apps .platform-objective {
  background: var(--white);
}

.platform-objective-label {
  display: block;
  color: var(--teal-900);
  font-size: 8px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.platform-objective p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.65;
}

.platform-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
  margin-top: 21px;
}

.platform-actions .btn {
  font-size: 12.5px;
}

.platform-actions .text-link {
  font-size: 11.5px;
}

.platform-note {
  margin-top: 10px;
  color: var(--muted-light);
  font-size: 9px;
  line-height: 1.5;
}

.platform-shot {
  width: 100%;
  max-width: none;
}

.platform-mockup {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.platform-mockup .product-preview {
  border-radius: 8px;
  box-shadow: none;
}

.platform-mockup figcaption {
  margin-top: 10px;
  color: var(--muted-light);
  font-size: 9px;
  line-height: 1.5;
  text-align: center;
}

/* Ajustes responsive de la página Flutter Estudio */
@media (max-width: 1200px) {
  .flutter-hub-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .flutter-hub-copy {
    max-width: 760px;
  }

  .flutter-hub-visual {
    max-width: 680px;
    min-height: 350px;
  }

  .platform-layout,
  .platform-layout--reverse {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .platform-layout--reverse .platform-copy,
  .platform-layout--reverse .platform-mockup {
    order: initial;
  }

  .platform-copy {
    max-width: 740px;
  }

  .platform-shot,
  .platform-mockup {
    width: 100%;
    max-width: 840px;
  }
}

@media (max-width: 760px) {
  .flutter-hub-hero {
    padding: 30px 0 40px;
  }

  .flutter-hub-copy h1 {
    font-size: clamp(2.7rem, 11vw, 3.4rem);
  }

  .flutter-hub-tagline {
    font-size: 1.15rem;
  }

  .flutter-hub-lead {
    font-size: 12.5px;
  }

  .flutter-hub-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .flutter-hub-actions .btn {
    width: 100%;
  }

  .flutter-hub-visual {
    min-height: 300px;
  }

  .hub-platform-card {
    width: 180px;
    min-height: 250px;
    padding: 16px;
  }

  .hub-platform-card--widgets {
    top: 12px;
    left: 0;
  }

  .hub-platform-card--apps {
    top: 45px;
    right: 0;
  }

  .hub-platform-kicker {
    margin-top: 20px;
  }

  .hub-platform-card strong {
    font-size: 26px;
  }

  .hub-platform-copy {
    font-size: 8.5px;
  }

  .hub-phone-art {
    width: 88px;
    height: 125px;
  }

  .platform-feature-list {
    grid-template-columns: 1fr;
  }

  .platform-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .platform-actions .text-link {
    justify-content: center;
  }

  .platform-mockup {
    padding: 10px;
  }
}

@media (max-width: 580px) {
  .flutter-hub-copy h1 {
    font-size: clamp(2.5rem, 12vw, 3rem);
  }

  .flutter-hub-meta {
    gap: 6px 12px;
    font-size: 9px;
  }

  .flutter-hub-visual {
    min-height: 260px;
  }

  .hub-platform-card {
    width: 156px;
    min-height: 220px;
    padding: 14px;
  }

  .hub-platform-card--widgets {
    top: 7px;
  }

  .hub-platform-card--apps {
    top: 37px;
  }

  .hub-platform-index {
    font-size: 8px;
  }

  .hub-platform-kicker {
    margin-top: 16px;
    font-size: 7.5px;
  }

  .hub-platform-card strong {
    font-size: 23px;
  }

  .hub-platform-copy {
    font-size: 8px;
  }

  .hub-widget-art {
    gap: 4px;
    padding-top: 14px;
  }

  .hub-widget-art span {
    height: 18px;
  }

  .hub-phone-art {
    width: 76px;
    height: 106px;
    padding: 6px;
  }

  .hub-phone-top {
    height: 11px;
  }

  .hub-phone-card {
    height: 18px;
  }

  .platform-heading h2 {
    font-size: 1.65rem;
  }

  .platform-lead {
    font-size: 12.5px;
  }

  .platform-objective {
    padding: 11px 12px;
  }

  .platform-objective p {
    font-size: 11px;
  }

  .platform-shot .product-shot-url {
    font-size: 6px;
  }

  .platform-mockup {
    padding: 8px;
  }
}

/* ---------------------------------------------------------
   15. Accesibilidad de movimiento
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
