:root {
  --blue: #1764d8;
  --blue-dark: #0f3f91;
  --blue-button: #2563eb;
  --blue-button-dark: #1d4ed8;

  --teal: #268c87;
  --purple: #6847a8;

  --text: #111827;
  --muted: #374151;
  --soft-muted: #6b7280;

  --header-bg: #f4f5f7;
  --section-bg: #f8fafc;
  --border: #e5e7eb;
  --white: #ffffff;
  --header-offset: 116px;

  --container: 1160px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-offset) + 20px);
}

body {
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  padding-top: var(--header-offset);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

.container {
  width: min(var(--container), calc(100% - 64px));
  margin: 0 auto;
}

/* =========================
   HEADER
========================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: var(--header-bg);
  border-bottom: 1px solid #e9ebef;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(14px);
  animation: headerFade 0.7s ease both;
  z-index: 100;
}

.header-inner {
  min-height: 116px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 46px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-image-link {
  line-height: 0;
  transform: translateX(-34px);
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  width: 240px;
  height: auto;
  object-fit: contain;
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #e9ebef;
  border-radius: 11px;
  background: #ffffff;
  color: #1f2937;
  font-size: 0.96rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.05);
  transition:
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle.is-open {
  color: var(--blue-button);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}

.mobile-menu-toggle i {
  font-size: 0.95rem;
}

/* =========================
   MAIN NAV
========================= */

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #1f2937;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.nav-link i {
  font-size: 0.94rem;
}

.nav-link:hover,
.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown:focus-within .nav-dropdown-toggle,
.nav-dropdown.is-open .nav-dropdown-toggle {
  color: var(--blue-button);
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 14px;
  background: transparent;
  z-index: 190;
}

.nav-dropdown-toggle .fa-chevron-down {
  font-size: 0.72rem;
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-toggle .fa-chevron-down,
.nav-dropdown:focus-within .nav-dropdown-toggle .fa-chevron-down,
.nav-dropdown.is-open .nav-dropdown-toggle .fa-chevron-down {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease;
  z-index: 200;
}

.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
  background: transparent;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-dropdown-item {
  display: block;
  padding: 11px 12px;
  border-radius: 10px;
  color: #1f2937;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.2;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.nav-dropdown-item:hover {
  color: var(--blue-button);
  background: #eff6ff;
  transform: translateX(2px);
}

.header-button {
  margin-left: auto;
  margin-right: -34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 10px;
  background: linear-gradient(180deg, #2f73ff 0%, #185bdc 100%);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.header-button i {
  font-size: 1rem;
}

.header-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.28);
}

.header-button-mobile {
  display: none;
}

/* =========================
   HERO SLIDER
========================= */

.hero-slider {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  background:
    linear-gradient(
      90deg,
      #07192f 0%,
      #07192f 30%,
      #1d3148 46%,
      #596777 68%,
      #8d98a5 86%,
      #aeb7c1 100%
    );
}

.hero-track {
  display: flex;
  width: 100%;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.hero-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  overflow: hidden;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(2, 20, 43, 0.96) 0%,
      rgba(2, 20, 43, 0.90) 28%,
      rgba(2, 20, 43, 0.68) 48%,
      rgba(2, 20, 43, 0.22) 78%,
      rgba(2, 20, 43, 0.10) 100%
    );
}

.hero-inner {
  min-height: 560px;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 70px;
  padding: 26px 0 72px;
}

.hero-content {
  position: relative;
  z-index: 4;
  flex: 0 0 520px;
  max-width: 520px;
  color: var(--white);
  transform: translateX(-34px);
}

.hero-content h1 {
  font-size: clamp(2.45rem, 4.1vw, 4.15rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.055em;
  margin-bottom: 22px;
  text-wrap: balance;
}

.hero-content p {
  max-width: 520px;
  font-size: 1.22rem;
  line-height: 1.58;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0;
  text-align: left;
  text-wrap: pretty;
}

.hero-visual {
  position: relative;
  z-index: 3;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
  transform: translateX(34px);
}

.hero-image {
  display: block;
  width: min(100%, 640px);
  height: auto;
  max-height: 410px;
  object-fit: contain;
  object-position: center;
  border-radius: 14px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.18);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 11px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.hero-dot:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.68);
}

.hero-dot.is-active {
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.14);
}

/* =========================
   QUIÉNES SOMOS / PÁGINAS NOSOTROS
========================= */

.about-section {
  background: #ffffff;
  border-bottom: 1px solid #eef0f3;
  padding: 88px 0;
}

.about-inner {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 68px;
}

.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-logo-card {
  width: 100%;
  min-height: 330px;
  padding: 48px;
  border: 1px solid #e9ebef;
  border-radius: 26px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.08);
}

.about-logo {
  width: min(100%, 420px);
  height: auto;
  object-fit: contain;
}

.about-content h1,
.about-content h2 {
  font-size: clamp(2.1rem, 3.4vw, 3.2rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.045em;
  color: #111827;
  margin-bottom: 24px;
}

.about-content p {
  font-size: 1.08rem;
  line-height: 1.75;
  color: #374151;
  margin-bottom: 16px;
  text-align: justify;
}

.about-content p:last-child {
  margin-bottom: 0;
}

/* =========================
   ABOUT PAGE ENHANCEMENT
========================= */

.about-section-page {
  min-height: calc(100vh - 228px);
  padding: 96px 0 88px;
  background:
    radial-gradient(circle at 78% 22%, rgba(23, 100, 216, 0.045), transparent 24%),
    #ffffff;
}

.about-section-page .about-inner {
  align-items: center;
}

.about-section-page .about-logo-card {
  min-height: 365px;
  background: linear-gradient(145deg, #f8fafc 0%, #ffffff 52%, #f3f6fb 100%);
  border: 1px solid rgba(229, 231, 235, 0.95);
  box-shadow:
    0 30px 70px rgba(15, 23, 42, 0.14),
    0 16px 30px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  animation: aboutImageReveal 0.9s ease both;
}

.about-section-page .about-logo {
  filter: drop-shadow(0 10px 16px rgba(15, 23, 42, 0.08));
}

.about-section-page .about-content {
  position: relative;
  padding-left: 30px;
}

.about-section-page .about-content::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 84px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--blue-button), #60a5fa);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24);
  animation: aboutAccentReveal 0.8s ease both;
}

.about-section-page .about-content h1 {
  position: relative;
  display: inline-block;
  font-size: clamp(2.35rem, 3.5vw, 3.45rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: #07192f;
  margin-bottom: 34px;
  animation: aboutTitleReveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.about-section-page .about-content h1::after {
  content: "";
  position: absolute;
  left: 2px;
  bottom: -13px;
  width: 92px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-button), #7dd3fc);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.24);
}

.about-section-page .about-content p {
  max-width: 760px;
  font-size: 1.08rem;
  line-height: 1.78;
  color: #263244;
  text-align: justify;
  margin-bottom: 18px;
  padding: 2px 0;
  animation: aboutParagraphReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.about-section-page .about-content p:nth-of-type(1) {
  animation-delay: 0.12s;
}

.about-section-page .about-content p:nth-of-type(2) {
  animation-delay: 0.22s;
}

.about-section-page .about-content p:nth-of-type(3) {
  animation-delay: 0.32s;
}

.about-section-page .about-content p:nth-of-type(4) {
  animation-delay: 0.42s;
}

.about-section-page .about-content p:last-child {
  margin-bottom: 0;
}

/* =========================
   ABOUT ILLUSTRATION CARD
========================= */

.about-image-card {
  padding: 28px;
  overflow: hidden;
}

.about-illustration {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  object-fit: contain;
  border-radius: 20px;
  filter: drop-shadow(0 14px 24px rgba(15, 23, 42, 0.10));
}

/* =========================
   PRINCIPLES PREZI JOURNEY
========================= */

.principles-page {
  --route-dash-offset: 2600;

  position: relative;
  overflow: hidden;
  padding-bottom: 96px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f9fbff 48%, #ffffff 100%);
}

.principles-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.26;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

.principles-hero {
  position: relative;
  padding: 46px 0 42px;
  z-index: 2;
}

.principles-hero-inner {
  max-width: 850px;
  text-align: center;
}

.principles-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--blue-button);
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
  backdrop-filter: blur(14px);
  animation: principleFadeUp 0.75s ease both;
}

.principles-hero h1 {
  margin-top: 18px;
  font-size: clamp(2.55rem, 5vw, 4.6rem);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.065em;
  color: #07192f;
  animation: principleZoomTitle 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.principles-hero p {
  max-width: 760px;
  margin: 20px auto 0;
  font-size: 1.17rem;
  line-height: 1.68;
  color: #374151;
  animation: principleFadeUp 0.8s ease 0.18s both;
}

.principles-journey {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  padding-bottom: 88px;
}

.principles-map {
  position: sticky;
  top: 24px;
  align-self: start;
}

.principles-map-card {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  padding: 24px;
  border: 1px solid rgba(229, 231, 235, 0.92);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
  box-shadow:
    0 30px 72px rgba(15, 23, 42, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px);
}

.map-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 28px;
}

.map-header span {
  color: #475569;
  font-size: 0.92rem;
  font-weight: 700;
}

.map-header strong {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--blue-button);
  font-size: 0.85rem;
  font-weight: 800;
}

