/* =========================================================
   Blue Whale Token — Landing
   Estilo basado en la línea visual de Hencorp:
   menú lateral con línea punteada, títulos azul marino,
   franja de imagen a todo el ancho con recuadro azul.
   ========================================================= */

:root {
  --navy: #24355c;          /* títulos, recuadro del hero */
  --navy-deep: #15223d;     /* pie de página */
  --accent: #d98a1f;        /* punto activo del menú, botón primario */
  --ink: #2a2f3a;           /* texto principal */
  --muted: #5b6372;         /* texto secundario */
  --line: #e2e6ee;          /* bordes */
  --soft: #f4f6f9;          /* fondo de secciones alternas */
  --white: #ffffff;

  --sidebar-w: 215px;
  --content-max: 1120px;
  --prose-max: 46rem;
  --radius: 14px;

  --font: "Open Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  padding-left: var(--sidebar-w);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 { color: var(--navy); line-height: 1.3; margin: 0; }

/* ---------- Menú lateral ---------- */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: var(--white);
  border-right: 1px solid var(--line);
  padding: 22px 0 24px 10px;
  z-index: 50;
  overflow-y: auto;
}

.brand { display: block; width: 150px; margin: 0 0 56px 14px; }

.menu-toggle { display: none; }

.nav ul {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  border-left: 2px dotted var(--navy);
}

.nav a {
  position: relative;
  display: block;
  padding: 10px 16px 10px 21px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  transition: color .2s;
}

.nav a:hover { color: var(--accent); }

.nav a.is-active { color: var(--accent); }
.nav a.is-active::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Inicio: tres columnas ---------- */
.intro {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 44px 6vw 72px;
  text-align: center;
}

.intro h2 { font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.intro p { margin: 0; color: var(--muted); line-height: 1.9; }

/* ---------- Franja del hero (el océano) ---------- */
.ocean {
  position: relative;
  overflow: hidden;
  min-height: 78vh;
  display: grid;
  place-items: center;
  padding: 12vh 5vw 10vh;
  /* Para usar una foto o video real, reemplace este fondo por:
     background: url("assets/hero.jpg") center / cover; */
  background:
    radial-gradient(ellipse 70% 45% at 50% -8%, rgba(255, 255, 255, .55), transparent 70%),
    radial-gradient(ellipse 40% 30% at 15% 20%, rgba(190, 230, 245, .25), transparent 70%),
    linear-gradient(180deg, #6fb4d3 0%, #2a7ea9 30%, #13507c 62%, #0a2d4c 100%);
}

/* rayos de luz bajo el agua */
.ocean::before {
  content: "";
  position: absolute;
  inset: -20% -10% 30%;
  background: repeating-conic-gradient(from 178deg at 50% -10%,
    rgba(255, 255, 255, .10) 0deg 2deg,
    transparent 2deg 7deg);
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  pointer-events: none;
}

/* burbujas sutiles */
.ocean::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 70%, rgba(255,255,255,.35) 0 2px, transparent 3px),
    radial-gradient(circle at 86% 30%, rgba(255,255,255,.30) 0 3px, transparent 4px),
    radial-gradient(circle at 74% 82%, rgba(255,255,255,.25) 0 2px, transparent 3px),
    radial-gradient(circle at 30% 18%, rgba(255,255,255,.25) 0 2px, transparent 3px);
  pointer-events: none;
}

/* La ballena del logo navegando en el fondo */
.ocean__whale {
  position: absolute;
  width: min(62vw, 820px);
  right: -10%;
  top: -4%;
  opacity: .24;
  filter: brightness(0) saturate(100%);
  mix-blend-mode: multiply;
  pointer-events: none;
  animation: drift 26s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) rotate(-1deg); }
  to   { transform: translate3d(-9vw, 3vh, 0) rotate(1.5deg); }
}

.ocean__card {
  position: relative;
  z-index: 1;
  max-width: 980px;
  padding: 44px 52px 36px;
  border-radius: var(--radius);
  background: rgba(31, 46, 82, .93);
  color: var(--white);
  text-align: center;
  box-shadow: 0 24px 60px rgba(5, 20, 40, .35);
}

.ocean__card h1 {
  color: var(--white);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 400;
  letter-spacing: .01em;
  margin-bottom: 18px;
}

.ocean__sub {
  margin: 0 auto 28px;
  max-width: 50rem;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .9);
}

.ocean__legal {
  margin: 26px auto 0;
  padding-top: 18px;
  max-width: 52rem;
  border-top: 1px solid rgba(255, 255, 255, .18);
  font-size: 12px;
  line-height: 1.7;
  font-style: italic;
  color: rgba(255, 255, 255, .78);
}

/* ---------- Botones ---------- */
.actions,
.buy-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 14px;
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s;
}

