:root {
  --blue: #4a7ec2;
  --green: #2f6b4f;
  --white: #ffffff;
  --navy: #0b3044;

  --text: var(--navy);
  --muted: rgba(11, 48, 68, .76);
  --border: rgba(11, 48, 68, .12);

  --bg0: #ffffff;
  --bg1: rgba(74, 126, 194, .08);
  --bg2: rgba(47, 107, 79, .05);

  --radius: 18px;
  --radius-lg: 26px;

  --shadow-sm: 0 10px 28px rgba(11, 48, 68, .08);
  --shadow-md: 0 18px 50px rgba(11, 48, 68, .12);

  --container: 1120px;
  --focus: 0 0 0 3px rgba(74, 126, 194, .25), 0 0 0 6px rgba(47, 107, 79, .18);

  --speed: 160ms;
  --ease: cubic-bezier(.2, .8, .2, 1);

  --nav-h: 72px;
  --funnel-bg: url("assets/Horizontal_Investing_Funnel.png");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg1), var(--bg2) 45%, var(--bg0) 100%);
}

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

p {
  margin: 0;
  line-height: 1.65;
  color: var(--muted);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--navy);
  letter-spacing: -0.02em;
}

strong {
  color: rgba(11, 48, 68, .92);
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  z-index: 999;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 12px;
}

.skip-link:focus {
  left: 12px;
  outline: none;
  box-shadow: var(--focus);
}

:focus {
  outline: none;
}

:focus-visible {
  box-shadow: var(--focus);
  border-radius: 14px;
}

#asesorias,
#herramientas,
#cursos,
#sobre-mi {
  scroll-margin-top: 96px;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, .72);
  border-bottom: 1px solid var(--border);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, .86);
  border-bottom-color: rgba(11, 48, 68, .14);
  box-shadow: 0 12px 34px rgba(11, 48, 68, .08);
}

.nav {
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: 0 10px 30px rgba(74, 126, 194, .25);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
}

.brand-subtitle {
  font-size: 12px;
  font-weight: 600;
  color: rgba(11, 48, 68, .62);
}

.nav-links {
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: 18px;
}

.nav-links a {
  position: relative;
  font-size: 14px;
  font-weight: 800;
  color: rgba(11, 48, 68, .85);
  padding: 10px;
  border-radius: 12px;
  transition: background var(--speed) var(--ease);
}

.nav-links a:hover {
  background: rgba(74, 126, 194, .10);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 7px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease);
  opacity: .85;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
  transition:
    transform var(--speed) var(--ease),
    box-shadow var(--speed) var(--ease),
    background var(--speed) var(--ease),
    border-color var(--speed) var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(11, 48, 68, .10);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: var(--white);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: -40%;
  pointer-events: none;
  opacity: .55;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .28), transparent 55%);
  transform: translateX(-30%) translateY(-10%) rotate(10deg);
  transition: opacity var(--speed) var(--ease), transform 420ms var(--ease);
}

.btn-primary:hover::after {
  opacity: .75;
  transform: translateX(-10%) translateY(-5%) rotate(10deg);
}

.btn-secondary {
  background: rgba(255, 255, 255, .10);
  border-color: rgba(11, 48, 68, .18);
  color: var(--navy);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(11, 48, 68, .18);
  color: var(--navy);
}

.btn-inline {
  pointer-events: none;
}

.btn-premium,
.card-cta .btn,
.research-card-footer span:last-child {
  transition:
    transform 180ms var(--ease),
    letter-spacing 180ms var(--ease),
    opacity 180ms var(--ease);
}

.btn-premium:hover,
.card-link:hover .card-cta .btn {
  transform: translateY(-1px);
}

.btn-premium::before,
.card-cta .btn::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg,
      transparent 0%,
      rgba(255, 255, 255, .10) 35%,
      rgba(255, 255, 255, .32) 50%,
      transparent 65%);
  transform: translateX(-120%);
  transition: transform 520ms ease;
}

.btn-premium:hover::before,
.card-link:hover .card-cta .btn::before {
  transform: translateX(120%);
}

/* =========================================================
   MOBILE NAV
   ========================================================= */

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(11, 48, 68, .12);
  background: rgba(255, 255, 255, .8);
  cursor: pointer;
  transition: background var(--speed) var(--ease);
}

.burger:hover {
  background: rgba(74, 126, 194, .08);
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: rgba(11, 48, 68, .85);
}

.mobile-menu {
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, .88);
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 0 18px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 800;
  color: rgba(11, 48, 68, .85);
  border: 1px solid rgba(11, 48, 68, .10);
  background: rgba(11, 48, 68, .03);
}

.mobile-link:hover {
  background: rgba(74, 126, 194, .08);
}

.mobile-cta {
  width: 100%;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  min-height: 560px;
  padding: 100px 0 4% 0;
  overflow: hidden;
  isolation: isolate;
  background-image:
    linear-gradient(80deg,
      rgba(255, 255, 255, 0.85) 0%,
      rgba(255, 255, 255, 0.65) 35%,
      rgba(74, 126, 194, 0.18) 60%,
      rgba(74, 126, 194, 0.05) 85%),
    url("assets/Hero_1.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, .24), transparent 28%),
    radial-gradient(circle at 78% 30%, rgba(74, 126, 194, .18), transparent 30%),
    radial-gradient(circle at 62% 78%, rgba(47, 107, 79, .14), transparent 28%);
  animation: heroFloat 12s ease-in-out infinite alternate;
}

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

@keyframes heroFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    transform: translate3d(0, -10px, 0) scale(1.03);
  }
}

.hero-grid {
  display: block;
  max-width: 680px;
}

.hero-copy {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(11, 48, 68, .08);
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(6px);
}

.hero h1 {
  font-size: clamp(34px, 4.2vw, 46px);
  line-height: 1.06;
  margin-bottom: 14px;
}

.lead {
  font-size: 16px;
  margin-bottom: 18px;
  color: rgba(11, 48, 68, .78);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

.micro-note {
  font-size: 12.5px;
  color: rgba(11, 48, 68, .62);
}

.hero-divider {
  height: 26px;
  margin-top: 26px;
  opacity: .55;
  border-top: 1px solid rgba(11, 48, 68, .06);
  background: linear-gradient(90deg, rgba(74, 126, 194, .18), rgba(47, 107, 79, .12), rgba(74, 126, 194, .10));
}

/* =========================================================
   Logo
   ========================================================= */

.brand-logo-only {
  display: flex;
  align-items: center;
}

.brand-logo {
  width: 300px;
  height: auto;
  display: block;
}

/* =========================================================
   VALUES
   ========================================================= */

.social-proof {
  padding: 18px 0;
}

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

.value-card {
  position: relative;
  min-height: 165px;
  padding: 24px 22px 22px;
  border-radius: 22px;
  border: 1px solid rgba(11, 48, 68, .08);
  background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .82));
  box-shadow:
    0 10px 30px rgba(11, 48, 68, .05),
    inset 0 1px 0 rgba(255, 255, 255, .45);
  transition:
    transform 220ms var(--ease),
    box-shadow 220ms var(--ease),
    border-color 220ms var(--ease);
  will-change: transform;
}

.value-card:hover {
  transform: translateY(-6px);
  border-color: rgba(74, 126, 194, .18);
  box-shadow:
    0 18px 38px rgba(11, 48, 68, .10),
    inset 0 1px 0 rgba(255, 255, 255, .5);
}

.value-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.value-top h3 {
  margin: 0;
}

.value-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(74, 126, 194, .16), rgba(47, 107, 79, .16));
  border: 1px solid rgba(74, 126, 194, .14);
  color: var(--navy);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.value-card h3 {
  font-size: 24px;
  line-height: 1.05;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.03em;
}

.value-card p {
  max-width: 95%;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(11, 48, 68, .72);
}

/* =========================================================
   SECTIONS
   ========================================================= */

.section {
  padding: 56px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 22px;
}

.section-head h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.section-head p {
  font-size: 15px;
}

/* =========================================================
   SHARED CARDS
   ========================================================= */

.cards {
  display: grid;
  gap: 16px;
}

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

.spacious {
  gap: 18px;
}