.route-line {
  position: absolute;
  left: 45px;
  top: 92px;
  bottom: 38px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.16), rgba(37, 99, 235, 0.04));
  overflow: hidden;
}

.route-glow {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 42%;
  border-radius: inherit;
  background: linear-gradient(180deg, #2563eb, #7dd3fc);
  box-shadow: 0 0 22px rgba(37, 99, 235, 0.45);
  animation: routeGlowMove 6s ease-in-out infinite alternate;
}

.principle-node {
  position: relative;
  z-index: 3;
  width: 100%;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding: 12px 12px 12px 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: #334155;
  text-align: left;
  cursor: pointer;
  transition:
    background-color 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease,
    color 0.22s ease;
}

.principle-node span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid rgba(37, 99, 235, 0.14);
  color: var(--blue-button);
  font-size: 0.83rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  transition:
    background-color 0.22s ease,
    color 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.principle-node strong {
  font-size: 0.98rem;
  line-height: 1.25;
  font-weight: 800;
}

.principle-node:hover,
.principle-node.is-active {
  background: rgba(255, 255, 255, 0.88);
  color: #07192f;
  transform: translateX(4px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.principle-node:hover span,
.principle-node.is-active span {
  background: linear-gradient(180deg, #2f73ff 0%, #185bdc 100%);
  color: #ffffff;
  transform: scale(1.06);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.26);
}

/* =========================
   PRINCIPLES ZIGZAG ROUTE
========================= */

.principles-stops {
  position: relative;
  min-height: 3020px;
  perspective: 1200px;
  padding: 18px 0 120px;
}

.principles-stops::before {
  display: none;
}

.principles-zigzag-route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.95;
}

.principles-zigzag-route-base,
.principles-zigzag-route-progress {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.principles-zigzag-route-base {
  stroke: rgba(37, 99, 235, 0.15);
  stroke-width: 5;
  stroke-dasharray: 10 18;
}

.principles-zigzag-route-progress {
  stroke: url("#route-gradient");
  stroke-width: 6;
  stroke-dasharray: 2600;
  stroke-dashoffset: var(--route-dash-offset, 2600);
  transition: stroke-dashoffset 0.95s cubic-bezier(0.22, 1, 0.36, 1);
  marker-end: url("#route-arrow");
  filter: drop-shadow(0 10px 18px rgba(37, 99, 235, 0.20));
}

.principle-stop {
  position: relative;
  z-index: 2;
  min-height: 470px;
  display: flex;
  align-items: center;
  padding: 34px 0;
  scroll-margin-top: 130px;
}

.principle-stop--right {
  justify-content: flex-end;
}

.principle-stop--left {
  justify-content: flex-start;
}

.principle-stop:nth-of-type(2) {
  margin-top: 8px;
}

.principle-stop:nth-of-type(3),
.principle-stop:nth-of-type(5) {
  transform: translateY(24px);
}

.principle-stop:nth-of-type(4),
.principle-stop:nth-of-type(6) {
  transform: translateY(44px);
}

.principle-card {
  position: relative;
  width: min(100%, 620px);
  min-height: 330px;
  padding: 52px;
  border: 1px solid rgba(229, 231, 235, 0.92);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
  box-shadow:
    0 36px 82px rgba(15, 23, 42, 0.11),
    0 16px 34px rgba(37, 99, 235, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  overflow: hidden;
  opacity: 0.42;
  transition:
    opacity 0.55s ease,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.55s ease;
}

.principle-card::before {
  display: none;
}

.principle-card::after {
  content: "";
  position: absolute;
  left: 44px;
  right: 44px;
  top: 0;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #7dd3fc, rgba(125, 211, 252, 0));
}

.principle-stop--right .principle-card {
  transform: scale(0.9) translateY(38px) rotateX(6deg) rotateZ(1deg);
}

.principle-stop--left .principle-card {
  transform: scale(0.9) translateY(38px) rotateX(6deg) rotateZ(-1deg);
}

.principle-stop.is-active .principle-card {
  opacity: 1;
  transform: scale(1) translateY(0) rotateX(0) rotateZ(0);
  box-shadow:
    0 44px 92px rgba(15, 23, 42, 0.15),
    0 22px 44px rgba(37, 99, 235, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.principle-stop::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 5px solid #2563eb;
  box-shadow:
    0 12px 24px rgba(37, 99, 235, 0.24),
    0 0 0 10px rgba(37, 99, 235, 0.08);
  transform: translateY(-50%) scale(0.72);
  opacity: 0.46;
  transition:
    transform 0.35s ease,
    opacity 0.35s ease,
    box-shadow 0.35s ease;
  z-index: 3;
}

.principle-stop--right::before {
  left: 23%;
}

.principle-stop--left::before {
  right: 23%;
}

.principle-stop.is-active::before {
  opacity: 1;
  transform: translateY(-50%) scale(1);
  box-shadow:
    0 16px 30px rgba(37, 99, 235, 0.28),
    0 0 0 14px rgba(37, 99, 235, 0.10);
}

.principle-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 24px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #ffffff, #eff6ff);
  color: var(--blue-button);
  box-shadow:
    0 18px 32px rgba(37, 99, 235, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.principle-icon i {
  font-size: 2rem;
}

.principle-step {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--blue-button);
  font-size: 0.88rem;
  font-weight: 800;
  margin-bottom: 18px;
}

.principle-card h2 {
  position: relative;
  z-index: 2;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.055em;
  color: #07192f;
  margin-bottom: 24px;
}

.principle-card p {
  position: relative;
  z-index: 2;
  max-width: 650px;
  font-size: 1.18rem;
  line-height: 1.75;
  color: #334155;
}


/* =========================
   PRINCIPLE VISUAL CARDS
========================= */

.principle-stop--with-image {
  display: grid;
  grid-template-columns: minmax(330px, 410px) minmax(520px, 620px);
  align-items: center;
  justify-content: end;
  gap: clamp(56px, 6vw, 92px);
  width: 100%;
}

.principle-stop--with-image .principle-card {
  width: 100%;
  max-width: 620px;
  padding: 52px;
}

.principle-stop--with-image.principle-stop--right::before {
  left: 41%;
}

.principle-visual {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 410px;
  min-height: 420px;
  height: min(38vw, 470px);
  justify-self: end;
  border: 1px solid rgba(229, 231, 235, 0.92);
  border-radius: 34px;
  background: #07192f;
  overflow: hidden;
  opacity: 0.42;
  transform: scale(0.9) translateY(38px) rotateX(6deg) rotateZ(-1deg);
  box-shadow:
    0 38px 82px rgba(15, 23, 42, 0.18),
    0 20px 44px rgba(37, 99, 235, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  transition:
    opacity 0.55s ease,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.55s ease;
}

.principle-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(7, 25, 47, 0.08)),
    radial-gradient(circle at 50% 18%, rgba(125, 211, 252, 0.18), transparent 46%);
}

.principle-visual::after {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 3;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
}

.principle-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  filter: saturate(1.04) contrast(1.05);
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.principle-stop.is-active .principle-visual {
  opacity: 1;
  transform: scale(1) translateY(0) rotateX(0) rotateZ(0);
  box-shadow:
    0 48px 96px rgba(15, 23, 42, 0.22),
    0 24px 54px rgba(37, 99, 235, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.principle-stop.is-active .principle-visual img {
  transform: scale(1);
}

@media (max-width: 1180px) and (min-width: 981px) {
  .principle-stop--with-image {
    grid-template-columns: minmax(280px, 350px) minmax(460px, 600px);
    gap: clamp(38px, 4.8vw, 64px);
  }

  .principle-visual {
    max-width: 350px;
    min-height: 380px;
    height: min(38vw, 430px);
  }

  .principle-stop--with-image .principle-card {
    max-width: 600px;
    padding: 48px;
  }
}

/* =========================
   PRINCIPLES FLOATING CONTROLS
========================= */

.principles-floating-controls {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 80;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(229, 231, 235, 0.92);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow:
    0 20px 48px rgba(15, 23, 42, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.principles-control-btn {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(229, 231, 235, 0.95);
  border-radius: 999px;
  background: #ffffff;
  color: #1f2937;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 0.94rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease,
    background-color 0.2s ease,
    opacity 0.2s ease;
}

.principles-control-btn:hover {
  transform: translateY(-2px);
  color: var(--blue-button);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.10);
}

.principles-control-btn-primary {
  background: linear-gradient(180deg, #2f73ff 0%, #185bdc 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
}

.principles-control-btn-primary:hover {
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.30);
}

.principles-control-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.principles-control-status {
  min-width: 118px;
  text-align: center;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
}

/* =========================
   VALUE SECTION
========================= */

.value-section {
  background: var(--section-bg);
  border-top: 1px solid #eef0f3;
  border-bottom: 1px solid #eef0f3;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 300px;
}

.value-card {
  text-align: center;
  padding: 48px 34px 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.value-card:hover {
  background-color: #ffffff;
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.value-card:not(:last-child) {
  border-right: 1px solid var(--border);
}

.value-icon {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.value-icon i {
  font-size: 2.7rem;
  line-height: 1;
  transition: transform 0.25s ease;
}

.value-card:hover .value-icon i {
  transform: scale(1.08);
}

.icon-blue {
  color: var(--blue);
}

.icon-teal {
  color: var(--teal);
}

.icon-purple {
  color: var(--purple);
}

.value-card h2 {
  font-size: 1.35rem;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 14px;
  color: #111827;
}

.value-card p {
  width: 100%;
  max-width: 315px;
  align-self: flex-start;
  font-size: 1.06rem;
  line-height: 1.65;
  color: #1f2937;
  text-align: left;
}

/* =========================
   FOOTER
========================= */

.site-footer {
  background: #ffffff;
}

.footer-inner {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #1f2937;
  text-align: center;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--blue);
  font-size: 1.08rem;
  font-weight: 600;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.footer-link:hover {
  color: var(--blue-button-dark);
  transform: translateY(-2px);
}

.footer-link i {
  font-size: 1.35rem;
}

.footer-separator {
  width: 1px;
  height: 30px;
  background: var(--border);
}

.footer-top p {
  font-size: 1.02rem;
  font-weight: 500;
}

.footer-note {
  font-size: 0.95rem;
  font-weight: 500;
  color: #4b5563;
}

/* =========================
   SCROLL ANIMATIONS
========================= */

.animations-ready .reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.animations-ready .reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   KEYFRAMES
========================= */

@keyframes headerFade {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes aboutImageReveal {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.97);
    filter: blur(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes aboutTitleReveal {
  from {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes aboutParagraphReveal {
  from {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes aboutAccentReveal {
  from {
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
  }

  to {
    opacity: 1;
    transform: scaleY(1);
    transform-origin: top;
  }
}

@keyframes principleFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes principleZoomTitle {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(18px);
    filter: blur(6px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}

@keyframes routeGlowMove {
  from {
    height: 18%;
    opacity: 0.65;
  }

  to {
    height: 88%;
    opacity: 1;
  }
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {
  .brand-image-link {
    transform: translateX(-22px);
  }

  .header-left {
    gap: 30px;
  }

  .main-nav {
    gap: 14px;
  }

  .nav-link {
    padding: 0 14px;
    font-size: 0.92rem;
  }

  .header-button {
    margin-right: -22px;
    padding: 0 18px;
  }

  .hero-inner {
    gap: 42px;
  }

  .hero-content {
    flex-basis: 480px;
    max-width: 480px;
    transform: translateX(-22px);
  }

  .hero-visual {
    transform: translateX(22px);
  }

  .hero-image {
    width: min(100%, 560px);
    max-height: 380px;
  }

  .about-inner {
    gap: 46px;
  }
}

@media (max-width: 980px) {
  :root {
    --header-offset: 104px;
  }

  .header-inner {
    min-height: 104px;
    flex-wrap: wrap;
    row-gap: 14px;
    padding: 16px 0;
  }

  .header-left {
    width: 100%;
    justify-content: space-between;
  }

  .brand-image-link {
    transform: none;
  }

  .main-nav {
    margin-left: auto;
  }

  .header-button {
    margin-left: auto;
    margin-right: 0;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .about-logo-card {
    min-height: 260px;
  }

  .about-content h1,
  .about-content h2 {
    text-align: center;
  }

  .about-content p {
    text-align: center;
  }

  .about-section-page {
    padding: 72px 0;
  }

  .about-section-page .about-content {
    padding-left: 0;
  }

  .about-section-page .about-content::before {
    display: none;
  }

  .about-section-page .about-content h1 {
    display: block;
    text-align: center;
    margin-bottom: 34px;
  }

  .about-section-page .about-content h1::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .about-section-page .about-content p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .principles-hero {
    padding: 42px 0 34px;
  }

  .principles-journey {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 64px;
  }

  .principles-map {
    position: relative;
    top: auto;
  }

  .principles-map-card {
    min-height: auto;
    padding: 20px;
  }

  .route-line,
  .principles-zigzag-route {
    display: none;
  }

  .principle-node {
    grid-template-columns: 38px 1fr;
    margin-bottom: 10px;
    padding: 10px;
  }

  .principle-node span {
    width: 38px;
    height: 38px;
  }

  .principles-stops {
    min-height: auto;
    padding: 10px 0 110px;
  }

  .principle-stop,
  .principle-stop--right,
  .principle-stop--left {
    min-height: auto;
    justify-content: center;
    transform: none;
    padding: 18px 0;
  }

  .principle-stop::before {
    display: none;
  }

  .principle-card,
  .principle-stop--right .principle-card,
  .principle-stop--left .principle-card {
    width: 100%;
    min-height: auto;
    padding: 40px;
    opacity: 1;
    transform: none;
  }

  .principle-stop.is-active .principle-card {
    transform: none;
  }


  .principle-stop--with-image {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 30px;
    width: 100%;
  }

  .principle-stop--with-image .principle-card {
    width: 100%;
    max-width: 720px;
    padding: 40px;
  }

  .principle-visual,
  .principle-stop.is-active .principle-visual {
    width: 100%;
    max-width: 720px;
    min-height: 320px;
    height: 360px;
    justify-self: center;
    opacity: 1;
    transform: none;
  }

  .principle-visual img,
  .principle-stop.is-active .principle-visual img {
    transform: scale(1);
  }

  .principles-floating-controls {
    width: min(100% - 32px, 520px);
    justify-content: space-between;
    border-radius: 24px;
  }

  .principles-control-btn {
    min-height: 42px;
    padding: 0 14px;
    font-size: 0.88rem;
  }

  .principles-control-status {
    min-width: auto;
    font-size: 0.84rem;
  }
}

@media (max-width: 900px) {
  .container {
    width: min(100% - 40px, var(--container));
  }

  .brand-logo {
    width: 210px;
  }

  .header-button {
    min-height: 46px;
    padding: 0 18px;
    border-radius: 9px;
    font-size: 0.94rem;
  }

  .hero-slider {
    min-height: auto;
    background:
      linear-gradient(
        180deg,
        #07192f 0%,
        #07192f 72%,
        #24384c 100%
      );
  }

  .hero-shade {
    background:
      linear-gradient(
        180deg,
        rgba(2, 20, 43, 0.96) 0%,
        rgba(2, 20, 43, 0.90) 58%,
        rgba(2, 20, 43, 0.28) 100%
      );
  }

  .hero-inner {
    min-height: auto;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    padding: 42px 0 58px;
  }

  .hero-content {
    flex: none;
    max-width: 620px;
    text-align: center;
    transform: none;
  }

  .hero-content h1 {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(2.05rem, 7.2vw, 3.05rem);
    line-height: 1.08;
    letter-spacing: -0.05em;
    margin-bottom: 20px;
  }

  .hero-content p {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.04rem;
    line-height: 1.58;
    text-align: center;
  }

  .hero-visual {
    width: 100%;
    justify-content: center;
    transform: none;
  }

  .hero-image {
    width: min(100%, 620px);
    max-height: none;
    border-radius: 12px;
  }

  .hero-dots {
    bottom: 22px;
  }

  .value-grid {
    grid-template-columns: 1fr;
  }

  .value-card {
    padding: 42px 24px;
  }

  .value-card:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .value-card p {
    text-align: left;
  }
}

@media (max-width: 680px) {
  :root {
    --header-offset: 88px;
  }

  .container {
    width: min(100% - 40px, var(--container));
  }

  .header-inner {
    min-height: auto;
    padding: 16px 0;
    align-items: stretch;
  }

  .header-left {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 14px;
  }

  .brand-image-link {
    transform: none;
  }

  .brand-logo {
    width: 190px;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .header-button-desktop {
    display: none;
  }

  .main-nav {
    grid-column: 1 / -1;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-left: 0;
    padding-top: 10px;
  }

  .main-nav.is-open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    padding: 0 16px;
    background: #ffffff;
    border: 1px solid #e9ebef;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.04);
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown::after {
    display: none;
  }

  .nav-dropdown-menu {
    position: static;
    width: 100%;
    min-width: 0;
    margin-top: 8px;
    padding: 0 10px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: none;
    pointer-events: none;
    border-radius: 14px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.10);
  }

  .nav-dropdown-menu::before {
    display: none;
  }

  .nav-dropdown.is-open .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    padding: 10px;
    max-height: 260px;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .nav-dropdown-item {
    text-align: center;
    padding: 13px 12px;
  }

  .header-button-mobile {
    display: inline-flex;
    width: 100%;
    min-height: 48px;
    margin: 0;
    justify-content: center;
    border-radius: 12px;
  }

  .about-section {
    padding: 58px 0;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .about-logo-card {
    min-height: 220px;
    padding: 34px 28px;
    border-radius: 22px;
  }

  .about-logo {
    width: min(100%, 300px);
  }

  .about-image-card {
    padding: 18px;
  }

  .about-illustration {
    max-width: 100%;
    border-radius: 16px;
  }

  .about-content h1,
  .about-content h2 {
    text-align: center;
    margin-bottom: 20px;
  }

  .about-content p {
    font-size: 0.98rem;
    line-height: 1.68;
    text-align: center;
  }

  .principles-hero {
    padding: 38px 0 30px;
  }

  .principles-kicker {
    font-size: 0.86rem;
  }

  .principles-hero p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .principles-map-card {
    border-radius: 22px;
  }

  .principle-node {
    grid-template-columns: 36px 1fr;
  }

  .principle-node strong {
    font-size: 0.92rem;
  }

  .principle-card {
    padding: 34px 26px;
    border-radius: 26px;
    text-align: center;
  }

  .principle-card::after {
    left: 32px;
    right: 32px;
  }

  .principle-icon {
    margin-left: auto;
    margin-right: auto;
    width: 64px;
    height: 64px;
    border-radius: 22px;
  }

  .principle-card p {
    font-size: 1rem;
    line-height: 1.66;
  }

  .principle-stop--with-image {
    gap: 24px;
  }

  .principle-visual,
  .principle-stop.is-active .principle-visual {
    height: 300px;
    min-height: 280px;
    border-radius: 24px;
  }

  .principle-visual::after {
    inset: 14px;
    border-radius: 20px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .header-inner {
    padding: 16px 0;
    gap: 14px;
  }

  .brand-logo {
    width: 178px;
  }

  .mobile-menu-toggle {
    min-height: 42px;
    padding: 0 14px;
    font-size: 0.9rem;
  }

  .header-button {
    min-height: 44px;
    padding: 0 14px;
    border-radius: 9px;
    gap: 8px;
    font-size: 0.86rem;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.20);
  }

  .header-button i {
    font-size: 0.86rem;
  }

  .hero-inner {
    padding: 34px 0 54px;
    gap: 24px;
    align-items: center;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
    transform: none;
  }

  .hero-content h1 {
    max-width: 100%;
    font-size: clamp(2rem, 8.4vw, 2.48rem);
    line-height: 1.08;
    letter-spacing: -0.052em;
    margin-bottom: 18px;
    text-align: center;
  }

  .hero-content p {
    max-width: 100%;
    font-size: 0.98rem;
    line-height: 1.58;
    text-align: center;
  }

  .hero-image {
    width: 100%;
    border-radius: 11px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
  }

  .hero-dots {
    bottom: 18px;
  }

  .about-section-page {
    padding: 56px 0;
  }

  .about-section-page .about-logo-card {
    min-height: 230px;
    padding: 34px 26px;
  }

  .about-section-page .about-image-card {
    padding: 18px;
  }

  .about-section-page .about-content h1 {
    font-size: clamp(2rem, 8vw, 2.45rem);
  }

  .about-section-page .about-content p {
    font-size: 0.98rem;
    line-height: 1.68;
  }

  .principle-visual,
  .principle-stop.is-active .principle-visual {
    height: 260px;
    min-height: 240px;
    border-radius: 22px;
  }

  .principle-stop--with-image .principle-card {
    padding: 34px 26px;
  }

  .value-card {
    padding: 38px 24px;
  }

  .value-icon {
    margin-bottom: 16px;
  }

  .value-icon i {
    font-size: 2.25rem;
  }

  .value-card h2 {
    font-size: 1.22rem;
  }

  .value-card p {
    font-size: 0.98rem;
    line-height: 1.58;
    text-align: left;
  }

  .footer-inner {
    min-height: auto;
    padding: 24px 0;
    gap: 10px;
  }

  .footer-top {
    gap: 14px;
    text-align: center;
    flex-direction: column;
  }

  .footer-separator {
    display: none;
  }

  .footer-note {
    max-width: 280px;
    font-size: 0.9rem;
    line-height: 1.5;
  }
}

@media (max-width: 520px) {
  .principles-floating-controls {
    gap: 8px;
    padding: 8px;
  }

  .principles-control-btn span {
    display: none;
  }

  .principles-control-btn {
    width: 42px;
    height: 42px;
    padding: 0;
  }

  .principles-control-status {
    font-size: 0.8rem;
  }
}

@media (max-width: 430px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .header-left {
    grid-template-columns: 1fr;
  }

  .brand-logo {
    width: 170px;
  }

  .mobile-menu-toggle {
    width: 100%;
  }

  .nav-link {
    justify-content: center;
  }

  .hero-inner {
    padding: 30px 0 50px;
    gap: 22px;
    align-items: center;
  }

  .hero-content {
    text-align: center;
    transform: none;
  }

  .hero-content h1 {
    font-size: clamp(1.82rem, 8vw, 2.1rem);
    text-align: center;
    margin-bottom: 16px;
  }

  .hero-content p {
    font-size: 0.94rem;
    line-height: 1.55;
    text-align: center;
  }

  .hero-dots {
    bottom: 16px;
  }

  .principle-visual,
  .principle-stop.is-active .principle-visual {
    height: 220px;
    min-height: 210px;
    border-radius: 20px;
  }

  .principle-visual::after {
    inset: 12px;
    border-radius: 16px;
  }
}

/* =========================
   ACCESSIBILITY
========================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .hero-track {
    transition: none !important;
  }
}

/* =========================
   MOBILE PRINCIPLES ROUTE FIX
   Mantiene visible el camino y los nodos entre tarjetas
========================= */

@media (max-width: 980px) {
  .principles-stops {
    position: relative;
    padding: 28px 0 150px;
  }

  .principles-stops::before {
    content: "";
    position: absolute;
    display: block;
    top: 26px;
    bottom: 116px;
    left: 50%;
    width: 4px;
    border-radius: 999px;
    transform: translateX(-50%);
    background:
      linear-gradient(
        180deg,
        rgba(37, 99, 235, 0),
        rgba(37, 99, 235, 0.28) 8%,
        rgba(56, 189, 248, 0.46) 50%,
        rgba(37, 99, 235, 0.28) 92%,
        rgba(37, 99, 235, 0)
      );
    box-shadow: 0 0 24px rgba(37, 99, 235, 0.18);
    pointer-events: none;
    z-index: 0;
  }

  .principle-stop,
  .principle-stop--right,
  .principle-stop--left {
    position: relative;
    z-index: 1;
    padding: 38px 0;
  }

  .principle-stop:first-of-type {
    padding-top: 12px;
  }

  .principle-stop:last-of-type {
    padding-bottom: 84px;
  }

  .principle-card,
  .principle-visual {
    position: relative;
    z-index: 2;
  }

  .principle-stop::before {
    content: "";
    position: absolute;
    display: block;
    left: 50% !important;
    right: auto !important;
    top: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    border: 5px solid #2563eb;
    box-shadow:
      0 14px 28px rgba(37, 99, 235, 0.22),
      0 0 0 13px rgba(37, 99, 235, 0.10);
    opacity: 0.74;
    transform: translate(-50%, -50%) scale(0.86);
    transition:
      transform 0.35s ease,
      opacity 0.35s ease,
      box-shadow 0.35s ease;
    z-index: 4;
  }

  .principle-stop:first-of-type::before {
    display: none;
  }

  .principle-stop.is-active::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    box-shadow:
      0 16px 32px rgba(37, 99, 235, 0.28),
      0 0 0 16px rgba(37, 99, 235, 0.12);
  }
}

@media (max-width: 680px) {
  .principles-stops {
    padding: 24px 0 150px;
  }

  .principles-stops::before {
    top: 22px;
    bottom: 118px;
    width: 3px;
  }

  .principle-stop,
  .principle-stop--right,
  .principle-stop--left {
    padding: 34px 0;
  }

  .principle-stop:last-of-type {
    padding-bottom: 82px;
  }

  .principle-stop::before {
    width: 22px;
    height: 22px;
    border-width: 5px;
    box-shadow:
      0 12px 24px rgba(37, 99, 235, 0.22),
      0 0 0 12px rgba(37, 99, 235, 0.10);
  }

  .principle-stop.is-active::before {
    box-shadow:
      0 14px 28px rgba(37, 99, 235, 0.28),
      0 0 0 14px rgba(37, 99, 235, 0.12);
  }
}

@media (max-width: 430px) {
  .principles-stops {
    padding-bottom: 144px;
  }

  .principle-stop,
  .principle-stop--right,
  .principle-stop--left {
    padding: 30px 0;
  }

  .principle-stop:last-of-type {
    padding-bottom: 76px;
  }
}

/* =========================
   HERO IMAGE DEFINITIVE FIX
   La imagen rellena completamente la tarjeta visual
========================= */

.hero-visual {
  position: relative !important;
  z-index: 3 !important;
  flex: 1 1 0 !important;
  width: 100% !important;
  max-width: 720px !important;
  height: min(34vw, 430px) !important;
  min-height: 360px !important;
  display: block !important;
  transform: translateX(34px);
  pointer-events: none;
  border-radius: 24px !important;
  overflow: hidden !important;
  background: rgba(255, 255, 255, 0.10);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.18);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      rgba(7, 25, 47, 0.10),
      rgba(7, 25, 47, 0.02)
    );
}

.hero-image {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  display: block !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: inherit !important;
  box-shadow: none !important;
}

@media (max-width: 1100px) {
  .hero-visual {
    max-width: 640px !important;
    height: 390px !important;
    min-height: 350px !important;
    transform: translateX(22px);
  }

  .hero-image {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    border-radius: inherit !important;
  }
}

@media (max-width: 900px) {
  .hero-visual {
    width: 100% !important;
    max-width: 620px !important;
    height: 360px !important;
    min-height: 320px !important;
    transform: none !important;
    border-radius: 22px !important;
  }

  .hero-image {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: inherit !important;
  }
}

@media (max-width: 560px) {
  .hero-visual {
    height: 280px !important;
    min-height: 250px !important;
    border-radius: 20px !important;
  }

  .hero-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: inherit !important;
  }
}

@media (max-width: 430px) {
  .hero-visual {
    height: 240px !important;
    min-height: 220px !important;
    border-radius: 18px !important;
  }
}

/* =========================
   NAV CURRENT
========================= */

.nav-link[aria-current="page"] {
  color: var(--blue-button);
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

/* =========================
   BITACORA PAGE
========================= */

.bitacora-page {
  position: relative;
  overflow: hidden;
  padding: 62px 0 108px;
  background:
    radial-gradient(circle at 18% 10%, rgba(125, 211, 252, 0.18), transparent 28%),
    radial-gradient(circle at 88% 16%, rgba(37, 99, 235, 0.10), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 42%, #ffffff 100%);
  isolation: isolate;
}

.bitacora-page::before,
.bitacora-page::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(14px);
  opacity: 0.42;
  z-index: 0;
}

.bitacora-page::before {
  width: 260px;
  height: 260px;
  left: -84px;
  top: 124px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.24), transparent 72%);
}

.bitacora-page::after {
  width: 360px;
  height: 360px;
  right: -110px;
  bottom: 112px;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.18), transparent 72%);
}

.bitacora-shell {
  position: relative;
  z-index: 2;
}

.bitacora-network {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  opacity: 0.62;
}

.bitacora-network line {
  stroke: rgba(148, 163, 184, 0.24);
  stroke-width: 2;
}

.bitacora-network circle {
  fill: rgba(191, 219, 254, 0.92);
}

.bitacora-network--top {
  width: min(34vw, 520px);
  right: -24px;
  top: 28px;
}

.bitacora-network--bottom {
  width: min(28vw, 360px);
  left: -48px;
  bottom: 116px;
}

.bitacora-dots {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  opacity: 0.48;
  background-image: radial-gradient(circle, rgba(148, 163, 184, 0.44) 0 2px, transparent 2.5px);
  background-size: 24px 24px;
}

.bitacora-dots--left {
  width: 138px;
  height: 102px;
  left: -10px;
  top: 196px;
}

.bitacora-dots--right {
  width: 116px;
  height: 92px;
  right: 48px;
  bottom: 202px;
}

.bitacora-hero {
  position: relative;
  max-width: 860px;
  margin-bottom: 34px;
}

.bitacora-kicker,
.bitacora-section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(239, 246, 255, 0.88);
  color: var(--blue-button);
  border: 1px solid rgba(37, 99, 235, 0.10);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
  font-size: 0.95rem;
  font-weight: 800;
}

.bitacora-kicker {
  animation: bitacoraFadeUp 0.75s ease both;
}

.bitacora-kicker-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #1d4ed8;
  box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.12);
}

.bitacora-hero h1 {
  margin-top: 18px;
  font-size: clamp(3.2rem, 6vw, 5rem);
  line-height: 0.94;
  letter-spacing: -0.075em;
  font-weight: 800;
  color: #07192f;
  animation: bitacoraTitleIn 0.82s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.bitacora-hero p {
  max-width: 760px;
  margin-top: 18px;
  font-size: 1.18rem;
  line-height: 1.62;
  color: #667085;
  animation: bitacoraFadeUp 0.78s ease 0.16s both;
}

.bitacora-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.36fr) minmax(330px, 0.94fr);
  gap: 30px;
  align-items: stretch;
  padding-top: 0;
}

.bitacora-feature-anchor,
.bitacora-side-anchor {
  min-width: 0;
  padding-top: 34px;
  scroll-margin-top: var(--header-offset);
}

.bitacora-feature-anchor {
  display: flex;
}

.bitacora-side-anchor {
  display: flex;
}

.bitacora-feature-card,
.bitacora-mini-card,
.bitacora-archive,
.bitacora-archive-card {
  border: 1px solid rgba(229, 231, 235, 0.92);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
  box-shadow:
    0 30px 72px rgba(15, 23, 42, 0.10),
    0 16px 30px rgba(37, 99, 235, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.bitacora-feature-card {
  --bitacora-feature-media-height: 224px;
  position: relative;
  width: 100%;
  height: auto;
  border-radius: 32px;
  overflow: hidden;
  animation: bitacoraFadeUp 0.8s ease 0.22s both;
}

.bitacora-feature-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.bitacora-feature-slide {
  display: flex;
  flex-direction: column;
  min-width: 100%;
  height: 100%;
}

.bitacora-feature-media {
  position: relative;
  flex: 0 0 var(--bitacora-feature-media-height);
  height: var(--bitacora-feature-media-height);
  min-height: var(--bitacora-feature-media-height);
  background: #dbeafe;
}

.bitacora-feature-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 25, 47, 0.08), rgba(7, 25, 47, 0.02) 35%, rgba(7, 25, 47, 0.18));
  pointer-events: none;
}

.bitacora-feature-media img,
.bitacora-feature-media video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: var(--bitacora-feature-media-height);
  object-fit: cover;
}

.bitacora-feature-media--video,
.bitacora-feature-video {
  background: #07192f;
}

.bitacora-feature-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 22px 28px 24px;
}

.bitacora-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.bitacora-meta-row--compact {
  justify-content: space-between;
}

.bitacora-tag,
.bitacora-date {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.95rem;
}

.bitacora-tag {
  color: var(--blue-button);
  font-weight: 700;
}

.bitacora-tag-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue-button);
}

.bitacora-date {
  color: #7c889d;
}

.bitacora-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 999px;
  background: rgba(239, 246, 255, 0.88);
  color: var(--blue-button);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  box-shadow:
    0 10px 22px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  animation: bitacoraBadgeFloat 1.9s ease-in-out infinite;
}

.bitacora-status-badge[hidden] {
  display: none;
}

.bitacora-status-badge-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #1d4ed8;
  box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.30);
  animation: bitacoraBadgePulse 1.9s ease-out infinite;
}

.bitacora-feature-body h2 {
  margin-top: 14px;
  font-size: clamp(1.48rem, 1.75vw, 1.72rem);
  line-height: 1.12;
  letter-spacing: -0.06em;
  color: #07192f;
}

.bitacora-feature-body p {
  margin-top: 14px;
  max-width: 100%;
  font-size: 1rem;
  line-height: 1.62;
  color: #5b6779;
}

.bitacora-feature-nav {
  position: absolute;
  top: calc(var(--bitacora-feature-media-height) / 2);
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14);
  transform: translateY(-50%);
  cursor: pointer;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    color 0.22s ease,
    background-color 0.22s ease;
}

