/*
Theme Name: La Bola de Nieve
Theme URI: https://laboladenieve.com/
Author: La Bola de Nieve
Description: Tema editorial ligero para LaBolaDeNieve.com. Portada, publicaciones, páginas, archivos y navegación con una identidad visual coherente.
Version: 1.0.3
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: laboladenieve
*/

:root {
      --bg: #06101c;
      --bg-soft: #0a1727;
      --surface: rgba(16, 34, 55, 0.72);
      --surface-solid: #0e2035;
      --surface-light: #f5f8fb;
      --text: #f4f8fc;
      --text-muted: #a8b8c9;
      --ink: #102136;
      --ink-muted: #5b6b7b;
      --ice: #9fe8ff;
      --ice-strong: #52c7ee;
      --mint: #79e5bd;
      --gold: #f4c86a;
      --line: rgba(255, 255, 255, 0.11);
      --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
      --radius-sm: 14px;
      --radius: 22px;
      --radius-lg: 34px;
      --max: 1180px;
    }

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

    html {
      scroll-behavior: smooth;
    }

    body {
      min-height: 100vh;
      overflow-x: hidden;
      color: var(--text);
      background:
        radial-gradient(circle at 15% 0%, rgba(82, 199, 238, 0.16), transparent 34%),
        radial-gradient(circle at 92% 8%, rgba(121, 229, 189, 0.10), transparent 28%),
        var(--bg);
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
    }

    body.menu-open {
      overflow: hidden;
    }

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

    button,
    input {
      font: inherit;
    }

    button {
      cursor: pointer;
    }

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

    .container {
      width: min(calc(100% - 40px), var(--max));
      margin: 0 auto;
    }

    /* Marcadores editoriales: jerarquía sin píldoras ni avisos decorativos. */
    .section-marker {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      color: var(--ice);
      font-size: 0.74rem;
      font-weight: 800;
      letter-spacing: 0.12em;
      line-height: 1;
      text-transform: uppercase;
    }

    .section-marker::after {
      width: 46px;
      height: 1px;
      background: linear-gradient(90deg, rgba(159, 232, 255, 0.9), rgba(121, 229, 189, 0.15));
      content: "";
    }

    .entry-topic {
      display: inline-block;
      color: var(--ice);
      font-size: 0.76rem;
      font-weight: 800;
      letter-spacing: 0.09em;
      text-transform: uppercase;
    }

    .section-heading {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
      gap: 50px;
      align-items: end;
      margin-bottom: 52px;
    }

    .section-heading h2 {
      max-width: 760px;
      margin-top: 18px;
      font-size: clamp(2rem, 4vw, 3.5rem);
      line-height: 1.06;
      letter-spacing: -0.045em;
    }

    .section-heading p {
      color: var(--text-muted);
      font-size: 1.02rem;
    }

    .btn {
      display: inline-flex;
      min-height: 52px;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 0 20px;
      border: 1px solid transparent;
      border-radius: 14px;
      font-weight: 800;
      transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
    }

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

    .btn-primary {
      color: #06111d;
      background: linear-gradient(135deg, var(--ice), var(--mint));
      box-shadow: 0 14px 34px rgba(82, 199, 238, 0.20);
    }

    .btn-primary:hover {
      box-shadow: 0 18px 42px rgba(82, 199, 238, 0.30);
    }

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

    .btn-secondary:hover {
      border-color: rgba(159, 232, 255, 0.38);
      background: rgba(159, 232, 255, 0.08);
    }

    .icon {
      width: 20px;
      height: 20px;
      flex: 0 0 auto;
    }

    /* Header */
    .site-header {
      position: fixed;
      z-index: 100;
      top: 0;
      right: 0;
      left: 0;
      border-bottom: 1px solid transparent;
      transition: background 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
    }

    .site-header.scrolled {
      border-color: var(--line);
      background: rgba(6, 16, 28, 0.84);
      backdrop-filter: blur(18px);
    }

    .nav {
      display: flex;
      min-height: 80px;
      align-items: center;
      justify-content: space-between;
      gap: 30px;
    }

    .brand {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      font-size: 1rem;
      font-weight: 900;
      letter-spacing: -0.03em;
    }

    .brand-mark {
      position: relative;
      display: grid;
      width: 42px;
      height: 42px;
      place-items: center;
      overflow: hidden;
      border: 1px solid rgba(159, 232, 255, 0.32);
      border-radius: 50%;
      background:
        radial-gradient(circle at 35% 30%, #fff 0 4%, transparent 5%),
        radial-gradient(circle at 50% 50%, #bceeff 0 36%, #71cae8 37% 58%, #2d769a 59% 72%, #0d263b 73% 100%);
      box-shadow: inset -8px -10px 16px rgba(0, 0, 0, 0.25), 0 0 0 7px rgba(159, 232, 255, 0.04);
    }

    .brand-mark::after {
      position: absolute;
      right: 5px;
      bottom: 6px;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.56);
      content: "";
    }

    .brand-copy strong,
    .brand-copy span {
      display: block;
    }

    .brand-copy strong {
      font-size: 1.05rem;
    }

    .brand-copy span {
      margin-top: -4px;
      color: var(--text-muted);
      font-size: 0.66rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .nav-links {
      color: #c9d5e1;
      font-size: 0.92rem;
      font-weight: 700;
    }

    .nav-links .primary-menu {
      display: flex;
      margin: 0;
      padding: 0;
      align-items: center;
      gap: 28px;
      list-style: none;
    }

    .nav-links .primary-menu > li {
      margin: 0;
      padding: 0;
      list-style: none;
    }

    .nav-links .primary-menu > li:not(.menu-cta) > a {
      position: relative;
      display: inline-flex;
      padding: 8px 0;
      align-items: center;
    }

    .nav-links .primary-menu > li:not(.menu-cta) > a::after {
      position: absolute;
      right: 0;
      bottom: 1px;
      left: 0;
      height: 2px;
      transform: scaleX(0);
      transform-origin: right;
      border-radius: 2px;
      background: var(--ice);
      content: "";
      transition: transform 180ms ease;
    }

    .nav-links .primary-menu > li:not(.menu-cta) > a:hover::after,
    .nav-links .primary-menu > li.current-menu-item:not(.menu-cta) > a::after,
    .nav-links .primary-menu > li.current-menu-ancestor:not(.menu-cta) > a::after {
      transform: scaleX(1);
      transform-origin: left;
    }

    .nav-links .menu-cta > a {
      display: inline-flex;
      min-height: 44px;
      padding: 0 16px;
      align-items: center;
      justify-content: center;
      border: 1px solid transparent;
      border-radius: 14px;
      color: #06111d;
      background: linear-gradient(135deg, var(--ice), var(--mint));
      box-shadow: 0 14px 34px rgba(82, 199, 238, 0.20);
      font-size: 0.86rem;
      font-weight: 800;
      transition: transform 180ms ease, box-shadow 180ms ease;
    }

    .nav-links .menu-cta > a:hover {
      transform: translateY(-2px);
      box-shadow: 0 18px 42px rgba(82, 199, 238, 0.30);
    }

    .menu-toggle {
      display: none;
      width: 44px;
      height: 44px;
      align-items: center;
      justify-content: center;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: rgba(255, 255, 255, 0.05);
      color: var(--text);
    }

    /* Hero */
    .hero {
      position: relative;
      min-height: 930px;
      padding: 160px 0 90px;
    }

    .hero::before {
      position: absolute;
      z-index: -1;
      inset: 0;
      opacity: 0.22;
      background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
      background-size: 54px 54px;
      mask-image: linear-gradient(to bottom, black 0%, transparent 78%);
      content: "";
    }

    .hero-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.88fr);
      gap: 70px;
      align-items: center;
    }

    .hero h1 {
      max-width: 760px;
      margin-top: 0;
      font-size: clamp(3.3rem, 7.3vw, 6.25rem);
      line-height: 0.96;
      letter-spacing: -0.065em;
    }

    .hero h1 span {
      display: block;
      color: transparent;
      background: linear-gradient(100deg, #ffffff 0%, var(--ice) 48%, var(--mint) 100%);
      background-clip: text;
      -webkit-background-clip: text;
    }

    .hero-copy > p {
      max-width: 650px;
      margin-top: 28px;
      color: #b8c7d6;
      font-size: clamp(1.05rem, 2vw, 1.22rem);
      line-height: 1.75;
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 13px;
      margin-top: 34px;
    }

    .trust-row {
      display: flex;
      flex-wrap: wrap;
      gap: 18px 26px;
      margin-top: 34px;
      color: var(--text-muted);
      font-size: 0.84rem;
      font-weight: 700;
    }

    .trust-row span {
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }

    .trust-row svg {
      width: 17px;
      color: var(--mint);
    }

    .hero-visual {
      position: relative;
      min-height: 590px;
    }

    .orbit {
      position: absolute;
      inset: 5% 0 0;
      border: 1px dashed rgba(159, 232, 255, 0.18);
      border-radius: 50%;
      animation: rotate 34s linear infinite;
    }

    .orbit::before,
    .orbit::after {
      position: absolute;
      width: 14px;
      height: 14px;
      border: 3px solid var(--bg);
      border-radius: 50%;
      background: var(--ice);
      box-shadow: 0 0 28px rgba(159, 232, 255, 0.95);
      content: "";
    }

    .orbit::before {
      top: 10%;
      left: 17%;
    }

    .orbit::after {
      right: 11%;
      bottom: 20%;
      background: var(--mint);
    }

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

    .snowball {
      position: absolute;
      top: 50%;
      left: 50%;
      display: grid;
      width: min(360px, 72vw);
      aspect-ratio: 1;
      place-items: center;
      transform: translate(-50%, -50%);
      border: 1px solid rgba(255, 255, 255, 0.24);
      border-radius: 50%;
      background:
        radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.98) 0 3%, transparent 4%),
        radial-gradient(circle at 24% 39%, rgba(255, 255, 255, 0.45) 0 2%, transparent 3%),
        radial-gradient(circle at 63% 33%, rgba(255, 255, 255, 0.30) 0 2.3%, transparent 3.2%),
        radial-gradient(circle at 53% 63%, rgba(255, 255, 255, 0.25) 0 3%, transparent 4%),
        radial-gradient(circle at 50% 47%, #dbf7ff 0 34%, #9ddff5 35% 53%, #4a9dc2 67%, #164364 82%, #081b2d 100%);
      box-shadow:
        inset -42px -52px 70px rgba(4, 19, 32, 0.55),
        inset 20px 20px 56px rgba(255, 255, 255, 0.38),
        0 42px 110px rgba(58, 169, 214, 0.36),
        0 0 0 22px rgba(159, 232, 255, 0.025);
    }

    .snowball-inner {
      width: 62%;
      text-align: center;
      color: #071827;
    }

    .snowball-inner small {
      display: block;
      font-size: 0.66rem;
      font-weight: 900;
      letter-spacing: 0.16em;
      text-transform: uppercase;
    }

    .snowball-inner strong {
      display: block;
      margin: 4px 0 2px;
      font-size: clamp(2.4rem, 5vw, 4.25rem);
      line-height: 1;
      letter-spacing: -0.08em;
    }

    .snowball-inner span {
      display: block;
      font-size: 0.73rem;
      font-weight: 800;
      line-height: 1.35;
    }

    .floating-card {
      position: absolute;
      min-width: 210px;
      padding: 16px 17px;
      border: 1px solid var(--line);
      border-radius: 18px;
      background: rgba(9, 24, 40, 0.75);
      box-shadow: 0 22px 55px rgba(0, 0, 0, 0.30);
      backdrop-filter: blur(14px);
    }

    .floating-card small {
      display: block;
      color: var(--text-muted);
      font-size: 0.68rem;
      font-weight: 800;
      letter-spacing: 0.09em;
      text-transform: uppercase;
    }

    .floating-card strong {
      display: block;
      margin-top: 4px;
      font-size: 1.28rem;
      letter-spacing: -0.035em;
    }

    .floating-card span {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      margin-top: 8px;
      color: var(--mint);
      font-size: 0.78rem;
      font-weight: 800;
    }

    .card-one {
      top: 9%;
      left: -3%;
      animation: float 5.5s ease-in-out infinite;
    }

    .card-two {
      right: -2%;
      bottom: 13%;
      animation: float 5.5s ease-in-out 1.4s infinite;
    }

    @keyframes float {
      50% { transform: translateY(-10px); }
    }

    .hero-bottom {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1px;
      margin-top: 90px;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--line);
    }

    .hero-stat {
      padding: 24px;
      background: rgba(8, 23, 39, 0.82);
    }

    .hero-stat strong {
      display: block;
      margin-bottom: 5px;
      font-size: 1.04rem;
    }

    .hero-stat span {
      display: block;
      color: var(--text-muted);
      font-size: 0.84rem;
    }

    /* Philosophy */
    .philosophy {
      padding: 112px 0;
    }

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

    .step-card {
      position: relative;
      min-height: 340px;
      overflow: hidden;
      padding: 30px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: linear-gradient(145deg, rgba(16, 35, 57, 0.90), rgba(8, 22, 38, 0.72));
      box-shadow: var(--shadow);
    }

    .step-card::after {
      position: absolute;
      right: -45px;
      bottom: -55px;
      width: 180px;
      height: 180px;
      border: 1px solid rgba(159, 232, 255, 0.10);
      border-radius: 50%;
      box-shadow: 0 0 0 28px rgba(159, 232, 255, 0.025), 0 0 0 56px rgba(159, 232, 255, 0.018);
      content: "";
    }

    .step-number {
      display: grid;
      width: 48px;
      height: 48px;
      place-items: center;
      border: 1px solid rgba(159, 232, 255, 0.24);
      border-radius: 14px;
      background: rgba(159, 232, 255, 0.07);
      color: var(--ice);
      font-size: 0.78rem;
      font-weight: 900;
    }

    .step-card h3 {
      margin-top: 44px;
      font-size: 1.55rem;
      letter-spacing: -0.035em;
    }

    .step-card p {
      margin-top: 13px;
      color: var(--text-muted);
    }

    .step-card a {
      position: absolute;
      z-index: 2;
      bottom: 28px;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: var(--ice);
      font-size: 0.84rem;
      font-weight: 800;
    }

    /* Calculator */
    .calculator-section {
      padding: 112px 0;
      color: var(--ink);
      background: var(--surface-light);
    }

    .calculator-section .section-marker {
      color: #126f92;
    }

    .calculator-section .section-marker::after {
      background: linear-gradient(90deg, rgba(18, 111, 146, 0.9), rgba(18, 111, 146, 0.12));
    }

    .calculator-section .section-heading p {
      color: var(--ink-muted);
    }

    .calculator-shell {
      display: grid;
      grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
      gap: 36px;
      padding: 28px;
      border: 1px solid #d9e2ea;
      border-radius: var(--radius-lg);
      background: #fff;
      box-shadow: 0 30px 70px rgba(30, 56, 78, 0.12);
    }

    .controls {
      display: grid;
      gap: 20px;
      padding: 12px;
    }

    .field {
      display: grid;
      gap: 9px;
    }

    .field-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
    }

    .field label {
      color: #263b50;
      font-size: 0.82rem;
      font-weight: 800;
    }

    .field output {
      color: #0b7398;
      font-size: 0.86rem;
      font-weight: 900;
    }

    input[type="range"] {
      width: 100%;
      height: 7px;
      appearance: none;
      border-radius: 999px;
      background: #dfe8ef;
      outline: none;
    }

    input[type="range"]::-webkit-slider-thumb {
      width: 22px;
      height: 22px;
      appearance: none;
      border: 4px solid #fff;
      border-radius: 50%;
      background: #1284ad;
      box-shadow: 0 2px 8px rgba(18, 132, 173, 0.36);
    }

    input[type="range"]::-moz-range-thumb {
      width: 15px;
      height: 15px;
      border: 4px solid #fff;
      border-radius: 50%;
      background: #1284ad;
      box-shadow: 0 2px 8px rgba(18, 132, 173, 0.36);
    }

    .calc-note {
      padding: 15px;
      border-radius: 14px;
      background: #f2f7fa;
      color: #607284;
      font-size: 0.76rem;
    }

    .result-panel {
      position: relative;
      display: flex;
      min-height: 470px;
      flex-direction: column;
      justify-content: space-between;
      overflow: hidden;
      padding: 32px;
      border-radius: 26px;
      color: var(--text);
      background:
        radial-gradient(circle at 85% 0%, rgba(121, 229, 189, 0.18), transparent 34%),
        linear-gradient(145deg, #0e263b, #071420);
    }

    .result-panel::after {
      position: absolute;
      right: -60px;
      bottom: -90px;
      width: 270px;
      height: 270px;
      border: 1px solid rgba(159, 232, 255, 0.13);
      border-radius: 50%;
      box-shadow: 0 0 0 38px rgba(159, 232, 255, 0.035), 0 0 0 76px rgba(159, 232, 255, 0.02);
      content: "";
    }

    .result-top small {
      color: #a9bcca;
      font-size: 0.72rem;
      font-weight: 800;
      letter-spacing: 0.11em;
      text-transform: uppercase;
    }

    .result-number {
      margin-top: 8px;
      font-size: clamp(2.7rem, 6vw, 5.15rem);
      font-weight: 900;
      line-height: 1;
      letter-spacing: -0.07em;
    }

    .result-number span {
      color: var(--ice);
    }

    .chart {
      position: relative;
      z-index: 2;
      display: flex;
      height: 180px;
      align-items: end;
      gap: 8px;
      margin: 30px 0;
    }

    .bar {
      min-width: 8px;
      flex: 1;
      border-radius: 5px 5px 2px 2px;
      background: linear-gradient(to top, rgba(82, 199, 238, 0.35), var(--ice));
      transition: height 300ms ease;
    }

    .result-breakdown {
      position: relative;
      z-index: 2;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }

    .result-item {
      padding: 14px;
      border: 1px solid rgba(255, 255, 255, 0.10);
      border-radius: 14px;
      background: rgba(255, 255, 255, 0.045);
    }

    .result-item small,
    .result-item strong {
      display: block;
    }

    .result-item small {
      color: #9eb1c1;
      font-size: 0.69rem;
      font-weight: 800;
      text-transform: uppercase;
    }

    .result-item strong {
      margin-top: 2px;
      font-size: 1rem;
    }

    /* Articles */
    .articles {
      padding: 112px 0;
    }

    .article-grid {
      display: grid;
      grid-template-columns: 1.15fr 0.85fr 0.85fr;
      gap: 22px;
    }

    .article-card {
      display: flex;
      min-height: 430px;
      flex-direction: column;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--surface);
      transition: transform 190ms ease, border-color 190ms ease;
    }

    .article-card:hover {
      transform: translateY(-5px);
      border-color: rgba(159, 232, 255, 0.28);
    }

    .article-visual {
      position: relative;
      min-height: 190px;
      overflow: hidden;
      border-bottom: 1px solid var(--line);
      background: #0d2134;
    }

    .article-visual::before {
      position: absolute;
      width: 180px;
      height: 180px;
      border-radius: 50%;
      background: radial-gradient(circle at 35% 30%, #dff8ff, #69c1df 50%, #174867 80%);
      box-shadow: inset -18px -22px 28px rgba(0,0,0,.28), 0 30px 55px rgba(82,199,238,.22);
      content: "";
    }

    .visual-one::before {
      right: 12%;
      bottom: -45px;
      width: 230px;
      height: 230px;
    }

    .visual-one::after {
      position: absolute;
      right: 6%;
      bottom: 0;
      left: 0;
      height: 80%;
      opacity: 0.8;
      background: linear-gradient(150deg, transparent 45%, rgba(121, 229, 189, 0.32) 46% 48%, transparent 49%);
      content: "";
    }

    .visual-two::before {
      top: 38px;
      left: 50%;
      width: 126px;
      height: 126px;
      transform: translateX(-50%);
    }

    .visual-three::before {
      right: -18px;
      bottom: -32px;
      width: 170px;
      height: 170px;
    }

    .visual-three::after {
      position: absolute;
      top: 38px;
      left: 32px;
      width: 120px;
      height: 86px;
      border-bottom: 4px solid var(--mint);
      border-left: 4px solid rgba(121, 229, 189, 0.18);
      transform: skewY(-22deg);
      content: "";
    }

    .article-content {
      display: flex;
      flex: 1;
      flex-direction: column;
      padding: 25px;
    }

    .article-meta {
      display: flex;
      align-items: center;
      gap: 10px;
      color: var(--ice);
      font-size: 0.72rem;
      font-weight: 850;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .article-meta span:last-child {
      color: var(--text-muted);
    }

    .article-content h3 {
      margin-top: 16px;
      font-size: 1.42rem;
      line-height: 1.22;
      letter-spacing: -0.035em;
    }

    .article-content p {
      margin-top: 12px;
      color: var(--text-muted);
      font-size: 0.9rem;
    }

    .article-content a {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-top: auto;
      padding-top: 22px;
      color: var(--ice);
      font-size: 0.84rem;
      font-weight: 800;
    }

    /* Principles */
    .principles {
      padding: 112px 0;
      color: var(--ink);
      background: #eef4f7;
    }

    .principles .section-heading p {
      color: var(--ink-muted);
    }

    .principles .section-marker {
      color: #126f92;
    }

    .principles .section-marker::after {
      background: linear-gradient(90deg, rgba(18, 111, 146, 0.9), rgba(18, 111, 146, 0.12));
    }

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

    .principle {
      display: grid;
      grid-template-columns: auto 1fr;
      gap: 20px;
      padding: 28px;
      border: 1px solid #d5e0e7;
      border-radius: var(--radius);
      background: #fff;
    }

    .principle-icon {
      display: grid;
      width: 50px;
      height: 50px;
      place-items: center;
      border-radius: 15px;
      background: #e7f7fb;
      color: #0d789d;
    }

    .principle h3 {
      font-size: 1.16rem;
      letter-spacing: -0.025em;
    }

    .principle p {
      margin-top: 5px;
      color: var(--ink-muted);
      font-size: 0.88rem;
    }

    /* Newsletter */
    .newsletter {
      padding: 110px 0;
    }

    .newsletter-box {
      position: relative;
      overflow: hidden;
      padding: 64px;
      border: 1px solid rgba(159, 232, 255, 0.20);
      border-radius: var(--radius-lg);
      background:
        radial-gradient(circle at 85% 18%, rgba(121, 229, 189, 0.18), transparent 30%),
        linear-gradient(140deg, #0c2338, #081521);
      box-shadow: var(--shadow);
    }

    .newsletter-box::after {
      position: absolute;
      right: -80px;
      bottom: -140px;
      width: 390px;
      height: 390px;
      border: 1px solid rgba(159, 232, 255, 0.13);
      border-radius: 50%;
      box-shadow: 0 0 0 44px rgba(159, 232, 255, 0.025), 0 0 0 88px rgba(159, 232, 255, 0.018);
      content: "";
    }

    .newsletter-content {
      position: relative;
      z-index: 2;
      max-width: 710px;
    }

    .newsletter h2 {
      margin-top: 0;
      font-size: clamp(2.3rem, 5vw, 4.4rem);
      line-height: 1.02;
      letter-spacing: -0.055em;
    }

    .newsletter p {
      max-width: 650px;
      margin-top: 18px;
      color: var(--text-muted);
      font-size: 1rem;
    }

    .subscribe-form {
      display: flex;
      max-width: 620px;
      gap: 10px;
      margin-top: 30px;
      padding: 7px;
      border: 1px solid var(--line);
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.05);
    }

    .subscribe-form input {
      min-width: 0;
      flex: 1;
      padding: 0 15px;
      border: 0;
      outline: 0;
      color: var(--text);
      background: transparent;
    }

    .subscribe-form input::placeholder {
      color: #8195a7;
    }

    .subscribe-form .btn {
      min-height: 48px;
      white-space: nowrap;
    }

    .form-message {
      min-height: 22px;
      margin-top: 10px;
      color: var(--mint);
      font-size: 0.8rem;
      font-weight: 700;
    }

    .privacy-note {
      margin-top: 12px !important;
      color: #8195a7 !important;
      font-size: 0.74rem !important;
    }

    /* Footer */
    .site-footer {
      padding: 38px 0 46px;
      border-top: 1px solid var(--line);
    }

    .footer-grid {
      display: grid;
      grid-template-columns: 1.2fr 0.8fr 0.8fr;
      gap: 40px;
    }

    .footer-brand p {
      max-width: 390px;
      margin-top: 18px;
      color: var(--text-muted);
      font-size: 0.82rem;
    }

    .footer-column h3 {
      margin-bottom: 14px;
      font-size: 0.8rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }


    .footer-menu,
    .footer-menu li {
      margin: 0;
      padding: 0;
      list-style: none;
    }

    .footer-column a {
      display: block;
      width: fit-content;
      margin: 8px 0;
      color: var(--text-muted);
      font-size: 0.82rem;
    }

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

    .footer-bottom {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 30px;
      margin-top: 38px;
      padding-top: 24px;
      border-top: 1px solid var(--line);
      color: #7f92a4;
      font-size: 0.72rem;
    }

    .footer-bottom p:last-child {
      max-width: 620px;
      text-align: right;
    }

    /* Reveal */
    .reveal {
      opacity: 0;
      transform: translateY(22px);
      transition: opacity 650ms ease, transform 650ms ease;
    }

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

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
      }
    }

    @media (max-width: 980px) {
      .menu-toggle {
        display: inline-flex;
      }

      .nav-links {
        position: fixed;
        top: 80px;
        right: 20px;
        left: 20px;
        display: none;
        padding: 24px;
        border: 1px solid var(--line);
        border-radius: 20px;
        background: rgba(6, 16, 28, 0.98);
        box-shadow: var(--shadow);
      }

      .nav-links.open {
        display: block;
      }

      .nav-links .primary-menu {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
      }

      .nav-links .primary-menu > li,
      .nav-links .primary-menu > li > a {
        width: 100%;
      }

      .nav-links .primary-menu > li:not(.menu-cta) > a {
        padding: 10px 0;
      }

      .nav-links .menu-cta > a {
        min-height: 48px;
      }

      .hero-grid,
      .calculator-shell {
        grid-template-columns: 1fr;
      }

      .hero-copy {
        text-align: center;
      }

      .hero h1,
      .hero-copy > p {
        margin-right: auto;
        margin-left: auto;
      }

      .hero-actions,
      .trust-row {
        justify-content: center;
      }

      .hero-visual {
        min-height: 560px;
      }

      .steps-grid,
      .article-grid {
        grid-template-columns: 1fr 1fr;
      }

      .step-card:last-child,
      .article-card:first-child {
        grid-column: 1 / -1;
      }

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

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

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

    @media (max-width: 680px) {
      .container {
        width: min(calc(100% - 26px), var(--max));
      }

      .nav {
        min-height: 72px;
      }

      .brand-copy span {
        display: none;
      }

      .nav-links {
        top: 72px;
        right: 13px;
        left: 13px;
      }

      .hero {
        min-height: auto;
        padding-top: 130px;
      }

      .hero h1 {
        font-size: clamp(3.2rem, 16vw, 4.7rem);
      }

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

      .hero-visual {
        min-height: 470px;
      }

      .snowball {
        width: min(290px, 78vw);
      }

      .floating-card {
        min-width: 165px;
        padding: 13px;
      }

      .floating-card strong {
        font-size: 1rem;
      }

      .card-one {
        top: 8%;
        left: 0;
      }

      .card-two {
        right: 0;
        bottom: 9%;
      }

      .hero-bottom,
      .steps-grid,
      .article-grid,
      .principles-grid,
      .result-breakdown,
      .footer-grid {
        grid-template-columns: 1fr;
      }

      .step-card:last-child,
      .article-card:first-child,
      .footer-brand {
        grid-column: auto;
      }

      .philosophy,
      .calculator-section,
      .articles,
      .principles,
      .newsletter {
        padding: 82px 0;
      }

      .calculator-shell {
        padding: 14px;
        border-radius: 24px;
      }

      .result-panel {
        min-height: 430px;
        padding: 24px;
      }

      .newsletter-box {
        padding: 38px 22px;
      }

      .subscribe-form {
        padding: 0;
        border: 0;
        background: transparent;
        flex-direction: column;
      }

      .subscribe-form input {
        min-height: 52px;
        border: 1px solid var(--line);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.05);
      }

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

      .footer-bottom p:last-child {
        text-align: left;
      }
    }