.card-link {
  display: block;
  border-radius: 20px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid rgba(11, 48, 68, .10);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 10px 30px rgba(11, 48, 68, .06);
  transition:
    transform 220ms var(--ease),
    box-shadow 220ms var(--ease),
    border-color 220ms var(--ease);
  will-change: transform;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, .18),
      transparent 35%,
      transparent 70%,
      rgba(255, 255, 255, .06));
  opacity: 0;
  transition: opacity 220ms var(--ease);
}

.card-link:hover .card::after {
  opacity: 1;
}

.card-tall {
  height: 240px;
}

.card h3 {
  font-size: clamp(22px, 2.2vw, 26px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.card h3 {
  transition: transform 220ms var(--ease);
}

.card-link:hover .card h3 {
  transform: translateY(-2px);
}

.card h3 {
  text-wrap: balance;
}

.card p {
  font-size: 15.5px;
  line-height: 1.7;
}

.card-cta {
  margin-top: auto;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.hint {
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
  color: rgba(11, 48, 68, .68);
  transition:
    transform 180ms var(--ease),
    opacity 180ms var(--ease);
}

.card-link:hover .hint {
  transform: translateX(6px);
  opacity: 1;
}

.card-link:hover .card {
  transform: translateY(-6px);
  border-color: rgba(74, 126, 194, .18);
  box-shadow: 0 22px 46px rgba(11, 48, 68, .16);
}

.card-link:focus-visible .card {
  box-shadow: var(--focus), 0 22px 46px rgba(11, 48, 68, .16);
}

.card-badge {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-50%);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
}

.note {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(11, 48, 68, .10);
  background: rgba(255, 255, 255, .72);
  color: rgba(11, 48, 68, .75);
  font-weight: 800;
}

/* =========================================================
   PHOTO CARDS
   ========================================================= */

.card-photo {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-color: rgba(255, 255, 255, .14);
  background: #0b3044;
}

.card-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--card-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1);
  filter: saturate(.92);
  transition: transform 500ms ease, filter 500ms ease;
}

.card-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg,
      rgba(7, 22, 34, 0.32) 0%,
      rgba(7, 22, 34, 0.46) 32%,
      rgba(7, 22, 34, 0.64) 68%,
      rgba(7, 22, 34, 0.80) 100%);
}

.card-link:hover .card-photo::before {
  transform: scale(1.06);
  filter: saturate(1.05);
}

.card-photo>* {
  position: relative;
  z-index: 2;
}

.card-photo h3,
.card-photo p,
.card-photo .hint {
  color: #ffffff !important;
}

.card-photo h3 {
  transition: transform 220ms var(--ease);
}

.card-link:hover .card-photo h3 {
  transform: translateY(-1px);
}

.card-photo h3 {
  font-size: clamp(24px, 2.4vw, 28px);
}

.card h3 {
  max-width: 90%;
}

.card-photo p {
  max-width: 92%;
  color: rgba(255, 255, 255, .84) !important;
}

.card-photo .card-badge {
  color: #ffffff;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .24);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.card-photo .btn.btn-primary,
.card-photo .btn.btn-secondary,
.card-photo .btn-inline {
  min-width: 112px;
  padding: 11px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .96);
  color: var(--navy);
  border: 1px solid rgba(255, 255, 255, .42);
  box-shadow: 0 8px 20px rgba(11, 48, 68, .10);
  transition:
    transform 220ms var(--ease),
    background 220ms var(--ease),
    color 220ms var(--ease),
    border-color 220ms var(--ease),
    box-shadow 220ms var(--ease);
}

.card-link:hover .card-photo .btn {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(11, 48, 68, .16);
}

.card-photo .btn.btn-primary:hover,
.card-photo .btn.btn-secondary:hover,
.card-photo .btn-inline:hover {
  background: #ffffff;
  color: var(--navy);
  border-color: rgba(255, 255, 255, .72);
}

.card-photo .hint {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .01em;
  color: rgba(255, 255, 255, .76) !important;
}

/* =========================================================
   LEGACY SHARED / FUNNEL
   ========================================================= */

.funnel-section {
  position: relative;
  background:
    linear-gradient(180deg, rgba(74, 126, 194, .08), rgba(47, 107, 79, .05)),
    var(--funnel-bg);
  background-size: cover;
  background-position: center;
  border-top: 1px solid rgba(11, 48, 68, .08);
  border-bottom: 1px solid rgba(11, 48, 68, .08);
}

.funnel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(11, 48, 68, .10);
}

.step span {
  width: 34px;
  height: 34px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--green));
}

.step h4 {
  font-size: 15px;
  margin-bottom: 4px;
  font-weight: 900;
}

.step p {
  font-size: 13px;
}

.funnel-cta {
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(11, 48, 68, .10);
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--shadow-md);
}

.funnel-cta h3 {
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: 900;
}

.funnel-cta p {
  font-size: 14.5px;
  margin-bottom: 12px;
}

.micro {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(11, 48, 68, .62);
}

.bullets {
  margin: 0 0 14px 0;
  padding-left: 18px;
  color: rgba(11, 48, 68, .78);
  font-weight: 700;
}

.bullets li {
  margin: 7px 0;
}

/* =========================================================
   ABOUT CLEAN
   ========================================================= */

.about-section-clean {
  padding-top: 64px;
}

.about-clean-top {
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 28px;
}

.about-clean-photo {
  position: relative;
}

.about-clean-photo img {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 30px;
  border: 1px solid rgba(11, 48, 68, .08);
  box-shadow: 0 18px 42px rgba(11, 48, 68, .08);
  background: rgba(255, 255, 255, .6);
  transition:
    transform 260ms var(--ease),
    box-shadow 260ms var(--ease);
}

.about-clean-top:hover .about-clean-photo img {
  transform: translateY(-3px);
  box-shadow: 0 26px 54px rgba(11, 48, 68, .12);
}

.about-clean-intro {
  padding: 26px 28px;
  border-radius: 28px;
  border: 1px solid rgba(11, 48, 68, .08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .88), rgba(255, 255, 255, .74));
  box-shadow: 0 16px 40px rgba(11, 48, 68, .06);
}

.about-kicker {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(11, 48, 68, .48);
}