.bitacora-feature-nav:hover {
  color: var(--blue-button);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.18);
}

.bitacora-feature-nav--prev {
  left: 18px;
}

.bitacora-feature-nav--next {
  right: 18px;
}

.bitacora-feature-dots {
  position: absolute;
  left: 50%;
  top: calc(var(--bitacora-feature-media-height) - 22px);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
}

.bitacora-feature-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.54);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.22);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.bitacora-feature-dot.is-active {
  transform: scale(1.25);
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.28);
}

.bitacora-primary-link,
.bitacora-secondary-link,
.bitacora-arrow-link {
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    color 0.22s ease,
    background-color 0.22s ease,
    border-color 0.22s ease;
}

.bitacora-primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  margin-top: auto;
  padding: 0 26px;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(135deg, #1f78ff, #1757dd);
  color: #ffffff;
  cursor: pointer;
  font-size: 1.02rem;
  font-weight: 800;
  box-shadow: 0 20px 32px rgba(37, 99, 235, 0.22);
  align-self: flex-start;
}

.bitacora-primary-link:hover,
.bitacora-secondary-link:hover,
.bitacora-arrow-link:hover {
  transform: translateY(-2px);
}

.bitacora-primary-link:hover {
  box-shadow: 0 24px 40px rgba(37, 99, 235, 0.28);
}