.btn--primary { background: var(--accent); color: var(--navy-deep); }
.btn--primary:hover { background: #e9a040; }

.btn--secondary { border-color: rgba(255, 255, 255, .8); color: var(--white); }
.btn--secondary:hover { background: var(--white); color: var(--navy); }

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

.btn--link {
  padding-left: 8px;
  padding-right: 8px;
  color: var(--white);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Métricas ---------- */
.metrics {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 64px 6vw 24px;
  display: grid;
  gap: 52px;
}

.metrics__title {
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 22px;
}

.metrics__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin: 0;
  border-top: 2px dotted var(--navy);
}

.metrics__row > div {
  padding: 22px 20px 6px;
  text-align: center;
}

.metrics__row > div + div { border-left: 1px solid var(--line); }

.metrics__row dt {
  font-size: 30px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
}

.metrics__row dd {
  margin: 8px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

.metrics__note {
  margin: 22px auto 0;
  max-width: var(--prose-max);
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Secciones genéricas ---------- */
.section {
  padding: 88px 6vw;
}

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

.section__head {
  max-width: 52rem;
  margin: 0 auto 44px;
  text-align: center;
}

.section__head h2 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 700; }

.lead {
  margin: 14px 0 0;
  font-size: 16px;
  color: var(--muted);
}

.prose {
  max-width: var(--prose-max);
  margin: 0 auto;
}

.prose p { margin: 0 0 1.1em; }

.prose--blocks { margin-top: 56px; }
.prose--blocks h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 2.2em 0 .7em;
}
.prose--blocks h3:first-child { margin-top: 0; }

.subhead {
  max-width: var(--content-max);
  margin: 56px auto 6px;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.subhead__note {
  margin: 0 auto 20px;
  text-align: center;
  font-size: 13.5px;
  font-style: italic;
  color: var(--muted);
}

.subhead + .table-wrap { margin-top: 20px; }

.note-center {
  max-width: var(--prose-max);
  margin: 36px auto 0;
  text-align: center;
  color: var(--muted);
}

.muted { color: var(--muted); font-weight: 400; }

.fine {
  max-width: var(--prose-max);
  margin: 28px auto 0;
  font-size: 12.5px;
  line-height: 1.7;
  font-style: italic;
  color: var(--muted);
}
.fine--wide p { margin: 0 0 .9em; }
.fine strong { font-style: normal; color: var(--ink); }

/* Texto pendiente de completar (números de registro, fecha de corte) */
.pendiente {
  background: #fff3d6;
  border-bottom: 1px dashed var(--accent);
  padding: 0 3px;
  border-radius: 3px;
  color: inherit;
}
.ocean .pendiente,
.footer .pendiente { background: rgba(217, 138, 31, .25); }

/* ---------- Tablas ---------- */
.table-wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.table-wrap--narrow { max-width: 760px; }

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.6;
}

.table thead th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  text-align: left;
  padding: 12px 18px;
}

.table tbody th,
.table tfoot th {
  width: 32%;
  min-width: 170px;
  text-align: left;
  font-weight: 600;
  color: var(--navy);
  vertical-align: top;
}

.table th,
.table td { padding: 12px 18px; border-bottom: 1px solid var(--line); }
.table td { min-width: 240px; }
.table tbody tr:last-child th,
.table tbody tr:last-child td { border-bottom: 0; }

.table tfoot th,
.table tfoot td {
  background: #eef1f7;
  font-weight: 700;
  color: var(--navy);
  border-top: 2px solid var(--navy);
  border-bottom: 0;
}

.table--num td { text-align: right; font-variant-numeric: tabular-nums; min-width: 140px; }
.table--num thead th:last-child { text-align: right; }
.table--num tbody th,
.table--num tfoot th { width: auto; }

/* ---------- Vinculación token-Fondo ---------- */
.flow {
  list-style: none;
  counter-reset: paso;
  margin: 0 0 1.1em;
  padding: 0;
  border-left: 2px dotted var(--navy);
}

.flow li {
  position: relative;
  counter-increment: paso;
  padding: 4px 0 18px 30px;
}

.flow li::before {
  content: counter(paso);
  position: absolute;
  left: -13px;
  top: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
}

/* ---------- Vías de liquidez ---------- */
.vias {
  display: grid;
  gap: 14px;
  margin: 8px 0 18px;
}

.via {
  position: relative;
  padding: 18px 20px 6px 64px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.via__tag {
  position: absolute;
  left: 18px;
  top: 18px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--navy);
  color: var(--navy);
  font-weight: 700;
  line-height: 26px;
  text-align: center;
}

.via h4 { font-size: 15px; margin-bottom: 6px; }
.via p { margin: 0 0 12px; font-size: 14px; color: var(--muted); }

.callout {
  padding: 12px 18px;
  border-left: 4px solid var(--accent);
  background: #fdf6ea;
  font-weight: 600;
  color: var(--navy);
}