.about-clean-title {
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.about-clean-title span {
  background: linear-gradient(135deg, var(--blue), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.about-clean-text {
  font-size: 16px;
  line-height: 1.78;
  color: rgba(11, 48, 68, .76);
}

.about-clean-tags {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-clean-tags span {
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid rgba(11, 48, 68, .10);
  background: rgba(255, 255, 255, .84);
  font-size: 12px;
  font-weight: 800;
  color: rgba(11, 48, 68, .72);
}

.about-clean-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.about-clean-card {
  padding: 22px 20px;
  border-radius: 22px;
  border: 1px solid rgba(11, 48, 68, .08);
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 10px 28px rgba(11, 48, 68, .04);
  transition:
    transform 180ms var(--ease),
    box-shadow 180ms var(--ease),
    border-color 180ms var(--ease);
}

.about-clean-card:hover {
  transform: translateY(-3px);
  border-color: rgba(74, 126, 194, .16);
  box-shadow: 0 18px 36px rgba(11, 48, 68, .08);
}

.about-clean-label {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(11, 48, 68, .45);
}

.about-clean-card h4 {
  font-size: 22px;
  line-height: 1.12;
  margin-bottom: 8px;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.about-clean-card p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(11, 48, 68, .72);
}

.about-clean-actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

/* Shared utility still used elsewhere */
.about-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  padding: 32px 0;
}

.footer-dark {
  background: var(--navy);
  color: rgba(255, 255, 255, .92);
}

.footer-dark p,
.footer-dark a,
.footer-dark .brand-title,
.footer-dark .brand-subtitle {
  color: rgba(255, 255, 255, .88);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.footer-left {
  max-width: 560px;
}

.footer-note {
  margin-top: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, .65);
}

.brand-footer .brand-mark {
  box-shadow: none;
}

.disclosures {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.disclosures p {
  margin: 6px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, .75);
}

.footer-right {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 26px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 160px;
}

.footer-title {
  margin-bottom: 2px;
  font-weight: 900;
  color: rgba(255, 255, 255, .92);
}

.footer-right a {
  padding: 6px 0;
  font-weight: 800;
  color: rgba(255, 255, 255, .78);
}

.footer-right a:hover {
  color: rgba(255, 255, 255, .96);
}

/* =========================================================
   MODAL ASESORÍAS
   ========================================================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(11, 48, 68, .45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  position: relative;
  width: min(560px, 100%);
  padding: 32px 28px 28px;
  border-radius: 24px;
  border: 1px solid rgba(11, 48, 68, .10);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 30px 80px rgba(11, 48, 68, .22);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(11, 48, 68, .10);
  border-radius: 12px;
  background: white;
  color: var(--navy);
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}

.modal-close:hover {
  background: rgba(74, 126, 194, .08);
}

.modal-content h2 {
  font-size: 28px;
  line-height: 1.1;
  margin-bottom: 12px;
}

.modal-content p {
  margin-bottom: 16px;
}

.modal-content ul {
  margin: 0 0 22px 0;
  padding-left: 18px;
}

.modal-content li {
  margin-bottom: 8px;
  color: rgba(11, 48, 68, .78);
  line-height: 1.5;
}

body.modal-open {
  overflow: hidden;
}

/* =========================================================
   PAPERS / RESEARCH
   ========================================================= */

.research-section {
  padding-top: 68px;
}

.research-shell {
  position: relative;
  padding: 26px;
  border-radius: 28px;
  border: 1px solid rgba(11, 48, 68, .08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .72));
  box-shadow: 0 20px 50px rgba(11, 48, 68, .07);
  overflow: hidden;
}

.research-shell::before,
.research-shell::after {
  content: "";
  position: absolute;
  top: 92px;
  bottom: 36px;
  width: 42px;
  z-index: 3;
  pointer-events: none;
}

.research-shell::before {
  left: 0;
  background: linear-gradient(90deg,
      rgba(248, 250, 252, 1) 0%,
      rgba(248, 250, 252, .92) 35%,
      rgba(248, 250, 252, 0) 100%);
}

.research-shell::after {
  right: 0;
  background: linear-gradient(270deg,
      rgba(248, 250, 252, 1) 0%,
      rgba(248, 250, 252, .92) 35%,
      rgba(248, 250, 252, 0) 100%);
}

.research-topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.research-kicker {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(11, 48, 68, .45);
}

.research-topbar h3 {
  font-size: 24px;
  line-height: 1.1;
}

.research-nav {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.research-arrow {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(11, 48, 68, .12);
  border-radius: 14px;
  background: rgba(255, 255, 255, .86);
  color: var(--navy);
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform var(--speed) var(--ease),
    background var(--speed) var(--ease),
    border-color var(--speed) var(--ease),
    box-shadow var(--speed) var(--ease);
}

.research-arrow:hover {
  transform: translateY(-1px);
  background: rgba(74, 126, 194, .08);
  border-color: rgba(74, 126, 194, .18);
  box-shadow: 0 10px 24px rgba(11, 48, 68, .08);
}

.research-slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 360px);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.research-slider::-webkit-scrollbar {
  display: none;
}

.research-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(11, 48, 68, .10);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 250, 252, .94));
  box-shadow: 0 12px 30px rgba(11, 48, 68, .06);
  scroll-snap-align: start;
  transition:
    transform 220ms var(--ease),
    box-shadow 220ms var(--ease),
    border-color 220ms var(--ease);
  will-change: transform;
}

.research-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, .18),
      transparent 35%,
      transparent 70%,
      rgba(255, 255, 255, .06));
  opacity: 0;
  transition: opacity 220ms var(--ease);
}

.research-card:hover::after {
  opacity: 1;
}

.research-card:hover {
  transform: translateY(-6px);
  border-color: rgba(74, 126, 194, .18);
  box-shadow: 0 22px 46px rgba(11, 48, 68, .12);
}

.research-card-type {
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
}

.research-card h3 {
  font-size: 18px;
  line-height: 1.18;
  margin-bottom: 12px;
}

.research-card p {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(11, 48, 68, .72);
}

.research-card-footer {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(11, 48, 68, .55);
}

.research-card-footer span:last-child {
  transition:
    transform 180ms var(--ease),
    opacity 180ms var(--ease);
}

.research-card:hover .research-card-footer span:last-child {
  transform: translateX(4px);
  opacity: 1;
}

.research-progress {
  margin-top: 18px;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(11, 48, 68, .08);
  overflow: hidden;
}

.research-progress-bar {
  display: block;
  width: 28%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transition: width 220ms ease;
}

.research-more {
  margin-top: 22px;
  display: flex;
  justify-content: center;
}

.research-card-photo {
  position: relative;
  overflow: hidden;
  background: #0b3044;
}

.research-card-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--paper-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1);
  opacity: .38;
  transition: transform 420ms ease, opacity 420ms ease;
}

.research-card-photo:hover::before {
  transform: scale(1.05);
  opacity: .46;
}

.research-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(11, 48, 68, .14) 0%,
      rgba(11, 48, 68, .58) 58%,
      rgba(11, 48, 68, .84) 100%);
}

.research-card-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.research-card-photo h3,
.research-card-photo p,
.research-card-photo .research-card-footer,
.research-card-photo .research-card-type {
  color: #fff;
}

.research-card-photo p {
  color: rgba(255, 255, 255, .90);
}

.research-card-photo .research-card-type {
  color: rgba(255, 255, 255, .78);
}

.research-card-photo .research-card-footer {
  color: rgba(255, 255, 255, .74);
}

/* =========================================================
   ANIMATIONS / REVEAL
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 300ms var(--ease), transform 300ms var(--ease);
}

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

.cards .reveal:nth-child(1),
.values-grid .value-card:nth-child(1) {
  transition-delay: 0ms;
}

.cards .reveal:nth-child(2),
.values-grid .value-card:nth-child(2) {
  transition-delay: 70ms;
}

.cards .reveal:nth-child(3),
.values-grid .value-card:nth-child(3) {
  transition-delay: 140ms;
}

.cards .reveal:nth-child(4) {
  transition-delay: 210ms;
}

/* =========================================================
   SHARED TOOL PAGE SUPPORT
   ========================================================= */

.page-calculadora .tool-form {
  display: flex;
  flex-direction: column;
}

.page-calculadora #dynamic_inputs {
  flex: 1;
  min-height: 520px;
}

.page-calculadora #btn_recalc {
  margin-top: auto !important;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {
  .about-clean-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 980px) {
  .page-calculadora #dynamic_inputs {
    min-height: 0;
  }
}

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

  .burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero {
    padding: 90px 0 70px;
  }

  .hero-grid {
    max-width: 100%;
  }

  .grid-2,
  .funnel-grid,
  .values-grid,
  .about-clean-top,
  .about-clean-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }

  .card-tall {
    min-height: 220px;
    height: auto;
  }

  .card {
    padding: 20px;
  }

  .card h3 {
    font-size: 20px;
  }

  .card p {
    font-size: 13.5px;
  }

  .value-card {
    min-height: auto;
  }

  .about-clean-intro {
    padding: 22px 20px;
  }

  .about-clean-title {
    font-size: 30px;
  }

  .about-clean-text {
    font-size: 15px;
  }

  .about-clean-card h4 {
    font-size: 20px;
  }

  .research-shell {
    padding: 20px;
  }

  .research-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .research-nav {
    justify-content: flex-start;
  }

  .research-slider {
    grid-auto-columns: minmax(280px, 88%);
  }

  .research-shell::before,
  .research-shell::after {
    width: 24px;
    top: 108px;
    bottom: 34px;
  }
}

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

  .reveal {
    transition: none;
    transform: none;
  }

  .btn,
  .card,
  .card-photo::before,
  .research-card-photo::before {
    transition: none;
  }

  .hero::before {
    animation: none;
  }
}

/* =========================================================
   SECTION RHYTHM / TRANSITIONS
   ========================================================= */

.section {
  position: relative;
  padding: 84px 0;
}

.section-head {
  margin-bottom: 30px;
}

.section-head h2 {
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.section-head p {
  font-size: 15.5px;
  line-height: 1.7;
  max-width: 760px;
  color: rgba(11, 48, 68, .70);
}

/* Ritmo diferente por sección */

.social-proof {
  position: relative;
  padding: 30px 0 20px;
}

#asesorias.section {
  padding-top: 76px;
  padding-bottom: 74px;
}