.bitacora-side-list {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 24px;
}

.bitacora-mini-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 22px;
  border-radius: 28px;
  animation: bitacoraFadeUp 0.8s ease both;
}

.bitacora-mini-card:nth-child(1) {
  animation-delay: 0.28s;
}

.bitacora-mini-card:nth-child(2) {
  animation-delay: 0.34s;
}

.bitacora-mini-card:nth-child(3) {
  animation-delay: 0.40s;
}

.bitacora-mini-icon {
  width: 112px;
  height: 112px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #f8fbff, #eaf2ff);
  color: var(--blue-button);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 16px 28px rgba(15, 23, 42, 0.07);
}

.bitacora-mini-icon i {
  font-size: 2.2rem;
}

.bitacora-mini-content {
  min-width: 0;
}

.bitacora-mini-content h3 {
  margin-top: 12px;
  max-width: 320px;
  font-size: 1.18rem;
  line-height: 1.16;
  letter-spacing: -0.04em;
  color: #07192f;
}

.bitacora-arrow-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  margin-top: 16px;
  border-radius: 50%;
  color: var(--blue-button);
  background: rgba(239, 246, 255, 0.78);
  cursor: pointer;
}

.bitacora-arrow-link:hover {
  background: #dbeafe;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.14);
}

.bitacora-arrow-link i {
  transition: transform 0.22s ease;
}