/* ---------- Inquilinos ---------- */
.tenants {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 960px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.tenants li {
  padding: 26px 20px;
  text-align: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tenants strong { display: block; font-size: 18px; color: var(--navy); }
.tenants span { font-size: 13.5px; color: var(--muted); }

/* ---------- Rendimientos ---------- */
.yield {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.yield__item {
  padding: 26px 28px;
  background: var(--white);
  border-top: 4px solid var(--navy);
  border-radius: 0 0 10px 10px;
}

.yield__item h3 { font-size: 17px; margin-bottom: 10px; }
.yield__item p { margin: 0; font-size: 14.5px; }

.strategy {
  max-width: 960px;
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}

.strategy h3 { font-size: 17px; margin-bottom: 12px; display: flex; gap: 10px; align-items: center; }
.strategy ul { margin: 0; padding-left: 1.1em; }
.strategy li { margin-bottom: 8px; font-size: 14.5px; }
.strategy li::marker { color: var(--accent); }

.letter {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  vertical-align: middle;
}
.subhead .letter { margin-right: 6px; }

/* ---------- Cómo comprar ---------- */
.steps {
  list-style: none;
  counter-reset: compra;
  margin: 0 auto;
  padding: 0;
  max-width: var(--content-max);
  display: grid;
  grid-template-columns: 1fr 1fr 1.6fr;
  gap: 36px;
}

.steps li {
  counter-increment: compra;
  position: relative;
  padding-top: 56px;
  border-top: 2px dotted var(--navy);
}

.steps li::before {
  content: counter(compra);
  position: absolute;
  top: -19px;
  left: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--navy-deep);
  font-weight: 700;
  line-height: 36px;
  text-align: center;
}

.steps h3 { font-size: 17px; margin-bottom: 8px; }
.steps p { margin: 0; font-size: 14.5px; color: var(--muted); }

.buy-cta { margin: 48px 0 0; }

/* ---------- Marco fiscal ---------- */
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li {
  position: relative;
  padding: 0 0 16px 26px;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}
.ticks strong { color: var(--navy); }

/* ---------- Preguntas frecuentes ---------- */
.faq {
  max-width: 50rem;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 18px 44px 18px 4px;
  font-weight: 600;
  color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -7px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }

.faq details p { margin: 0; padding: 0 4px 20px; color: var(--muted); }

/* ---------- Pie de página ---------- */
.footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, .78);
  padding: 64px 6vw calc(48px + env(safe-area-inset-bottom, 0px));
}

.footer__inner { max-width: 60rem; margin: 0 auto; }

.footer__logo {
  width: 120px;
  margin: 0 auto 28px;
  filter: invert(1);
  opacity: .9;
}

.footer__legal {
  margin: 0;
  font-size: 12px;
  line-height: 1.8;
  font-style: italic;
  text-align: justify;
  hyphens: auto;
}

.footer__copy {
  margin: 28px 0 0;
  font-size: 12px;
  text-align: center;
  color: rgba(255, 255, 255, .55);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .steps { grid-template-columns: 1fr; gap: 44px; max-width: var(--prose-max); }
}

@media (max-width: 900px) {
  body { padding-left: 0; }
  html { scroll-padding-top: calc(76px + env(safe-area-inset-top, 0px)); }

  .sidebar {
    position: sticky;
    top: 0;
    inset: auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(8px + env(safe-area-inset-top, 0px)) 5vw 8px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow: visible;
  }

  .brand { width: 64px; margin: 0; }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    color: var(--navy);
    font: 600 14px/1 var(--font);
    cursor: pointer;
  }

  .menu-toggle__bars,
  .menu-toggle__bars::before,
  .menu-toggle__bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    position: relative;
    transition: transform .2s, background-color .2s;
  }
  .menu-toggle__bars::before,
  .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .menu-toggle__bars::before { top: -6px; }
  .menu-toggle__bars::after { top: 6px; }

  .menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 12px 5vw 20px 8vw;
    box-shadow: 0 16px 30px rgba(20, 35, 60, .12);
    display: none;
  }
  .nav.is-open { display: block; }

  .intro { grid-template-columns: 1fr; gap: 32px; padding-top: 36px; padding-bottom: 48px; }
  .ocean { min-height: auto; padding: 72px 5vw; }
  .ocean__whale { width: 120vw; right: -40%; top: 2%; opacity: .16; }
  .ocean__card { padding: 32px 22px 26px; }
  .ocean__sub { font-size: 15px; }

  .metrics__row > div + div { border-left: 0; border-top: 1px solid var(--line); }

  .section { padding: 64px 5vw; }
  .tenants { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yield,
  .strategy { grid-template-columns: 1fr; }
  .footer__legal { text-align: left; }
}

@media (max-width: 480px) {
  .tenants { grid-template-columns: 1fr; }
  .btn { width: 100%; text-align: center; }
  .btn--link { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ocean__whale { animation: none; }
  * { transition: none !important; }
}

@media print {
  body { padding-left: 0; }
  .sidebar, .ocean__whale, .actions, .buy-cta { display: none; }
  .ocean { min-height: 0; background: none; padding: 0; }
  .ocean__card { background: none; color: var(--ink); box-shadow: none; }
  .ocean__card h1, .ocean__sub, .ocean__legal { color: var(--ink); }
  .faq details { display: block; }
}