#herramientas.section {
  padding-top: 88px;
  padding-bottom: 82px;
}

#cursos.section {
  padding-top: 88px;
  padding-bottom: 84px;
}

#sobre-mi.section {
  padding-top: 92px;
  padding-bottom: 84px;
}

.research-section {
  padding-top: 96px;
  padding-bottom: 88px;
}

/* Fondos con más intención */

#asesorias {
  background:
    radial-gradient(circle at 14% 20%, rgba(74, 126, 194, .08), transparent 28%),
    radial-gradient(circle at 84% 30%, rgba(47, 107, 79, .06), transparent 24%);
}

#herramientas {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .36)),
    radial-gradient(circle at 82% 18%, rgba(74, 126, 194, .07), transparent 24%);
}

#cursos {
  background:
    radial-gradient(circle at 18% 22%, rgba(74, 126, 194, .07), transparent 24%),
    radial-gradient(circle at 80% 78%, rgba(47, 107, 79, .06), transparent 26%);
}

#sobre-mi {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .04));
}

/* Separadores sutiles entre secciones */

.section+.section::before,
.social-proof+.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1120px, calc(100% - 48px));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg,
      rgba(11, 48, 68, 0) 0%,
      rgba(11, 48, 68, .08) 18%,
      rgba(11, 48, 68, .08) 82%,
      rgba(11, 48, 68, 0) 100%);
  opacity: .7;
}

/* Banda de transición editorial opcional */
.section-transition-soft::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 48px));
  height: 48px;
  pointer-events: none;
  background: linear-gradient(180deg,
      rgba(11, 48, 68, 0) 0%,
      rgba(11, 48, 68, .025) 100%);
}

/* Headings más vivos */

.section-head .eyebrow,
.section-kicker {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(11, 48, 68, .46);
}

/* Reveal con más intención */

.reveal {
  opacity: 0;
  transform: translateY(18px) scale(.985);
  transition:
    opacity 560ms cubic-bezier(.2, .8, .2, 1),
    transform 560ms cubic-bezier(.2, .8, .2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Stagger más fuerte */

.cards .reveal:nth-child(1),
.values-grid .value-card:nth-child(1),
.about-clean-grid .about-clean-card:nth-child(1) {
  transition-delay: 0ms;
}

.cards .reveal:nth-child(2),
.values-grid .value-card:nth-child(2),
.about-clean-grid .about-clean-card:nth-child(2) {
  transition-delay: 90ms;
}

.cards .reveal:nth-child(3),
.values-grid .value-card:nth-child(3),
.about-clean-grid .about-clean-card:nth-child(3) {
  transition-delay: 180ms;
}

.cards .reveal:nth-child(4),
.about-clean-grid .about-clean-card:nth-child(4) {
  transition-delay: 270ms;
}

/* Topbar del research más expresivo */

.research-topbar {
  margin-bottom: 24px;
}

.research-topbar h3 {
  font-size: clamp(24px, 2.3vw, 30px);
  letter-spacing: -0.03em;
}

/* Sobre mí un poco más editorial */

.about-clean-top {
  margin-bottom: 34px;
}

.about-clean-intro {
  position: relative;
}

.about-clean-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, .22),
      transparent 40%,
      transparent 70%,
      rgba(255, 255, 255, .06));
}

/* Footer un poco más asentado */

.footer {
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1120px, calc(100% - 48px));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, .12) 22%,
      rgba(255, 255, 255, .12) 78%,
      rgba(255, 255, 255, 0) 100%);
}

/* Responsive */

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

  #asesorias.section,
  #herramientas.section,
  #cursos.section,
  #sobre-mi.section,
  .research-section {
    padding-top: 74px;
    padding-bottom: 72px;
  }

  .section-head h2 {
    font-size: 30px;
  }

  .section-head p {
    font-size: 15px;
  }

  .section+.section::before,
  .social-proof+.section::before {
    width: calc(100% - 48px);
  }
}

.about-cta {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.about-cta p {
  font-size: 15px;
  color: rgba(11, 48, 68, .75);
}

/* =========================================================
   ABOUT BOTTOM CTA
   ========================================================= */

/* =========================================================
   ABOUT CTA · ESTELAR
   ========================================================= */

.about-bottom-cta {
  position: relative;
  overflow: hidden;
  margin-top: 34px;
  padding: 28px 28px;
  border-radius: 28px;
  border: 1px solid rgba(11, 48, 68, .10);
  background:
    linear-gradient(135deg, rgba(11, 48, 68, .96), rgba(22, 64, 92, .92) 55%, rgba(47, 107, 79, .88) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  box-shadow:
    0 24px 60px rgba(11, 48, 68, .16),
    inset 0 1px 0 rgba(255, 255, 255, .06);
}

.about-bottom-cta-glow {
  position: absolute;
  inset: auto auto -80px -40px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(74, 126, 194, .30) 0%, rgba(74, 126, 194, 0) 72%);
  pointer-events: none;
}

.about-bottom-copy {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.about-bottom-kicker {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .58);
}

.about-bottom-copy h3 {
  margin: 0 0 10px;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.about-bottom-copy p {
  font-size: 15.5px;
  line-height: 1.72;
  color: rgba(255, 255, 255, .80);
}

.about-bottom-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.about-bottom-actions .btn {
  min-width: 176px;
}

.about-bottom-actions .btn-ghost {
  color: rgba(255, 255, 255, .85);
  border-color: rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .04);
}

.about-bottom-actions .btn-ghost:hover {
  background: rgba(255, 255, 255, .08);
}

.about-bottom-actions .btn-ghost:hover {
  background: rgba(255, 255, 255, .10);
  border-color: rgba(255, 255, 255, .30);
}

.about-bottom-actions .btn-primary {
  background: linear-gradient(135deg, #f4d47c, #d4a94f);
  color: #0b3044;
  border: none;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .22);
  font-weight: 800;
  letter-spacing: .01em;
}

.about-bottom-actions .btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #f8e29a, #dcb766);
  box-shadow: 0 18px 38px rgba(0, 0, 0, .28);
}

.about-bottom-actions .btn-primary {
  position: relative;
  overflow: hidden;
}

.about-bottom-actions .btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, .35) 50%,
      rgba(255, 255, 255, 0) 100%);
  transition: all 0.6s ease;
}

.about-bottom-actions .btn-primary:hover::after {
  left: 120%;
}

/* Responsive */
@media (max-width: 940px) {
  .about-bottom-cta {
    padding: 22px 20px;
    flex-direction: column;
    align-items: flex-start;
  }

  .about-bottom-actions {
    width: 100%;
  }

  .about-bottom-actions .btn {
    width: 100%;
  }

  .about-bottom-copy h3 {
    font-size: 28px;
  }

  .about-bottom-copy p {
    font-size: 15px;
  }
}

@media (max-width: 940px) {
  .about-bottom-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
  }

  .about-bottom-actions {
    width: 100%;
  }

  .about-bottom-actions .btn {
    width: 100%;
  }
}

/* FORM MEJORADO */

.tool-card {
  background: #ffffff;
  padding: 32px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  max-width: 820px;
  margin: 0 auto;
}

/* Bloques */
.form-block {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e6ecf2;
}

.form-block:last-child {
  border-bottom: none;
}

/* Títulos */
.form-block h3 {
  font-size: 18px;
  margin-bottom: 16px;
  color: #0b3044;
}

/* Inputs */
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #d6dde5;
  font-size: 14px;
  transition: all 0.2s ease;
}

/* Hover + focus */
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: #4a7ec2;
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 126, 194, 0.15);
}