.bitacora-arrow-link.is-open i {
  transform: rotate(90deg);
}

.bitacora-mini-card--tool {
  align-items: start;
}

.bitacora-tool-panel {
  grid-column: 1 / -1;
  margin-top: -2px;
  padding: 14px;
  border: 1px solid rgba(219, 234, 254, 0.96);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(241, 245, 249, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 16px 30px rgba(15, 23, 42, 0.06);
  animation: bitacoraStoryIn 0.3s ease both;
}

.bitacora-tool-stage {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 12px;
  background:
    radial-gradient(circle at top right, rgba(125, 211, 252, 0.18), transparent 28%),
    linear-gradient(135deg, #081b33, #2d445c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.bitacora-tool-slide {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
}

.bitacora-tool-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(8, 27, 51, 0.86), rgba(45, 68, 92, 0.72));
}

.bitacora-tool-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.18);
  transform: translateY(-50%);
  cursor: pointer;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    color 0.22s ease;
}

.bitacora-tool-arrow:hover {
  color: var(--blue-button);
  box-shadow: 0 18px 30px rgba(37, 99, 235, 0.18);
}

.bitacora-tool-arrow--prev {
  left: 14px;
}

.bitacora-tool-arrow--next {
  right: 14px;
}

.bitacora-tool-dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
}