/* =========================================================
   Integración WordPress y páginas interiores
   ========================================================= */

body.lbdn-theme {
  margin: 0;
}

body.admin-bar .site-header {
  top: 32px;
}

.skip-link {
  position: fixed;
  z-index: 99999;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  color: var(--ink);
  background: var(--ice);
  border-radius: 10px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

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

.nav-links .is-current,
.nav-links .current-menu-item:not(.menu-cta) > a,
.nav-links .current-menu-ancestor:not(.menu-cta) > a {
  color: var(--ice);
}

.section-actions {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.article-visual.has-image {
  position: relative;
  overflow: hidden;
}

.article-visual.has-image::before,
.article-visual.has-image::after {
  display: none;
}

.article-visual.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.article-card:hover .article-visual.has-image img {
  transform: scale(1.035);
}

.inner-main {
  min-height: 65vh;
  padding-top: 92px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 112px 0 74px;
  background:
    radial-gradient(circle at 12% 12%, rgba(82, 199, 238, 0.15), transparent 35%),
    radial-gradient(circle at 88% 15%, rgba(121, 229, 189, 0.10), transparent 32%),
    var(--bg);
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -210px;
  width: 470px;
  height: 470px;
  border: 1px solid rgba(159, 232, 255, 0.14);
  border-radius: 50%;
  box-shadow:
    0 0 0 45px rgba(159, 232, 255, 0.025),
    0 0 0 90px rgba(159, 232, 255, 0.018);
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.page-hero h1,
body.lbdn-theme .page-hero h1 {
  max-width: 900px;
  margin: 0 0 22px;
  color: var(--text) !important;
  font-size: clamp(2.7rem, 6.6vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.058em;
}

.page-hero p {
  max-width: 720px;
  color: var(--text-muted);
  font-size: clamp(1.04rem, 1.6vw, 1.25rem);
}

.page-hero .entry-topic + h1 {
  margin-top: 18px;
}

.archive-section {
  padding: 74px 0 100px;
  background: var(--bg);
}

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

.archive-grid .article-card:first-child {
  grid-column: span 2;
}

.archive-empty {
  grid-column: 1 / -1;
  padding: 60px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.archive-empty h2 {
  margin-bottom: 12px;
  color: var(--text) !important;
}

.pagination-wrap {
  margin-top: 54px;
}

.nav-links-pagination,
.pagination-wrap .nav-links {
  position: static;
  display: block;
  width: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  opacity: 1;
  visibility: visible;
  transform: none;
}

.pagination-wrap .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin: 4px;
  padding: 0 13px;
  color: var(--text-muted);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
}

.pagination-wrap .page-numbers.current,
.pagination-wrap .page-numbers:hover {
  color: var(--ink);
  border-color: transparent;
  background: linear-gradient(135deg, var(--ice), var(--mint));
}

.single-stage,
.page-stage {
  padding: 0 0 104px;
  background:
    linear-gradient(var(--bg) 0 190px, var(--surface-light) 190px 100%);
}

.article-shell {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 40px), 920px);
  margin: 0 auto;
  overflow: hidden;
  color: var(--ink);
  border: 1px solid rgba(16, 33, 54, 0.08);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(2, 12, 24, 0.18);
}

.article-featured {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.entry-content {
  padding: clamp(34px, 6vw, 74px);
  color: #26384b;
  font-size: 1.08rem;
  line-height: 1.85;
}

.entry-content > * {
  max-width: 740px;
  margin-right: auto;
  margin-left: auto;
}

.entry-content > .alignwide {
  max-width: 980px;
}

.entry-content > .alignfull {
  width: calc(100% + clamp(68px, 12vw, 148px));
  max-width: none;
  margin-left: calc(clamp(34px, 6vw, 74px) * -1);
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote,
.entry-content table,
.entry-content figure,
.entry-content pre {
  margin-top: 0;
  margin-bottom: 1.55em;
}

.entry-content h2,
body.lbdn-theme .entry-content h2 {
  margin-top: 2em;
  margin-bottom: 0.65em;
  color: var(--ink) !important;
  font-size: clamp(1.75rem, 3.3vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.entry-content h3,
body.lbdn-theme .entry-content h3 {
  margin-top: 1.7em;
  margin-bottom: 0.55em;
  color: var(--ink) !important;
  font-size: clamp(1.35rem, 2.4vw, 1.82rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.entry-content h4,
body.lbdn-theme .entry-content h4 {
  margin-top: 1.45em;
  margin-bottom: 0.5em;
  color: var(--ink) !important;
}

.entry-content a {
  color: #087ba0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.entry-content a:hover {
  color: #075f7c;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.35em;
}

.entry-content li + li {
  margin-top: 0.55em;
}

.entry-content blockquote {
  padding: 24px 28px;
  color: #163148;
  border-left: 4px solid var(--ice-strong);
  border-radius: 0 16px 16px 0;
  background: #edf9fd;
}

.entry-content blockquote p:last-child {
  margin-bottom: 0;
}

.entry-content img {
  height: auto;
  border-radius: 18px;
}

.entry-content figcaption {
  margin-top: 8px;
  color: var(--ink-muted);
  font-size: 0.88rem;
  text-align: center;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
}

.entry-content th,
.entry-content td {
  padding: 14px 16px;
  text-align: left;
  border: 1px solid #dce5ed;
}

.entry-content th {
  color: var(--ink);
  background: #edf4f8;
}

.entry-content pre {
  overflow: auto;
  padding: 22px;
  color: #e9f6ff;
  border-radius: 16px;
  background: #0b1c2e;
}

.entry-content .wp-block-button__link {
  color: var(--ink);
  text-decoration: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ice), var(--mint));
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 26px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.entry-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.entry-meta span + span::before {
  content: "•";
  margin-right: 10px;
  color: var(--ice);
}

.author-note {
  max-width: 740px;
  margin: 0 auto 58px;
  padding: 24px 28px;
  color: var(--ink-muted);
  border: 1px solid #dce7ee;
  border-radius: 18px;
  background: #f4f8fb;
}

.author-note strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
}

.related-section {
  padding: 80px 0;
  background: var(--bg-soft);
}

.related-section .section-heading {
  margin-bottom: 34px;
}

.related-section .section-heading h2,
body.lbdn-theme .related-section .section-heading h2 {
  color: var(--text) !important;
}

.search-form-theme {
  display: flex;
  max-width: 650px;
  margin-top: 28px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
}

.search-form-theme input {
  flex: 1;
  min-width: 0;
  padding: 0 16px;
  color: var(--text);
  border: 0;
  outline: 0;
  background: transparent;
}

.search-form-theme input::placeholder {
  color: var(--text-muted);
}

.search-form-theme .btn {
  min-height: 48px;
}

.comments-area {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 clamp(34px, 6vw, 74px) 70px;
  color: var(--ink);
}

.comments-title {
  margin-bottom: 24px;
}

.comment-list {
  list-style: none;
}

.comment-body {
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid #dce7ee;
  border-radius: 14px;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #ccd8e2;
  border-radius: 12px;
}

.comment-form .submit {
  padding: 12px 20px;
  color: var(--ink);
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ice), var(--mint));
  cursor: pointer;
}

@media (max-width: 920px) {
  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .archive-grid .article-card:first-child {
    grid-column: span 2;
  }
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 680px) {
  .page-hero {
    padding: 86px 0 58px;
  }

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

  .archive-grid .article-card:first-child {
    grid-column: auto;
  }

  .article-shell {
    width: min(calc(100% - 22px), 920px);
    border-radius: 22px;
  }

  .entry-content {
    padding: 30px 22px;
    font-size: 1rem;
  }

  .entry-content > .alignfull {
    width: calc(100% + 44px);
    margin-left: -22px;
  }

  .author-note {
    margin: 0 22px 42px;
  }

  .search-form-theme {
    flex-direction: column;
    gap: 8px;
    padding: 8px;
  }

  .search-form-theme input {
    min-height: 48px;
  }
}