/* Labels */
.form-label {
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

/* Espaciado */
.form-group {
  margin-bottom: 16px;
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-row .form-group {
  flex: 1;
}

/* Botón */
.btn-primary {
  padding: 16px;
  font-size: 16px;
  border-radius: 12px;
}

/* =========================
   AGENDA PAGE
========================= */

.agenda-page {
  padding-top: 56px;
  padding-bottom: 72px;
}

.agenda-head {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.agenda-step {
  display: inline-block;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(74, 126, 194, 0.12);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.agenda-form-card {
  max-width: 860px;
  margin: 0 auto;
  padding: 34px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(11, 48, 68, 0.08);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(11, 48, 68, 0.08);
  backdrop-filter: blur(10px);
}

.form-block {
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(11, 48, 68, 0.08);
}

.form-block:last-of-type {
  border-bottom: none;
  margin-bottom: 12px;
}

.form-block h3 {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink, #0b3044);
}

.form-group {
  margin-bottom: 18px;
}

.form-group-no-margin {
  margin-bottom: 0;
}

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

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(11, 48, 68, 0.9);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  border: 1px solid rgba(11, 48, 68, 0.14);
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
  color: var(--ink, #0b3044);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  box-sizing: border-box;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(11, 48, 68, 0.42);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: rgba(74, 126, 194, 0.7);
  box-shadow: 0 0 0 4px rgba(74, 126, 194, 0.14);
}

.agenda-submit {
  margin-top: 8px;
}

.agenda-submit-btn {
  width: 100%;
  padding: 18px 20px;
  font-size: 16px;
  font-weight: 800;
  border-radius: 16px;
}

.agenda-note {
  margin-top: 14px;
  text-align: center;
  color: rgba(11, 48, 68, 0.6);
}

@media (max-width: 760px) {
  .agenda-page {
    padding-top: 34px;
    padding-bottom: 54px;
  }

  .agenda-form-card {
    padding: 22px;
    border-radius: 18px;
  }

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

  .form-block h3 {
    font-size: 18px;
  }
}

/* =========================
   GUIDED CALCULATOR
========================= */

.calc-guide {
  margin-bottom: 20px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .84);
  border: 1px solid rgba(11, 48, 68, .10);
  box-shadow: 0 16px 40px rgba(11, 48, 68, .06);
}

.calc-guide-head {
  margin-bottom: 18px;
}

.calc-guide-step {
  display: inline-block;
  margin-bottom: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(74, 126, 194, .12);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.calc-guide-head h3 {
  margin: 0 0 8px 0;
  font-size: 22px;
  color: var(--navy);
}

.calc-guide-head p {
  margin: 0;
  color: rgba(11, 48, 68, .72);
  font-weight: 700;
  line-height: 1.55;
}

.calc-guide-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.calc-step-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(11, 48, 68, .10);
  background: rgba(255, 255, 255, .92);
  cursor: pointer;
  text-align: left;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.calc-step-card:hover {
  transform: translateY(-1px);
  border-color: rgba(74, 126, 194, .28);
  box-shadow: 0 14px 30px rgba(11, 48, 68, .08);
}

.calc-step-card.active {
  border-color: rgba(74, 126, 194, .34);
  box-shadow: 0 18px 34px rgba(74, 126, 194, .10);
  background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(244, 248, 255, .96));
}

.calc-step-number {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.calc-step-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--navy);
  font-size: 14px;
}

.calc-step-card p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(11, 48, 68, .68);
  font-weight: 700;
}

.calc-story {
  margin-bottom: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(74, 126, 194, .07);
  border: 1px solid rgba(74, 126, 194, .12);
}

.calc-story p {
  margin: 0;
  color: rgba(11, 48, 68, .82);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 800;
}

.calc-mode-hidden {
  display: none;
}

@media (max-width: 980px) {
  .calc-guide-steps {
    grid-template-columns: 1fr;
  }
}

/* =========================
   GOAL COMPARISON
   ========================= */
.goal-compare-card {
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(245, 249, 255, .94));
  border: 1px solid rgba(11, 48, 68, .10);
  box-shadow: 0 18px 40px rgba(11, 48, 68, .08);
}

.goal-compare-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.goal-compare-kicker {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(74, 126, 194, .80);
}

.goal-compare-top h3 {
  margin: 0;
  font-size: 20px;
  color: var(--navy);
}

.goal-compare-progress-text {
  font-size: 28px;
  font-weight: 900;
  color: var(--blue);
  line-height: 1;
  white-space: nowrap;
}

.goal-compare-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.goal-metric {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(11, 48, 68, .08);
}

.goal-metric-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 900;
  color: rgba(11, 48, 68, .55);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.goal-metric strong {
  font-size: 24px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.15;
}

#goal_gap_value {
  color: var(--green);
}

.goal-progress-wrap {
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: rgba(11, 48, 68, .08);
  overflow: hidden;
  margin-bottom: 14px;
}

.goal-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transition: width .35s ease;
}

.goal-compare-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(11, 48, 68, .76);
  font-weight: 750;
}

/* =========================
   GOAL COMPARISON
   ========================= */
.goal-compare-card {
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(245, 249, 255, .94));
  border: 1px solid rgba(11, 48, 68, .10);
  box-shadow: 0 18px 40px rgba(11, 48, 68, .08);
}

.goal-compare-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.goal-compare-kicker {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(74, 126, 194, .80);
}

.goal-compare-top h3 {
  margin: 0;
  font-size: 20px;
  color: var(--navy);
}

.goal-compare-progress-text {
  font-size: 28px;
  font-weight: 900;
  color: var(--blue);
  line-height: 1;
  white-space: nowrap;
}

.goal-compare-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.goal-metric {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(11, 48, 68, .08);
}

.goal-metric-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 900;
  color: rgba(11, 48, 68, .55);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.goal-metric strong {
  font-size: 24px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.15;
}

#goal_gap_value {
  color: var(--green);
}

.goal-progress-wrap {
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: rgba(11, 48, 68, .08);
  overflow: hidden;
  margin-bottom: 14px;
}

.goal-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transition: width .35s ease;
}

.goal-compare-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(11, 48, 68, .76);
  font-weight: 750;
}

/* =========================
   LAYOUT V2 CALCULADORA
   ========================= */

.calc-guide-card {
  margin-bottom: 24px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border: none;
}

.calc-main-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(420px, 1.4fr);
  gap: 28px;
  align-items: start;
}

.calc-left-col,
.calc-right-col {
  align-self: start;
}

.calc-inputs-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: auto;
  min-height: 0;
}

.calc-inputs-card #dynamic_inputs {
  flex: 0 0 auto;
}

.calc-inputs-card #btn_recalc {
  margin-top: 10px !important;
}

.calc-left-col .tool-card {
  min-height: unset !important;
  height: auto !important;
}

.calc-right-col {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-self: start;
}

@media (max-width: 980px) {
  .calc-main-layout {
    grid-template-columns: 1fr;
  }

  .calc-guide-steps {
    grid-template-columns: 1fr;
  }

  .goal-compare-grid {
    grid-template-columns: 1fr;
  }

  .goal-compare-top {
    flex-direction: column;
    align-items: flex-start;
  }
}

.story-assumption-pill {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(11, 48, 68, .06);
  box-shadow: 0 6px 18px rgba(11, 48, 68, .04);
}

.story-assumption-pill span {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(11, 48, 68, .40);
}

.story-assumption-pill strong {
  font-size: 16px;
  font-weight: 900;
  color: #0b3044;
}

.story-export-card {
  width: 1080px;
  min-height: 1920px;
  padding: 52px;
  box-sizing: border-box;
  background:
    radial-gradient(ellipse 600px 600px at 10% 8%, rgba(74, 126, 194, .28), transparent),
    radial-gradient(ellipse 500px 500px at 90% 85%, rgba(47, 107, 79, .24), transparent),
    linear-gradient(175deg, #f4f8ff 0%, #e8f0fa 50%, #eef6f2 100%);
}

.story-export-inner {
  min-height: 100%;
  border-radius: 48px;
  padding: 62px 58px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, .6);
  box-shadow: 0 40px 100px rgba(11, 48, 68, .10), 0 8px 32px rgba(74, 126, 194, .08), inset 0 1px 0 rgba(255, 255, 255, .7);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.story-export-brand {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0b3044, #1a4a66);
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: .02em;
  box-shadow: 0 8px 24px rgba(11, 48, 68, .18);
  align-self: flex-start;
}

.story-export-kicker {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(11, 48, 68, .48);
}

.story-export-title {
  font-size: 58px;
  line-height: 0.98;
  font-weight: 900;
  color: #0b3044;
  letter-spacing: -0.03em;
}

.story-export-main {
  padding: 34px 38px;
  border-radius: 28px;
  background: linear-gradient(140deg, rgba(74, 126, 194, .10), rgba(47, 107, 79, .06));
  border: 1.5px solid rgba(74, 126, 194, .10);
  box-shadow: 0 6px 20px rgba(11, 48, 68, .04);
}

.story-export-main.alt {
  background: linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(240, 246, 255, .94));
}