.bitacora-tool-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.46);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.22);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.bitacora-tool-dot.is-active {
  transform: scale(1.16);
  background: #ffffff;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.24);
}

.bitacora-tool-copy {
  padding: 16px 6px 4px;
}

.bitacora-tool-story[hidden] {
  display: none;
}

.bitacora-tool-counter {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--blue-button);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.bitacora-tool-copy h4 {
  margin-top: 12px;
  font-size: 1.14rem;
  line-height: 1.14;
  letter-spacing: -0.035em;
  color: #07192f;
}

.bitacora-tool-copy p {
  margin-top: 8px;
  font-size: 0.97rem;
  line-height: 1.62;
  color: #475569;
}

body.modal-open {
  overflow: hidden;
}

.bitacora-modal[hidden] {
  display: none;
}

.bitacora-modal {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.bitacora-modal--tool,
.bitacora-modal--academic,
.bitacora-modal--research {
  align-items: flex-start;
  overflow-y: auto;
  padding: 140px 24px 40px;
}

.bitacora-modal--tool .bitacora-modal-dialog,
.bitacora-modal--academic .bitacora-modal-dialog,
.bitacora-modal--research .bitacora-modal-dialog {
  max-height: calc(100vh - 180px);
}

.bitacora-modal--tool .bitacora-modal-body,
.bitacora-modal--academic .bitacora-modal-body,
.bitacora-modal--research .bitacora-modal-body {
  max-height: calc(calc(100vh - 180px) - min(32vw, 320px));
}

.bitacora-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(7, 25, 47, 0.34);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.bitacora-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(88vh, 980px);
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.92);
  border-radius: 32px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.96));
  box-shadow:
    0 40px 100px rgba(15, 23, 42, 0.24),
    0 18px 40px rgba(37, 99, 235, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  animation: bitacoraModalIn 0.22s ease both;
}

.bitacora-modal-article[hidden] {
  display: none;
}

.bitacora-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}

.bitacora-modal-close:hover {
  color: var(--blue-button);
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.16);
}

.bitacora-modal-close i {
  font-size: 1.15rem;
}

.bitacora-modal-media {
  position: relative;
  height: min(32vw, 320px);
  min-height: 220px;
  background: #dbeafe;
  overflow: hidden;
}

.bitacora-modal-media-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.bitacora-modal-media-slide {
  min-width: 100%;
  height: 100%;
}

.bitacora-modal-media img {
  display: block;
  width: 100%;
  min-width: 100%;
  height: 100%;
  object-fit: cover;
}

.bitacora-modal-media--video {
  background: #020617;
}

.bitacora-modal-media--academic {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
  background:
    radial-gradient(circle at top right, rgba(125, 211, 252, 0.22), transparent 26%),
    linear-gradient(135deg, #eef4ff, #dbeafe 52%, #eff6ff);
}

.bitacora-modal-media--research {
  padding: 20px;
  background:
    radial-gradient(circle at top right, rgba(191, 219, 254, 0.30), transparent 28%),
    linear-gradient(135deg, #eef4ff, #dbeafe 52%, #eff6ff);
}

.bitacora-modal-media--research img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  object-fit: contain;
  background: #ffffff;
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.10);
}

.bitacora-academic-invite-card {
  width: min(100%, 720px);
  padding: 26px 26px 22px;
  border: 1px solid rgba(226, 232, 240, 0.94);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 22px 40px rgba(15, 23, 42, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.bitacora-academic-invite-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bitacora-academic-invite-mark {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.22);
}

.bitacora-modal-media--academic img.bitacora-academic-invite-logo {
  display: block;
  width: 62px;
  min-width: 62px;
  max-width: 62px;
  height: 62px;
  padding: 4px;
  box-sizing: border-box;
  border-radius: 18px;
  background: #ffffff;
  object-fit: contain;
  flex: 0 0 62px;
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.16);
}

.bitacora-academic-invite-meta strong {
  display: block;
  font-size: 1.12rem;
  line-height: 1.2;
  color: #0f172a;
}

.bitacora-academic-invite-meta span {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 600;
}

.bitacora-academic-invite-copy {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.bitacora-academic-invite-copy p {
  font-size: 1.01rem;
  line-height: 1.68;
  color: #334155;
}

.bitacora-academic-invite-copy p + p {
  margin-top: 16px;
}

.bitacora-modal--academic .bitacora-modal-copy {
  min-height: 0;
}

.bitacora-modal--research .bitacora-modal-copy {
  min-height: 0;
}

.bitacora-modal-video {
  display: block;
  width: 100%;
  height: 100%;
  background: #020617;
  object-fit: contain;
}

.bitacora-modal-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.16);
  transform: translateY(-50%);
  cursor: pointer;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    color 0.22s ease,
    background-color 0.22s ease;
}

.bitacora-modal-arrow:hover {
  color: var(--blue-button);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 36px rgba(37, 99, 235, 0.18);
}

.bitacora-modal-arrow--prev {
  left: 18px;
}

.bitacora-modal-arrow--next {
  right: 18px;
}

.bitacora-modal-arrow i {
  font-size: 1rem;
}

.bitacora-modal-dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
}

.bitacora-modal-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.54);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.22);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.bitacora-modal-dot.is-active {
  transform: scale(1.25);
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.28);
}

.bitacora-modal-body {
  max-height: calc(min(88vh, 980px) - min(32vw, 320px));
  overflow-y: auto;
  padding: 34px 38px 38px;
}

.bitacora-modal-body h2 {
  margin-top: 16px;
  font-size: clamp(2rem, 3vw, 2.85rem);
  line-height: 1.04;
  letter-spacing: -0.06em;
  color: #07192f;
}

.bitacora-modal-copy {
  margin-top: 22px;
  min-height: 188px;
}

.bitacora-modal-story {
  display: none;
  animation: bitacoraStoryIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.bitacora-modal-story.is-active {
  display: block;
}

.bitacora-modal-copy p {
  font-size: 1.05rem;
  line-height: 1.82;
  color: #334155;
}

.bitacora-modal-copy p + p {
  margin-top: 20px;
}

@keyframes bitacoraBadgeFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-1px);
  }
}

@keyframes bitacoraBadgePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.30);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
}

@keyframes bitacoraModalIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes bitacoraStoryIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bitacora-actions {
  display: flex;
  justify-content: center;
  margin-top: 38px;
}

.bitacora-secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 56px;
  padding: 0 32px;
  border: 2px solid rgba(37, 99, 235, 0.82);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--blue-button);
  font-size: 1.02rem;
  font-weight: 800;
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.06);
}

.bitacora-secondary-link:hover {
  background: #eff6ff;
  box-shadow: 0 22px 38px rgba(37, 99, 235, 0.14);
}

.bitacora-archive {
  margin-top: 74px;
  padding: 42px;
  border-radius: 34px;
  animation: bitacoraFadeUp 0.85s ease 0.48s both;
}

.bitacora-archive-header {
  max-width: 840px;
  margin: 0 auto 30px;
  text-align: center;
}

.bitacora-archive-header h2 {
  margin-top: 18px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
  color: #07192f;
}

.bitacora-archive-header p {
  margin-top: 14px;
  font-size: 1.04rem;
  line-height: 1.7;
  color: #667085;
}

.bitacora-archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.bitacora-archive-card {
  padding: 28px;
  border-radius: 26px;
  scroll-margin-top: 132px;
}

.bitacora-archive-card h3 {
  margin-top: 18px;
  font-size: 1.4rem;
  line-height: 1.12;
  letter-spacing: -0.045em;
  color: #07192f;
}

.bitacora-archive-card p {
  margin-top: 14px;
  font-size: 0.99rem;
  line-height: 1.72;
  color: #5b6779;
}

@keyframes bitacoraFadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes bitacoraTitleIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
    filter: blur(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@media (max-width: 1100px) {
  .bitacora-layout {
    grid-template-columns: minmax(0, 1.16fr) minmax(300px, 0.9fr);
    gap: 24px;
  }

  .bitacora-feature-card {
    --bitacora-feature-media-height: 240px;
  }

  .bitacora-feature-body p {
    max-width: 100%;
  }
}

@media (max-width: 980px) {
  .bitacora-page {
    padding: 54px 0 92px;
  }

  .bitacora-layout,
  .bitacora-archive-grid {
    grid-template-columns: 1fr;
  }

  .bitacora-feature-anchor,
  .bitacora-side-anchor {
    padding-top: 28px;
  }

  .bitacora-network--top {
    width: min(46vw, 420px);
    top: 18px;
    right: -38px;
  }

  .bitacora-network--bottom {
    width: min(36vw, 300px);
    left: -52px;
    bottom: 140px;
  }

  .bitacora-feature-body,
  .bitacora-archive {
    padding: 30px;
  }

  .bitacora-side-list {
    gap: 20px;
  }
}

@media (max-width: 680px) {
  .bitacora-page {
    padding: 48px 0 80px;
  }

  .bitacora-hero {
    text-align: center;
    margin-bottom: 28px;
  }

  .bitacora-kicker,
  .bitacora-section-label {
    justify-content: center;
  }

  .bitacora-layout {
    gap: 22px;
  }

  .bitacora-feature-anchor,
  .bitacora-side-anchor {
    padding-top: 24px;
  }

  .bitacora-feature-card {
    border-radius: 28px;
  }

  .bitacora-feature-body {
    padding: 26px 24px 28px;
  }

  .bitacora-feature-body h2 {
    font-size: clamp(1.9rem, 7vw, 2.45rem);
  }

  .bitacora-feature-body p {
    font-size: 1rem;
  }

  .bitacora-mini-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px;
  }

  .bitacora-mini-icon {
    width: 92px;
    height: 92px;
  }

  .bitacora-mini-content h3 {
    max-width: none;
    font-size: 1.3rem;
  }

  .bitacora-tool-panel {
    padding: 12px;
    border-radius: 22px;
  }

  .bitacora-tool-stage {
    padding: 10px;
    border-radius: 18px;
  }

  .bitacora-tool-arrow {
    width: 38px;
    height: 38px;
  }

  .bitacora-tool-arrow--prev {
    left: 10px;
  }

  .bitacora-tool-arrow--next {
    right: 10px;
  }

  .bitacora-tool-copy {
    padding: 14px 2px 2px;
  }

  .bitacora-modal {
    padding: 18px;
  }

  .bitacora-modal--tool,
  .bitacora-modal--academic,
  .bitacora-modal--research {
    padding: 120px 18px 28px;
  }

  .bitacora-modal--tool .bitacora-modal-dialog,
  .bitacora-modal--academic .bitacora-modal-dialog,
  .bitacora-modal--research .bitacora-modal-dialog {
    max-height: calc(100vh - 148px);
  }

  .bitacora-modal--tool .bitacora-modal-body,
  .bitacora-modal--academic .bitacora-modal-body,
  .bitacora-modal--research .bitacora-modal-body {
    max-height: calc(calc(100vh - 148px) - 220px);
  }

  .bitacora-modal-media--academic {
    padding: 20px;
  }

  .bitacora-modal-media--research {
    padding: 16px;
  }

  .bitacora-academic-invite-card {
    padding: 22px 20px 18px;
    border-radius: 22px;
  }

  .bitacora-modal-dialog {
    border-radius: 26px;
  }

  .bitacora-modal-media {
    height: 220px;
    min-height: 220px;
  }

  .bitacora-modal-dots {
    bottom: 14px;
  }

  .bitacora-modal-arrow {
    width: 48px;
    height: 48px;
  }

  .bitacora-modal-arrow--prev {
    left: 14px;
  }

  .bitacora-modal-arrow--next {
    right: 14px;
  }

  .bitacora-modal-body {
    max-height: calc(88vh - 220px);
    padding: 26px 22px 28px;
  }

  .bitacora-modal-body h2 {
    font-size: clamp(1.7rem, 6vw, 2.2rem);
  }

  .bitacora-modal-copy p {
    font-size: 0.98rem;
    line-height: 1.72;
  }

  .bitacora-modal-copy {
    min-height: 0;
  }

  .bitacora-feature-nav {
    width: 42px;
    height: 42px;
  }

  .bitacora-feature-nav--prev {
    left: 14px;
  }

  .bitacora-feature-nav--next {
    right: 14px;
  }

  .bitacora-primary-link,
  .bitacora-secondary-link {
    width: 100%;
  }

  .bitacora-actions {
    margin-top: 28px;
  }

  .bitacora-archive {
    margin-top: 58px;
    padding: 26px 22px;
    border-radius: 28px;
  }

  .bitacora-archive-card {
    padding: 22px;
  }

  .bitacora-network--top,
  .bitacora-network--bottom,
  .bitacora-dots--right {
    display: none;
  }
}

@media (max-width: 560px) {
  .bitacora-dots--left {
    width: 98px;
    height: 80px;
    top: 174px;
  }

  .bitacora-hero h1 {
    font-size: clamp(2.45rem, 10vw, 3.2rem);
  }

  .bitacora-hero p {
    font-size: 1rem;
  }

  .bitacora-tool-copy h4 {
    font-size: 1.05rem;
  }

  .bitacora-tool-copy p {
    font-size: 0.93rem;
  }

  .bitacora-modal {
    padding: 14px;
  }

  .bitacora-modal--tool,
  .bitacora-modal--academic,
  .bitacora-modal--research {
    padding: 104px 14px 24px;
  }

  .bitacora-modal--tool .bitacora-modal-dialog,
  .bitacora-modal--academic .bitacora-modal-dialog,
  .bitacora-modal--research .bitacora-modal-dialog {
    max-height: calc(100vh - 128px);
  }

  .bitacora-modal--tool .bitacora-modal-body,
  .bitacora-modal--academic .bitacora-modal-body,
  .bitacora-modal--research .bitacora-modal-body {
    max-height: calc(calc(100vh - 128px) - 200px);
  }

  .bitacora-modal-media--academic {
    padding: 16px;
  }

  .bitacora-modal-media--research {
    padding: 12px;
  }

  .bitacora-academic-invite-card {
    padding: 18px 16px 16px;
    border-radius: 20px;
  }

  .bitacora-academic-invite-head {
    gap: 12px;
  }

  .bitacora-academic-invite-mark {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    font-size: 0.88rem;
  }

  .bitacora-modal-media--academic img.bitacora-academic-invite-logo {
    width: 54px;
    min-width: 54px;
    max-width: 54px;
    height: 54px;
    padding: 3px;
    box-sizing: border-box;
    border-radius: 16px;
    flex-basis: 54px;
  }

  .bitacora-academic-invite-meta strong {
    font-size: 1rem;
  }

  .bitacora-academic-invite-meta span,
  .bitacora-academic-invite-copy p {
    font-size: 0.92rem;
  }

  .bitacora-modal-close {
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
  }

  .bitacora-modal-media {
    height: 200px;
    min-height: 200px;
  }

  .bitacora-modal-dots {
    gap: 8px;
    bottom: 12px;
  }

  .bitacora-modal-dot {
    width: 9px;
    height: 9px;
  }

  .bitacora-modal-arrow {
    width: 42px;
    height: 42px;
  }

  .bitacora-modal-arrow--prev {
    left: 10px;
  }

  .bitacora-modal-arrow--next {
    right: 10px;
  }

  .bitacora-modal-body {
    max-height: calc(88vh - 200px);
    padding: 22px 18px 24px;
  }

  .bitacora-feature-card {
    --bitacora-feature-media-height: 220px;
  }

  .bitacora-feature-dots {
    top: calc(var(--bitacora-feature-media-height) - 20px);
  }

  .bitacora-feature-dot {
    width: 9px;
    height: 9px;
  }

  .bitacora-feature-nav {
    width: 40px;
    height: 40px;
  }

  .bitacora-feature-nav--prev {
    left: 10px;
  }

  .bitacora-feature-nav--next {
    right: 10px;
  }

  .bitacora-meta-row,
  .bitacora-meta-row--compact {
    gap: 10px;
  }

  .bitacora-tag,
  .bitacora-date {
    font-size: 0.9rem;
  }

  .bitacora-primary-link,
  .bitacora-secondary-link {
    min-height: 52px;
    font-size: 0.96rem;
  }
}

@media (max-width: 430px) {
  .bitacora-page {
    padding: 42px 0 72px;
  }

  .bitacora-layout {
    gap: 20px;
  }

  .bitacora-feature-anchor,
  .bitacora-side-anchor {
    padding-top: 20px;
  }

  .bitacora-kicker,
  .bitacora-section-label {
    min-height: 36px;
    padding: 0 14px;
    font-size: 0.84rem;
  }

  .bitacora-feature-body,
  .bitacora-archive {
    padding: 22px 18px 24px;
  }

  .bitacora-mini-card,
  .bitacora-archive-card {
    padding: 18px;
    border-radius: 22px;
  }

  .bitacora-feature-body h2,
  .bitacora-archive-header h2 {
    letter-spacing: -0.05em;
  }

  .bitacora-mini-content h3,
  .bitacora-archive-card h3 {
    font-size: 1.18rem;
  }
}

/* =========================
   BITACORA MODAL HEADER OFFSET FIX
   Evita que la noticia se corte con el header fijo
========================= */

:root {
  --bitacora-modal-top-gap: 28px;
  --bitacora-modal-bottom-gap: 40px;
}

body.modal-open {
  overflow: hidden;
}