.story-export-main.alt2 {
  background: linear-gradient(140deg, rgba(47, 107, 79, .08), rgba(74, 126, 194, .06));
}

.story-export-value {
  margin-top: 8px;
  font-size: 68px;
  line-height: 1.02;
  font-weight: 900;
  color: #0b3044;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.story-export-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px 36px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(74, 126, 194, .08), rgba(47, 107, 79, .06));
  border: 1px solid rgba(11, 48, 68, .06);
}

.story-export-footer-cta {
  font-size: 26px;
  font-weight: 900;
  color: #0b3044;
}

.story-export-footer-url {
  font-size: 22px;
  font-weight: 800;
  color: rgba(11, 48, 68, .50);
}

/* === AUTH MODAL === */
.ies-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(11, 48, 68, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.ies-modal-overlay[hidden] {
  display: none !important;
}

.ies-modal-card {
  background: var(--bg0);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 36px 32px;
  max-width: 400px;
  width: 100%;
  position: relative;
}

.ies-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--muted);
  padding: 4px 8px;
}

.ies-modal-close:hover {
  color: var(--navy);
}

.ies-modal-field {
  margin-bottom: 14px;
}

.ies-modal-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 5px;
}

.ies-modal-field input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  color: var(--navy);
  background: var(--bg0);
  transition: border-color var(--speed);
}

.ies-modal-field input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: var(--focus);
}

.ies-user-badge {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 99px;
  background: var(--bg1);
  white-space: nowrap;
}

.ies-user-badge a {
  color: var(--blue);
  cursor: pointer;
  text-decoration: underline;
}

/* Perfil ampliado (modal) */
.ies-modal-card--wide {
  max-width: 520px;
  padding: 32px 28px 28px;
}

.ies-modal-card--scroll {
  max-height: min(88vh, 720px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.ies-modal-h2 {
  margin: 0 36px 8px 0;
  font-size: 21px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.ies-modal-sub {
  margin: 0 36px 18px 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

.ies-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

.ies-modal-field--full {
  grid-column: 1 / -1;
}

.ies-modal-section {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 18px 0 4px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}

.ies-modal-section:first-of-type {
  border-top: none;
  margin-top: 8px;
  padding-top: 0;
}

.ies-modal-optional {
  font-weight: 500;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

.ies-modal-field select,
.ies-modal-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  color: var(--navy);
  background: var(--bg0);
  transition: border-color var(--speed);
  box-sizing: border-box;
}

.ies-modal-field textarea {
  resize: vertical;
  min-height: 64px;
  line-height: 1.45;
}

.ies-modal-field select:focus,
.ies-modal-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: var(--focus);
}

.ies-modal-field-error,
.ies-modal-form-error {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #b83232;
  margin-top: 6px;
}

.ies-modal-form-error {
  margin-bottom: 12px;
}

.ies-modal-footnote {
  margin: 14px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: rgba(11, 48, 68, 0.48);
}

@media (max-width: 540px) {
  .ies-modal-grid {
    grid-template-columns: 1fr;
  }

  .ies-modal-card--wide {
    padding: 28px 20px 22px;
  }
}

/* Encuesta por herramienta (modal secundario) */
.ies-tool-survey-overlay {
  z-index: 10000;
}

.ies-tool-survey-card {
  max-width: 440px;
}

.ies-tool-survey-fields {
  margin-bottom: 8px;
}

.asesoria-modal-card {
  padding: 10px 4px 4px;
}

.asesoria-modal-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(74, 126, 194, 0.12);
  color: #0b3044;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.asesoria-modal-card h3 {
  margin: 0 0 14px;
  font-size: 32px;
  line-height: 1.05;
  color: #0b3044;
}

.asesoria-modal-description {
  margin: 0;
  font-size: 18px;
  line-height: 1.65;
  color: rgba(11, 48, 68, 0.82);
}

.asesoria-modal-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 24px;
}

.asesoria-meta-box {
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
  border: 1px solid rgba(11, 48, 68, 0.08);
}

.asesoria-meta-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(11, 48, 68, 0.5);
}

.asesoria-meta-box strong {
  font-size: 24px;
  line-height: 1.1;
  color: #0b3044;
}

.asesoria-modal-section h4 {
  margin: 0 0 14px;
  font-size: 18px;
  color: #0b3044;
}

.asesoria-modal-list {
  margin: 0;
  padding-left: 22px;
}

.asesoria-modal-list li {
  margin-bottom: 12px;
  color: rgba(11, 48, 68, 0.82);
  line-height: 1.6;
  font-size: 16px;
}

.asesoria-modal-note {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(47, 107, 79, 0.08);
  border: 1px solid rgba(47, 107, 79, 0.14);
  color: #234b37;
  font-size: 15px;
  line-height: 1.55;
}

.asesoria-modal-actions {
  margin-top: 26px;
  display: flex;
  justify-content: flex-start;
}

@media (max-width: 640px) {
  .asesoria-modal-card h3 {
    font-size: 26px;
  }

  .asesoria-modal-description {
    font-size: 16px;
  }

  .asesoria-modal-meta {
    grid-template-columns: 1fr;
  }

  .asesoria-meta-box strong {
    font-size: 22px;
  }
}

/* =========================================================
   ASESORÍAS PAGE — HERO
   ========================================================= */

.asesoria-hero {
  position: relative;
  min-height: 440px;
  padding: 120px 0 60px;
  overflow: hidden;
  isolation: isolate;
  background-image:
    linear-gradient(80deg,
      rgba(255, 255, 255, 0.88) 0%,
      rgba(255, 255, 255, 0.68) 35%,
      rgba(74, 126, 194, 0.18) 60%,
      rgba(74, 126, 194, 0.05) 85%),
    url("assets/Hero_2.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.asesoria-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 25%, rgba(255, 255, 255, .22), transparent 26%),
    radial-gradient(circle at 85% 35%, rgba(74, 126, 194, .12), transparent 28%),
    radial-gradient(circle at 55% 82%, rgba(47, 107, 79, .10), transparent 24%);
  animation: heroFloat 14s ease-in-out infinite alternate;
}

.asesoria-hero > * {
  position: relative;
  z-index: 1;
}

.asesoria-hero-inner {
  max-width: 720px;
  padding: 32px 34px;
  border-radius: 28px;
  border: 1px solid rgba(11, 48, 68, .08);
  background: rgba(255, 255, 255, .60);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 18px 48px rgba(11, 48, 68, .06);
}

.asesoria-hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: white;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 18px;
  box-shadow: 0 8px 20px rgba(74, 126, 194, .20);
}

.asesoria-hero h1 {
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.asesoria-hero .lead {
  font-size: 17px;
  margin-bottom: 22px;
  color: rgba(11, 48, 68, .76);
  line-height: 1.72;
}

.asesoria-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.asesoria-hero-divider {
  height: 26px;
  margin-top: 26px;
  opacity: .42;
  border-top: 1px solid rgba(11, 48, 68, .06);
  background: linear-gradient(90deg,
    rgba(74, 126, 194, .14),
    rgba(47, 107, 79, .10),
    rgba(74, 126, 194, .08));
}

/* =========================================================
   ASESORÍAS PAGE — HOW IT WORKS
   ========================================================= */

.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.hiw-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 24px 28px;
  border-radius: 24px;
  border: 1px solid rgba(11, 48, 68, .08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .82));
  box-shadow:
    0 10px 30px rgba(11, 48, 68, .05),
    inset 0 1px 0 rgba(255, 255, 255, .45);
  transition:
    transform 220ms var(--ease),
    box-shadow 220ms var(--ease),
    border-color 220ms var(--ease);
  will-change: transform;
}

.hiw-card:hover {
  transform: translateY(-6px);
  border-color: rgba(74, 126, 194, .18);
  box-shadow:
    0 18px 40px rgba(11, 48, 68, .10),
    inset 0 1px 0 rgba(255, 255, 255, .5);
}

.hiw-number {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: white;
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 18px;
  box-shadow: 0 10px 28px rgba(74, 126, 194, .22);
  flex-shrink: 0;
}

.hiw-content h3 {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 10px;
  color: var(--navy);
}

.hiw-content p {
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(11, 48, 68, .70);
}

/* =========================================================
   ASESORÍAS PAGE — BENEFITS GRID
   ========================================================= */

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

.benefit-card {
  position: relative;
  padding: 26px 22px;
  border-radius: 22px;
  border: 1px solid rgba(11, 48, 68, .08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .80));
  box-shadow:
    0 10px 28px rgba(11, 48, 68, .04),
    inset 0 1px 0 rgba(255, 255, 255, .45);
  transition:
    transform 220ms var(--ease),
    box-shadow 220ms var(--ease),
    border-color 220ms var(--ease);
  will-change: transform;
}

.benefit-card:hover {
  transform: translateY(-5px);
  border-color: rgba(74, 126, 194, .16);
  box-shadow:
    0 18px 40px rgba(11, 48, 68, .09),
    inset 0 1px 0 rgba(255, 255, 255, .5);
}

.benefit-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(74, 126, 194, .14), rgba(47, 107, 79, .14));
  border: 1px solid rgba(74, 126, 194, .12);
  font-size: 22px;
  margin-bottom: 16px;
}

.benefit-card h3 {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 10px;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.benefit-card p {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(11, 48, 68, .70);
}

/* =========================================================
   NAV ACTIVE STATE
   ========================================================= */

.nav-active {
  color: var(--blue) !important;
}

.nav-active::after {
  transform: scaleX(1) !important;
}

/* =========================================================
   ASESORÍAS PAGE — RESPONSIVE
   ========================================================= */

#asesorias-cards {
  scroll-margin-top: 96px;
}

#como-funciona {
  scroll-margin-top: 96px;
}

@media (max-width: 940px) {
  .asesoria-hero {
    padding: 100px 0 50px;
    min-height: auto;
  }

  .asesoria-hero-inner {
    padding: 24px 22px;
  }

  .asesoria-hero h1 {
    font-size: 30px;
  }

  .asesoria-hero .lead {
    font-size: 15px;
  }

  .how-it-works-grid {
    grid-template-columns: 1fr;
  }

  .hiw-card {
    flex-direction: row;
    text-align: left;
    gap: 18px;
    padding: 22px 20px;
  }

  .hiw-number {
    margin-bottom: 0;
  }

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

/* =========================================================
   COMING SOON PAGE — PREMIUM
   ========================================================= */

.cs-hero {
  position: relative;
  min-height: 100vh;
  padding: 120px 0 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 30% 20%, rgba(74, 126, 194, .08), transparent 60%),
    radial-gradient(ellipse 60% 40% at 75% 80%, rgba(47, 107, 79, .06), transparent 50%),
    linear-gradient(180deg, #05131e 0%, #0b2133 40%, #0d2940 70%, #0b3044 100%);
  color: white;
}

/* Floating orbs */
.cs-bg-effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.cs-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  will-change: transform;
}

.cs-orb-1 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(74, 126, 194, .6), transparent 70%);
  top: -10%;
  left: -5%;
  animation: csFloat1 16s ease-in-out infinite alternate;
}

.cs-orb-2 {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(47, 107, 79, .5), transparent 70%);
  bottom: 10%;
  right: -8%;
  animation: csFloat2 20s ease-in-out infinite alternate;
}

.cs-orb-3 {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(244, 212, 124, .35), transparent 70%);
  top: 45%;
  left: 35%;
  animation: csFloat3 14s ease-in-out infinite alternate;
}

@keyframes csFloat1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 40px) scale(1.15); }
}

@keyframes csFloat2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-50px, -30px) scale(1.1); }
}

@keyframes csFloat3 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -50px) scale(0.9); }
}

/* Subtle grid */
.cs-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black, transparent 80%);
}

/* Content */
.cs-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* Badge */
.cs-badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, .85);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 28px;
}

/* Title */
.cs-title {
  font-size: clamp(38px, 5.5vw, 64px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 22px;
  color: white;
}

.cs-gradient-text {
  background: linear-gradient(135deg, #7db8e8, #4a7ec2, #74c99e, #f4d47c);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: csGradientShift 6s ease-in-out infinite alternate;
}

@keyframes csGradientShift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* Subtitle */
.cs-subtitle {
  font-size: 17px;
  line-height: 1.72;
  color: rgba(255, 255, 255, .60);
  max-width: 600px;
  margin: 0 auto 48px auto;
}

/* Cards */
.cs-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 52px;
}

.cs-card {
  position: relative;
  padding: 24px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: left;
  transition:
    transform 280ms var(--ease),
    border-color 280ms var(--ease),
    background 280ms var(--ease);
  will-change: transform;
}

.cs-card:hover {
  transform: translateY(-6px);
  border-color: rgba(74, 126, 194, .28);
  background: rgba(255, 255, 255, .07);
}

.cs-card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(74, 126, 194, .18), rgba(47, 107, 79, .18));
  border: 1px solid rgba(74, 126, 194, .14);
  font-size: 20px;
  margin-bottom: 14px;
}

.cs-card-content h3 {
  font-size: 17px;
  font-weight: 800;
  color: white;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.cs-card-content p {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .52);
  margin-bottom: 14px;
}

.cs-card-status {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(244, 212, 124, .12);
  color: #f4d47c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* CTA Box */
.cs-cta-area {
  margin-bottom: 56px;
}

.cs-cta-box {
  position: relative;
  padding: 36px 32px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}

.cs-cta-glow {
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(74, 126, 194, .18), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.cs-cta-box h3 {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 10px;
  color: white;
  position: relative;
}

.cs-cta-box p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .55);
  margin-bottom: 22px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.cs-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  position: relative;
}

.cs-btn-notify {
  background: linear-gradient(135deg, #f4d47c, #d4a94f) !important;
  color: #0b3044 !important;
  border: none !important;
  font-weight: 800 !important;
  box-shadow: 0 14px 36px rgba(244, 212, 124, .18);
}

.cs-btn-notify:hover {
  background: linear-gradient(135deg, #f8e29a, #dcb766) !important;
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(244, 212, 124, .24);
}

.cs-btn-explore {
  border-color: rgba(255, 255, 255, .18) !important;
  color: rgba(255, 255, 255, .70) !important;
}

.cs-btn-explore:hover {
  border-color: rgba(255, 255, 255, .30) !important;
  background: rgba(255, 255, 255, .06) !important;
  color: white !important;
}

/* Meanwhile section */
.cs-meanwhile {
  text-align: left;
}

.cs-meanwhile h3 {
  font-size: 16px;
  font-weight: 700;
  color: rgba(255, 255, 255, .50);
  margin-bottom: 16px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 13px;
}

.cs-meanwhile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.cs-meanwhile-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  text-decoration: none;
  transition:
    transform 220ms var(--ease),
    border-color 220ms var(--ease),
    background 220ms var(--ease);
}

.cs-meanwhile-card:hover {
  transform: translateY(-3px);
  border-color: rgba(74, 126, 194, .22);
  background: rgba(255, 255, 255, .06);
}

.cs-mw-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  font-size: 20px;
  flex-shrink: 0;
}

.cs-meanwhile-card strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: white;
  margin-bottom: 4px;
}

.cs-meanwhile-card p {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .48);
  margin: 0;
}

.cs-mw-arrow {
  margin-left: auto;
  font-size: 18px;
  color: rgba(255, 255, 255, .26);
  transition: color 220ms var(--ease), transform 220ms var(--ease);
  flex-shrink: 0;
}

.cs-meanwhile-card:hover .cs-mw-arrow {
  color: rgba(255, 255, 255, .60);
  transform: translateX(4px);
}