.bitacora-modal[hidden] {
  display: none !important;
}

.bitacora-modal {
  position: fixed;
  top: var(--header-offset);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 240;
  width: 100%;
  height: auto;
  min-height: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: var(--bitacora-modal-top-gap) 24px var(--bitacora-modal-bottom-gap);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.bitacora-modal--tool,
.bitacora-modal--academic,
.bitacora-modal--research {
  align-items: flex-start;
  overflow-y: auto;
  padding: var(--bitacora-modal-top-gap) 24px var(--bitacora-modal-bottom-gap);
}

.bitacora-modal-backdrop {
  position: fixed;
  top: var(--header-offset);
  left: 0;
  right: 0;
  bottom: 0;
  inset: var(--header-offset) 0 0 0;
  z-index: 0;
}

.bitacora-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 32px));
  max-height: calc(100vh - var(--header-offset) - var(--bitacora-modal-top-gap) - var(--bitacora-modal-bottom-gap));
  max-height: calc(100dvh - var(--header-offset) - var(--bitacora-modal-top-gap) - var(--bitacora-modal-bottom-gap));
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: 0 auto;
}

.bitacora-modal--tool .bitacora-modal-dialog,
.bitacora-modal--academic .bitacora-modal-dialog,
.bitacora-modal--research .bitacora-modal-dialog {
  max-height: calc(100vh - var(--header-offset) - var(--bitacora-modal-top-gap) - var(--bitacora-modal-bottom-gap));
  max-height: calc(100dvh - var(--header-offset) - var(--bitacora-modal-top-gap) - var(--bitacora-modal-bottom-gap));
}

.bitacora-modal-media {
  flex: 0 0 min(32vw, 320px);
  height: min(32vw, 320px);
  min-height: 220px;
}

.bitacora-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none !important;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.bitacora-modal--tool .bitacora-modal-body,
.bitacora-modal--academic .bitacora-modal-body,
.bitacora-modal--research .bitacora-modal-body {
  max-height: none !important;
}

@media (max-width: 980px) {
  :root {
    --bitacora-modal-top-gap: 22px;
    --bitacora-modal-bottom-gap: 34px;
  }

  .bitacora-modal,
  .bitacora-modal--tool,
  .bitacora-modal--academic,
  .bitacora-modal--research {
    padding-left: 20px;
    padding-right: 20px;
  }

  .bitacora-modal-dialog {
    width: min(720px, 100%);
  }
}

@media (max-width: 680px) {
  :root {
    --bitacora-modal-top-gap: 16px;
    --bitacora-modal-bottom-gap: 24px;
  }

  .bitacora-modal,
  .bitacora-modal--tool,
  .bitacora-modal--academic,
  .bitacora-modal--research {
    padding-left: 14px;
    padding-right: 14px;
  }

  .bitacora-modal-dialog {
    width: 100%;
    border-radius: 26px;
  }

  .bitacora-modal-media {
    flex-basis: 220px;
    height: 220px;
    min-height: 220px;
  }
}

@media (max-width: 560px) {
  :root {
    --bitacora-modal-top-gap: 14px;
    --bitacora-modal-bottom-gap: 20px;
  }

  .bitacora-modal-media {
    flex-basis: 200px;
    height: 200px;
    min-height: 200px;
  }

  .bitacora-modal-body {
    padding: 22px 18px 24px;
  }
}

/* =========================
   BITACORA AND PRINCIPLES LAYOUT REFINEMENT
   Corrige el alto de Bitácora y centra mejor Nuestros principios
========================= */

/* Evita que la tarjeta principal de Bitácora se estire por el alto de la columna lateral */
.bitacora-feature-anchor {
  align-items: flex-start !important;
}

.bitacora-feature-card {
  align-self: flex-start !important;
  height: auto !important;
  min-height: 0 !important;
}

.bitacora-feature-track,
.bitacora-feature-slide {
  height: auto !important;
  min-height: 0 !important;
}

.bitacora-feature-body {
  height: auto !important;
  min-height: 0 !important;
}

/* Los párrafos de los modales no deben recortarse ni comportarse como texto limitado */
.bitacora-modal-copy p,
.bitacora-modal-story p,
.bitacora-academic-invite-copy p,
.bitacora-tool-copy p {
  display: block !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  white-space: normal !important;
  text-overflow: clip !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
  -webkit-box-orient: initial !important;
}

.bitacora-modal-body {
  padding-bottom: 46px !important;
}

.bitacora-modal-copy,
.bitacora-modal-story,
.bitacora-modal-story.is-active {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

.bitacora-modal-dialog {
  scrollbar-gutter: auto;
}

@media (min-width: 981px) {
  .bitacora-feature-anchor {
    align-items: stretch !important;
  }

  .bitacora-feature-card {
    display: flex;
    flex-direction: column;
    align-self: stretch !important;
    height: 100% !important;
    min-height: 100% !important;
  }

  .bitacora-feature-track,
  .bitacora-feature-slide {
    height: 100% !important;
    min-height: 100% !important;
  }
}

.bitacora-modal-media {
  flex-basis: clamp(210px, 27vw, 300px) !important;
  height: clamp(210px, 27vw, 300px) !important;
  min-height: 210px !important;
}

/* Da espacio real para que las tarjetas de principios puedan centrarse sin chocar con los controles flotantes */
.principles-stops {
  padding-bottom: 260px !important;
}

.principle-stop {
  scroll-margin-top: calc(var(--header-offset) + 40px) !important;
}

.principles-floating-controls {
  bottom: 18px !important;
}

@media (max-width: 980px) {
  .principles-stops {
    padding-bottom: 230px !important;
  }
}

@media (max-width: 680px) {
  .bitacora-modal-media {
    flex-basis: 190px !important;
    height: 190px !important;
    min-height: 190px !important;
  }

  .bitacora-modal-body {
    padding-bottom: 38px !important;
  }

  .principles-stops {
    padding-bottom: 210px !important;
  }
}

@media (max-width: 560px) {
  .bitacora-modal-media {
    flex-basis: 172px !important;
    height: 172px !important;
    min-height: 172px !important;
  }

  .bitacora-modal-body {
    padding-bottom: 34px !important;
  }
}
.ip-section {
  padding: 0 0 5rem;
}

.ip-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem 2.25rem;
  border-radius: 28px;
  background: linear-gradient(135deg, #ffffff 0%, #f6f2ff 100%);
  border: 1px solid rgba(106, 75, 190, 0.16);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.ip-card::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -70px;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  background: rgba(106, 75, 190, 0.11);
}

.ip-card-icon {
  position: relative;
  z-index: 1;
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: rgba(106, 75, 190, 0.12);
  color: #6a4bbe;
  font-size: 1.9rem;
}

.ip-card-content {
  position: relative;
  z-index: 1;
}

.ip-eyebrow {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6a4bbe;
}

.ip-card h2 {
  margin: 0 0 0.75rem;
  color: #071426;
  font-size: clamp(1.55rem, 2vw, 2rem);
  line-height: 1.15;
}

.ip-card p {
  margin: 0;
  max-width: 850px;
  color: #1f2937;
  font-size: 1.05rem;
  line-height: 1.75;
}

@media (max-width: 768px) {
  .ip-section {
    padding: 0 0 3.5rem;
  }

  .ip-card {
    flex-direction: column;
    padding: 1.6rem;
    border-radius: 24px;
  }

  .ip-card-icon {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
    font-size: 1.6rem;
  }

  .ip-card p {
    font-size: 1rem;
  }
}

/* =========================================================
   FIX FINAL HEADER + HERO RESPONSIVE
   Mantiene escritorio estable y evita que el header tape el slide en móvil
========================================================= */

/* Base: header fijo, contenido compensado por la variable --header-offset */
.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;
}

body {
  padding-top: var(--header-offset) !important;
}

main {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.hero-slider {
  margin-top: 0 !important;
}

/* Escritorio: conserva la composición original */
@media (min-width: 981px) {
  :root {
    --header-offset: 116px;
  }

  .hero-inner {
    padding-top: 26px !important;
    padding-bottom: 72px !important;
  }
}

/* Tablet: el header puede ocupar dos líneas, por eso se aumenta el offset */
@media (max-width: 980px) and (min-width: 681px) {
  :root {
    --header-offset: 156px;
  }
}

/* Móvil: header compacto arriba y hero visible desde el inicio */
@media (max-width: 680px) {
  :root {
    --header-offset: 92px;
  }

  .site-header {
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  }

  .hero-inner {
    padding-top: 34px !important;
    padding-bottom: 54px !important;
  }

  .hero-content h1 {
    margin-top: 0 !important;
  }
}

/* Móvil pequeño: mantener logo y botón en la misma línea para no comerse el slide */
@media (max-width: 430px) {
  :root {
    --header-offset: 92px;
  }

  .header-left {
    grid-template-columns: 1fr auto !important;
    align-items: center !important;
    gap: 12px !important;
  }

  .brand-logo {
    width: 170px !important;
  }

  .mobile-menu-toggle {
    width: auto !important;
    min-width: 118px !important;
    min-height: 42px !important;
    padding: 0 14px !important;
  }

  .main-nav {
    grid-column: 1 / -1 !important;
  }

  .hero-inner {
    padding-top: 30px !important;
    padding-bottom: 50px !important;
  }
}