/* Responsive */
@media (max-width: 768px) {
  .cs-hero {
    padding: 100px 0 60px;
  }

  .cs-cards {
    grid-template-columns: 1fr;
  }

  .cs-meanwhile-grid {
    grid-template-columns: 1fr;
  }

  .cs-cta-box {
    padding: 28px 20px;
  }

  .cs-cta-actions {
    flex-direction: column;
  }
}

/* =========================================================
   BIBLIOTECA DE ACTIVOS INTELECTUALES (papers.html)
   ========================================================= */

/* ── Hero ── */

.lib-hero {
  position: relative;
  padding: 120px 0 60px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 22%, rgba(74, 126, 194, .10), transparent 28%),
    radial-gradient(circle at 78% 68%, rgba(47, 107, 79, .08), transparent 30%),
    linear-gradient(180deg, var(--bg1), var(--bg0));
}

.lib-hero-content {
  max-width: 680px;
}

.lib-hero-kicker {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(11, 48, 68, .46);
}

.lib-hero h1 {
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.lib-hero h1 span {
  background: linear-gradient(135deg, var(--blue), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lib-hero .lead {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(11, 48, 68, .72);
  max-width: 580px;
  margin-bottom: 18px;
}

.lib-hero-counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(11, 48, 68, .08);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

/* ── Toolbar (filters + search) ── */

.lib-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.lib-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lib-filter-pill {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(11, 48, 68, .10);
  background: rgba(255, 255, 255, .72);
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  color: rgba(11, 48, 68, .68);
  cursor: pointer;
  transition:
    background var(--speed) var(--ease),
    border-color var(--speed) var(--ease),
    color var(--speed) var(--ease),
    transform var(--speed) var(--ease),
    box-shadow var(--speed) var(--ease);
}

.lib-filter-pill:hover {
  background: rgba(74, 126, 194, .08);
  border-color: rgba(74, 126, 194, .18);
  color: var(--navy);
  transform: translateY(-1px);
}

.lib-filter-pill.active {
  background: linear-gradient(135deg, var(--blue), var(--green));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 18px rgba(74, 126, 194, .22);
}

.lib-search {
  position: relative;
  min-width: 260px;
  max-width: 340px;
  flex: 1;
}

.lib-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: rgba(11, 48, 68, .38);
  pointer-events: none;
}

.lib-search input {
  width: 100%;
  padding: 11px 16px 11px 40px;
  border-radius: 14px;
  border: 1px solid rgba(11, 48, 68, .10);
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(6px);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  transition:
    border-color var(--speed) var(--ease),
    box-shadow var(--speed) var(--ease),
    background var(--speed) var(--ease);
}

.lib-search input::placeholder {
  color: rgba(11, 48, 68, .38);
  font-weight: 600;
}

.lib-search input:focus {
  outline: none;
  border-color: rgba(74, 126, 194, .28);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 0 0 3px rgba(74, 126, 194, .12);
}

/* ── Featured ── */

.lib-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(11, 48, 68, .08);
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 20px 50px rgba(11, 48, 68, .07);
  overflow: hidden;
  margin-bottom: 40px;
  transition:
    box-shadow 300ms var(--ease),
    border-color 300ms var(--ease);
}

.lib-featured:hover {
  border-color: rgba(74, 126, 194, .14);
  box-shadow: 0 28px 60px rgba(11, 48, 68, .11);
}

.lib-featured-cover {
  position: relative;
  min-height: 340px;
  overflow: hidden;
}

.lib-featured-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.lib-featured:hover .lib-featured-cover img {
  transform: scale(1.04);
}

.lib-featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 48, 68, .04) 0%, rgba(11, 48, 68, .22) 100%);
  pointer-events: none;
}

.lib-featured-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(11, 48, 68, .06);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  color: var(--navy);
}

.lib-featured-body {
  padding: 36px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lib-featured-category {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
}

.lib-featured-title {
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: var(--navy);
}

.lib-featured-desc {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(11, 48, 68, .72);
  margin-bottom: 16px;
}

.lib-featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(11, 48, 68, .50);
}

.lib-featured-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.lib-featured-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.lib-featured-tags span {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(11, 48, 68, .08);
  background: rgba(255, 255, 255, .72);
  font-size: 11px;
  font-weight: 700;
  color: rgba(11, 48, 68, .58);
}

.lib-featured-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── Card Grid ── */

.lib-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.lib-card {
  border-radius: 22px;
  border: 1px solid rgba(11, 48, 68, .08);
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 10px 28px rgba(11, 48, 68, .05);
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 240ms var(--ease),
    box-shadow 240ms var(--ease),
    border-color 240ms var(--ease);
  will-change: transform;
}

.lib-card:hover {
  transform: translateY(-6px);
  border-color: rgba(74, 126, 194, .18);
  box-shadow: 0 22px 48px rgba(11, 48, 68, .13);
}

.lib-card-cover {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.lib-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.lib-card:hover .lib-card-cover img {
  transform: scale(1.06);
}

.lib-card-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 48, 68, .02) 0%, rgba(11, 48, 68, .18) 100%);
  pointer-events: none;
}

.lib-card-type {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .30);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy);
}

.lib-card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  min-height: 160px;
}

.lib-card-title {
  font-size: 17px;
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin-bottom: 8px;
  transition: transform 220ms var(--ease);
}

.lib-card:hover .lib-card-title {
  transform: translateY(-1px);
}

.lib-card-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(11, 48, 68, .65);
  margin-bottom: auto;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lib-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(11, 48, 68, .06);
}

.lib-card-date {
  font-size: 12px;
  font-weight: 700;
  color: rgba(11, 48, 68, .45);
}

.lib-card-cta {
  font-size: 12px;
  font-weight: 800;
  color: var(--blue);
  transition: transform 180ms var(--ease);
}

.lib-card:hover .lib-card-cta {
  transform: translateX(4px);
}

/* ── Modal ── */

.lib-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(11, 48, 68, .48);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.lib-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lib-modal-box {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border-radius: 24px;
  border: 1px solid rgba(11, 48, 68, .08);
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 36px 90px rgba(11, 48, 68, .22);
  transform: translateY(14px) scale(.97);
  transition: transform 280ms var(--ease);
}

.lib-modal-overlay.active .lib-modal-box {
  transform: translateY(0) scale(1);
}

.lib-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(11, 48, 68, .10);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(6px);
  color: var(--navy);
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  transition: background var(--speed) var(--ease);
}

.lib-modal-close:hover {
  background: rgba(74, 126, 194, .08);
}

.lib-modal-cover {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.lib-modal-content {
  padding: 30px 32px 32px;
}

.lib-modal-category {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
}

.lib-modal-content h2 {
  font-size: clamp(24px, 2.5vw, 30px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--navy);
}

.lib-modal-meta {
  display: flex;
  gap: 18px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(11, 48, 68, .50);
}

.lib-modal-desc {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(11, 48, 68, .72);
  margin-bottom: 20px;
}

.lib-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.lib-modal-tags span {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(11, 48, 68, .08);
  background: rgba(255, 255, 255, .72);
  font-size: 12px;
  font-weight: 700;
  color: rgba(11, 48, 68, .58);
}

.lib-modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── Empty State ── */

.lib-empty {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  text-align: center;
}

.lib-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: .5;
}

.lib-empty h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--navy);
}

.lib-empty p {
  font-size: 14px;
  color: rgba(11, 48, 68, .55);
}

/* ── Responsive ── */

@media (max-width: 1100px) {
  .lib-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 940px) {
  .lib-hero {
    padding: 100px 0 48px;
  }

  .lib-featured {
    grid-template-columns: 1fr;
  }

  .lib-featured-cover {
    min-height: 220px;
  }

  .lib-featured-body {
    padding: 26px 24px;
  }

  .lib-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .lib-search {
    min-width: 100%;
    max-width: 100%;
  }

  .lib-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .lib-modal-cover {
    height: 200px;
  }

  .lib-modal-content {
    padding: 24px 22px 26px;
  }
}

@media (max-width: 600px) {
  .lib-hero h1 {
    font-size: 30px;
  }

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

  .lib-card-cover {
    height: 160px;
  }

  .lib-featured-title {
    font-size: 22px;
  }

  .lib-modal-box {
    border-radius: 18px;
  }

  .lib-modal-cover {
    height: 160px;
  }
}